SPRBC00200_예산관리부서HELP.xfdl 8.7 KB

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