SMRAD02300_구매지출결의(건별).xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <grntlist1>
  12. <kydate/>
  13. <kyseq/>
  14. <ibgoymd/>
  15. <ibgoseq/>
  16. <rmrk/>
  17. <keumak/>
  18. <acctid/>
  19. <custcode/>
  20. <custnm/>
  21. <custbankno/>
  22. <kyejwano/>
  23. <yekeumju/>
  24. <cdacnt/>
  25. <cdbojo1/>
  26. <ymdwrite/>
  27. <seqwrite/>
  28. <ymdacnt/>
  29. <ymdaction/>
  30. <rmrk/>
  31. </grntlist1>
  32. </grnt>
  33. </main>
  34. <send>
  35. <paydedu>
  36. <instcd/>
  37. <kydate/>
  38. <kyseq/>
  39. <slipyn/>
  40. <emplno/>
  41. <emplnm/>
  42. <acntcd/>
  43. <cnt/>
  44. <amt1/>
  45. <custcode/>
  46. <bugtflag/>
  47. <deptcd/>
  48. <usedate/>
  49. <pumno/>
  50. <pumno1/>
  51. <pumno2/>
  52. </paydedu>
  53. <save>
  54. <grntlist1/>
  55. </save>
  56. </send>
  57. <custinfo>
  58. <custlist>
  59. <aactno/>
  60. <bankcd/>
  61. <depor/>
  62. <custnm/>
  63. </custlist>
  64. </custinfo>
  65. <bugtinfo>
  66. <bugtlist>
  67. <bugtamt/>
  68. <bugtexecamt/>
  69. <bugtjanamt/>
  70. </bugtlist>
  71. </bugtinfo>
  72. <init>
  73. <combo1>
  74. <deptcdcmb>
  75. <deptcd/>
  76. <deptnm/>
  77. </deptcdcmb>
  78. </combo1>
  79. <combo2>
  80. <acntcmb>
  81. <acntcd/>
  82. <acntnm/>
  83. </acntcmb>
  84. </combo2>
  85. <combo3>
  86. <acntcmb>
  87. <acntcd/>
  88. <acntnm/>
  89. </acntcmb>
  90. </combo3>
  91. </init>
  92. <popdata>
  93. <junpyodate/>
  94. <makedeptcd/>
  95. <yogudeptcd/>
  96. <pumgubun/>
  97. </popdata>
  98. <hidden>
  99. <item>
  100. <pumno/>
  101. </item>
  102. </hidden>
  103. </root>
  104. </instance>
  105. <script type="javascript" ev:event="xforms-ready">
  106. <![CDATA[
  107. initialize();
  108. ]]>
  109. </script>
  110. <submission id="TRRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo1"/>
  111. <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
  112. <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
  113. <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
  114. <submission id="TRRAD01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/bugtinfo"/>
  115. <submission id="TRRAD01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
  116. <submission id="TRRAD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  117. <submission id="TXRAD02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  118. </model>
  119. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  120. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  121. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  122. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  123. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  124. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  125. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  126. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  127. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  128. <script type="javascript">
  129. <![CDATA[
  130. function fOpenPopupDeptHelp(pControl, pInstance)
  131. {
  132. misfOpenPopUpList("02", pControl, "", pInstance);
  133. model.refresh();
  134. }
  135. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  136. {
  137. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  138. model.refresh();
  139. }
  140. function initialize(){
  141. var curdate = getCurrentDate();
  142. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  143. var deptcd = getUserInfo("dutplcecd");
  144. var deptnm = getUserInfo("dutplcenm");
  145. var emplno = getUserInfo("userid");
  146. var emplnm = getUserInfo("usernm");
  147. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  148. model.setValue("/root/send/paydedu/kydate", curdate);
  149. misfComboComCdListMulti("R0001","cmb_bankcd");
  150. //submit("TRRAD01501");
  151. submit("TRRAD01504");
  152. //addComboItem("combo1"," ","","above");
  153. //addComboItem("combo2"," ","","above");
  154. model.setFocus("input17");
  155. model.refresh();
  156. }
  157. function Popup(){
  158. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  159. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  160. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  161. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  162. model.setValue("/root/popdata/junpyodate", ymd);
  163. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  164. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  165. model.setValue("/root/popdata/pumgubun", "3");
  166. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  167. }
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body>
  173. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  174. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">구매지출결의(건별)</caption>
  175. </group>
  176. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  177. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  178. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. model.removeNodeset("/root/main/grnt/grntlist1");
  183. submit("TRRAD02301");
  184. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
  185. submit("TRRAD01701");
  186. //addComboItem("combo1"," ","","above");
  187. //addComboItem("combo2"," ","","above");
  188. if (model.getValue("/root/main/grnt/grntlist1/kydate") != ""){
  189. group3.disabled = false;
  190. btn_save.disabled = false;
  191. }
  192. model.refresh();
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  197. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:88px; top:17px; width:125px; height:19px; ">
  198. <choices>
  199. <itemset>
  200. <label/>
  201. <value/>
  202. </itemset>
  203. </choices>
  204. </select1>
  205. <caption id="caption2" class="search_name" style="left:22px; top:18px; width:61px; height:17px; ">기관 :</caption>
  206. <group id="group3" disabled="true" style="left:0px; top:46px; width:1190px; height:292px; ">
  207. <input id="ipt_unsldd" ref="/root/main/grnt/grntlist1/ibgoymd" class="input_s_essential" editable="false" inputtype="date" style="left:140px; top:10px; width:120px; height:19px; text-align:center; "/>
  208. <caption id="caption4" class="search_name" style="left:45px; top:55px; width:86px; height:17px; ">계정과목 :</caption>
  209. <caption id="caption5" class="search_name" style="left:45px; top:10px; width:86px; height:17px; ">입고일자 :</caption>
  210. <input id="input15" ref="/root/main/grnt/grntlist1/ibgoseq" disabled="true" editable="false" style="left:270px; top:10px; width:55px; height:19px; text-align:center; "/>
  211. <caption id="caption1" class="search_name" style="left:360px; top:10px; width:66px; height:17px; ">금액 :</caption>
  212. <input id="input1" ref="/root/main/grnt/grntlist1/keumak" editable="false" format="(-)#,###" style="left:425px; top:10px; width:100px; height:19px; text-align:right; "/>
  213. <select1 id="ipt_acntcd" ref="/root/main/grnt/grntlist1/acctid" navindex="3" appearance="minimal" style="left:140px; top:55px; width:160px; height:19px; ">
  214. <choices>
  215. <itemset nodeset="/root/init/combo3/acntcmb">
  216. <label ref="acntnm"/>
  217. <value ref="acntcd"/>
  218. </itemset>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. //model.setValue("/root/send/paydedu/cdbojo1give", "");
  223. //submit("TRRAD01701");
  224. ]]>
  225. </script>
  226. </select1>
  227. <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:305px; top:58px; width:16px; height:16px; ">
  228. <caption/>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. model.removeNodeset("/root/hidden/projectidlist");
  232. fOpenPopupHelp("05", ipt_acntcd, "acctid,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  233. //model.setValue("/root/send/paydedu/cdbojo1give", "");
  234. //submit("TRRAD01701");
  235. ]]>
  236. </script>
  237. </button>
  238. <caption id="caption3" class="search_name" style="left:345px; top:55px; width:99px; height:17px; ">거래처코드 :</caption>
  239. <input id="ipt_custnm" ref="/root/main/grnt/grntlist1/custnm" class="input_essential" editable="false" imemode="hangul" style="left:530px; top:55px; width:355px; height:19px; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. var custflag = model.getValue("/root/main/unsl_one/custflag");
  243. switch (custflag) {
  244. case "1": //거래처
  245. fValidationCheck("14", "custcd,custnm", "", "", "", "", "name");
  246. model.setValue("/root/hidden/seizureyn", radfseizureynCheck(getUserInfo("dutplceinstcd"), model.getValue("/root/main/unsl_one/custcd"), "Y"));
  247. break;
  248. // case "2": //은행
  249. // fValidationCheck("03", "custcd,custnm", "R0001", "");
  250. // break;
  251. case "3": //부서
  252. fValidationCheck("02", "custcd,custnm", "", "");
  253. break;
  254. case "4": //교직원
  255. // fValidationCheck("01-2", "custcd,custnm", "", "");
  256. model.setValue("/root/hidden/tempnode/emplnm", model.getValue("/root/main/unsl_one/custnm"));
  257. ipt_emplnm.dispatch("xforms-value-changed");
  258. break;
  259. case "5": //개인
  260. fValidationCheck("31", "custcd,custnm", "", "ipt_amt", "", "", "name");
  261. break;
  262. default :
  263. return;
  264. }
  265. ]]>
  266. </script>
  267. <script type="javascript" ev:event="onkeypress">
  268. <![CDATA[
  269. if (event.keyCode == "13") {
  270. model.setFocus("ipt_amt");
  271. }
  272. ]]>
  273. </script>
  274. </input>
  275. <input id="ipt_custcd" ref="/root/main/grnt/grntlist1/custcode" class="input_essential" navindex="-1" editable="false" style="left:450px; top:55px; width:56px; height:19px; ">
  276. <script type="javascript" ev:event="xforms-value-changed">
  277. <![CDATA[
  278. if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
  279. if (submit("TRRAD01502")){
  280. model.setValue("/root/main/grnt/grntlist1/custnm", model.getValue("/root/custinfo/custlist/custnm"));
  281. model.refresh();
  282. }
  283. }else{
  284. model.setValue("/root/send/paydedu/custnm", "");
  285. }
  286. ]]>
  287. </script>
  288. </input>
  289. <button id="btn_custcd" class="icon_search" disabled="true" navindex="-1" style="left:510px; top:57px; width:16px; height:16px; ">
  290. <caption/>
  291. <script type="javascript" ev:event="DOMActivate">
  292. <![CDATA[
  293. fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
  294. btn_search.dispatch("DOMActivate");
  295. ]]>
  296. </script>
  297. </button>
  298. <caption id="caption7" class="search_name" style="left:45px; top:85px; width:86px; height:17px; ">은행코드 :</caption>
  299. <select1 id="cmb_bankcd" ref="/root/main/grnt/grntlist1/custbankno" navindex="4" appearance="minimal" style="left:140px; top:85px; width:160px; height:19px; ">
  300. <choices>
  301. <itemset>
  302. <label/>
  303. <value/>
  304. </itemset>
  305. </choices>
  306. </select1>
  307. <caption id="caption8" class="search_name" style="left:45px; top:115px; width:86px; height:17px; ">상대계정 :</caption>
  308. <button id="button1" class="icon_search" navindex="-1" style="left:305px; top:118px; width:16px; height:16px; ">
  309. <caption/>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. model.removeNodeset("/root/hidden/projectidlist");
  313. fOpenPopupHelp("05", ipt_acntcd, "cdacnt,acntnm", "", "ipt_slipyn,cmb_instcd", "slipyn,instcd");
  314. //fAcntSelect();
  315. //fCheckServAcnt();
  316. model.setValue("/root/main/grnt/grntlist1/cdbojo1", "");
  317. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
  318. submit("TRRAD01701");
  319. //addComboItem("combo2","","","above");
  320. model.refresh();
  321. //ipt_amt.dispatch("xforms-value-changed");
  322. ]]>
  323. </script>
  324. </button>
  325. <select1 id="combo1" ref="/root/main/grnt/grntlist1/cdacnt" navindex="7" appearance="minimal" editmode="inputsearch" style="left:140px; top:115px; width:160px; height:19px; ">
  326. <choices>
  327. <itemset nodeset="/root/init/combo3/acntcmb">
  328. <label ref="acntnm"/>
  329. <value ref="acntcd"/>
  330. </itemset>
  331. </choices>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. model.setValue("/root/main/grnt/grntlist1/cdbojo1", "");
  335. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist1/cdacnt"));
  336. submit("TRRAD01701");
  337. //addComboItem("combo2","","","above");
  338. model.refresh();
  339. ]]>
  340. </script>
  341. </select1>
  342. <input id="ipt_slipyn" ref="/root/send/paydedu/slipyn" navindex="-1" visibility="hidden" style="left:1055px; top:70px; width:35px; height:19px; "/>
  343. <select1 id="combo2" ref="/root/main/grnt/grntlist1/cdbojo1" navindex="8" appearance="minimal" editmode="inputsearch" style="left:450px; top:115px; width:220px; height:19px; ">
  344. <choices>
  345. <itemset nodeset="/root/init/combo4/acntcmb">
  346. <label ref="bojonm"/>
  347. <value ref="bojocd"/>
  348. </itemset>
  349. </choices>
  350. </select1>
  351. <caption id="caption9" class="search_name" style="left:345px; top:115px; width:99px; height:17px; ">보조 과목 :</caption>
  352. <caption id="caption10" class="search_name" style="left:345px; top:85px; width:99px; height:17px; ">계좌 번호 :</caption>
  353. <input id="input2" ref="/root/main/grnt/grntlist1/kyejwano" navindex="5" style="left:450px; top:85px; width:220px; height:19px; "/>
  354. <caption id="caption11" class="search_name" style="left:720px; top:85px; width:79px; height:17px; ">예금주 :</caption>
  355. <input id="input3" ref="/root/main/grnt/grntlist1/yekeumju" navindex="6" style="left:800px; top:85px; width:220px; height:19px; "/>
  356. <caption id="caption12" class="search_name" style="left:45px; top:145px; width:91px; height:17px; ">작 성 일 :</caption>
  357. <input id="input4" ref="/root/main/grnt/grntlist1/ymdwrite" class="input_s_essential" navindex="9" inputtype="date" style="left:140px; top:145px; width:120px; height:19px; text-align:center; "/>
  358. <input id="input5" ref="/root/main/grnt/grntlist1/seqwrite" disabled="true" editable="false" style="left:270px; top:145px; width:55px; height:19px; text-align:center; "/>
  359. <caption id="caption13" class="search_name" style="left:345px; top:145px; width:99px; height:17px; ">지 급 일 :</caption>
  360. <input id="input6" ref="/root/main/grnt/grntlist1/ymdacnt" class="input_s_essential" navindex="10" inputtype="date" style="left:450px; top:145px; width:120px; height:19px; text-align:center; "/>
  361. <caption id="caption14" class="search_name" style="left:720px; top:145px; width:99px; height:17px; ">세금계산서 :</caption>
  362. <input id="input7" ref="/root/main/grnt/grntlist1/ymdaction" class="input_s_essential" navindex="11" inputtype="date" style="left:825px; top:145px; width:120px; height:19px; text-align:center; "/>
  363. <caption id="caption15" class="search_name" style="left:45px; top:175px; width:91px; height:17px; ">적 요 :</caption>
  364. <input id="input8" ref="/root/main/grnt/grntlist1/rmrk" navindex="12" style="left:140px; top:175px; width:880px; height:19px; "/>
  365. </group>
  366. <caption id="caption24" class="search_name" style="left:245px; top:18px; width:86px; height:17px; ">계약일자 :</caption>
  367. <input id="input17" ref="/root/send/paydedu/kydate" class="input_s_essential" navindex="1" inputtype="date" style="left:335px; top:17px; width:120px; height:19px; text-align:center; ">
  368. <script type="javascript" ev:event="xforms-value-changed">
  369. <![CDATA[
  370. if (model.getValue("/root/send/paydedu/kydate") != "" && model.getValue("") != "/root/send/paydedu/kyseq"){
  371. btn_search.dispatch("DOMActivate");
  372. }
  373. ]]>
  374. </script>
  375. </input>
  376. <caption id="caption25" class="search_name" style="left:495px; top:18px; width:86px; height:17px; ">계약번호 :</caption>
  377. <input id="input18" ref="/root/send/paydedu/kyseq" navindex="2" format="99999" style="left:585px; top:17px; width:75px; height:19px; text-align:center; ">
  378. <script type="javascript" ev:event="xforms-value-changed">
  379. <![CDATA[
  380. if (model.getValue("/root/send/paydedu/kydate") != "" && model.getValue("") != "/root/send/paydedu/kyseq"){
  381. btn_search.dispatch("DOMActivate");
  382. }
  383. ]]>
  384. </script>
  385. </input>
  386. </group>
  387. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  388. <button id="btn_save" class="btn4_letter2" disabled="true" style="left:1139px; top:3; width:56px; height:22px; ">
  389. <caption>저장</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. if (model.getValue("/root/main/grnt/grntlist1/ymdwrite") == ""){
  393. messageBox("작성일은 필수 입력항목입니다.", "E999", "");
  394. return;
  395. }
  396. if (model.getValue("/root/main/grnt/grntlist1/ymdacnt") == ""){
  397. messageBox("지급일은 필수 선택항목입니다.", "E999", "");
  398. return;
  399. }
  400. if (model.getValue("/root/main/grnt/grntlist1/acctid") == ""){
  401. messageBox("계정과목은 필수 선택항목입니다.", "E999", "");
  402. return;
  403. }
  404. model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
  405. //model.copyNode("/root/send/save/grntlist2", "/root/main/grnt/grntlist2");
  406. if (submit("TXRAD02301")){
  407. btn_search.dispatch("DOMActivate");
  408. }
  409. ]]>
  410. </script>
  411. </button>
  412. <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  413. <caption>초기화</caption>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. model.resetInstanceNode("/root/main/grnt/grntlist1");
  417. group3.disabled = true;
  418. btn_save.disabled = true;
  419. initialize();
  420. ]]>
  421. </script>
  422. </button>
  423. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  424. </group>
  425. </xhtml:body>
  426. </xhtml:html>