SPRAD00125_예산가용액조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRAD00125" position="absolute 0 0 895 387" titletext="예산가용액조회" oninit="SPRAD00125_oninit" onload="SPRAD00125_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_bugtlist" taborder="0" binddataset="ds_main_list_bugtlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 25 890 355">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="0"/>
  12. <Column size="0"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="22"/>
  16. <Column size="120"/>
  17. <Column size="0"/>
  18. <Column size="120"/>
  19. <Column size="70"/>
  20. <Column size="0"/>
  21. <Column size="80"/>
  22. <Column size="80"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="기관코드"/>
  40. <Cell col="1" text="미결전표일자"/>
  41. <Cell col="2" text="일련번호"/>
  42. <Cell col="3" text="예산귀속부서코드"/>
  43. <Cell col="4"/>
  44. <Cell col="5" text="귀속부서"/>
  45. <Cell col="6" text="계정코드"/>
  46. <Cell col="7" text="계정명"/>
  47. <Cell col="8" text="Project ID"/>
  48. <Cell col="9" text="잔액구분"/>
  49. <Cell col="10" text="수익비용구분"/>
  50. <Cell col="11" text="예산구분"/>
  51. <Cell col="12" text="본예산액"/>
  52. <Cell col="13" text="추경예산액"/>
  53. <Cell col="14" text="계정대체"/>
  54. <Cell col="15" text="이월조정예산"/>
  55. <Cell col="16" text="조정예산"/>
  56. <Cell col="17" text="추산액"/>
  57. <Cell col="18" text="집행액"/>
  58. <Cell col="19" text="전표금액"/>
  59. <Cell col="20" text="사용전 예산"/>
  60. <Cell col="21" text="사용후 예산"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell text="bind:instcd"/>
  64. <Cell col="1" text="bind:unsldd"/>
  65. <Cell col="2" text="bind:unslno"/>
  66. <Cell col="3" text="bind:costcntrdeptcd"/>
  67. <Cell col="4" celltype="head"/>
  68. <Cell col="5" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:costcntrdeptnm"/>
  69. <Cell col="6" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:acntcd"/>
  70. <Cell col="7" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:acntnm"/>
  71. <Cell col="8" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:projectid"/>
  72. <Cell col="9" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:balflag"/>
  73. <Cell col="10" displaytype="combo" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:bugtearncostflag" combodataset="ds_cmb_bugtearncostflag" combocodecol="value" combodatacol="label" enable="false"/>
  74. <Cell col="11" displaytype="combo" edittype="combo" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:bugtflag" combodataset="ds_cmb_bugtflag" combocodecol="value" combodatacol="label" enable="false"/>
  75. <Cell col="12" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:orgbugtamt" mask="#,###"/>
  76. <Cell col="13" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:revsupmbugtamt" mask="#,###"/>
  77. <Cell col="14" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:orgbugtupdtamt" mask="#,###"/>
  78. <Cell col="15" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:orgbugtadjtamt" mask="#,###"/>
  79. <Cell col="16" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:revsupmbugtadjtamt" mask="#,###"/>
  80. <Cell col="17" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:bugtexpcamt" mask="#,###"/>
  81. <Cell col="18" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:bugtexecamt" mask="#,###"/>
  82. <Cell col="19" displaytype="number" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:amt"/>
  83. <Cell col="20" displaytype="number" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:sumbugtamt"/>
  84. <Cell col="21" displaytype="number" style="background:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');background2:EXPR(resultamt &lt; 0 ? '#ffff00' : '#ffffff');" text="bind:resultamt"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Shape id="line3" class="line_10" position="absolute 0 20 890 26"/>
  90. <Static id="caption1" text="예산 가용액 조회" class="tit_2" position="absolute 0 4 183 25"/>
  91. <Button id="btn_hidden" taborder="1" text="자세히" class="btn2" position="absolute 837 1 890 20" onclick="btn_hidden_onclick"/>
  92. <Shape id="line32" class="line_6" position="absolute 1 354 891 360"/>
  93. <Button id="btn_cancel" taborder="2" text="닫기" class="btn4" position="absolute 834 359 890 381" anchor="right bottom" onclick="btn_cancel_onclick"/>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_main_list_bugtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  100. <Column id="unsldd" type="STRING" size="256" sumtext="미결전표일자"/>
  101. <Column id="unslno" type="STRING" size="256" sumtext="미결전표번호"/>
  102. <Column id="costcntrdeptcd" type="STRING" size="256" sumtext="귀속부서코드"/>
  103. <Column id="costcntrdeptnm" type="STRING" size="256" sumtext="귀속부서명"/>
  104. <Column id="acntcd" type="STRING" size="256" sumtext="계정코드"/>
  105. <Column id="acntnm" type="STRING" size="256" sumtext="계정명"/>
  106. <Column id="projectid" type="STRING" size="256" sumtext="프로젝트ID"/>
  107. <Column id="balflag" type="STRING" size="256" sumtext="잔액구분"/>
  108. <Column id="bugtearncostflag" type="STRING" size="256" sumtext="예산수익비용구분"/>
  109. <Column id="bugtflag" type="STRING" size="256" sumtext="예산구분"/>
  110. <Column id="orgbugtamt" type="STRING" size="256" sumtext="본예산"/>
  111. <Column id="revsupmbugtamt" type="STRING" size="256" sumtext="추경예산"/>
  112. <Column id="orgbugtupdtamt" type="STRING" size="256" sumtext="계정대체"/>
  113. <Column id="orgbugtadjtamt" type="STRING" size="256" sumtext="이월조정예산"/>
  114. <Column id="revsupmbugtadjtamt" type="STRING" size="256" sumtext="조정예산"/>
  115. <Column id="bugtexpcamt" type="STRING" size="256" sumtext="추산액"/>
  116. <Column id="bugtexecamt" type="STRING" size="256" sumtext="집행액"/>
  117. <Column id="amt" type="STRING" size="256" sumtext="전표금액"/>
  118. <Column id="sumbugtamt" type="STRING" size="256" sumtext="예산가용총액"/>
  119. <Column id="resultamt" type="STRING" size="256" sumtext="전송후예산가용금액"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_cmb_bugtearncostflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="label" type="STRING" size="256"/>
  125. <Column id="value" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="label">수익</Col>
  130. <Col id="value">1</Col>
  131. </Row>
  132. <Row>
  133. <Col id="label">비용</Col>
  134. <Col id="value">2</Col>
  135. </Row>
  136. <Row>
  137. <Col id="label">수익/비용</Col>
  138. <Col id="value">3</Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_cmb_bugtflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="label" type="STRING" size="256"/>
  145. <Column id="value" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row>
  149. <Col id="label">수익</Col>
  150. <Col id="value">1</Col>
  151. </Row>
  152. <Row>
  153. <Col id="label">비용</Col>
  154. <Col id="value">2</Col>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_target_availablebugtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  159. <Dataset id="ds_send_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="instcd" type="STRING" size="256"/>
  162. <Column id="unsldd" type="STRING" size="256"/>
  163. <Column id="unslno" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. <Rows>
  166. <Row>
  167. <Col id="instcd"/>
  168. <Col id="unsldd"/>
  169. <Col id="unslno"/>
  170. </Row>
  171. </Rows>
  172. </Dataset>
  173. </Objects>
  174. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  175. * System Name :
  176. * Job Name :
  177. * Creator :
  178. * Make Date : 2017-06-19
  179. * Description :
  180. *---------------------------------------------------------------------------------------
  181. * Modify Date Modifier Modify Description
  182. *---------------------------------------------------------------------------------------
  183. * 2017-06-19 Live Converter TF->XP
  184. *
  185. *---------------------------------------------------------------------------------------
  186. ****************************************************************************************/
  187. include "com_commonxp::comm_main.xjs";
  188. include "mis_miscommonxp::MIS.xjs";
  189. function SPRAD00125_oninit(obj:Form, e:InitEventInfo)
  190. {
  191. frmf_initForm(obj);
  192. }
  193. function SPRAD00125_onload(obj:Form, e:LoadEventInfo)
  194. {
  195. grdf_initGrid(grd_bugtlist);
  196. grdf_setRowTypeIcon(grd_bugtlist, 4);
  197. try
  198. {
  199. ds_target_availablebugtinfo.copyData(arg_ds_target);
  200. }
  201. fOpenForm();
  202. }
  203. function fOpenForm()
  204. {
  205. ds_send_condition.setColumn(0, "instcd", ds_target_availablebugtinfo.getColumn(0, "instcd"));
  206. ds_send_condition.setColumn(0, "unsldd", ds_target_availablebugtinfo.getColumn(0, "unsldd"));
  207. ds_send_condition.setColumn(0, "unslno", ds_target_availablebugtinfo.getColumn(0, "unslno"));
  208. var oParam = {};
  209. oParam.id = "TRRAD00125";
  210. oParam.service = "slipapp.Slip";
  211. oParam.method = "reqGetAvailableBugtList";
  212. oParam.inds = "req=ds_send_condition";
  213. oParam.outds = "ds_main_list_bugtlist=bugtlist";
  214. oParam.async = false;
  215. //oParam.callback = "cf_TRRAD00125";
  216. tranf_submit(oParam);
  217. }
  218. function btn_hidden_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. var vHiddenYN = 0;
  221. if(btn_hidden.text == "자세히")
  222. {
  223. vHiddenYN = 100;
  224. btn_hidden.text = "간단히";
  225. }
  226. else if(btn_hidden.text == "간단히")
  227. {
  228. vHiddenYN = 0;
  229. btn_hidden.text = "자세히";
  230. }
  231. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "orgbugtamt"), "size", vHiddenYN);
  232. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "revsupmbugtamt"), "size", vHiddenYN);
  233. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "orgbugtupdtamt"), "size", vHiddenYN);
  234. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "orgbugtadjtamt"), "size", vHiddenYN);
  235. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "revsupmbugtadjtamt"), "size", vHiddenYN);
  236. grd_bugtlist.setFormatColProperty(grd_bugtlist.getBindCellIndex("Body", "bugtexpcamt"), "size", vHiddenYN);
  237. }
  238. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. this.close();
  241. }
  242. ]]></Script>
  243. </Form>
  244. </FDL>