SPMNG00402_린넨청구부서코드HELP.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNG00402" position="absolute 0 0 600 550" titletext="린넨청구부서코드 HELP" oninit="SPMNG00402_oninit" onload="SPMNG00402_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 5 318 24" 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 7 212 24" id="caption2" class="search_name"/>
  18. <Radio position="absolute 3 4 138 24" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" style="border:1 solid #808080ff ;" onitemclick="group3_group2_rdo_refcond_onitemclick"/>
  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="23"/>
  30. <Column size="128"/>
  31. <Column size="388"/>
  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" 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. <Dataset id="ds_target_defaultvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  131. </Objects>
  132. <Bind>
  133. <BindItem id="item0" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
  134. <BindItem id="item1" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
  135. </Bind>
  136. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  137. * System Name :
  138. * Job Name :
  139. * Creator :
  140. * Make Date : 2015-11-13
  141. * Description :
  142. *---------------------------------------------------------------------------------------
  143. * Modify Date Modifier Modify Description
  144. *---------------------------------------------------------------------------------------
  145. * 2015-11-13 Live Converter TF->XP
  146. *
  147. *---------------------------------------------------------------------------------------
  148. ****************************************************************************************/
  149. include "com_commonxp::comm_main.xjs";
  150. include "mis_miscommonxp::MIS.xjs";
  151. function SPMNG00402_oninit(obj:Form, e:InitEventInfo)
  152. {
  153. frmf_initForm(obj);
  154. }
  155. function SPMNG00402_onload(obj:Form, e:LoadEventInfo)
  156. {
  157. misfGridInit(group3.grd_deptlist);
  158. ds_main_deptcodelist.copyData(ds_target_validation_deptcodelist);
  159. ds_send_deptref.setColumn(0, "instcd", ds_target_defaultvalue.getColumn(0, "instcd"));
  160. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  161. group3.group2.ipt_refcond.imemode = "hangul";
  162. group3.group2.ipt_refcond.setFocus();
  163. if(ds_target_validation_deptcodelist.rowcount == 0)
  164. {
  165. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  166. }
  167. }
  168. function group3_group2_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  169. {
  170. if( e.keycode == 13 ){
  171. frmf_inputEnterKey("group3.group2.btn_search", "onclick", new ClickEventInfo);
  172. }
  173. }
  174. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  175. {
  176. if(group3.group2.rdo_refcond.value == "deptnm") {
  177. dsf_makeValue(ds_send_deptref,"deptnm", "string", group3.group2.ipt_refcond.text);
  178. dsf_makeValue(ds_send_deptref,"deptcd", "string", "");
  179. }
  180. else {
  181. dsf_makeValue(ds_send_deptref,"deptcd", "string", group3.group2.ipt_refcond.text);
  182. dsf_makeValue(ds_send_deptref,"deptnm", "string", "");
  183. }
  184. var oParam = {};
  185. oParam.id = "TRMNG00403";
  186. oParam.service = "csrapp.CsrMngt";
  187. oParam.method = "reqGetLnDeptList";
  188. oParam.inds = "req=ds_send_deptref";
  189. oParam.outds = "ds_main_deptcodelist=deptcodelist";
  190. oParam.async = false;
  191. tranf_submit(oParam);
  192. dsf_setFixVal(ds_main_deptcodelist, "chkyn:N");
  193. }
  194. function group3_group2_rdo_refcond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  195. {
  196. if(group3.group2.rdo_refcond.value == "deptnm") {
  197. group3.group2.ipt_refcond.imemode = "hangul";
  198. }
  199. else if (group3.group2.rdo_refcond.value == "deptcd") {
  200. group3.group2.ipt_refcond.imemode = "none";
  201. }
  202. else {
  203. group3.group2.ipt_refcond.imemode = "none";
  204. }
  205. group3.group2.ipt_refcond.setFocus();
  206. }
  207. function ds_main_deptcodelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  208. {
  209. if( e.columnid == "chkyn" ){
  210. obj.setColumn(e.row, "chkyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  211. }
  212. }
  213. function group3_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  214. {
  215. if(e.row > -1 && e.col > -1)
  216. {
  217. frmf_inputEnterKey("group1.btn_confirm", "onclick", new ClickEventInfo);
  218. }
  219. }
  220. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. if(ds_main_deptcodelist.rowcount == 0)
  223. {
  224. sysf_messageBox("적용할 내역이","I004");
  225. this.close();
  226. return;
  227. }
  228. //var iParam = model.getValue(grd_deptlist.nodeset);
  229. ds_main_deptcodelist.filter("chkyn=='Y'");
  230. var rCVS = dsf_getDsCSV(ds_main_deptcodelist);
  231. ds_main_deptcodelist.filter("");
  232. if ( frmf_checkOpener() ) {
  233. opener.frmf_setParameter("SPMNG00402_", rCVS);
  234. } else {
  235. var rtn = sysf_messageBox("상위화면을 찾을 수", "E001");
  236. }
  237. this.close();
  238. }
  239. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. misfPopUpListCancel();
  242. }
  243. ]]></Script>
  244. </Form>
  245. </FDL>