SPMNG00400_CSR청구부서코드HELP.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG00400" position="absolute 0 0 600 550" titletext="CSR청구부서코드 HELP" oninit="SPMNG00400_oninit" onload="SPMNG00400_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"/>
  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 147 6 213 23" id="caption2" class="search_name"/>
  18. <Radio position="absolute 0 4 134 24" 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" selecttype="multirow" cellsizingtype="both" extendsizetype="row">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25" band="left"/>
  29. <Column size="23"/>
  30. <Column size="128"/>
  31. <Column size="391"/>
  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"/>
  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" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == &quot;Y&quot; || chkyn == 1) ? 1 : 0"/>
  46. <Cell col="2" style="align:left middle;" text="bind:deptcd"/>
  47. <Cell col="3" style="align:left middle;" text="bind:depthngnm"/>
  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" oncolumnchanged="ds_main_deptcodelist_oncolumnchanged">
  67. <ColumnInfo>
  68. <Column id="chkyn" type="STRING" size="256"/>
  69. <Column id="deptcd" type="STRING" size="256"/>
  70. <Column id="depthngnm" type="STRING" size="256"/>
  71. <Column id="csrreqdeptcd2" type="STRING" size="256"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="chkyn"/>
  76. <Col id="deptcd"/>
  77. <Col id="depthngnm"/>
  78. <Col id="csrreqdeptcd2"/>
  79. </Row>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  83. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  84. <ColumnInfo>
  85. <Column id="label" type="STRING" size="256"/>
  86. <Column id="value" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row>
  90. <Col id="label">부서코드</Col>
  91. <Col id="value">deptcd</Col>
  92. </Row>
  93. <Row>
  94. <Col id="label">부서명</Col>
  95. <Col id="value">deptnm</Col>
  96. </Row>
  97. </Rows>
  98. </Dataset>
  99. <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  100. <ColumnInfo>
  101. <Column id="refcond" type="STRING" size="256"/>
  102. <Column id="deptnm" type="STRING" size="256"/>
  103. <Column id="deptcd" type="STRING" size="256"/>
  104. <Column id="instcd" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="refcond"/>
  109. <Col id="deptnm"/>
  110. <Col id="deptcd"/>
  111. <Col id="instcd"/>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_send_comcdref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="cdgrupid" type="STRING" size="256"/>
  118. <Column id="cdid" type="STRING" size="256"/>
  119. <Column id="cdnm" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="cdgrupid"/>
  124. <Col id="cdid"/>
  125. <Col id="cdnm"/>
  126. </Row>
  127. </Rows>
  128. </Dataset>
  129. <Dataset id="ds_target_validation_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  130. </Objects>
  131. <Bind>
  132. <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
  133. <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
  134. </Bind>
  135. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  136. * System Name :
  137. * Job Name :
  138. * Creator :
  139. * Make Date : 2015-11-13
  140. * Description :
  141. *---------------------------------------------------------------------------------------
  142. * Modify Date Modifier Modify Description
  143. *---------------------------------------------------------------------------------------
  144. * 2015-11-13 Live Converter TF->XP
  145. *
  146. *---------------------------------------------------------------------------------------
  147. ****************************************************************************************/
  148. include "com_commonxp::comm_main.xjs";
  149. include "mis_miscommonxp::MIS.xjs";
  150. function SPMNG00400_oninit(obj:Form, e:InitEventInfo)
  151. {
  152. frmf_initForm(obj);
  153. }
  154. function SPMNG00400_onload(obj:Form, e:LoadEventInfo)
  155. {
  156. misfGridInit(group3.grd_deptlist);
  157. ds_main_deptcodelist.copyData(ds_target_validation_deptcodelist);
  158. ds_send_deptref.setColumn(0, "instcd", ds_target_defaultvalue.getColumn(0, "instcd"));
  159. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  160. group3.group2.ipt_refcond.imemode = "hangul";
  161. group3.group2.ipt_refcond.setFocus();
  162. if(ds_target_validation_deptcodelist.rowcount == 0)
  163. {
  164. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  165. }
  166. }
  167. function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  168. {
  169. if( e.keycode == 13 ){
  170. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  171. }
  172. }
  173. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  174. {
  175. if(group3.group2.rdo_refcond.value == "deptnm") {
  176. dsf_makeValue(ds_send_deptref,"deptnm", "string", group3.group2.ipt_refcond.text);
  177. dsf_makeValue(ds_send_deptref,"deptcd", "string", "");
  178. }
  179. else {
  180. dsf_makeValue(ds_send_deptref,"deptcd", "string", group3.group2.ipt_refcond.text);
  181. dsf_makeValue(ds_send_deptref,"deptnm", "string", "");
  182. }
  183. var oParam = {};
  184. oParam.id = "TRMNG00403";
  185. oParam.service = "csrapp.CsrMngt";
  186. oParam.method = "reqGetDeptList";
  187. oParam.inds = "req=ds_send_deptref";
  188. oParam.outds = "ds_main_deptcodelist=deptcodelist";
  189. oParam.async = false;
  190. tranf_submit(oParam);
  191. dsf_setFixVal(ds_main_deptcodelist, "chkyn:N");
  192. }
  193. function group3_group2_rdo_refcond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  194. {
  195. if(group3.group2.rdo_refcond.value == "deptnm") {
  196. group3.group2.ipt_refcond.imemode = "hangul";
  197. }
  198. else if (group3.group2.rdo_refcond.value == "deptcd") {
  199. group3.group2.ipt_refcond.imemode = "none";
  200. }
  201. else {
  202. group3.group2.ipt_refcond.imemode = "none";
  203. }
  204. group3.group2.ipt_refcond.setFocus();
  205. }
  206. function ds_main_deptcodelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  207. {
  208. if( e.columnid == "chkyn" ){
  209. obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  210. }
  211. }
  212. function group3_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  213. {
  214. if(e.row > -1 && e.col > -1)
  215. {
  216. frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
  217. }
  218. }
  219. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  220. {
  221. if(ds_main_deptcodelist.rowcount == 0)
  222. {
  223. sysf_messageBox("적용할 내역이","I004");
  224. this.close();
  225. return;
  226. }
  227. //var iParam = model.getValue(grd_deptlist.nodeset);
  228. ds_main_deptcodelist.filter("chkyn=='Y'");
  229. var rCVS = dsf_getDsCSV(ds_main_deptcodelist);
  230. ds_main_deptcodelist.filter("");
  231. if ( frmf_checkOpener() ) {
  232. opener.frmf_setParameter("SPMNG00400_", rCVS);
  233. } else {
  234. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  235. }
  236. this.close();
  237. }
  238. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  239. {
  240. misfPopUpListCancel();
  241. }
  242. ]]></Script>
  243. </Form>
  244. </FDL>