SMRAD02200_구매건대금지급(신).xrw 30 KB

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