SPMNG00300_CSR청구부서코드HELP.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG00300" position="absolute 0 0 600 550" titletext="CSR청구부서코드 HELP" oninit="SPMNG00300_oninit" onload="SPMNG00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 580 520" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 580 30" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 0 580 29" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  14. <Edit position="absolute 219 6 318 25" id="ipt_refcond" class="input_essential" onkeydown="group3_group2_ipt_refcond_onkeydown" autoselect="true"/>
  15. <Button position="absolute 519 4 575 26" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick"/>
  16. <Shape position="absolute 512 0 518 29" linetype="vertical" id="line13" class="line_4"/>
  17. <Static text="조회조건:" position="absolute 146 6 212 23" id="caption2" class="search_name"/>
  18. <Radio position="absolute 3 5 137 25" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" onitemclick="group3_group2_rdo_refcond_onitemclick" style="border:1 solid #808080ff ;"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static text="부서 리스트" position="absolute 0 35 95 51" id="caption1" class="tit_2"/>
  23. <Shape position="absolute 0 51 580 57" linetype="horizontal" id="line1" class="line_10"/>
  24. <Grid position="absolute 0 55 580 520" id="grd_deptlist" binddataset="ds_main_deptcodelist" oncelldblclick="group3_grd_deptlist_oncelldblclick" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25" band="left"/>
  29. <Column size="128"/>
  30. <Column size="409"/>
  31. <Column size="100"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="부서코드"/>
  40. <Cell col="2" text="부서명"/>
  41. <Cell col="3" text="청구부서구분"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head" text="expr:currow + 1"/>
  45. <Cell col="1" style="align:left middle;" text="bind:deptcd"/>
  46. <Cell col="2" style="align:left middle;" text="bind:depthngnm"/>
  47. <Cell col="3" style="align:left middle;" text="bind:csrreqdeptcd2"/>
  48. </Band>
  49. </Format>
  50. </Formats>
  51. </Grid>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Div position="absolute 0 521 580 548" id="group1" scrollbars="autoboth">
  56. <Layouts>
  57. <Layout>
  58. <Button position="absolute 461 2 517 24" id="btn_confirm" class="btn4" text="확인" onclick="group1_btn_confirm_onclick"/>
  59. <Button position="absolute 520 2 576 24" id="btn_cancel" class="btn4" text="취소" onclick="group1_btn_cancel_onclick"/>
  60. </Layout>
  61. </Layouts>
  62. </Div>
  63. </Layout>
  64. </Layouts>
  65. <Objects>
  66. <Dataset id="ds_main_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="deptcd" type="STRING" size="256"/>
  69. <Column id="depthngnm" type="STRING" size="256"/>
  70. <Column id="csrreqdeptcd2" type="STRING" size="256"/>
  71. </ColumnInfo>
  72. <Rows>
  73. <Row>
  74. <Col id="deptcd"/>
  75. <Col id="depthngnm"/>
  76. <Col id="csrreqdeptcd2"/>
  77. </Row>
  78. </Rows>
  79. </Dataset>
  80. <Dataset id="ds_target_validation_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  81. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="label" type="STRING" size="256"/>
  84. <Column id="value" type="STRING" size="256"/>
  85. </ColumnInfo>
  86. <Rows>
  87. <Row>
  88. <Col id="label">부서코드</Col>
  89. <Col id="value">deptcd</Col>
  90. </Row>
  91. <Row>
  92. <Col id="label">부서명</Col>
  93. <Col id="value">deptnm</Col>
  94. </Row>
  95. </Rows>
  96. </Dataset>
  97. <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  98. <ColumnInfo>
  99. <Column id="refcond" type="STRING" size="256"/>
  100. <Column id="deptnm" type="STRING" size="256"/>
  101. <Column id="deptcd" type="STRING" size="256"/>
  102. <Column id="instcd" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. <Dataset id="ds_send_comcdref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="cdgrupid" type="STRING" size="256"/>
  111. <Column id="cdid" type="STRING" size="256"/>
  112. <Column id="cdnm" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row/>
  116. </Rows>
  117. </Dataset>
  118. </Objects>
  119. <Bind>
  120. <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
  121. <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
  122. </Bind>
  123. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  124. * System Name :
  125. * Job Name :
  126. * Creator :
  127. * Make Date : 2015-11-13
  128. * Description :
  129. *---------------------------------------------------------------------------------------
  130. * Modify Date Modifier Modify Description
  131. *---------------------------------------------------------------------------------------
  132. * 2015-11-13 Live Converter TF->XP
  133. *
  134. *---------------------------------------------------------------------------------------
  135. ****************************************************************************************/
  136. include "com_commonxp::comm_main.xjs";
  137. include "mis_miscommonxp::MIS.xjs";
  138. function SPMNG00300_oninit(obj:Form, e:InitEventInfo)
  139. {
  140. frmf_initForm(obj);
  141. }
  142. function SPMNG00300_onload(obj:Form, e:LoadEventInfo)
  143. {
  144. ds_main_deptcodelist.clearData();
  145. var flag = sysf_getModelProperty("flag"); //한글 영문 구분을 가져온다.
  146. if(flag == "1") {
  147. ds_send_deptref.setColumn(0, "refcond", "deptcd");
  148. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  149. } else {
  150. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  151. }
  152. ds_send_deptref.setColumn(0, "instcd", sysf_getModelProperty("instcd"));
  153. group3.group2.ipt_refcond.imemode = "hangul";
  154. group3.group2.ipt_refcond.setFocus();
  155. if( ds_target_validation_deptcodelist.rowcount == 0)
  156. {
  157. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  158. }
  159. }
  160. function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  161. {
  162. if( e.keycode == 13 ){
  163. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  164. }
  165. }
  166. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  167. {
  168. if(group3.group2.rdo_refcond.value == "deptnm") {
  169. ds_send_deptref.setColumn(0, "deptnm", group3.group2.ipt_refcond.text);
  170. }
  171. else {
  172. ds_send_deptref.setColumn(0, "deptcd", group3.group2.ipt_refcond.text);
  173. }
  174. var oParam = {};
  175. oParam.id = "TRMNG00303";
  176. oParam.service = "csrapp.CsrMngt";
  177. oParam.method = "reqGetCsrDeptList2";
  178. oParam.inds = "req=ds_send_deptref";
  179. oParam.outds = "ds_main_deptcodelist=deptcodelist";
  180. oParam.async = false;
  181. tranf_submit(oParam);
  182. }
  183. function group3_group2_rdo_refcond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  184. {
  185. if(group3.group2.rdo_refcond.value == "deptnm") {
  186. group3.group2.ipt_refcond.imemode = "hangul";
  187. }
  188. else if (group3.group2.rdo_refcond.value == "deptcd") {
  189. group3.group2.ipt_refcond.imemode = "none";
  190. }
  191. else {
  192. group3.group2.ipt_refcond.imemode = "none";
  193. }
  194. group3.group2.ipt_refcond.setFocus();
  195. }
  196. function group3_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  197. {
  198. if(e.row > -1 && e.col > -1)
  199. {
  200. frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
  201. }
  202. }
  203. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. var deptcd = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "deptcd");
  206. var deptnm = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "depthngnm");
  207. var csrreqdeptcd = ds_main_deptcodelist.getColumn(ds_main_deptcodelist.rowposition, "csrreqdeptcd2");
  208. sysf_setModelProperty("deptcd",deptcd);
  209. sysf_setModelProperty("deptnm",deptnm);
  210. sysf_setModelProperty("csrreqdeptcd",csrreqdeptcd);
  211. this.close();
  212. }
  213. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  214. {
  215. misfPopUpListCancel();
  216. }
  217. ]]></Script>
  218. </Form>
  219. </FDL>