SPPAO01500_통장입금내역입력.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPAO01500" position="absolute 0 0 550 460" titletext="통장입금내역입력" onload="SPPAO01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" class="line_1" position="absolute 10 140 540 146" style="strokepen:3 solid #33bbbbff;"/>
  8. <Static id="caption1" text="통장입금내역" class="tit_2" position="absolute 10 123 118 139"/>
  9. <Static id="caption3" text="수납대상금액" class="cell_1" position="absolute 10 388 90 413" style="padding:0 0 0 4;"/>
  10. <Static id="caption4" text="통장입금총액" class="cell_1" position="absolute 190 388 270 413" style="padding:0 0 0 4;"/>
  11. <MaskEdit id="opt_rcptamt" taborder="1" readonly="true" mask="(-)#,###" position="absolute 91 388 181 413"/>
  12. <MaskEdit id="opt_onlineamt" taborder="2" readonly="true" mask="(-)#,###" position="absolute 271 388 361 413"/>
  13. <Grid id="datagrid1" taborder="3" binddataset="ds_main_h_onln" useinputpanel="false" position="absolute 10 145 540 385" autofittype="none" cellsizebandtype="allband" cellsizingtype="col">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="71"/>
  18. <Column size="154"/>
  19. <Column size="79"/>
  20. <Column size="60"/>
  21. <Column size="92"/>
  22. <Column size="70"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell text="은행"/>
  44. <Cell col="1" text="계좌번호"/>
  45. <Cell col="2" text="입금일자"/>
  46. <Cell col="3" text="입금자명"/>
  47. <Cell col="4" text="입금금액"/>
  48. <Cell col="5" text="영수일자"/>
  49. <Cell col="6" text="caption1"/>
  50. <Cell col="7" text="caption2"/>
  51. <Cell col="8" text="caption3"/>
  52. <Cell col="9" text="caption4"/>
  53. <Cell col="10" text="caption5"/>
  54. <Cell col="11" text="caption6"/>
  55. <Cell col="12" text="caption7"/>
  56. <Cell col="13" text="caption8"/>
  57. <Cell col="14" text="caption9"/>
  58. <Cell col="15" text="caption10"/>
  59. <Cell col="16" text="caption11"/>
  60. <Cell col="17" text="caption12"/>
  61. <Cell col="18" text="caption13"/>
  62. <Cell col="19" text="caption14"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell displaytype="combo" edittype="combo" text="bind:onln_bankcd" combodataset="ds_init_P0011list" combocodecol="cdid" combodatacol="detldesc" enable="false"/>
  66. <Cell col="1" text="bind:onln_acntno"/>
  67. <Cell col="2" displaytype="date" style="align:center middle;" class="text_center" text="bind:onln_paydd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  68. <Cell col="3" style="align:center middle;" class="text_center" text="bind:onln_paypsnnm"/>
  69. <Cell col="4" displaytype="number" class="text_right" text="bind:onln_onlineamt" mask="@,@@@"/>
  70. <Cell col="5" displaytype="date" class="text_center" text="bind:onln_rcptdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  71. <Cell col="6" text="bind:onln_pid"/>
  72. <Cell col="7" text="bind:onln_rcptno"/>
  73. <Cell col="8" text="bind:onln_rcptseqno"/>
  74. <Cell col="9" text="bind:onln_seqno"/>
  75. <Cell col="10" text="bind:onln_instcd"/>
  76. <Cell col="11" text="bind:onln_rcptstat"/>
  77. <Cell col="12" text="bind:onln_ordtype"/>
  78. <Cell col="13" text="bind:onln_rcptexecdd"/>
  79. <Cell col="14" text="bind:onln_rcpttm"/>
  80. <Cell col="15" text="bind:onln_rcptrid"/>
  81. <Cell col="16" text="bind:onln_fstrgstrid"/>
  82. <Cell col="17" text="bind:onln_fstrgstdt"/>
  83. <Cell col="18" text="bind:onln_lastupdtrid"/>
  84. <Cell col="19" text="bind:onln_lastupdtdt"/>
  85. </Band>
  86. </Format>
  87. </Formats>
  88. </Grid>
  89. <Static id="caption2" text="기통장입금액" class="cell_1" position="absolute 370 388 450 413" style="padding:0 0 0 4;"/>
  90. <MaskEdit id="output1" taborder="4" readonly="true" mask="(-)#,###" position="absolute 451 388 541 413"/>
  91. <Static id="caption5" text="통장입금" class="tit_2" position="absolute 10 15 121 35"/>
  92. <Shape id="line3" linetype="horizontal" class="line_2" position="absolute 10 62 540 68"/>
  93. <Shape id="line12" class="line_1" position="absolute 10 35 540 41" style="strokepen:3 solid #33bbbbff;"/>
  94. <Shape id="line2" linetype="horizontal" class="line_2" position="absolute 10 88 540 94"/>
  95. <Shape id="line4" class="line_3" position="absolute 10 114 540 120"/>
  96. <Static id="caption6" text="입금은행/계좌번호" class="cell_1" position="absolute 10 40 123 63" style="padding:0 0 0 4;"/>
  97. <Static id="caption7" text="입금금액" class="cell_1" position="absolute 10 92 123 115" style="padding:0 0 0 4;"/>
  98. <Static id="caption8" text="입금일자/입금자명" class="cell_1" position="absolute 10 66 123 89" style="padding:0 0 0 4;"/>
  99. <Button id="btn_clear" taborder="5" text="초기화" class="btn2" position="absolute 357 10 410 35" onclick="btn_clear_onclick"/>
  100. <Button id="btn_onlineaprv" taborder="6" text="통장입금" class="btn2" position="absolute 411 10 475 35" onclick="btn_onlineaprv_onclick"/>
  101. <Button id="btn_onlinecncl" taborder="7" text="입금취소" class="btn2" position="absolute 476 10 540 35" onclick="btn_onlinecncl_onclick"/>
  102. <Combo id="cmb_bankcd" taborder="8" innerdataset="@ds_init_P0011list" codecolumn="cdid" datacolumn="detldesc" class="combo_default" position="absolute 124 40 248 63" onitemchanged="cmb_bankcd_onitemchanged"/>
  103. <Calendar id="ipt_paydd" taborder="9" class="input_default" position="absolute 124 66 248 89" dateformat="yyyy-MM-dd" value="null"/>
  104. <Edit id="ipt_paypsnnm" taborder="10" class="input_default" position="absolute 249 66 540 89" imemode="hangul" onkeydown="ipt_paypsnnm_onkeydown"/>
  105. <MaskEdit id="ipt_onlineamt" taborder="11" mask="@,@@@" class="input_default" position="absolute 124 92 248 115" autoselect="true"/>
  106. <Edit id="input1" taborder="12" position="absolute 249 40 540 63" onkeydown="input1_onkeydown"/>
  107. <Button id="btn_confirm" taborder="13" text="확인" class="btn4" position="absolute 426 425 482 450" onclick="btn_confirm_onclick"/>
  108. <Button id="btn_cancel" taborder="14" text="취소" class="btn4" position="absolute 484 425 540 450" onclick="btn_cancel_onclick"/>
  109. </Layout>
  110. </Layouts>
  111. <Objects>
  112. <Dataset id="ds_init_P0011list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="cdgrupid" type="STRING"/>
  115. <Column id="cdid" type="STRING"/>
  116. <Column id="cdnm" type="STRING"/>
  117. <Column id="detldesc" type="STRING"/>
  118. <Column id="dispseq" type="STRING"/>
  119. <Column id="fromdd" type="STRING"/>
  120. <Column id="todd" type="STRING"/>
  121. <Column id="remark" type="STRING"/>
  122. </ColumnInfo>
  123. </Dataset>
  124. <Dataset id="ds_main_h_onln" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="onln_pid" type="STRING" size="256"/>
  127. <Column id="onln_rcptdd" type="STRING" size="256"/>
  128. <Column id="onln_rcptno" type="STRING" size="256"/>
  129. <Column id="onln_rcptseqno" type="STRING" size="256"/>
  130. <Column id="onln_seqno" type="STRING" size="256"/>
  131. <Column id="onln_instcd" type="STRING" size="256"/>
  132. <Column id="onln_rcptstat" type="STRING" size="256"/>
  133. <Column id="onln_ordtype" type="STRING" size="256"/>
  134. <Column id="onln_onlineamt" type="STRING" size="256"/>
  135. <Column id="onln_bankcd" type="STRING" size="256"/>
  136. <Column id="onln_acntno" type="STRING" size="256"/>
  137. <Column id="onln_paydd" type="STRING" size="256"/>
  138. <Column id="onln_paypsnnm" type="STRING" size="256"/>
  139. <Column id="onln_rcptexecdd" type="STRING" size="256"/>
  140. <Column id="onln_rcpttm" type="STRING" size="256"/>
  141. <Column id="onln_rcptrid" type="STRING" size="256"/>
  142. <Column id="onln_preamtyn" type="STRING" size="256"/>
  143. <Column id="onln_innrtretyn" type="STRING" size="256"/>
  144. <Column id="onln_remfact" type="STRING" size="256"/>
  145. <Column id="onln_fstrgstrid" type="STRING" size="256"/>
  146. <Column id="onln_fstrgstdt" type="STRING" size="256"/>
  147. <Column id="onln_lastupdtrid" type="STRING" size="256"/>
  148. <Column id="onln_lastupdtdt" type="STRING" size="256"/>
  149. </ColumnInfo>
  150. </Dataset>
  151. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  152. <Dataset id="ds_main_onln" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  153. <ColumnInfo>
  154. <Column id="totrcptamt" type="STRING" size="256"/>
  155. <Column id="totonlineamt" type="STRING" size="256"/>
  156. <Column id="orgonlineamt" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row/>
  160. </Rows>
  161. </Dataset>
  162. <Dataset id="ds_main_onln2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="onln_pid" type="STRING" size="256"/>
  165. <Column id="onln_rcptdd" type="STRING" size="256"/>
  166. <Column id="onln_rcptno" type="STRING" size="256"/>
  167. <Column id="onln_rcptseqno" type="STRING" size="256"/>
  168. <Column id="onln_seqno" type="STRING" size="256"/>
  169. <Column id="onln_instcd" type="STRING" size="256"/>
  170. <Column id="onln_rcptstat" type="STRING" size="256"/>
  171. <Column id="onln_ordtype" type="STRING" size="256"/>
  172. <Column id="onln_onlineamt" type="STRING" size="256"/>
  173. <Column id="onln_bankcd" type="STRING" size="256"/>
  174. <Column id="onln_acntno" type="STRING" size="256"/>
  175. <Column id="onln_paydd" type="STRING" size="256"/>
  176. <Column id="onln_paypsnnm" type="STRING" size="256"/>
  177. <Column id="onln_rcptexecdd" type="STRING" size="256"/>
  178. <Column id="onln_rcpttm" type="STRING" size="256"/>
  179. <Column id="onln_rcptrid" type="STRING" size="256"/>
  180. <Column id="onln_preamtyn" type="STRING" size="256"/>
  181. <Column id="onln_innrtretyn" type="STRING" size="256"/>
  182. <Column id="onln_remfact" type="STRING" size="256"/>
  183. <Column id="onln_fstrgstrid" type="STRING" size="256"/>
  184. <Column id="onln_fstrgstdt" type="STRING" size="256"/>
  185. <Column id="onln_lastupdtrid" type="STRING" size="256"/>
  186. <Column id="onln_lastupdtdt" type="STRING" size="256"/>
  187. </ColumnInfo>
  188. </Dataset>
  189. </Objects>
  190. <Bind>
  191. <BindItem id="item0" compid="cmb_bankcd" propid="value" datasetid="ds_main_onln2" columnid="onln_bankcd"/>
  192. <BindItem id="item1" compid="input1" propid="value" datasetid="ds_main_onln2" columnid="onln_acntno"/>
  193. <BindItem id="item2" compid="ipt_paydd" propid="value" datasetid="ds_main_onln2" columnid="onln_paydd"/>
  194. <BindItem id="item3" compid="ipt_paypsnnm" propid="value" datasetid="ds_main_onln2" columnid="onln_paypsnnm"/>
  195. <BindItem id="item4" compid="ipt_onlineamt" propid="value" datasetid="ds_main_onln2" columnid="onln_onlineamt"/>
  196. <BindItem id="item5" compid="opt_rcptamt" propid="value" datasetid="ds_main_onln" columnid="totrcptamt"/>
  197. <BindItem id="item6" compid="opt_onlineamt" propid="value" datasetid="ds_main_onln" columnid="totonlineamt"/>
  198. <BindItem id="item7" compid="output1" propid="value" datasetid="ds_main_onln" columnid="orgonlineamt"/>
  199. </Bind>
  200. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  201. include "pam_pamcomnxp::PAM.xjs";
  202. include "pam_pamcomnxp::PAM001.xjs";
  203. include "pam_opatmngtxp::PMOCOM.xjs";
  204. var gTotrcptamt, strSend, strRcv,otptCnt, gOrgonlineamt;
  205. function fInit() {
  206. ds_main_onln.clearData();
  207. ds_main_onln.addRow();
  208. ds_main_onln2.clearData();
  209. ds_main_onln2.addRow();
  210. ds_main_onln.setColumn(0, "totrcptamt", "0");
  211. ds_main_onln.setColumn(0, "totonlineamt", "0");
  212. ds_main_onln.setColumn(0, "orgonlineamt", "0");
  213. ds_main_onln2.setColumn(0, "onln_paydd", PMO001_TODAY);
  214. ds_main_onln2.setColumn(0, "onln_onlineamt", "0");
  215. }
  216. function fInit2() {
  217. ds_main_onln2.clearData();
  218. ds_main_onln2.addRow();
  219. ds_main_onln2.setColumn(0, "onln_paydd", PMO001_TODAY);
  220. ds_main_onln2.setColumn(0, "onln_onlineamt", "0");
  221. cmb_bankcd.setFocus();
  222. }
  223. function fOnlineamtCalc() {
  224. var rowcnt = ds_main_h_onln.rowcount;
  225. if (rowcnt > 0) {
  226. var onln_onlineamt = 0;
  227. var totrcptamt = ds_main_onln.getColumn(0, "totrcptamt");
  228. for (var i = 0; i < rowcnt; i++) {
  229. if (ds_main_h_onln.getColumn(i, "onln_innrtretyn") != "Y") {
  230. onln_onlineamt += parseInt(utlf_transNullToEmpty(ds_main_h_onln.getColumn(i, "onln_onlineamt")));
  231. }
  232. if (ds_main_h_onln.getColumn(i, "onln_innrtretyn") == "Y") {
  233. gOrgonlineamt += parseInt(utlf_transNullToEmpty(ds_main_h_onln.getColumn(i, "onln_onlineamt")));
  234. }
  235. }
  236. ds_main_onln.setColumn(0, "orgonlineamt", gOrgonlineamt);
  237. ds_main_onln.setColumn(0, "totonlineamt", onln_onlineamt);
  238. } else {
  239. // 화면 로딩 시 이미 입금액이 존재했다면, 금액 * -1 처리
  240. var orgonlineamt = parseInt(utlf_transNullToEmpty(ds_main_onln.getColumn(0, "orgonlineamt")));
  241. if (orgonlineamt != 0) {
  242. ds_main_onln.setColumn(0, "totonlineamt", orgonlineamt * -1);
  243. } else {
  244. ds_main_onln.setColumn(0, "totonlineamt", "0");
  245. }
  246. }
  247. }
  248. function SPPAO01500_onload(obj:Form, e:LoadEventInfo) {
  249. // 폼 초기화
  250. frmf_initForm(obj);
  251. fInit();
  252. fGetUserInfosSampling(); // PMOCOM.xjs
  253. pamfGetCodeList([{ dsNm: "ds_init_P0011list", cdGrpId: "P0011" }]);
  254. if (frmf_checkOpener()) {
  255. opener.frmf_setParameter("SPPAO01500_RTN", "");
  256. var SPPAO01500_PARM = opener.frmf_getParameter("SPPAO01500_PARM");
  257. var params = String(SPPAO01500_PARM).split("▦");
  258. gTotrcptamt = params[0];
  259. strSend = params[1];
  260. strRcv = params[2];
  261. otptCnt = params[3];
  262. ds_main_onln.setColumn(0, "totrcptamt", gTotrcptamt);
  263. ds_main_h_onln.clearData();
  264. if (!utlf_isNull(strSend) && strSend != " " && strSend != "-") {
  265. // 2016.12.14 kimdo3
  266. // 강제로 설정함.
  267. if(strSend == "ds_main_h_onln") {
  268. ds_main_h_onln.copyData(opener.ds_main_h_onln);
  269. }
  270. else if(strSend == "SMPAI00100") {
  271. ds_main_h_onln.copyData(opener.ds_main_admi_info_onln);
  272. }
  273. fOnlineamtCalc();
  274. } else {
  275. try {
  276. ds_main_h_onln.copyData(arg_ds_send);
  277. } catch(e) {
  278. }
  279. fOnlineamtCalc();
  280. }
  281. opener.frmf_setParameter("SPPAO01500_PARM", ds_main_onln.getColumn(0, "totonlineamt"));
  282. } else {
  283. ds_main_onln.setColumn(0, "totrcptamt", gTotrcptamt);
  284. }
  285. }
  286. function btn_clear_onclick(obj:Button, e:ClickEventInfo){
  287. fInit2();
  288. }
  289. function btn_onlineaprv_onclick(obj:Button, e:ClickEventInfo) {
  290. // 수납자 마감여부 체크하여 처리
  291. if (isMagmAprv()) {
  292. // 마감결제 완료되어있으므로 더이상 진행하지 않음
  293. return false;
  294. }
  295. var onln_bankcd = ds_main_onln2.getColumn(0, "onln_bankcd");
  296. if (utlf_isNull(onln_bankcd) || onln_bankcd == " " || onln_bankcd == "-") {
  297. sysf_messageBox("입금은행을 정확히 선택해 주십시요!", "E999");
  298. return;
  299. }
  300. var onln_acntno = ds_main_onln2.getColumn(0, "onln_acntno");
  301. if (utlf_isNull(onln_acntno) || onln_acntno == " " || onln_acntno == "-") {
  302. sysf_messageBox("계좌번호을 정확히 입력해 주십시요!", "E999");
  303. return;
  304. }
  305. var onln_paydd = ds_main_onln2.getColumn(0, "onln_paydd");
  306. if (utlf_isNull(onln_paydd) || onln_paydd == " " || onln_paydd == "-") {
  307. sysf_messageBox("입금일자를 정확히 입력해 주십시요!", "E999");
  308. return;
  309. }
  310. var onln_paypsnnm = ds_main_onln2.getColumn(0, "onln_paypsnnm");
  311. if (utlf_isNull(onln_paypsnnm) || onln_paypsnnm == " " || onln_paypsnnm == "-") {
  312. sysf_messageBox("입금자명을 정확히 입력해 주십시요!", "E999");
  313. return;
  314. }
  315. var onln_onlineamt = ds_main_onln2.getColumn(0, "onln_onlineamt");
  316. if (utlf_isNull(onln_onlineamt) || onln_onlineamt == " " || onln_onlineamt == "-") {
  317. sysf_messageBox("입금금액을 정확히 입력해 주십시요!", "E999");
  318. return;
  319. }
  320. if (otptCnt > 1 && ds_main_h_onln.rowcount > 0) {
  321. sysf_messageBox("외래멀티수납시 복수건에 통장입력을 할수가 없습니다!", "E999");
  322. return;
  323. }
  324. if (ds_main_h_onln.rowcount < 1) {
  325. ds_main_h_onln.copyData(ds_main_onln2);
  326. } else {
  327. var idx = ds_main_h_onln.addRow();
  328. ds_main_h_onln.copyRow(idx, ds_main_onln2, 0);
  329. }
  330. fOnlineamtCalc();
  331. fInit2();
  332. }
  333. function btn_onlinecncl_onclick(obj:Button, e:ClickEventInfo) {
  334. // 수납자 마감여부 체크하여 처리
  335. if (isMagmAprv()) {
  336. // 마감결제 완료되어있으므로 더이상 진행하지 않음
  337. return false;
  338. }
  339. var currow = datagrid1.currentrow;
  340. if (currow < 0) {
  341. sysf_messageBox("먼저 삭제할 내역을 선택하십시요!", "E999");
  342. return;
  343. }
  344. ds_main_h_onln.deleteRow(currow);
  345. fOnlineamtCalc();
  346. }
  347. /****************************************************************************************
  348. * Argument :
  349. * Description : 입금은행 콤보 아이템 변경 이벤트
  350. 선택된 은행에 따라 계좌번호 display
  351. ****************************************************************************************/
  352. function cmb_bankcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  353. ds_main_onln2.setColumn(0, "onln_acntno", ds_init_P0011list.lookup("cdid", e.postvalue, "cdnm"));
  354. }
  355. /****************************************************************************************
  356. * Argument :
  357. * Description : 계좌번호 키보드 입력 이벤트
  358. ****************************************************************************************/
  359. function input1_onkeydown(obj:Edit, e:KeyEventInfo) {
  360. if (e.keycode == 13) {
  361. obj.updateToDataset();
  362. ipt_paypsnnm.setFocus();
  363. }
  364. }
  365. /****************************************************************************************
  366. * Argument :
  367. * Description : 입금자명 키보드 입력 이벤트
  368. ****************************************************************************************/
  369. function ipt_paypsnnm_onkeydown(obj:Edit, e:KeyEventInfo){
  370. if (e.keycode == 13) {
  371. obj.updateToDataset();
  372. ipt_onlineamt.setFocus();
  373. }
  374. }
  375. /****************************************************************************************
  376. * Argument :
  377. * Description : 확인 버튼 클릭 이벤트
  378. ****************************************************************************************/
  379. function btn_confirm_onclick(obj: Button, e: ClickEventInfo) {
  380. if (frmf_checkOpener()) {
  381. opener.frmf_setParameter("SPPAO01500_RTN", "Y");
  382. opener.frmf_setParameter("SPPAO01500_TotOnlineAmt", ds_main_onln.getColumn(0, "totonlineamt"));
  383. if (!utlf_isNull(strRcv) && strRcv != " " && strRcv != "-") {
  384. if (strRcv == "ds_main_h_onln") {
  385. // 강제로 설정함.
  386. // 2016.12.14 kimdo3
  387. opener.ds_main_h_onln.copyData(ds_main_h_onln);
  388. } else if (strRcv == "SMPAI00100") {
  389. opener.ds_main_admi_info_onln.copyData(ds_main_h_onln);
  390. } else if (!utlf_isNull(strRcv)) {
  391. var openerDs = opener.objects[strRcv];
  392. if (!utlf_isNull(openerDs)) {
  393. openerDs.copyData(ds_main_h_onln);
  394. }
  395. }
  396. }
  397. try {
  398. if (!utlf_isNull(arg_ds_rcv)) {
  399. arg_ds_rcv.copyData(ds_main_h_onln);
  400. }
  401. } catch(e) {
  402. }
  403. this.close();
  404. }
  405. }
  406. /****************************************************************************************
  407. * Argument :
  408. * Description : 취소 버튼 클릭 이벤트
  409. ****************************************************************************************/
  410. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  411. if (frmf_checkOpener()) {
  412. opener.frmf_setParameter("SPPAO01500_RTN", "N");
  413. this.close();
  414. }
  415. }
  416. ]]></Script>
  417. </Form>
  418. </FDL>