SMRAR03300_가수금입금확인자관리.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAR03300" position="absolute 0 0 1206 760" titletext="가수금 입금 확인자 관리" oninit="SMRAR03300_oninit" onload="SMRAR03300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="가수금 입금 확인자 관리" class="tit_1" position="absolute 0 0 215 25"/>
  8. <Shape id="line1" class="line_6" position="absolute 0 46 1195 52" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 25 1195 47" onclick="btn_save_onclick"/>
  10. <Div id="grp_sea" taborder="2" position="absolute 0 50 1195 90" anchor="left top right" class="div_SA2">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption2" text="기관코드" class="search_name" position="absolute 80 10 156 27"/>
  14. <Combo id="cmb_instcd" taborder="1" class="combo_default" enable="false" position="absolute 160 10 305 29"/>
  15. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 335 9 341 29"/>
  16. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 358 8 414 30" onclick="grp_sea_btn_search_onclick"/>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Button id="btn_insert" taborder="3" text="행추가" class="btn2" position="absolute 1086 104 1139 123" onclick="btn_insert_onclick"/>
  21. <Button id="btn_delete" taborder="4" text="행삭제" class="btn2" position="absolute 1141 104 1194 123" onclick="btn_delete_onclick"/>
  22. <Static id="caption6" text="입금 확인자별 계좌 목록" class="tit_2" position="absolute 0 107 178 129"/>
  23. <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 123 1195 129" anchor="left top right"/>
  24. <Grid id="grd_grntpsn" taborder="5" binddataset="ds_main_grnt_grntlist" useinputpanel="false" position="absolute 0 128 1195 732" autoenter="select" cellsizingtype="col" anchor="all" onexpanddown="grd_grntpsn_onexpanddown" onkeyup="grd_grntpsn_onkeyup" oncelldblclick="grd_grntpsn_oncelldblclick">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="21"/>
  29. <Column size="101"/>
  30. <Column size="107"/>
  31. <Column size="96"/>
  32. <Column size="180"/>
  33. <Column size="0"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="사원번호"/>
  42. <Cell col="2" text="성명"/>
  43. <Cell col="3" text="계좌코드"/>
  44. <Cell col="4" text="계좌번호"/>
  45. <Cell col="5" text="기관코드"/>
  46. </Band>
  47. <Band id="body">
  48. <Cell celltype="head"/>
  49. <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" text="bind:emplno" expandshow="show"/>
  50. <Cell col="2" text="bind:emplnm"/>
  51. <Cell col="3" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" text="bind:aactcd" expandshow="show"/>
  52. <Cell col="4" text="bind:aactno"/>
  53. <Cell col="5" text="bind:instcd"/>
  54. </Band>
  55. </Format>
  56. </Formats>
  57. </Grid>
  58. <Static id="caption3" text="※ 사원번호나 계좌코드를 변경하시려면, 삭제 후 다시 등록하시기 바랍니다." position="absolute 5 737 419 757" anchor="left bottom" style="color:#800000ff;"/>
  59. </Layout>
  60. </Layouts>
  61. <Objects>
  62. <Dataset id="ds_send_paydedu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  63. <ColumnInfo>
  64. <Column id="instcd" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row/>
  68. </Rows>
  69. </Dataset>
  70. <Dataset id="ds_main_grnt_grntlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  73. <Column id="emplno" type="STRING" size="256" sumtext="사원번호."/>
  74. <Column id="emplnm" type="STRING" size="256" sumtext="사원명"/>
  75. <Column id="aactcd" type="STRING" size="256" sumtext="계좌코드"/>
  76. <Column id="aactno" type="STRING" size="256" sumtext="계좌번호"/>
  77. </ColumnInfo>
  78. </Dataset>
  79. </Objects>
  80. <Bind>
  81. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send_paydedu" columnid="instcd"/>
  82. </Bind>
  83. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  84. * System Name :
  85. * Job Name :
  86. * Creator :
  87. * Make Date : 2017-06-19
  88. * Description :
  89. *---------------------------------------------------------------------------------------
  90. * Modify Date Modifier Modify Description
  91. *---------------------------------------------------------------------------------------
  92. * 2017-06-19 Live Converter TF->XP
  93. *
  94. *---------------------------------------------------------------------------------------
  95. ****************************************************************************************/
  96. include "com_commonxp::comm_main.xjs";
  97. include "mis_miscommonxp::MIS.xjs";
  98. include "mis_humtrafactmngtxp::RPB001.xjs";
  99. function SMRAR03300_oninit(obj:Form, e:InitEventInfo)
  100. {
  101. frmf_initForm(obj);
  102. }
  103. function SMRAR03300_onload(obj:Form, e:LoadEventInfo)
  104. {
  105. grdf_initGrid(grd_grntpsn);
  106. grdf_setRowTypeIcon(grd_grntpsn, 0);
  107. misfGridInit(grd_grntpsn);
  108. //misfMsterDetailSet(grd_grntpsn,null, "TRRAR03301" ,"Y");
  109. misfComboInstCdListMulti("grp_sea.cmb_instcd",utlf_getCurrentDate(),"","N");
  110. grp_sea.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  111. grp_sea.btn_search.click();
  112. }
  113. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  114. {
  115. var oParam = {};
  116. oParam.id = "TRRAR03301";
  117. oParam.service = "accountinginfoapp.AccountingInfo";
  118. oParam.method = "reqGetAactMngtList";
  119. oParam.inds = "req=ds_send_paydedu";
  120. oParam.outds = "ds_main_grnt_grntlist=grntlist";
  121. oParam.async = false;
  122. //oParam.callback = "cf_TRRAR03301";
  123. tranf_submit(oParam);
  124. }
  125. function grd_grntpsn_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  126. {
  127. if(ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition) == 1 || ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition) == 4)
  128. {
  129. return;
  130. }
  131. if (e.cell == obj.getBindCellIndex("Body", "emplno"))
  132. {
  133. var recv_list3 = "emplno,emplnm";
  134. rpbfOpenPopUpList("SPRPB00101", grd_grntpsn, recv_list3,"","N");
  135. }
  136. else if (e.cell == obj.getBindCellIndex("Body", "aactcd"))
  137. {
  138. var recv_list3 = "aactcd,aactno";
  139. rpbfOpenPopUpList("SPRAR03300", grd_grntpsn, recv_list3,"","N");
  140. }
  141. }
  142. function grd_grntpsn_onkeyup(obj:Grid, e:KeyEventInfo)
  143. {
  144. if (obj.currentcell == obj.getBindCellIndex("Body", "emplno"))
  145. {
  146. if ( e.keycode == 13)
  147. {
  148. if (!utlf_isNull(ds_main_grnt_grntlist.getColumn(ds_main_grnt_grntlist.rowposition, "emplnm") ))
  149. {
  150. ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "emplnm", "");
  151. }
  152. }
  153. }
  154. else if (obj.currentcell == obj.getBindCellIndex("Body", "aactcd"))
  155. {
  156. if ( e.keycode == 13)
  157. {
  158. if (!utlf_isNull(ds_main_grnt_grntlist.getColumn(ds_main_grnt_grntlist.rowposition, "aactno") ))
  159. {
  160. ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "aactno", "");
  161. }
  162. }
  163. }
  164. }
  165. function btn_insert_onclick(obj:Button, e:ClickEventInfo)
  166. {
  167. misfGridIUD(grd_grntpsn, "A");
  168. ds_main_grnt_grntlist.setColumn(ds_main_grnt_grntlist.rowposition, "instcd", ds_send_paydedu.getColumn(0, "instcd"));
  169. }
  170. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  171. {
  172. var status = ds_main_grnt_grntlist.getRowType(ds_main_grnt_grntlist.rowposition);
  173. if(status == 1)
  174. {
  175. ds_main_grnt_grntlist.updatecontrol = false;
  176. ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "d");
  177. ds_main_grnt_grntlist.updatecontrol = true;
  178. }
  179. else if(status == 2)
  180. {
  181. ds_main_grnt_grntlist.deleteRow(ds_main_grnt_grntlist.rowposition);
  182. }
  183. else if(status == 4)
  184. {
  185. ds_main_grnt_grntlist.updatecontrol = false;
  186. ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "u");
  187. ds_main_grnt_grntlist.updatecontrol = true;
  188. }
  189. else if(status == 8)
  190. {
  191. ds_main_grnt_grntlist.updatecontrol = false;
  192. ds_main_grnt_grntlist.setRowType(ds_main_grnt_grntlist.rowposition, "");
  193. ds_main_grnt_grntlist.updatecontrol = true;
  194. }
  195. }
  196. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. for (var i = 0; i < ds_main_grnt_grntlist.rowcount; i++)
  199. {
  200. if (utlf_isNull(ds_main_grnt_grntlist.getColumn(i, "emplno")))
  201. {
  202. sysf_messageBox(parseInt(i +1)+ "번째 사원번호는 필수입력사항입니다.", "E999", "");
  203. return;
  204. }
  205. if (utlf_isNull(ds_main_grnt_grntlist.getColumn(i, "aactcd")))
  206. {
  207. sysf_messageBox(parseInt(i +1)+ "번째 계좌코드 필수입력사항입니다.", "E999", "");
  208. return;
  209. }
  210. }
  211. var oParam = {};
  212. oParam.id = "TXRAR03301";
  213. oParam.service = "accountinginfoapp.AccountingInfo";
  214. oParam.method = "reqExeAactMngtList";
  215. oParam.inds = "req=ds_main_grnt_grntlist:u";
  216. oParam.outds = "";
  217. oParam.async = false;
  218. oParam.callback = "cf_TXRAR03301";
  219. tranf_submit(oParam);
  220. }
  221. function cf_TXRAR03301(sSvcId, nErrorCode, sErrorMsg)
  222. {
  223. if(nErrorCode < 0) return;
  224. else
  225. {
  226. grp_sea.btn_search.click();
  227. }
  228. }]]></Script>
  229. </Form>
  230. </FDL>