SMRPS90500_DeptCDHELP.xfdl 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPS90500" position="absolute 0 0 588 550" titletext="부서코드 HELP" oninit="SMRPS90500_oninit" onload="SMRPS90500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="0" class="div_SA" position="absolute 0 0 580 30">
  8. <Layouts>
  9. <Layout>
  10. <Edit id="ipt_refcond" taborder="1" class="input_s_essential" position="absolute 269 6 368 25" autoselect="true" autoskip="true" imemode="hangul" onkeyup="group2_ipt_refcond_onkeyup"/>
  11. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 519 4 575 26" onclick="group2_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 512 0 518 29"/>
  13. <Static id="caption2" text="조회조건:" class="search_name" position="absolute 185 7 271 24"/>
  14. <Radio id="rdo_refcond" taborder="3" columncount="2" rowcount="0" innerdataset="@ds_init_refcond" codecolumn="value" datacolumn="label" class="radio_search" position="absolute 13 5 165 25" onitemchanged="group2_rdo_refcond_onitemchanged"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Static id="caption1" text="부(실) 리스트" class="tit_2" position="absolute 0 34 107 56"/>
  19. <Grid id="grd_deptlist" taborder="1" binddataset="ds_main_deptcodelist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 55 580 520" oncelldblclick="grd_deptlist_oncelldblclick">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="25"/>
  24. <Column size="128"/>
  25. <Column size="409"/>
  26. </Columns>
  27. <Rows>
  28. <Row size="24" band="head"/>
  29. <Row size="24"/>
  30. </Rows>
  31. <Band id="head">
  32. <Cell/>
  33. <Cell col="1" text="부(실)코드"/>
  34. <Cell col="2" text="부(실)명"/>
  35. </Band>
  36. <Band id="body">
  37. <Cell celltype="head" expr="currow+1"/>
  38. <Cell col="1" style="align:left middle;" text="bind:deptcd"/>
  39. <Cell col="2" style="align:left middle;" text="bind:deptnm"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. <Shape id="line1" class="line_10" position="absolute 0 50 580 56"/>
  45. <Shape id="line32" class="line_6" position="absolute 1 519 581 525"/>
  46. <Button id="btn_confirm" taborder="2" text="확인" class="btn4" position="absolute 465 523 521 545" onclick="btn_confirm_onclick"/>
  47. <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 524 523 580 545" onclick="btn_cancel_onclick"/>
  48. </Layout>
  49. </Layouts>
  50. <Objects>
  51. <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="refcond" type="STRING" size="256"/>
  54. <Column id="deptnm" type="STRING" size="256"/>
  55. <Column id="deptcd" type="STRING" size="256"/>
  56. <Column id="instcd" type="STRING" size="256"/>
  57. <Column id="basedd" type="STRING" size="256"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row>
  61. <Col id="refcond"/>
  62. <Col id="deptnm"/>
  63. <Col id="deptcd"/>
  64. <Col id="instcd"/>
  65. <Col id="basedd"/>
  66. </Row>
  67. </Rows>
  68. </Dataset>
  69. <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="chkyn" type="STRING" size="256" sumtext="체크여부"/>
  72. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  73. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="label" type="STRING" size="256"/>
  79. <Column id="value" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row>
  83. <Col id="label">부(실)코드</Col>
  84. <Col id="value">deptcd</Col>
  85. </Row>
  86. <Row>
  87. <Col id="label">부(실)명</Col>
  88. <Col id="value">deptnm</Col>
  89. </Row>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  93. <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  94. <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  95. </Objects>
  96. <Bind>
  97. <BindItem id="item0" compid="group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
  98. <BindItem id="item1" compid="group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
  99. </Bind>
  100. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  101. * System Name :
  102. * Job Name :
  103. * Creator :
  104. * Make Date : 2017-06-19
  105. * Description :
  106. *---------------------------------------------------------------------------------------
  107. * Modify Date Modifier Modify Description
  108. *---------------------------------------------------------------------------------------
  109. * 2017-06-19 Live Converter TF->XP
  110. *
  111. *---------------------------------------------------------------------------------------
  112. ****************************************************************************************/
  113. include "com_commonxp::comm_main.xjs";
  114. include "mis_miscommonxp::MIS.xjs";
  115. function SMRPS90500_oninit(obj:Form, e:InitEventInfo)
  116. {
  117. frmf_initForm(obj);
  118. }
  119. function SMRPS90500_onload(obj:Form, e:LoadEventInfo)
  120. {
  121. grdf_initGrid(grd_deptlist);
  122. misfGridInit(grd_deptlist);
  123. try
  124. {
  125. ds_send_deptref.setColumn(0, "instcd", arg_ds_target_defaultvalue.getColumn(0, "instcd"));
  126. }
  127. catch (e) {}
  128. try
  129. {
  130. ds_target_validation.copyData(arg_ds_target_validation);
  131. }
  132. catch (e) {}
  133. try
  134. {
  135. ds_target.copyData(arg_ds_target);
  136. }
  137. catch (e) {}
  138. ds_send_deptref.setColumn(0, "basedd", ds_target_defaultvalue.getColumn(0, "basedd"));
  139. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  140. group2.ipt_refcond.setFocus();
  141. if(ds_target_validation.rowcount == 0)
  142. {
  143. group2_btn_search_onclick();
  144. }
  145. }
  146. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  147. {
  148. if(group2.rdo_refcond.value == "deptnm")
  149. {
  150. ds_send_deptref.setColumn(0, "deptnm", group2.ipt_refcond.value);
  151. }
  152. else
  153. {
  154. ds_send_deptref.setColumn(0, "deptcd", group2.ipt_refcond.value);
  155. }
  156. var oParam = {};
  157. oParam.id = "TRRPS90501";
  158. oParam.service = "educationmngtapp.EduCationMngt";
  159. oParam.method = "reqGetBaseDeptCDList";
  160. oParam.inds = "req=ds_send_deptref";
  161. oParam.outds = "ds_main_deptcodelist=deptcodelist";
  162. oParam.async = false;
  163. //oParam.callback = "cf_TRRPS90501";
  164. tranf_submit(oParam);
  165. dsf_setFixVal(ds_main_deptcodelist, "chkyn:N");
  166. }
  167. function group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  168. {
  169. if(obj.value == "deptnm")
  170. {
  171. group2.ipt_refcond.imemode = "hangul";
  172. }
  173. else if (obj.value == "deptcd")
  174. {
  175. group2.ipt_refcond.imemode = "none";
  176. }
  177. else
  178. {
  179. group2.ipt_refcond.imemode = "none";
  180. }
  181. group2.ipt_refcond.setFocus();
  182. }
  183. function group2_ipt_refcond_onkeyup(obj:Edit, e:KeyEventInfo)
  184. {
  185. if(e.keycode == 13)
  186. {
  187. obj.updateToDataset();
  188. group2_btn_search_onclick();
  189. }
  190. }
  191. function grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  192. {
  193. btn_confirm_onclick();
  194. }
  195. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. misfPopUpListReturn(grd_deptlist);
  198. }
  199. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  200. {
  201. misfPopUpListCancel();
  202. }
  203. ]]></Script>
  204. </Form>
  205. </FDL>