SMRAD01600_품의내역일괄기표.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. <grntlist2>
  12. <pumno/>
  13. <cdacntcd/>
  14. <naeyong/>
  15. <bankman/>
  16. <usedate/>
  17. <flag/>
  18. <bankcode/>
  19. <bankno/>
  20. <pumamt/>
  21. <taxbillkind/>
  22. <amt/>
  23. <ymdwrite/>
  24. <newgb/>
  25. </grntlist2>
  26. <grntlist3/>
  27. </grnt>
  28. </main>
  29. <send>
  30. <paydedu>
  31. <instcd/>
  32. <emplno/>
  33. <emplnm/>
  34. <acntcd/>
  35. <cnt/>
  36. <amt1/>
  37. <entrregno/>
  38. <bugtflag/>
  39. <pumgubun/>
  40. <deptcd/>
  41. <usedate/>
  42. <pumno/>
  43. <pumno1/>
  44. <pumno2/>
  45. <hyubdate/>
  46. <ymdwrite/>
  47. <newgb/>
  48. <kyno/>
  49. </paydedu>
  50. <save>
  51. <grntlist1/>
  52. </save>
  53. </send>
  54. <custinfo>
  55. <custlist>
  56. <aactno/>
  57. <bankcd/>
  58. <depor/>
  59. <custnm/>
  60. </custlist>
  61. </custinfo>
  62. <bugtinfo>
  63. <bugtlist>
  64. <bugtamt/>
  65. <bugtexecamt/>
  66. <bugtjanamt/>
  67. </bugtlist>
  68. </bugtinfo>
  69. <init>
  70. <combo1>
  71. <deptcdcmb>
  72. <deptcd/>
  73. <deptnm/>
  74. </deptcdcmb>
  75. </combo1>
  76. <combo2>
  77. <acntcmb>
  78. <acntcd/>
  79. <acntnm/>
  80. </acntcmb>
  81. </combo2>
  82. <combo3>
  83. <acntcmb>
  84. <acntcd/>
  85. <acntnm/>
  86. </acntcmb>
  87. </combo3>
  88. </init>
  89. <popdata>
  90. <junpyodate/>
  91. <makedeptcd/>
  92. <yogudeptcd/>
  93. <pumgubun/>
  94. </popdata>
  95. <hidden>
  96. <item>
  97. <pumno/>
  98. </item>
  99. </hidden>
  100. </root>
  101. </instance>
  102. <script type="javascript" ev:event="xforms-ready">
  103. <![CDATA[
  104. initialize();
  105. ]]>
  106. </script>
  107. <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
  108. <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
  109. <submission id="TRRAD01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  110. <submission id="TXRAD01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  111. <submission id="TXRAD01602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/hidden"/>
  112. </model>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  117. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  118. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  119. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  120. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  121. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  122. <script type="javascript">
  123. <![CDATA[
  124. function fOpenPopupDeptHelp(pControl, pInstance)
  125. {
  126. misfOpenPopUpList("02", pControl, "", pInstance);
  127. model.refresh();
  128. }
  129. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  130. {
  131. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  132. model.refresh();
  133. }
  134. function initialize(){
  135. misfGridInit(grd_grntpsn1);
  136. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD01601" ,"Y");
  137. var curdate = getCurrentDate();
  138. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  139. var deptcd = getUserInfo("dutplcecd");
  140. var deptnm = getUserInfo("dutplcenm");
  141. //var emplno = getUserInfo("userid");
  142. //var emplnm = getUserInfo("usernm");
  143. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  144. model.setValue("/root/send/paydedu/hyubdate", curdate);
  145. model.setValue("/root/send/paydedu/ymdwrite", curdate);
  146. model.setValue("/root/send/paydedu/acntcd", "21130000");
  147. model.setValue("/root/send/paydedu/pumgubun", "3");
  148. model.setValue("/root/send/paydedu/bugtflag", "2");
  149. //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcd");
  150. misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
  151. submit("TRRAD01503");
  152. submit("TRRAD01504");
  153. model.refresh();
  154. }
  155. function Popup(){
  156. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  157. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  158. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  159. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  160. model.setValue("/root/popdata/junpyodate", ymd);
  161. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  162. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  163. model.setValue("/root/popdata/pumgubun", "3");
  164. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  165. }
  166. }
  167. ]]>
  168. </script>
  169. </xhtml:head>
  170. <xhtml:body>
  171. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  172. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">품의내역일괄기표</caption>
  173. </group>
  174. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  175. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  176. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1128px; top:16px; width:56px; height:22px; ">
  177. <caption>조회</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. misfMsterDetailRetrieve();
  181. ]]>
  182. </script>
  183. </button>
  184. <line id="line13" class="line_4" visibility="hidden" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  185. <line id="line1" class="line_1" style="x1:0px; y1:66px; x2:1192px; y2:66px; "/>
  186. <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; ">
  187. <choices>
  188. <itemset>
  189. <label/>
  190. <value/>
  191. </itemset>
  192. </choices>
  193. </select1>
  194. <caption id="caption2" class="search_name" style="left:22px; top:18px; width:61px; height:17px; ">기관 :</caption>
  195. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="품의번호^품의계정^적요^예금주^사용일^전표^은행^계좌번호^총금액^발생구분^발생금액^caption1^caption2" colsep="^" colwidth="89, 128, 236, 100, 104, 36, 87, 104, 89, 88, 94, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:72px; width:1192px; height:670px; ">
  196. <col ref="pumno" style="text-align:center; "/>
  197. <col disabled="true" editmode="inputsearch" ref="cdacntcd" type="combo">
  198. <choices>
  199. <itemset nodeset="/root/init/combo2/acntcmb">
  200. <label ref="acntnm"/>
  201. <value ref="acntcd"/>
  202. </itemset>
  203. </choices>
  204. </col>
  205. <col ref="naeyong" type="input"/>
  206. <col ref="bankman" type="input"/>
  207. <col ref="usedate" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  208. <col checkvalue="Y,N" ref="flag" type="checkbox"/>
  209. <col editmode="search" ref="bankcode" type="combo">
  210. <col ref="timsamtflag" type="combo">
  211. <choices>
  212. <itemset>
  213. <label/>
  214. <value/>
  215. </itemset>
  216. </choices>
  217. </col>
  218. </col>
  219. <col ref="bankno" type="input"/>
  220. <col ref="pumamt" format="(-)#,###" style="text-align:right; "/>
  221. <col ref="taxbillkind" type="combo">
  222. <choices>
  223. <item>
  224. <label>세금계산서</label>
  225. <value>4</value>
  226. </item>
  227. <item>
  228. <label>계산서</label>
  229. <value>5</value>
  230. </item>
  231. <item>
  232. <label>신용카드</label>
  233. <value>6</value>
  234. </item>
  235. <item>
  236. <label>기타</label>
  237. <value>7</value>
  238. </item>
  239. </choices>
  240. </col>
  241. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  242. <col ref="ymdwrite" visibility="hidden"/>
  243. <col ref="newgb" visibility="hidden"/>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. ]]>
  247. </script>
  248. <script type="javascript" ev:event="onaftersort">
  249. <![CDATA[
  250. grd_grntpsn1.gridToInstance();
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <input id="ipt_unsldd" ref="/root/send/paydedu/hyubdate" class="input_s_essential" navindex="1" inputtype="date" style="left:330px; top:17px; width:120px; height:19px; text-align:center; ">
  255. <script type="javascript" ev:event="xforms-value-changed">
  256. <![CDATA[
  257. /*
  258. for (var i = 1; i < grd_grntpsn1.rows;i++){
  259. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  260. }
  261. model.refresh();
  262. */
  263. ]]>
  264. </script>
  265. </input>
  266. <caption id="caption5" class="search_name" style="left:235px; top:18px; width:86px; height:17px; ">협의일자 :</caption>
  267. <input id="input17" ref="/root/send/paydedu/ymdwrite" class="input_s_essential" navindex="1" inputtype="date" style="left:570px; top:17px; width:120px; height:19px; text-align:center; ">
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. /*
  271. for (var i = 1; i < grd_grntpsn1.rows;i++){
  272. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  273. }
  274. model.refresh();
  275. */
  276. ]]>
  277. </script>
  278. </input>
  279. <caption id="caption24" class="search_name" style="left:475px; top:18px; width:86px; height:17px; ">작성일자 :</caption>
  280. <caption id="caption25" class="search_name" style="left:710px; top:18px; width:86px; height:17px; ">상대계정 :</caption>
  281. <select1 id="combo2" ref="/root/send/paydedu/acntcd" appearance="minimal" style="left:800px; top:17px; width:150px; height:19px; ">
  282. <choices>
  283. <itemset nodeset="/root/init/combo3/acntcmb">
  284. <label ref="acntnm"/>
  285. <value ref="acntcd"/>
  286. </itemset>
  287. </choices>
  288. </select1>
  289. <caption id="caption1" class="tit_2" style="left:5px; top:51px; width:131px; height:14px; ">품의기표내역</caption>
  290. <select1 id="radio1" ref="/root/send/paydedu/newgb" overflow="visible" appearance="full" cols="2" style="left:965px; top:18px; width:125px; height:20px; border-style:none; ">
  291. <choices>
  292. <item>
  293. <label>신규</label>
  294. <value>I</value>
  295. </item>
  296. <item>
  297. <label>수정</label>
  298. <value>U</value>
  299. </item>
  300. </choices>
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. if (model.getValue("/root/send/paydedu/newgb") == "I"){
  304. var ymd = model.getValue("/root/send/paydedu/hyubdate");
  305. var ymd1 = model.getValue("/root/send/paydedu/ymdwrite");
  306. var acntcd = model.getValue("/root/send/paydedu/acntcd");
  307. if (ymd == ""){
  308. messageBox("협의일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  309. return;
  310. }
  311. if (ymd1 == ""){
  312. messageBox("작성일자를 입력한 후 처리하시기 바랍니다.", "E999", "");
  313. return;
  314. }
  315. if (acntcd == ""){
  316. messageBox("상대계정을 선택한 후 처리하시기 바랍니다.", "E999", "");
  317. return;
  318. }
  319. if (submit("TXRAD01602")){
  320. btn_search.dispatch("DOMActivate");
  321. }
  322. }else{
  323. btn_search.dispatch("DOMActivate");
  324. }
  325. ]]>
  326. </script>
  327. </select1>
  328. <input id="input1" ref="/root/send/paydedu/kyno" style="left:800px; top:46px; width:150px; height:19px; ">
  329. <script type="javascript" ev:event="xforms-value-changed">
  330. <![CDATA[
  331. var kyno = model.getValue("/root/send/paydedu/kyno");
  332. var irow = grd_grntpsn1.findRow(kyno, 1, grd_grntpsn1.colRef("pumno"), false, false);
  333. if (irow > 0){
  334. if (model.getValue("/root/send/paydedu/newgb") == "I"){
  335. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flag", "Y");
  336. grd_grntpsn1.rowStatus(irow) = 2;
  337. grd_grntpsn1.row = irow;
  338. grd_grntpsn1.topRow = irow;
  339. }else{
  340. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/flag", "N");
  341. grd_grntpsn1.rowStatus(irow) = 2;
  342. grd_grntpsn1.row = irow;
  343. grd_grntpsn1.topRow = irow;
  344. }
  345. }
  346. model.setFocus("input1");
  347. model.refresh();
  348. ]]>
  349. </script>
  350. <script type="javascript" ev:event="onkeyup">
  351. <![CDATA[
  352. inputEnterKey("input1", "xforms-value-changed");
  353. ]]>
  354. </script>
  355. </input>
  356. </group>
  357. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  358. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  359. <caption>저장</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. if (misfSave("TXRAD01601")){
  363. btn_search.dispatch("DOMActivate");
  364. }
  365. ]]>
  366. </script>
  367. </button>
  368. <button id="button35" class="btn4_letter3" visibility="hidden" style="left:1069px; top:3; width:68px; height:22px; ">
  369. <caption>초기화</caption>
  370. <script type="javascript" ev:event="DOMActivate">
  371. <![CDATA[
  372. model.resetInstanceNode("/root/main/grnt/grntlist1");
  373. group3.disabled = false;
  374. grd_grntpsn1.disabled = false;
  375. ipt_unsldd.disabled = false;
  376. ipt_costcntrdeptcd.disabled = false;
  377. combo1.disabled = false;
  378. input4.disabled = false;
  379. input14.disabled = true;
  380. input15.disabled = true;
  381. input10.disabled = true;
  382. model.setValue("/root/send/paydedu/pumno1", "");
  383. model.setValue("/root/send/paydedu/pumno2", "");
  384. initialize();
  385. ]]>
  386. </script>
  387. </button>
  388. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  389. <button id="button3" class="btn2_letter3" visibility="hidden" style="left:1010px; top:5px; width:53px; height:19px; ">
  390. <caption>출력</caption>
  391. <script type="javascript" ev:event="DOMActivate">
  392. <![CDATA[
  393. if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
  394. exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
  395. }
  396. ]]>
  397. </script>
  398. </button>
  399. </group>
  400. </xhtml:body>
  401. </xhtml:html>