dw_rp_spt_sub_hz2_mx.srd 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. $PBExportHeader$dw_rp_spt_sub_hz2_mx.srd
  2. $PBExportComments$By Kivens.Jiang(kivens@21cn.com)
  3. release 9;
  4. datawindow ( units=0 timer_interval=0 color=16777215 processing=1 print.printername="" print.documentname="" print.orientation=0 print.margin.left=110 print.margin.right=110 print.margin.top=96 print.margin.bottom=96 print.paper.size=0 print.paper.source=0 print.canusedefaultprinter=yes grid.lines=0 selected.mouse=yes)
  5. header(height=68 color="536870912" )
  6. summary(height=64 color="536870912" )
  7. footer(height=0 color="536870912" )
  8. detail(height=76 color="536870912" height.autosize=yes)
  9. table(column=(type=datetime updatewhereclause=yes name=cw_credence_creddate dbname="cw_credence.creddate" )
  10. column=(type=char(10) updatewhereclause=yes name=cw_credence_credtype dbname="cw_credence.credtype" )
  11. column=(type=long updatewhereclause=yes name=cw_credence_credno dbname="cw_credence.credno" )
  12. column=(type=long updatewhereclause=yes name=cw_credence_cmonth dbname="cw_credence.cmonth" )
  13. column=(type=datetime updatewhereclause=yes name=cw_credence_reldate dbname="cw_credence.reldate" )
  14. column=(type=char(50) updatewhereclause=yes name=cw_credence_reldcode dbname="cw_credence.reldcode" )
  15. column=(type=long updatewhereclause=yes name=cw_credence_checkflag dbname="cw_credence.checkflag"
  16. values=" 1/ 0" )
  17. column=(type=long updatewhereclause=yes name=cw_credence_postflag dbname="cw_credence.postflag"
  18. values=" 1/ 0" )
  19. column=(type=char(255) updatewhereclause=yes name=cw_credencemx_brief dbname="cw_credencemx.brief" )
  20. column=(type=char(255) updatewhereclause=yes name=cw_credencemx_subid dbname="subid" )
  21. column=(type=long updatewhereclause=yes name=cw_credencemx_fuluno dbname="cw_credencemx.fuluno" )
  22. column=(type=decimal(2) updatewhereclause=yes name=cw_credence_debit dbname="cw_credence.debit" )
  23. column=(type=decimal(2) updatewhereclause=yes name=cw_credence_credit dbname="cw_credence.credit" )
  24. column=(type=decimal(2) updatewhereclause=yes name=cw_credence_rawdebit dbname="cw_credence.rawdebit" )
  25. column=(type=decimal(2) updatewhereclause=yes name=cw_credence_rawcredit dbname="cw_credence.rawcredit" )
  26. column=(type=long updatewhereclause=yes name=cw_credence_credid dbname="cw_credence.credid" )
  27. column=(type=long updatewhereclause=yes name=cw_credence_subaccsetid dbname="cw_credence.subaccsetid" )
  28. retrieve=" SELECT cw_credence.creddate,
  29. cw_credence.credtype,
  30. cw_credence.credno,
  31. cw_credence.cmonth,
  32. cw_credence.reldate,
  33. cw_credence.reldcode,
  34. cw_credence.checkflag,
  35. cw_credence.postflag,
  36. cw_credencemx.brief,
  37. cw_subject.displaycode
  38. + case when cw_credencemx.deptid = 0 then '' else '(部门:'+rtrim(cw_department.departmentname)+')' end +
  39. case when cw_credencemx.itemid = 0 then '' else '(项目:'+rtrim(cw_hsitem.hsitemname)+')' end +
  40. case when cw_credencemx.cusid = 0 then '' else '(客户:'+rtrim(u_cust.name)+')' end +
  41. case when cw_credencemx.sptid = 0 then '' else '(供应商:'+rtrim(u_spt.name)+')'end as subid,
  42. cw_credencemx.fuluno,
  43. case cw_credencemx.debit when 0 then null else cw_credencemx.debit end as debit,
  44. case cw_credencemx.credit when 0 then null else cw_credencemx.credit end as credit,
  45. case cw_credencemx.rawdebit when 0 then null else cw_credencemx.rawdebit end as rawdebit,
  46. case cw_credencemx.rawcredit when 0 then null else cw_credencemx.rawcredit end as rawcredit,
  47. cw_credence.credid,
  48. cw_credence.subaccsetid
  49. FROM cw_credence,
  50. cw_credencemx
  51. left outer join cw_department on cw_credencemx.deptid = cw_department.departmentid
  52. left outer join cw_hsitem on cw_credencemx.itemid = cw_hsitem.hsitemid
  53. left outer join u_cust on cw_credencemx.cusid = u_cust.cusid
  54. left outer join u_spt on cw_credencemx.sptid = u_spt.sptid,
  55. cw_subject
  56. WHERE ( cw_credence.accsetid = cw_credencemx.accsetid ) and
  57. ( cw_credence.subaccsetid = cw_credencemx.subaccsetid ) and
  58. ( cw_credence.credid = cw_credencemx.credid ) and
  59. ( cw_subject.accsetid = cw_credencemx.accsetid ) and
  60. ( cw_subject.subid = cw_credencemx.subid ) and
  61. ( cw_credence.accsetid = :arg_accsetid ) AND
  62. ( cw_credence.cmonth >= :arg_cmonth ) AND
  63. ( cw_credence.cmonth <= :arg_cmonth2 ) AND
  64. ( cw_credencemx.sptid = :arg_sptid ) AND
  65. (( cw_credence.postflag = :arg_postflag ) OR ( :arg_postflag = -1) ) and
  66. ( cw_credencemx.subid like :arg_subid )
  67. "
  68. arguments=(("arg_accsetid", number), ("arg_postflag", number), ("arg_cmonth", number), ("arg_cmonth2", number), ("arg_sptid", number), ("arg_subid", string))
  69. sort="cw_credence_credtype A, cw_credence_credno A, cw_credencemx_fuluno A"
  70. )
  71. text(name=cw_credence_cmonth_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="9" y="8" height="56" width="242" text="期间" )
  72. text(name=cw_credence_creddate_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="261" y="8" height="56" width="302" text="凭证日期" )
  73. text(name=cw_credence_credtype_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="571" y="8" height="56" width="187" text="凭证字" )
  74. text(name=cw_credence_credno_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="768" y="8" height="56" width="187" text="凭证号" )
  75. text(name=cw_credence_checkflag_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="965" y="8" height="56" width="123" text="审核" )
  76. text(name=cw_credence_postflag_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="1097" y="8" height="56" width="128" text="登帐" )
  77. text(name=cw_credencemx_brief_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="1234" y="8" height="56" width="635" text="摘要" )
  78. text(name=cw_credence_debit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="1879" y="8" height="56" width="384" text="借方金额" )
  79. text(name=cw_credence_credit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="2272" y="8" height="56" width="393" text="贷方金额" )
  80. text(name=cw_credence_rawdebit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="2674" y="8" height="56" width="421" text="原币借方金额" )
  81. text(name=cw_credence_rawcredit_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="3104" y="8" height="56" width="402" text="原币贷方金额" )
  82. text(name=cw_credencemx_subid_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="3515" y="8" height="56" width="818" text="会计科目" )
  83. text(name=cw_credence_reldate_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="4343" y="8" height="56" width="315" text="相关日期" )
  84. text(name=cw_credence_reldcode_t visible="1" band=header font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="2" background.color="16777215" color="0" alignment="2" border="0" x="4667" y="8" height="56" width="370" text="相关号" )
  85. compute(name=compute_1 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="1879" y="4" height="56" width="384" format="#,##0.00" expression="sum(cw_credence_debit for all)" alignment="1" border="0" crosstab.repeat=no )
  86. compute(name=compute_2 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2272" y="4" height="56" width="393" format="#,##0.00" expression="sum(cw_credence_credit for all)" alignment="1" border="0" crosstab.repeat=no )
  87. compute(name=compute_3 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="2674" y="4" height="56" width="421" format="#,##0.00" expression="sum(cw_credence_rawdebit for all)" alignment="1" border="0" crosstab.repeat=no )
  88. compute(name=compute_4 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" background.mode="1" background.color="536870912" color="0" x="3104" y="4" height="56" width="402" format="#,##0.00" expression="sum(cw_credence_rawcredit for all)" alignment="1" border="0" crosstab.repeat=no )
  89. compute(name=compute_5 visible="1" band=summary font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="700" background.mode="1" background.color="536870912" color="0" x="1234" y="4" height="56" width="635" format="[general]" expression="count(cw_credencemx_brief for all)" alignment="2" border="0" crosstab.repeat=no )
  90. column(name=cw_credence_creddate visible="1" tag="日期" band=detail id=1 x="261" y="4" height="68" width="302" color="0" border="0" alignment="0" format="yyyy-mm-dd" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  91. column(name=cw_credence_credno visible="1" tag="编号" band=detail id=3 x="768" y="4" height="68" width="187" color="0" border="0" alignment="2" format="[general]" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  92. column(name=cw_credence_checkflag visible="1" tag="审核标记" band=detail id=7 x="965" y="4" height="68" width="123" color="0" border="0" alignment="2" format="[general]" checkbox.lefttext=no checkbox.scale=no checkbox.threed=yes checkbox.text="" checkbox.on="1" checkbox.off="0" criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  93. column(name=cw_credence_postflag visible="1" tag="登帐标记" band=detail id=8 x="1097" y="4" height="68" width="128" color="0" border="0" alignment="2" format="[general]" checkbox.lefttext=no checkbox.scale=no checkbox.threed=yes checkbox.text="" checkbox.on="1" checkbox.off="0" criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  94. column(name=cw_credencemx_brief visible="1" tag="摘要" height.autosize=yes band=detail id=9 x="1234" y="4" height="68" width="635" color="0" border="0" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=yes edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=40 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  95. column(name=cw_credencemx_subid visible="1" tag="会计科目" height.autosize=yes band=detail id=10 x="3515" y="4" height="68" width="818" color="0" border="0" alignment="0" format="[general]" edit.focusrectangle=no edit.autohscroll=no edit.autoselect=no edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  96. column(name=cw_credence_credtype visible="1" band=detail id=2 x="571" y="4" height="68" width="187" color="0" border="0" alignment="2" format="[general]" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  97. column(name=cw_credence_cmonth visible="1" band=detail id=4 x="9" y="4" height="68" width="242" color="0" border="0" alignment="2" format="[general]" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  98. column(name=cw_credence_reldate visible="1" band=detail id=5 x="4343" y="4" height="68" width="315" color="0" border="0" alignment="2" format="yyyy-mm-dd" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  99. column(name=cw_credence_reldcode visible="1" band=detail id=6 x="4667" y="4" height="68" width="370" color="0" border="0" alignment="0" format="[general]" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  100. column(name=cw_credence_debit visible="1" band=detail id=12 x="1879" y="4" height="68" width="384" color="0" border="0" alignment="1" format="#,##0.00" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  101. column(name=cw_credence_credit visible="1" band=detail id=13 x="2272" y="4" height="68" width="393" color="0" border="0" alignment="1" format="#,##0.00" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  102. column(name=cw_credence_rawdebit visible="1" band=detail id=14 x="2674" y="4" height="68" width="421" color="0" border="0" alignment="1" format="#,##0.00" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  103. column(name=cw_credence_rawcredit visible="1" band=detail id=15 x="3104" y="4" height="68" width="402" color="0" border="0" alignment="1" format="#,##0.00" edit.autohscroll=no edit.autoselect=yes edit.autovscroll=no edit.case=any edit.codetable=no edit.displayonly=no edit.hscrollbar=no edit.imemode=0 edit.limit=0 edit.password=no edit.vscrollbar=no edit.validatecode=no edit.nilisnull=no edit.required=no criteria.required=no criteria.override_edit=no crosstab.repeat=no background.mode="1" background.color="536870912" font.charset="134" font.face="宋体" font.family="0" font.height="-9" font.pitch="2" font.weight="400" tabsequence=0 )
  104. sparse(names="cw_credence_credtype cw_credence_creddate cw_credence_credno cw_credence_checkflag cw_credence_postflag cw_credence_cmonth cw_credence_reldate cw_credence_reldcode")
  105. htmltable(border="1" )
  106. htmlgen(clientComputedFields="1" clientEvents="1" clientFormatting="0" clientScriptable="0" clientValidation="1" generateJavaScript="1" netscapeLayers="0" netscapelayers="0" encodeSelfLinkArgs="1" )
  107. export.xml(headGroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  108. import.xml()
  109. export.pdf(method=0 distill.customPostScript="0" xslfop.print="0" )