DEFINE G _ovl       := .t.
DEFINE G _LPI_6     := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_LPI6}"   ,P_LPI6   ),"")
DEFINE G _LPI_8     := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_LPI8}"   ,P_LPI8   ),"")
DEFINE G _CPI_10    := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_CPI10}"  ,P_CPI10  ),"")
DEFINE G _CPI_12    := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_CPI12}"  ,P_CPI12  ),"")
DEFINE G _CPI_15    := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_CPI15}"  ,P_CPI15  ),"")
DEFINE G _TUCNEN    := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_TUCNEN}" ,P_TUCNEN ),"")
DEFINE G _TUCNEZ    := IF(_OVL,IF(p_bhview.and._s_device="SCREEN","@{P_TUCNEZ}" ,P_TUCNEZ ),"")
DEFINE E _Obd1      := if(!empty(Mes1),str(Mes1,2)+"/"+str(Rok1,4),space(7))
DEFINE E _Obd2      := if(!empty(Mes2),str(Mes2,2)+"/"+str(Rok2,4),space(7))
DEFINE E _Obd3      := if(!empty(Mes3),str(Mes3,2)+"/"+str(Rok3,4),space(7))
DEFINE E _Zac       := 0
DEFINE E _Zac1      := 0
DEFINE E _Zac2      := 0
DEFINE E _Zac3      := 0
DEFINE E _Zac4      := 0
DEFINE E _Zac5      := 0
DEFINE E _Zac6      := 0
DEFINE E _Zac7      := 0
DEFINE E _Zac8      := 0
DEFINE E _Zac9      := 0
DEFINE E _Zac10     := 0
DEFINE E _Kon       := 0

""
""
"            "+_tucnen+"N  K L A D O V    L I S T  -  V O D N    a   S T O  N "+_tucnez
""
"            "+_tucnen+"S.VODOMRU "+C_vodomer+"               TV "+TUV+"             Pepoet "+Prepocet
"                                                       Zk.slo."+str(PerTUV,6,2)+"%  Naven "+str(Pernav,6,2)+"%"
""
_prtl(_riadok,10,_riadok,89,,3)+akt_prem("_Zac",_riadok,.f.)
"            Obdob od             "+_Obd1 +"              "+_Obd2 +"              "+_Obd3
"            Zpsob vyut.           "+Spos_Vyuc1+"                   "+Spos_Vyuc2+"                   "+Spos_Vyuc3
_prtl(_riadok,10,_riadok,89,,3)+akt_prem("_Zac1",_riadok,.f.)
"            "+_tucnen+"C E L K E M"+_tucnez
_prtl(_riadok,10,_riadok,89,,1)+akt_prem("_Zac2",_riadok,.f.)
"            Fak.K| Fak.m3 "+str(Naklady1,9,2)+str(NaklM31,11,2)+str(Naklady2,10,2)+str(NaklM32,11,2)+str(Naklady3,10,2)+str(NaklM33,11,2)
"            K ZS | K SS  "+str(ZNaklady1,9,2)+str(SNaklady1,11,2)+str(ZNaklady2,10,2)+str(SNaklady2,11,2)+str(ZNaklady3,10,2)+str(SNaklady3,11,2)
_prtl(_riadok,10,_riadok,89,,3)+_prtl(_riadok,36,_zac2,36,,1)+_prtl(_riadok,57,_zac2,57,,1)+_prtl(_riadok,78,_zac2,78,,1)
"            "+_tucnen+"B Y T Y"+_tucnez
_prtl(_riadok,10,_riadok,89,,3)+akt_prem("_Zac3",_riadok,.f.)
"            Fak.K| Fak.m3 "+str(Byty1,9,2)+str(BytyM31,11,2)+str(Byty2,10,2)+str(BytyM32,11,2)+str(Byty3,10,2)+str(BytyM33,11,2)
"            Z toho men  "+space(9)      +str(MeraneB1,11,2)+space(10)+str(MeraneB2,11,2)+space(10)+str(MeraneB3,11,2)
"            K ZS | K SS  "+str(ZByty1,9,2)+str(SpByty1,11,2)+str(ZByty2,10,2)+str(SpByty2,11,2)+str(ZByty3,10,2)+str(SpByty3,11,2)
"            Plocha| Spot. "+str(BPlocha1,9,2)+str(SByty1,11,2)+str(BPlocha2,10,2)+str(SByty2,11,2)+str(BPlocha3,10,2)+str(SByty3,11,2)
"            K/m2 | K/m3  "+str(BytM21,9,3)+str(BytM31,11,3)+str(BytM22,10,3)+str(BytM32,11,3)+str(BytM23,10,3)+str(BytM33,11,3)
"            SS nem| Kc/m2  "+str(SpBytyN1,9,2)+str(BytM2N1,11,3)+str(SpBytyN2,10,2)+str(BytM2N2,11,3)+str(SpBytyN3,10,2)+str(BytM2N3,11,3)
"            Osoby | K/os. "+str(Bytosoby1,9,2)+str(BytVodaO1,11,3)+str(BytOsoby2,10,2)+str(BytVodaO2,11,3)+str(BytOsoby3,10,2)+str(BytVodaO3,11,2)
_prtl(_riadok,10,_riadok,89,,3)+_prtl(_riadok,36,_zac3,36,,1)+_prtl(_riadok,57,_zac3,57,,1)+_prtl(_riadok,78,_zac3,78,,1)
"            "+_tucnen+"N E B Y T Y"+_tucnez
_prtl(_riadok,10,_riadok,89,,3)+akt_prem("_Zac4",_riadok,.f.)
"            Fak.K| Fak.m3 "+str(Nebyty1,9,2)+str(NebytyM31,11,2)+str(Nebyty2,10,2)+str(NebytyM32,11,2)+str(Nebyty3,10,2)+str(NebytyM33,11,2)
"            Z toho men  "+space(9)      +str(MeraneN1,11,2)+space(10)+str(MeraneN2,11,2)+space(10)+str(MeraneN3,11,2)
"            K ZS | K SS  "+str(ZNebyty1,9,2)+str(SpNebyty1,11,2)+str(ZNebyty2,10,2)+str(SpNebyty2,11,2)+str(ZNebyty3,10,2)+str(SpNebyty3,11,2)
"            Plocha| Spot. "+str(NPlocha1,9,2)+str(SNebyty1,11,2)+str(NPlocha2,10,2)+str(SNebyty2,11,2)+str(NPlocha3,10,2)+str(SNebyty3,11,2)
"            Kc/m2 | Kc/m3  "+str(NebM21,9,3)+str(NebM31,11,3)+str(NebM22,10,3)+str(NebM32,11,3)+str(NebM23,10,3)+str(NebM33,11,3)
"            SS nem| K/m2  "+str(SpNebytyN1,9,2)+str(NebM2N1,11,3)+str(SpNebytyN2,10,2)+str(NebM2N2,11,3)+str(SpNebytyN3,10,2)+str(NebM2N3,11,3)
"            Osoby | K/os. "+str(Nebosoby1,9,2)+str(NebVodaO1,11,3)+str(NebOsoby2,10,2)+str(NebVodaO2,11,3)+str(NebOsoby3,10,2)+str(NebVodaO3,11,2)
akt_prem("_kon",_riadok,.f.)+_prtl(_riadok,26,_zac,26,,3)+_prtl(_riadok,36,_zac4,36,,1)+_prtl(_riadok,47,_zac,47,,1)+_prtl(_riadok,57,_zac4,57,,1)+_prtl(_riadok,68,_zac,68,,1)+_prtl(_riadok,78,_zac4,78,,1)
_prtl(_kon,10,_kon,89,,3)+_prtl(_kon,10,_zac,10,,3)+_prtl(_kon,89,_zac,89,,3)
