SMRAD02500_대금지급상황조회(전체).xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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. <gubun/>
  13. <pumno/>
  14. <sekeumdate/>
  15. <acntpum/>
  16. <custnm/>
  17. <rmrk/>
  18. <amt/>
  19. <jiamt/>
  20. <ymdgive/>
  21. <miamt/>
  22. <sendymd/>
  23. <mijigeubno/>
  24. <jigeubno/>
  25. </grntlist2>
  26. </grnt>
  27. </main>
  28. <send>
  29. <paydedu>
  30. <instcd/>
  31. <fromdd/>
  32. <todd/>
  33. <fromacnt/>
  34. <toacnt/>
  35. <fromacntnm/>
  36. <toacntnm/>
  37. <fromcustcode/>
  38. <tocustcode/>
  39. <fromcustnm/>
  40. <tocustnm/>
  41. <kyno/>
  42. <totamt/>
  43. <totamt2/>
  44. <totamt3/>
  45. <totcnt/>
  46. <acntcd/>
  47. <acntnm/>
  48. <slipyn/>
  49. <pumno/>
  50. </paydedu>
  51. <save>
  52. <grntlist1/>
  53. </save>
  54. </send>
  55. <custinfo>
  56. <custlist>
  57. <aactno/>
  58. <bankcd/>
  59. <depor/>
  60. <custnm/>
  61. </custlist>
  62. </custinfo>
  63. <acntinfo>
  64. <acntlist>
  65. <acntnm/>
  66. </acntlist>
  67. </acntinfo>
  68. <hidden>
  69. <item>
  70. <pumno/>
  71. </item>
  72. </hidden>
  73. </root>
  74. </instance>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. initialize();
  78. ]]>
  79. </script>
  80. <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
  81. <submission id="TRRAD02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/acntinfo"/>
  82. <submission id="TRRAD02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  83. <submission id="TXRAD02401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  84. </model>
  85. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  89. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  90. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  91. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  92. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  93. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  94. <script type="javascript">
  95. <![CDATA[
  96. function fOpenPopupDeptHelp(pControl, pInstance)
  97. {
  98. misfOpenPopUpList("02", pControl, "", pInstance);
  99. model.refresh();
  100. }
  101. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  102. {
  103. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  104. model.refresh();
  105. }
  106. function initialize(){
  107. misfGridInit(grd_grntpsn1);
  108. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD02502" ,"Y");
  109. var curdate = getCurrentDate();
  110. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  111. var deptcd = getUserInfo("dutplcecd");
  112. var deptnm = getUserInfo("dutplcenm");
  113. //model.setValue("/root/send/paydedu/fromdd", curdate);
  114. //model.setValue("/root/send/paydedu/todd", getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD"));
  115. //var emplno = getUserInfo("userid");
  116. //var emplnm = getUserInfo("usernm");
  117. model.setValue("/root/send/paydedu/slipyn", "Y");
  118. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  119. //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
  120. //btn_search.dispatch("DOMActivate");
  121. model.refresh();
  122. }
  123. function Popup(){
  124. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  125. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  126. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  127. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  128. model.setValue("/root/popdata/junpyodate", ymd);
  129. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  130. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  131. model.setValue("/root/popdata/pumgubun", "3");
  132. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  133. }
  134. }
  135. function Maxseq(){
  136. var flag = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flag");
  137. if (flag == "Y"){
  138. var ymd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdwrite");
  139. var maxseq = 0;
  140. var maxseq1 = 0;
  141. var maxseq2 = 0;
  142. var ymd1 = "";
  143. /*
  144. for (var i = 1; i < grd_grntpsn1.rows; i++){
  145. ymd1 = model.getValue("/root/main/grnt/grntlist2[" + i + "]/ymdwrite");
  146. if (ymd == ymd1){
  147. maxseq1 = model.getValue("/root/main/grnt/grntlist2[" + i + "]/maxseq");
  148. if (isNaN(maxseq1)){
  149. maxseq1 = 0;
  150. }
  151. if (parseInt(maxseq1) > parseInt(maxseq)){
  152. maxseq = maxseq1;
  153. }
  154. }
  155. }
  156. if (maxseq == 0){
  157. maxseq = 1;
  158. }
  159. */
  160. for (var i = 1; i < grd_grntpsn1.rows; i++){
  161. ymd1 = model.getValue("/root/main/grnt/grntlist2[" + i + "]/ymdwrite");
  162. //if (ymd == ymd1){
  163. maxseq1 = model.getValue("/root/main/grnt/grntlist2[" + i + "]/gipyoseq");
  164. if (isNaN(maxseq1)){
  165. maxseq1 = 0;
  166. }
  167. if (parseInt(maxseq1) > parseInt(maxseq)){
  168. maxseq = maxseq1;
  169. }
  170. //}
  171. }
  172. maxseq = parseInt(maxseq) + 1;
  173. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/gipyoseq", maxseq);
  174. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 2;
  175. }else{
  176. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/gipyoseq", "");
  177. if (model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/seqwrite") == ""){
  178. grd_grntpsn1.rowStatus(grd_grntpsn1.row) = 0;
  179. }
  180. }
  181. model.refresh();
  182. }
  183. ]]>
  184. </script>
  185. </xhtml:head>
  186. <xhtml:body>
  187. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  188. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">대금지급상황조회(전체)</caption>
  189. </group>
  190. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  191. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  192. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  193. <caption>조회</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. misfMsterDetailRetrieve();
  197. var totamt = 0;
  198. var totamt2 = 0;
  199. var totamt3 = 0;
  200. var totcnt = 0;
  201. var amt = 0;
  202. var amt2 = 0;
  203. var amt3 = 0;
  204. for (var i = 1; i < grd_grntpsn1.rows; i++){
  205. amt = model.getValue("/root/main/grnt/grntlist2[" + i +"]/amt");
  206. amt2 = model.getValue("/root/main/grnt/grntlist2[" + i +"]/jiamt");
  207. amt3 = model.getValue("/root/main/grnt/grntlist2[" + i +"]/miamt");
  208. if (isNaN(amt) || amt == ""){
  209. amt = 0;
  210. }
  211. if (isNaN(amt2) || amt2 == ""){
  212. amt2 = 0;
  213. }
  214. if (isNaN(amt3) || amt3 == ""){
  215. amt3 = 0;
  216. }
  217. totamt = parseFloat(totamt) + parseFloat(amt);
  218. totamt2 = parseFloat(totamt2) + parseFloat(amt2);
  219. totamt3 = parseFloat(totamt3) + parseFloat(amt3);
  220. //totcnt = parseFloat(totcnt) + 1;
  221. }
  222. model.setValue("/root/send/paydedu/totamt", totamt);
  223. model.setValue("/root/send/paydedu/totamt2", totamt2);
  224. model.setValue("/root/send/paydedu/totamt3", totamt3);
  225. //model.setValue("/root/send/paydedu/totcnt", totcnt);
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  231. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1192px; y2:96px; "/>
  232. <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; ">
  233. <choices>
  234. <itemset>
  235. <label/>
  236. <value/>
  237. </itemset>
  238. </choices>
  239. </select1>
  240. <caption id="caption2" class="search_name" style="left:12px; top:18px; width:61px; height:17px; ">기관 :</caption>
  241. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="구분^품의번호^세금계산서^계정^지급처^내역^금액^지금금액^지급일^미지급금액^발송/합의^미지급전표번호^지급전표번호" colsep="^" colwidth="55, 113, 91, 76, 126, 252, 100, 100, 100, 100, 100, 110, 123" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:102px; width:1192px; height:640px; ">
  242. <col disabled="true" ref="gubun" style="text-align:center; "/>
  243. <col ref="pumno"/>
  244. <col ref="sekeumdate" format="yyyy-mm-dd" style="text-align:center; "/>
  245. <col ref="acntpum"/>
  246. <col ref="custnm"/>
  247. <col ref="rmrk"/>
  248. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  249. <col ref="jiamt" format="(-)#,###" style="text-align:right; "/>
  250. <col ref="ymdgive" style="text-align:center; "/>
  251. <col ref="miamt" format="(-)#,###" style="text-align:right; "/>
  252. <col ref="sendymd" format="yyyy-mm-dd" style="text-align:center; "/>
  253. <col ref="mijigeubno"/>
  254. <col ref="jigeubno"/>
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flag"){
  258. Maxseq();
  259. }
  260. model.refresh();
  261. /*
  262. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "flagwrite" && model.getValue("/root/send/paydedu/newgb") == "I") {
  263. var flagwrite = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagwrite");
  264. if (flagwrite == "Y"){
  265. var seq = model.getValue("/root/send/paydedu/flagseq");
  266. if (isNaN(seq) || seq == null || seq == ""){
  267. seq = 0;
  268. }
  269. seq = parseInt(seq) + 1;
  270. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", seq);
  271. model.setValue("/root/send/paydedu/flagseq", seq);
  272. }else{
  273. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/flagseq", "");
  274. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/ymdgive", "");
  275. }
  276. model.refresh();
  277. }
  278. */
  279. ]]>
  280. </script>
  281. <script type="javascript" ev:event="onaftersort">
  282. <![CDATA[
  283. grd_grntpsn1.gridToInstance();
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <input id="ipt_unsldd" ref="/root/send/paydedu/fromdd" class="input_s_essential" navindex="1" inputtype="date" style="left:935px; top:20px; width:115px; height:19px; text-align:center; ">
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. //btn_search.dispatch("DOMActivate");
  291. /*
  292. for (var i = 1; i < grd_grntpsn1.rows;i++){
  293. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  294. }
  295. model.refresh();
  296. */
  297. ]]>
  298. </script>
  299. </input>
  300. <caption id="caption5" class="search_name" style="left:825px; top:30px; width:102px; height:17px; ">세금계산서 :</caption>
  301. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:131px; height:14px; ">대금지급현황</caption>
  302. <input id="input1" ref="/root/send/paydedu/todd" class="input_s_essential" navindex="1" inputtype="date" style="left:935px; top:45px; width:115px; height:19px; text-align:center; ">
  303. <script type="javascript" ev:event="xforms-value-changed">
  304. <![CDATA[
  305. //button3.dispatch("DOMActivate");
  306. /*
  307. for (var i = 1; i < grd_grntpsn1.rows;i++){
  308. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  309. }
  310. model.refresh();
  311. */
  312. ]]>
  313. </script>
  314. </input>
  315. <caption id="caption4" style="left:675px; top:75px; width:45px; height:20px; font-weight:bold; ">총금액</caption>
  316. <input id="input2" ref="/root/send/paydedu/totamt" editable="false" format="(-)#,###" style="left:731px; top:76px; width:100px; height:19px; font-weight:bold; text-align:right; "/>
  317. <caption id="caption3" class="search_name" style="left:215px; top:30px; width:92px; height:17px; ">계정과목 :</caption>
  318. <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:375px; top:22px; width:16px; height:16px; ">
  319. <caption/>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. model.removeNodeset("/root/hidden/projectidlist");
  323. fOpenPopupHelp("05", input4, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  324. model.setValue("/root/send/paydedu/fromacnt", model.getValue("/root/send/paydedu/acntcd"));
  325. model.setValue("/root/send/paydedu/fromacntnm", model.getValue("/root/send/paydedu/acntnm"));
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="input4" ref="/root/send/paydedu/fromacnt" style="left:305px; top:20px; width:65px; height:19px; ">
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/send/paydedu/fromacnt"));
  334. submit("TRRAD02501");
  335. model.setValue("/root/send/paydedu/fromacntnm", model.getValue("/root/acntinfo/acntlist/acntnm"));
  336. model.refresh();
  337. ]]>
  338. </script>
  339. </input>
  340. <input id="input5" ref="/root/send/paydedu/fromacntnm" disabled="true" style="left:395px; top:20px; width:110px; height:19px; "/>
  341. <input id="input6" ref="/root/send/paydedu/toacnt" style="left:305px; top:45px; width:65px; height:19px; ">
  342. <script type="javascript" ev:event="xforms-value-changed">
  343. <![CDATA[
  344. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/send/paydedu/toacnt"));
  345. submit("TRRAD02501");
  346. model.setValue("/root/send/paydedu/toacntnm", model.getValue("/root/acntinfo/acntlist/acntnm"));
  347. model.refresh();
  348. ]]>
  349. </script>
  350. </input>
  351. <input id="input7" ref="/root/send/paydedu/toacntnm" disabled="true" style="left:395px; top:45px; width:110px; height:19px; "/>
  352. <button id="button1" class="icon_search" navindex="-1" style="left:375px; top:47px; width:16px; height:16px; ">
  353. <caption/>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. model.removeNodeset("/root/hidden/projectidlist");
  357. fOpenPopupHelp("05", input6, "acntcd,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  358. model.setValue("/root/send/paydedu/toacnt", model.getValue("/root/send/paydedu/acntcd"));
  359. model.setValue("/root/send/paydedu/toacntnm", model.getValue("/root/send/paydedu/acntnm"));
  360. model.refresh();
  361. ]]>
  362. </script>
  363. </button>
  364. <caption id="caption8" class="search_name" style="left:515px; top:30px; width:77px; height:17px; ">거래처 :</caption>
  365. <input id="ipt_custnm" ref="/root/send/paydedu/fromcustnm" class="input_essential" disabled="true" imemode="hangul" style="left:675px; top:20px; width:135px; height:19px; ">
  366. <script type="javascript" ev:event="xforms-value-changed">
  367. <![CDATA[
  368. var custflag = model.getValue("/root/main/unsl_one/custflag");
  369. switch (custflag) {
  370. case "1": //거래처
  371. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  372. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  373. break;
  374. // case "2": //은행
  375. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  376. // break;
  377. case "3": //부서
  378. fValidationCheck("02", "custcd,custnm", "", "");
  379. break;
  380. case "4": //교직원
  381. // fValidationCheck("01-2", "custcd,custnm", "", "");
  382. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  383. ipt_emplnm.dispatch("xforms-value-changed");
  384. break;
  385. case "5": //개인
  386. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  387. break;
  388. default :
  389. return;
  390. }
  391. ]]>
  392. </script>
  393. <script type="javascript" ev:event="onkeypress">
  394. <![CDATA[
  395. if (event.keyCode == "13") {
  396. model.setFocus("ipt_amt");
  397. }
  398. ]]>
  399. </script>
  400. </input>
  401. <input id="ipt_custcd" ref="/root/send/paydedu/fromcustcode" class="input_essential" navindex="-1" style="left:595px; top:20px; width:56px; height:19px; ">
  402. <script type="javascript" ev:event="xforms-value-changed">
  403. <![CDATA[
  404. if (model.getValue("/root/send/paydedu/fromcustcode") != ""){
  405. if (submit("TRRAD01502")){
  406. model.setValue("/root/send/paydedu/fromcustnm", model.getValue("/root/custinfo/custlist/custnm"));
  407. model.refresh();
  408. }
  409. }else{
  410. model.setValue("/root/send/paydedu/fromcustnm", "");
  411. }
  412. model.refresh();
  413. //btn_search.dispatch("DOMActivate");
  414. ]]>
  415. </script>
  416. </input>
  417. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:655px; top:22px; width:16px; height:16px; ">
  418. <caption/>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. fOpenPopupHelp("14", ipt_custcd, "fromcustcode,fromcustnm", "", "");
  422. //btn_search.dispatch("DOMActivate");
  423. ]]>
  424. </script>
  425. </button>
  426. <input id="input8" ref="/root/send/paydedu/tocustnm" class="input_essential" disabled="true" imemode="hangul" style="left:675px; top:45px; width:135px; height:19px; ">
  427. <script type="javascript" ev:event="xforms-value-changed">
  428. <![CDATA[
  429. var custflag = model.getValue("/root/main/unsl_one/custflag");
  430. switch (custflag) {
  431. case "1": //거래처
  432. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  433. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  434. break;
  435. // case "2": //은행
  436. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  437. // break;
  438. case "3": //부서
  439. fValidationCheck("02", "custcd,custnm", "", "");
  440. break;
  441. case "4": //교직원
  442. // fValidationCheck("01-2", "custcd,custnm", "", "");
  443. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  444. ipt_emplnm.dispatch("xforms-value-changed");
  445. break;
  446. case "5": //개인
  447. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  448. break;
  449. default :
  450. return;
  451. }
  452. ]]>
  453. </script>
  454. <script type="javascript" ev:event="onkeypress">
  455. <![CDATA[
  456. if (event.keyCode == "13") {
  457. model.setFocus("ipt_amt");
  458. }
  459. ]]>
  460. </script>
  461. </input>
  462. <input id="input9" ref="/root/send/paydedu/tocustcode" class="input_essential" navindex="-1" style="left:595px; top:45px; width:56px; height:19px; ">
  463. <script type="javascript" ev:event="xforms-value-changed">
  464. <![CDATA[
  465. if (model.getValue("/root/send/paydedu/tocustcode") != ""){
  466. if (submit("TRRAD01502")){
  467. model.setValue("/root/send/paydedu/tocustnm", model.getValue("/root/custinfo/custlist/custnm"));
  468. model.refresh();
  469. }
  470. }else{
  471. model.setValue("/root/send/paydedu/tocustnm", "");
  472. }
  473. model.refresh();
  474. //btn_search.dispatch("DOMActivate");
  475. ]]>
  476. </script>
  477. </input>
  478. <button id="button2" class="icon_search" navindex="-1" style="left:655px; top:47px; width:16px; height:16px; ">
  479. <caption/>
  480. <script type="javascript" ev:event="DOMActivate">
  481. <![CDATA[
  482. fOpenPopupHelp("14", input9, "tocustcode,tocustnm", "", "");
  483. //btn_search.dispatch("DOMActivate");
  484. ]]>
  485. </script>
  486. </button>
  487. <input id="ipt_slipyn" ref="/root/send/paydedu/slipyn" navindex="-1" visibility="hidden" style="left:1055px; top:45px; width:35px; height:19px; "/>
  488. <input id="input3" ref="/root/send/paydedu/totamt2" editable="false" format="(-)#,###" style="left:831px; top:76px; width:100px; height:19px; font-weight:bold; text-align:right; "/>
  489. <input id="input10" ref="/root/send/paydedu/totamt3" editable="false" format="(-)#,###" style="left:1031px; top:76px; width:100px; height:19px; font-weight:bold; text-align:right; "/>
  490. <button id="btn_savegrntpsn1excel" class="btn2_letter4" style="left:1127px; top:76px; width:64px; height:19px; ">
  491. <caption>엑셀저장</caption>
  492. <script type="javascript" ev:event="DOMActivate">
  493. <![CDATA[
  494. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  495. if (fileName != "")
  496. {
  497. grd_grntpsn1.saveExcel(fileName);
  498. }
  499. ]]>
  500. </script>
  501. </button>
  502. <caption id="caption7" class="search_name" style="left:12px; top:45px; width:92px; height:17px; ">품의번호 :</caption>
  503. <input id="input11" ref="/root/send/paydedu/pumno" style="left:100px; top:45px; width:105px; height:19px; "/>
  504. </group>
  505. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  506. <button id="button36" class="btn4_letter2" visibility="hidden" style="left:1139px; top:3; width:56px; height:22px; ">
  507. <caption>저장</caption>
  508. <script type="javascript" ev:event="DOMActivate">
  509. <![CDATA[
  510. /*
  511. for (var i = 1; i < grd_grntpsn1.rows; i++){
  512. if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/flagseq") == ""){
  513. messageBox(i + "번째 지출번호는 필수 입력항목입니다.", "E999", "");
  514. return;
  515. }
  516. }
  517. */
  518. if (misfSave("TXRAD02401")){
  519. btn_search.dispatch("DOMActivate");
  520. }
  521. ]]>
  522. </script>
  523. </button>
  524. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  525. <caption>초기화</caption>
  526. <script type="javascript" ev:event="DOMActivate">
  527. <![CDATA[
  528. model.resetInstanceNode("/root/main/grnt/grntlist1");
  529. group3.disabled = false;
  530. grd_grntpsn1.disabled = false;
  531. ipt_unsldd.disabled = false;
  532. ipt_costcntrdeptcd.disabled = false;
  533. combo1.disabled = false;
  534. input4.disabled = false;
  535. input14.disabled = true;
  536. input15.disabled = true;
  537. input10.disabled = true;
  538. model.setValue("/root/send/paydedu/pumno1", "");
  539. model.setValue("/root/send/paydedu/pumno2", "");
  540. initialize();
  541. ]]>
  542. </script>
  543. </button>
  544. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  545. <button id="button3" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  546. <caption>출력</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. exeReportPreview("RPRAD02500", "XMLSTR");
  550. ]]>
  551. </script>
  552. </button>
  553. </group>
  554. </xhtml:body>
  555. </xhtml:html>