SMRAD02100_구매건대금지급.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>구매건대금지급</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <grnt>
  11. <grntlist2>
  12. <kykey/>
  13. <custcode/>
  14. <custnm/>
  15. <rmrk/>
  16. <keumak/>
  17. <amtgive/>
  18. <flagwrite/>
  19. <flagseq/>
  20. <flagbank/>
  21. <custbankno/>
  22. <kyejwano/>
  23. <yekeumju/>
  24. <ymdwrite/>
  25. <ymdgive/>
  26. <sekeumdate/>
  27. <cdacntgive/>
  28. <kydate/>
  29. <kyseq/>
  30. <custgrade/>
  31. <newgb/>
  32. </grntlist2>
  33. </grnt>
  34. </main>
  35. <send>
  36. <paydedu>
  37. <instcd/>
  38. <emplno/>
  39. <emplnm/>
  40. <acntcd/>
  41. <cnt/>
  42. <amt1/>
  43. <entrregno/>
  44. <bugtflag/>
  45. <pumgubun/>
  46. <deptcd/>
  47. <usedate/>
  48. <pumno/>
  49. <pumno1/>
  50. <pumno2/>
  51. <hyubdate/>
  52. <ymdwrite/>
  53. <newgb/>
  54. <ymdgive/>
  55. <cdbojo1give/>
  56. <tpbojo/>
  57. <flagseq/>
  58. <slipyn/>
  59. <custcode/>
  60. <custnm/>
  61. <kyno/>
  62. </paydedu>
  63. <save>
  64. <grntlist1/>
  65. </save>
  66. </send>
  67. <send1>
  68. <yekeumju/>
  69. <kyejwano/>
  70. </send1>
  71. <custinfo>
  72. <custlist>
  73. <aactno/>
  74. <bankcd/>
  75. <depor/>
  76. <custnm/>
  77. </custlist>
  78. </custinfo>
  79. <bugtinfo>
  80. <bugtlist>
  81. <bugtamt/>
  82. <bugtexecamt/>
  83. <bugtjanamt/>
  84. </bugtlist>
  85. </bugtinfo>
  86. <seqinfo>
  87. <seqlist>
  88. <flagseq/>
  89. </seqlist>
  90. </seqinfo>
  91. <init>
  92. <combo1>
  93. <deptcdcmb>
  94. <deptcd/>
  95. <deptnm/>
  96. </deptcdcmb>
  97. </combo1>
  98. <combo2>
  99. <acntcmb>
  100. <acntcd/>
  101. <acntnm/>
  102. </acntcmb>
  103. </combo2>
  104. <combo3>
  105. <acntcmb>
  106. <acntcd/>
  107. <acntnm/>
  108. </acntcmb>
  109. </combo3>
  110. <combo4>
  111. <acntcmb>
  112. <bojocd/>
  113. <bojonm/>
  114. </acntcmb>
  115. </combo4>
  116. </init>
  117. <popdata>
  118. <junpyodate/>
  119. <makedeptcd/>
  120. <yogudeptcd/>
  121. <pumgubun/>
  122. </popdata>
  123. <hidden>
  124. <item>
  125. <pumno/>
  126. </item>
  127. </hidden>
  128. </root>
  129. </instance>
  130. <script type="javascript" ev:event="xforms-ready">
  131. <![CDATA[
  132. initialize();
  133. model.setFocus("input2");
  134. ]]>
  135. </script>
  136. <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
  137. <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
  138. <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
  139. <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
  140. <submission id="TRRAD02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/seqinfo"/>
  141. <submission id="TRRAD02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  142. <submission id="TXRAD02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  143. <submission id="TXRAD02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/hidden"/>
  144. </model>
  145. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  148. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  149. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  150. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  151. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  152. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  153. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  154. <script type="javascript">
  155. <![CDATA[
  156. var bankcd = "";
  157. var yekeumju = "";
  158. var kyejwano = "";
  159. function fOpenPopupDeptHelp(pControl, pInstance)
  160. {
  161. misfOpenPopUpList("02", pControl, "", pInstance);
  162. model.refresh();
  163. }
  164. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  165. {
  166. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  167. model.refresh();
  168. }
  169. function initialize(){
  170. misfGridInit(grd_grntpsn1);
  171. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD02102" ,"Y");
  172. var curdate = getCurrentDate();
  173. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  174. var deptcd = getUserInfo("dutplcecd");
  175. var deptnm = getUserInfo("dutplcenm");
  176. //var emplno = getUserInfo("userid");
  177. //var emplnm = getUserInfo("usernm");
  178. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  179. model.setValue("/root/send/paydedu/hyubdate", curdate);
  180. model.setValue("/root/send/paydedu/ymdwrite", curdate);
  181. model.setValue("/root/send/paydedu/acntcd", "11110200");
  182. //model.setValue("/root/send/paydedu/pumgubun", "3");
  183. model.setValue("/root/send/paydedu/bugtflag", "2");
  184. model.setValue("/root/send/paydedu/tpbojo", "1");
  185. model.setValue("/root/send/paydedu/cdbojo1give", "1113");
  186. model.setValue("/root/send/paydedu/newgb", "I");
  187. model.setValue("/root/send/paydedu/slipyn", "Y");
  188. //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcd");
  189. misfComboComCdListMulti("R0001","grd_grntpsn1.custbankno");
  190. //submit("TRRAD01503");
  191. submit("TRRAD01504");
  192. submit("TRRAD01701");
  193. model.refresh();
  194. }
  195. function Popup(){
  196. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  197. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  198. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  199. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  200. model.setValue("/root/popdata/junpyodate", ymd);
  201. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  202. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  203. model.setValue("/root/popdata/pumgubun", "3");
  204. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  205. }
  206. }
  207. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  208. {
  209. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  210. {
  211. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  212. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  213. model.refresh();
  214. if (pNextIndex != "") {
  215. model.setFocus(pNextIndex);
  216. }
  217. }
  218. }
  219. ]]>
  220. </script>
  221. </xhtml:head>
  222. <xhtml:body>
  223. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  224. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">구매건대금지급</caption>
  225. </group>
  226. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  227. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  228. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1128px; top:31px; width:56px; height:22px; ">
  229. <caption>조회</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. misfMsterDetailRetrieve();
  233. grd_grntpsn1.row = 0;
  234. model.setFocus("input2");
  235. ]]>
  236. </script>
  237. </button>
  238. <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:68px; "/>
  239. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1192px; y2:96px; "/>
  240. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:78px; top:17px; width:115px; height:19px; ">
  241. <choices>
  242. <itemset>
  243. <label/>
  244. <value/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <caption id="caption2" class="search_name" style="left:12px; top:18px; width:61px; height:17px; ">기관 :</caption>
  249. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="계약번호^거래처^거래처^내역^대상금액^지급금액^전표^전표^지급처^은행^계좌번호^예금주^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="103, 33, 117, 248, 118, 111, 31, 36, 58, 69, 128, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:102px; width:1192px; height:640px; ">
  250. <col ref="kykey" format="99999999-99999" style="text-align:center; "/>
  251. <col ref="custcode"/>
  252. <col ref="custnm"/>
  253. <col ref="rmrk"/>
  254. <col ref="keumak" format="(-)#,###" style="text-align:right; "/>
  255. <col ref="amtgive" type="input" format="(-)#,###" style="text-align:right; "/>
  256. <col checkvalue="Y,N" ref="flagwrite" type="checkbox"/>
  257. <col ref="flagseq" style="text-align:center; "/>
  258. <col ref="flagbank" type="combo">
  259. <choices>
  260. <item>
  261. <label>은행</label>
  262. <value>1</value>
  263. </item>
  264. <item>
  265. <label>직불</label>
  266. <value>2</value>
  267. </item>
  268. <item>
  269. <label>자동</label>
  270. <value>3</value>
  271. </item>
  272. <item>
  273. <label>전자</label>
  274. <value>4</value>
  275. </item>
  276. </choices>
  277. </col>
  278. <col ref="custbankno" type="combo">
  279. <col ref="timsamtflag" type="combo">
  280. <choices>
  281. <itemset>
  282. <label/>
  283. <value/>
  284. </itemset>
  285. </choices>
  286. </col>
  287. </col>
  288. <col ref="kyejwano" type="input"/>
  289. <col ref="yekeumju" type="input"/>
  290. <col ref="ymdwrite" visibility="hidden"/>
  291. <col ref="ymdgive" visibility="hidden"/>
  292. <col ref="sekeumdate" visibility="hidden"/>
  293. <col ref="cdacntgive" visibility="hidden"/>
  294. <col ref="kydate" visibility="hidden"/>
  295. <col ref="kyseq" visibility="hidden"/>
  296. <col ref="custgrade" visibility="hidden"/>
  297. <col ref="newgb" visibility="hidden"/>
  298. <script type="javascript" ev:event="xforms-value-changed">
  299. <![CDATA[
  300. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flagwrite" && model.getValue("/root/send/paydedu/newgb") == "I") {
  301. var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
  302. if (flagwrite == "Y"){
  303. if (model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custgrade") == "1"){
  304. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite", "N");
  305. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 0;
  306. messageBox("지급중지된 업체입니다.", "E999", "");
  307. return;
  308. }
  309. var seq = model.getValue("/root/send/paydedu/flagseq");
  310. if (isNaN(seq) || seq == null || seq == ""){
  311. seq = 0;
  312. }
  313. seq = parseInt(seq) + 1;
  314. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
  315. model.setValue("/root/send/paydedu/flagseq", seq);
  316. }else{
  317. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
  318. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
  319. }
  320. model.refresh();
  321. }
  322. model.setFocus("input2");
  323. ]]>
  324. </script>
  325. <script type="javascript" ev:event="ondblclick">
  326. <![CDATA[
  327. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "custbankno"){
  328. bankcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custbankno");
  329. yekeumju = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju");
  330. kyejwano = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano");
  331. if (bankcd == "04" && yekeumju != "경북대학교병원"){
  332. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju", "경북대학교병원");
  333. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano", "716-01-234030");
  334. model.setValue("/root/send1/yekeumju", yekeumju);
  335. model.setValue("/root/send1/kyejwano", kyejwano);
  336. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 2;
  337. model.refresh();
  338. }else if (bankcd == "04" && yekeumju == "경북대학교병원"){
  339. yekeumju = model.getValue("/root/send1/yekeumju");
  340. kyejwano = model.getValue("/root/send1/kyejwano");
  341. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/yekeumju", yekeumju);
  342. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/kyejwano", kyejwano);
  343. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 2;
  344. model.refresh();
  345. }
  346. //2011.06.02 박준범 - 아래의 두 라인을 위의 if 절과 else절 안으로 옮기고 아래 comment처리
  347. //grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 2;
  348. //model.refresh();
  349. }
  350. model.setFocus("input2");
  351. ]]>
  352. </script>
  353. <script type="javascript" ev:event="onaftersort">
  354. <![CDATA[
  355. grd_grntpsn1.gridToInstance();
  356. ]]>
  357. </script>
  358. </datagrid>
  359. <input id="ipt_unsldd" ref="/root/send/paydedu/hyubdate" class="input_s_essential" navindex="1" inputtype="date" style="left:300px; top:44px; width:115px; height:19px; text-align:center; ">
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. /*
  363. for (var i = 1; i < grd_grntpsn1.rows;i++){
  364. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  365. }
  366. model.refresh();
  367. */
  368. model.setFocus("input2");
  369. ]]>
  370. </script>
  371. </input>
  372. <caption id="caption5" class="search_name" style="left:200px; top:45px; width:99px; height:17px; ">세금계산서 :</caption>
  373. <input id="input17" ref="/root/send/paydedu/ymdwrite" class="input_s_essential" navindex="1" inputtype="date" style="left:530px; top:44px; width:110px; height:19px; text-align:center; ">
  374. <script type="javascript" ev:event="xforms-value-changed">
  375. <![CDATA[
  376. /*
  377. for (var i = 1; i < grd_grntpsn1.rows;i++){
  378. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  379. }
  380. model.refresh();
  381. */
  382. model.setFocus("input2");
  383. ]]>
  384. </script>
  385. </input>
  386. <caption id="caption24" class="search_name" style="left:440px; top:45px; width:86px; height:17px; ">작성일자 :</caption>
  387. <caption id="caption25" class="search_name" style="left:200px; top:18px; width:96px; height:17px; ">지급 계정 :</caption>
  388. <select1 id="ipt_acntcd" ref="/root/send/paydedu/acntcd" appearance="minimal" style="left:300px; top:17px; width:115px; height:19px; ">
  389. <choices>
  390. <itemset nodeset="/root/init/combo3/acntcmb">
  391. <label ref="acntnm"/>
  392. <value ref="acntcd"/>
  393. </itemset>
  394. </choices>
  395. <script type="javascript" ev:event="xforms-value-changed">
  396. <![CDATA[
  397. model.setValue("/root/send/paydedu/cdbojo1give", "");
  398. submit("TRRAD01701");
  399. radio1.dispatch("xforms-value-changed");
  400. model.setFocus("input2");
  401. ]]>
  402. </script>
  403. </select1>
  404. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:131px; height:14px; ">구매지급대상내역</caption>
  405. <select1 id="radio1" ref="/root/send/paydedu/newgb" appearance="full" cols="2" overflow="visible" style="left:915px; top:45px; width:95px; height:20px; border-style:none; ">
  406. <choices>
  407. <item>
  408. <label>신규</label>
  409. <value>I</value>
  410. </item>
  411. <item>
  412. <label>수정</label>
  413. <value>U</value>
  414. </item>
  415. </choices>
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. // 2011.06.02 박준범 - 신규,수정 구분이 수정일 경우에는 컬럼의 수정을 제한한다.
  419. if(radio1.value == 'I') {
  420. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("amtgive")) = false;
  421. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("flagbank")) = false;
  422. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("custbankno")) = false;
  423. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("kyejwano")) = false;
  424. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("yekeumju")) = false;
  425. }else{
  426. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("amtgive")) = true;
  427. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("flagbank")) = true;
  428. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("custbankno")) = true;
  429. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("kyejwano")) = true;
  430. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("yekeumju")) = true;
  431. }
  432. if (model.getValue("/root/send/paydedu/newgb") == "I"){
  433. var ymd = model.getValue("/root/send/paydedu/hyubdate");
  434. var ymd1 = model.getValue("/root/send/paydedu/ymdwrite");
  435. var ymd2 = model.getValue("/root/send/paydedu/ymdgive");
  436. var acntcd = model.getValue("/root/send/paydedu/acntcd");
  437. var bojocd = model.getValue("/root/send/paydedu/cdbojo1give");
  438. if (ymd == ""){
  439. messageBox("세금계산서일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  440. return;
  441. }
  442. if (ymd1 == ""){
  443. messageBox("작성일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  444. return;
  445. }
  446. if (ymd2 == ""){
  447. messageBox("지급일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  448. return;
  449. }
  450. if (acntcd == ""){
  451. messageBox("지급계정을 선택한 후 처리하시기 바랍니다.", "E999", "");
  452. return;
  453. }
  454. /* 2011.09.07 cyw 부분금액만 저장했을경우 나머지 금액 나오도록 막음. 그리고 계좌없는값들은 PASS
  455. if (bojocd == ""){
  456. messageBox("지급계좌를 선택한 후 처리하시기 바랍니다.", "E999", "");
  457. return;
  458. }*/
  459. if (submit("TXRAD02102")){
  460. if(submit("TRRAD02103")){
  461. var seq = model.getValue("/root/seqinfo/seqlist/flagseq");
  462. if (isNaN(seq) || seq == null || seq == ""){
  463. seq = 0;
  464. }
  465. model.setValue("/root/send/paydedu/flagseq", seq);
  466. }
  467. btn_search.dispatch("DOMActivate");
  468. }
  469. button1.visible = false;
  470. }else if (model.getValue("/root/send/paydedu/newgb") == "U"){
  471. btn_search.dispatch("DOMActivate");
  472. button1.visible = true;
  473. }
  474. model.setFocus("input2");
  475. ]]>
  476. </script>
  477. </select1>
  478. <caption id="caption3" class="search_name" style="left:440px; top:18px; width:86px; height:17px; ">지급계좌 :</caption>
  479. <select1 id="combo1" ref="/root/send/paydedu/cdbojo1give" appearance="minimal" style="left:530px; top:17px; width:220px; height:19px; ">
  480. <choices>
  481. <itemset nodeset="/root/init/combo4/acntcmb">
  482. <label ref="bojonm"/>
  483. <value ref="bojocd"/>
  484. </itemset>
  485. </choices>
  486. </select1>
  487. <caption id="caption4" class="search_name" style="left:660px; top:45px; width:86px; height:17px; ">지급일자 :</caption>
  488. <input id="input1" ref="/root/send/paydedu/ymdgive" class="input_s_essential" navindex="1" inputtype="date" style="left:750px; top:44px; width:110px; height:19px; text-align:center; ">
  489. <script type="javascript" ev:event="xforms-value-changed">
  490. <![CDATA[
  491. radio1.dispatch("xforms-value-changed");
  492. model.setFocus("input2");
  493. //submit("TRRAD02103");
  494. /*
  495. var seq = model.getValue("/root/seqinfo/seqlist/flagseq");
  496. if (isNaN(seq) || seq == null || seq == ""){
  497. seq = 0;
  498. }
  499. model.setValue("/root/send/paydedu/flagseq", seq);
  500. for (var i = 1; i < grd_grntpsn1.rows;i++){
  501. model.setValue("/root/main/grnt/grntlist2[" + i + "]/ymdgive", model.getValue("/root/main/grnt/grntlist1/ymdgive"));
  502. model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagseq", "");
  503. }
  504. model.refresh();
  505. */
  506. ]]>
  507. </script>
  508. </input>
  509. <output id="output1" ref="/root/send/paydedu/flagseq" style="left:868px; top:44px; width:40px; height:19px; font-weight:bold; "/>
  510. <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:420px; top:20px; width:16px; height:16px; ">
  511. <caption/>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. model.removeNodeset("/root/hidden/projectidlist");
  515. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  516. //fAcntSelect();
  517. //fCheckServAcnt();
  518. model.setValue("/root/send/paydedu/cdbojo1give", "");
  519. submit("TRRAD01701");
  520. //ipt_amt.dispatch("xforms-value-changed");
  521. ]]>
  522. </script>
  523. </button>
  524. <input id="ipt_slipyn" ref="/root/send/paydedu/slipyn" navindex="-1" visibility="hidden" style="left:1055px; top:70px; width:35px; height:19px; "/>
  525. <caption id="caption7" class="search_name" style="left:760px; top:18px; width:76px; height:17px; ">거래처 :</caption>
  526. <input id="ipt_custnm" ref="/root/send/paydedu/custnm" class="input_essential" imemode="hangul" style="left:920px; top:17px; width:160px; height:19px; ">
  527. <script type="javascript" ev:event="xforms-value-changed">
  528. <![CDATA[
  529. var custflag = model.getValue("/root/main/unsl_one/custflag");
  530. switch (custflag) {
  531. case "1": //거래처
  532. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  533. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  534. break;
  535. // case "2": //은행
  536. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  537. // break;
  538. case "3": //부서
  539. fValidationCheck("02", "custcd,custnm", "", "");
  540. break;
  541. case "4": //교직원
  542. // fValidationCheck("01-2", "custcd,custnm", "", "");
  543. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  544. ipt_emplnm.dispatch("xforms-value-changed");
  545. break;
  546. case "5": //개인
  547. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  548. break;
  549. default :
  550. return;
  551. }
  552. ]]>
  553. </script>
  554. <script type="javascript" ev:event="onkeypress">
  555. <![CDATA[
  556. if (event.keyCode == "13") {
  557. model.setFocus("ipt_amt");
  558. }
  559. ]]>
  560. </script>
  561. </input>
  562. <input id="ipt_custcd" ref="/root/send/paydedu/custcode" class="input_essential" navindex="-1" style="left:840px; top:17px; width:56px; height:19px; ">
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. if (model.getValue("/root/send/paydedu/custcode") != ""){
  566. if (submit("TRRAD01502")){
  567. model.setValue("/root/send/paydedu/custnm", model.getValue("/root/custinfo/custlist/custnm"));
  568. model.refresh();
  569. }
  570. }else{
  571. model.setValue("/root/send/paydedu/custnm", "");
  572. }
  573. btn_search.dispatch("DOMActivate");
  574. ]]>
  575. </script>
  576. </input>
  577. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:900px; top:19px; width:16px; height:16px; ">
  578. <caption/>
  579. <script type="javascript" ev:event="DOMActivate">
  580. <![CDATA[
  581. fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
  582. btn_search.dispatch("DOMActivate");
  583. ]]>
  584. </script>
  585. </button>
  586. <input id="input2" ref="/root/send/paydedu/kyno" style="left:750px; top:75px; width:130px; height:19px; ">
  587. <script type="javascript" ev:event="xforms-value-changed">
  588. <![CDATA[
  589. //2011.06.02 박준범 - 검색어 부분에 값이 있을 경우에는 아래 findrow 작업을 하도록 수정
  590. // 값이 없는 경우, findrow를 실행하면 첫 row를 찾아 check하는 오류 방지
  591. if (input2.label == "") return;
  592. var kyno = model.getValue("/root/send/paydedu/kyno");
  593. var irow = grd_grntpsn1.findRow(kyno, 1, grd_grntpsn1.colRef("kykey"), false, false);
  594. if (irow > 0){
  595. if (model.getValue("/root/main/grnt/grntlist2[" + irow + "]/flagwrite") == "N"){
  596. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flagwrite", "Y");
  597. grd_grntpsn1.row = irow;
  598. grd_grntpsn1.topRow = irow;
  599. if (model.getValue("/root/send/paydedu/newgb") == "I") {
  600. var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
  601. if (flagwrite == "Y"){
  602. if (model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/custgrade") == "1"){
  603. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite", "N");
  604. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 0;
  605. messageBox("지급중지된 업체입니다.", "E999", "");
  606. model.setFocus("input2");
  607. return;
  608. }
  609. var seq = model.getValue("/root/send/paydedu/flagseq");
  610. if (isNaN(seq) || seq == null || seq == ""){
  611. seq = 0;
  612. }
  613. seq = parseInt(seq) + 1;
  614. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
  615. model.setValue("/root/send/paydedu/flagseq", seq);
  616. grd_grntpsn1.rowStatus(irow) = 2;
  617. }else{
  618. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
  619. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
  620. grd_grntpsn1.rowStatus(irow) = 2;
  621. }
  622. }
  623. model.refresh();
  624. }
  625. }
  626. model.setFocus("input2");
  627. ]]>
  628. </script>
  629. <script type="javascript" ev:event="onkeyup">
  630. <![CDATA[
  631. inputEnterKey("input2", "xforms-value-changed");
  632. ]]>
  633. </script>
  634. </input>
  635. </group>
  636. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  637. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  638. <caption>저장</caption>
  639. <script type="javascript" ev:event="DOMActivate">
  640. <![CDATA[
  641. if (misfSave("TXRAD02101")){
  642. btn_search.dispatch("DOMActivate");
  643. }
  644. ]]>
  645. </script>
  646. </button>
  647. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  648. <caption>초기화</caption>
  649. <script type="javascript" ev:event="DOMActivate">
  650. <![CDATA[
  651. model.resetInstanceNode("/root/main/grnt/grntlist1");
  652. group3.disabled = false;
  653. grd_grntpsn1.disabled = false;
  654. ipt_unsldd.disabled = false;
  655. ipt_costcntrdeptcd.disabled = false;
  656. combo1.disabled = false;
  657. input4.disabled = false;
  658. input14.disabled = true;
  659. input15.disabled = true;
  660. input10.disabled = true;
  661. model.setValue("/root/send/paydedu/pumno1", "");
  662. model.setValue("/root/send/paydedu/pumno2", "");
  663. initialize();
  664. ]]>
  665. </script>
  666. </button>
  667. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  668. <button id="button3" class="btn2_letter3" visibility="hidden" style="left:1010px; top:5px; width:53px; height:19px; ">
  669. <caption>출력</caption>
  670. <script type="javascript" ev:event="DOMActivate">
  671. <![CDATA[
  672. if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
  673. exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
  674. }
  675. ]]>
  676. </script>
  677. </button>
  678. </group>
  679. <button id="button1" class="btn2_letter6" visibility="hidden" style="left:995px; top:115px; width:53px; height:19px; ">
  680. <caption>전자로바꾸기</caption>
  681. <script type="javascript" ev:event="DOMActivate">
  682. <![CDATA[
  683. for (var i = 1; i < grd_grntpsn1.rows; i++){
  684. model.setValue("/root/main/grnt/grntlist2[" + i + "]/flagbank", "4");
  685. grd_grntpsn1.rowStatus(i) = 2;
  686. }
  687. model.refresh();
  688. ]]>
  689. </script>
  690. </button>
  691. </xhtml:body>
  692. </xhtml:html>