|
@ -32,13 +32,13 @@ class ConvenioReport(ReportDefault): |
|
|
class band_page_header(ReportDefault.band_page_header): |
|
|
class band_page_header(ReportDefault.band_page_header): |
|
|
|
|
|
|
|
|
label_top = ReportDefault.band_page_header.label_top |
|
|
label_top = ReportDefault.band_page_header.label_top |
|
|
label_left = [0,1.5,6,9,11,13,15,17] |
|
|
label_left = [0,1.5,7,9,11,13,15,17] |
|
|
elements = list(ReportDefault.band_page_header.elements) |
|
|
elements = list(ReportDefault.band_page_header.elements) |
|
|
height = 4.7*cm |
|
|
height = 4.7*cm |
|
|
|
|
|
|
|
|
elements += [ |
|
|
elements += [ |
|
|
Label( |
|
|
Label( |
|
|
text="Estado", |
|
|
text="UF", |
|
|
left=label_left[0]*cm, |
|
|
left=label_left[0]*cm, |
|
|
top=label_top + 0.4*cm, |
|
|
top=label_top + 0.4*cm, |
|
|
), |
|
|
), |
|
@ -48,13 +48,13 @@ class ConvenioReport(ReportDefault): |
|
|
top=label_top + 0.4*cm, |
|
|
top=label_top + 0.4*cm, |
|
|
), |
|
|
), |
|
|
Label( |
|
|
Label( |
|
|
text="Número do Convenio", |
|
|
text="Data de Adesão", |
|
|
left=label_left[2]*cm, |
|
|
left=label_left[2]*cm, |
|
|
top=label_top, |
|
|
top=label_top, |
|
|
width=2*cm, |
|
|
width=2*cm, |
|
|
), |
|
|
), |
|
|
Label( |
|
|
Label( |
|
|
text="Data de Adesão", |
|
|
text="Número do Convenio", |
|
|
left=label_left[3]*cm, |
|
|
left=label_left[3]*cm, |
|
|
top=label_top, |
|
|
top=label_top, |
|
|
width=2*cm, |
|
|
width=2*cm, |
|
@ -66,13 +66,13 @@ class ConvenioReport(ReportDefault): |
|
|
width=2*cm, |
|
|
width=2*cm, |
|
|
), |
|
|
), |
|
|
Label( |
|
|
Label( |
|
|
text="Data de Aceite", |
|
|
text="Data de Publicação", |
|
|
left=label_left[5]*cm, |
|
|
left=label_left[5]*cm, |
|
|
top=label_top, |
|
|
top=label_top, |
|
|
width=2*cm, |
|
|
width=2*cm, |
|
|
), |
|
|
), |
|
|
Label( |
|
|
Label( |
|
|
text="Data de Publicação", |
|
|
text="Data de Aceite", |
|
|
left=label_left[6]*cm, |
|
|
left=label_left[6]*cm, |
|
|
top=label_top, |
|
|
top=label_top, |
|
|
width=2*cm, |
|
|
width=2*cm, |
|
@ -92,7 +92,7 @@ class ConvenioReport(ReportDefault): |
|
|
|
|
|
|
|
|
class band_detail(ReportDefault.band_detail): |
|
|
class band_detail(ReportDefault.band_detail): |
|
|
|
|
|
|
|
|
label_left = [0,1.5,6,9,11,13,15,17] |
|
|
label_left = [0,1.5,7,9,11,13,15,17] |
|
|
|
|
|
|
|
|
elements=[ |
|
|
elements=[ |
|
|
ObjectValue( |
|
|
ObjectValue( |
|
@ -103,16 +103,16 @@ class ConvenioReport(ReportDefault): |
|
|
attribute_name='casa_legislativa.municipio.nome', |
|
|
attribute_name='casa_legislativa.municipio.nome', |
|
|
left=label_left[1]*cm |
|
|
left=label_left[1]*cm |
|
|
), |
|
|
), |
|
|
ObjectValue( |
|
|
|
|
|
attribute_name='num_convenio', |
|
|
|
|
|
left=label_left[2]*cm |
|
|
|
|
|
), |
|
|
|
|
|
ObjectValue( |
|
|
ObjectValue( |
|
|
attribute_name='data_adesao', |
|
|
attribute_name='data_adesao', |
|
|
left=label_left[3]*cm, |
|
|
left=label_left[2]*cm, |
|
|
get_value=lambda instance: |
|
|
get_value=lambda instance: |
|
|
instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' |
|
|
instance.data_adesao.strftime('%d/%m/%Y') if instance.data_adesao != None else '-' |
|
|
), |
|
|
), |
|
|
|
|
|
ObjectValue( |
|
|
|
|
|
attribute_name='num_convenio', |
|
|
|
|
|
left=label_left[3]*cm |
|
|
|
|
|
), |
|
|
ObjectValue( |
|
|
ObjectValue( |
|
|
attribute_name='data_retorno_assinatura', |
|
|
attribute_name='data_retorno_assinatura', |
|
|
left=label_left[4]*cm, |
|
|
left=label_left[4]*cm, |
|
@ -120,16 +120,16 @@ class ConvenioReport(ReportDefault): |
|
|
instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' |
|
|
instance.data_retorno_assinatura.strftime('%d/%m/%Y') if instance.data_retorno_assinatura != None else '-' |
|
|
), |
|
|
), |
|
|
ObjectValue( |
|
|
ObjectValue( |
|
|
attribute_name='data_termo_aceite', |
|
|
attribute_name='data_pub_diario', |
|
|
left=label_left[5]*cm, |
|
|
left=label_left[5]*cm, |
|
|
get_value=lambda instance: |
|
|
get_value=lambda instance: |
|
|
instance.data_termo_aceite.strftime('%d/%m/%Y') if instance.data_termo_aceite != None else '-' |
|
|
instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' |
|
|
), |
|
|
), |
|
|
ObjectValue( |
|
|
ObjectValue( |
|
|
attribute_name='data_pub_diario', |
|
|
attribute_name='data_termo_aceite', |
|
|
left=label_left[6]*cm, |
|
|
left=label_left[6]*cm, |
|
|
get_value=lambda instance: |
|
|
get_value=lambda instance: |
|
|
instance.data_pub_diario.strftime('%d/%m/%Y') if instance.data_pub_diario != None else '-' |
|
|
instance.data_termo_aceite.strftime('%d/%m/%Y') if instance.data_termo_aceite != None else '-' |
|
|
), |
|
|
), |
|
|
ObjectValue( |
|
|
ObjectValue( |
|
|
attribute_name='projeto.sigla', |
|
|
attribute_name='projeto.sigla', |
|
|