Skip to content

Instantly share code, notes, and snippets.

@GiselaMD
Created May 22, 2018 17:23
Show Gist options
  • Save GiselaMD/0fff652efb856689b031231d0c7f8f23 to your computer and use it in GitHub Desktop.
Save GiselaMD/0fff652efb856689b031231d0c7f8f23 to your computer and use it in GitHub Desktop.
Broken Window Theory
import { HnrContent } from '../models/hnrcontent.interface';
const hnrcontentModal: HnrContent[] = [
{
itemId: "1T",
topic: "Valor Hora",
items: [
{
valueId: 1,
description: "Despesas Correntes",
value: 0,
formattedValue: '0,00'
},
{
valueId: 2,
description: "VH Arquiteto",
value: 0,
formattedValue: '0,00'
},
{
valueId: 3,
description: "VH Estag./Funcion.",
value: 0,
formattedValue: '0,00'
},
{
valueId: 4,
description: "VH Escritório",
value: 0,
formattedValue: '0,00'
},
{
valueId: 5,
description: "Valor Hora",
value: 0,
formattedValue: '0,00'
},
]
},
{
itemId: "2T",
topic: "Somatório",
items: [
{
valueId:1,
description:"Deslocamento",
value:0,
formattedValue:'0D'
},
{
valueId:2,
description:"Hora Arquiteto",
value:0,
formattedValue:'00:00'
},
{
valueId:3,
description:"Hora Estagiário",
value:0,
formattedValue:'00:00'
},
{
valueId:4,
description:"Hora Escritório",
value:0,
formattedValue:'00:00'
},
]
},
{
itemId: "3T",
topic: "Subtotal",
items: [
{
valueId:1,
description:"Deslocamento",
value:0,
formattedValue:'0,00'
},
{
valueId:2,
description:"Hora Arquiteto",
value:0,
formattedValue:'0,00'
},
{
valueId:3,
description:"Hora Estagiário",
value:0,
formattedValue:'0,00'
},
{
valueId:4,
description:"Hora Escritório",
value:0,
formattedValue:'0,00'
},
]
},
{
itemId: "4T",
topic: "Despesas do Serviço",
items: [
{
valueId:1,
description:"Total",
value:0,
formattedValue:'0,00'
},
]
},
{
itemId: "5T",
topic: "Risco de Retrabalho",
items: [
{
valueId: 1,
description: "15% do total da hora do arquiteto",
value: 0,
formattedValue: '0,00'
},
]
},
{
itemId: "6T",
topic: "Lucro do Serviço",
items: [
{
valueId: 1,
description: "25% do total de despesas + risco",
value: 0,
formattedValue: '0,00'
},
]
},
{
itemId: "7T",
topic: "HONORÁRIOS PROFISSIONAIS",
items: [
{
valueId: 1,
description: "Total",
value: 0,
formattedValue: '0,00'
},
]
},
]
export const HNRCONTENT_MODAL = hnrcontentModal;
import { HCard } from './../models/hcard.interface';
import { HNRCONTENT_MODAL } from './hnrContent_modal';
const HonorariosExecCardTotal: HCard[] = [
{
cardId: "13HXC",
title: "RESUMO",
hnrContent: HNRCONTENT_MODAL,
}
]
export const HONORARIOS_EXEC_CARD_TOTAL = HonorariosExecCardTotal;
import { HCard } from './../models/hcard.interface';
import { HNRCONTENT_MODAL } from './hnrContent_modal';
const HonorariosProjCardTotal: HCard[] = [
{
cardId: "16HPJ",
title: "RESUMO",
hnrContent: HNRCONTENT_MODAL,
},
]
export const HONORARIOS_PROJ_CARD_TOTAL = HonorariosProjCardTotal;
@GiselaMD
Copy link
Author

Reutilizando o conteúdo nas duas constantes que anteriormente duplicavam conteúdo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment