SPRBP00100_기관별예산관리부서HELP.xfdl 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRBP00100" position="absolute 0 0 583 534" titletext="기관별 예산관리부서 조회" oninit="SPRBP00100_oninit" onload="SPRBP00100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" position="absolute 0 -5 580 0"/>
  8. <Static id="caption1" text="예산관리부서코드 리스트" class="tit_2" position="absolute 0 43 183 64"/>
  9. <Shape id="line1" class="line_10" position="absolute 0 59 580 65"/>
  10. <Grid id="grd_deptlist" taborder="1" binddataset="ds_main_bugtdept_bugtdeptlist" useinputpanel="false" position="absolute 0 64 580 505" autoenter="select" cellsizingtype="col" autofittype="col" oncelldblclick="grd_deptlist_oncelldblclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="21"/>
  15. <Column size="127"/>
  16. <Column size="275"/>
  17. <Column size="150"/>
  18. <Column size="0"/>
  19. <Column size="0"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="부서코드"/>
  28. <Cell col="2" text="부서명"/>
  29. <Cell col="3" text="종료일자"/>
  30. <Cell col="4" text="부서코드종료일자"/>
  31. <Cell col="5" text="선택"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell celltype="head" expr="currow+1"/>
  35. <Cell col="1" class="text_center" text="bind:deptcd" editautoselect="true"/>
  36. <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:depthngnm" editautoselect="true"/>
  37. <Cell col="3" displaytype="date" class="text_center" text="bind:todd" editautoselect="true" calendardisplaynulltype="nulltext"/>
  38. <Cell col="4" text="bind:deptcdtodd"/>
  39. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. <Div id="group4" taborder="2" class="div_SA2" position="absolute 0 0 580 40">
  45. <Layouts>
  46. <Layout>
  47. <Edit id="ipt_depthngnm" taborder="5" class="input_s_essential" position="absolute 90 10 355 29" autoselect="true" autoskip="true" onkeydown="group4_ipt_depthngnm_onkeydown"/>
  48. <Static id="caption7" text="조 건 :" class="search_name" position="absolute 15 11 101 28"/>
  49. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 509 9 565 31" onclick="group4_btn_search_onclick"/>
  50. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 491 6 497 33"/>
  51. </Layout>
  52. </Layouts>
  53. </Div>
  54. <Button id="btn_confirm" taborder="3" text="확인" class="btn4" position="absolute 466 507 522 529" onclick="btn_confirm_onclick"/>
  55. <Button id="btn_cancel" taborder="4" text="취소" class="btn4" position="absolute 524 507 580 529" onclick="btn_cancel_onclick"/>
  56. </Layout>
  57. </Layouts>
  58. <Objects>
  59. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_search_oncolumnchanged">
  60. <ColumnInfo>
  61. <Column id="instcd" type="STRING" size="256"/>
  62. <Column id="depthngnm" type="STRING" size="256"/>
  63. </ColumnInfo>
  64. <Rows>
  65. <Row/>
  66. </Rows>
  67. </Dataset>
  68. <Dataset id="ds_main_bugtdept_bugtdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  71. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  72. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  73. <Column id="deptcdtodd" type="STRING" size="256" sumtext="종료일"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  77. <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  78. </Objects>
  79. <Bind>
  80. <BindItem id="item0" compid="group4.ipt_depthngnm" propid="value" datasetid="ds_send_search" columnid="depthngnm"/>
  81. </Bind>
  82. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  83. * System Name :
  84. * Job Name :
  85. * Creator :
  86. * Make Date : 2017-06-19
  87. * Description :
  88. *---------------------------------------------------------------------------------------
  89. * Modify Date Modifier Modify Description
  90. *---------------------------------------------------------------------------------------
  91. * 2017-06-19 Live Converter TF->XP
  92. *
  93. *---------------------------------------------------------------------------------------
  94. ****************************************************************************************/
  95. include "com_commonxp::comm_main.xjs";
  96. include "mis_miscommonxp::MIS.xjs";
  97. function SPRBP00100_oninit(obj:Form, e:InitEventInfo)
  98. {
  99. frmf_initForm(obj);
  100. }
  101. function SPRBP00100_onload(obj:Form, e:LoadEventInfo)
  102. {
  103. grdf_initGrid(grd_deptlist);
  104. try
  105. {
  106. ds_popdata.copyData(arg_ds_popdata);
  107. }
  108. catch (e)
  109. {}
  110. try
  111. {
  112. ds_target_validation.copyData(arg_ds_target_validation);
  113. }
  114. catch (e)
  115. {}
  116. ds_send_search.setColumn(0, "instcd", ds_popdata.getColumn(0, "instcd"));
  117. if(ds_target_validation.rowcount == 0)
  118. {
  119. var oParam = {};
  120. oParam.id = "TRRBP00102";
  121. oParam.service = "bugtexecapp.BugtExec";
  122. oParam.method = "reqGetBugtMngtDeptList";
  123. oParam.inds = "req=ds_send_search";
  124. oParam.outds = "ds_main_bugtdept_bugtdeptlist=bugtdeptlist";
  125. oParam.async = false;
  126. //oParam.callback = "cf_TRRBP00102";
  127. tranf_submit(oParam);
  128. }
  129. else
  130. {
  131. ds_main_bugtdept_bugtdeptlist.copyData(ds_target_validation);
  132. }
  133. }
  134. function group4_ipt_depthngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  135. {
  136. if(e.keycode == 13)
  137. {
  138. obj.updateToDataset();
  139. var oParam = {};
  140. oParam.id = "TRRBP00102";
  141. oParam.service = "bugtexecapp.BugtExec";
  142. oParam.method = "reqGetBugtMngtDeptList";
  143. oParam.inds = "req=ds_send_search";
  144. oParam.outds = "ds_main_bugtdept_bugtdeptlist=bugtdeptlist";
  145. oParam.async = false;
  146. //oParam.callback = "cf_TRRBP00102";
  147. tranf_submit(oParam);
  148. }
  149. }
  150. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  151. {
  152. if(e.columnid == "depthngnm")
  153. {
  154. var oParam = {};
  155. oParam.id = "TRRBP00102";
  156. oParam.service = "bugtexecapp.BugtExec";
  157. oParam.method = "reqGetBugtMngtDeptList";
  158. oParam.inds = "req=ds_send_search";
  159. oParam.outds = "ds_main_bugtdept_bugtdeptlist=bugtdeptlist";
  160. oParam.async = false;
  161. //oParam.callback = "cf_TRRBP00102";
  162. tranf_submit(oParam);
  163. }
  164. }
  165. function grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  166. {
  167. btn_confirm.click();
  168. }
  169. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  170. {
  171. var oParam = {};
  172. oParam.id = "TRRBP00102";
  173. oParam.service = "bugtexecapp.BugtExec";
  174. oParam.method = "reqGetBugtMngtDeptList";
  175. oParam.inds = "req=ds_send_search";
  176. oParam.outds = "ds_main_bugtdept_bugtdeptlist=bugtdeptlist";
  177. oParam.async = false;
  178. //oParam.callback = "cf_TRRBP00102";
  179. tranf_submit(oParam);
  180. }
  181. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. if(ds_main_bugtdept_bugtdeptlist.rowcount == 0)
  184. {
  185. sysf_messageBox("선택된 부서코드가 없습니다. ", "E999", "");
  186. return;
  187. }
  188. opener.ds_popdept.setColumn(0, "selectyn", "Y");
  189. opener.ds_popdept.setColumn(0, "deptcd", ds_main_bugtdept_bugtdeptlist.getColumn(ds_main_bugtdept_bugtdeptlist.rowposition, "deptcd"));
  190. opener.ds_popdept.setColumn(0, "depthngnm", ds_main_bugtdept_bugtdeptlist.getColumn(ds_main_bugtdept_bugtdeptlist.rowposition, "depthngnm"));
  191. this.close();
  192. }
  193. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  194. {
  195. this.close();
  196. }
  197. ]]></Script>
  198. </Form>
  199. </FDL>