SMRSI02700_(구매팀)입고금액 결재처리.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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. <rsihdpaplist/>
  11. <rsihdpapwinlist/>
  12. <rsihdpaplist1/>
  13. <rsihdpapwinlist1/>
  14. </main>
  15. <send>
  16. <instcd/>
  17. <goodflag/>
  18. <fromdd/>
  19. <todd/>
  20. <sanctyn/>
  21. <windd/>
  22. <winno/>
  23. <suplplcecd/>
  24. <goodflag_det/>
  25. <winpsn/>
  26. <winpsnnm/>
  27. <subsuplplcenm/>
  28. <subsuplplcecd/>
  29. </send>
  30. <init>
  31. <sanctyn>
  32. <label>전체</label>
  33. <value/>
  34. <label>결재</label>
  35. <value>Y</value>
  36. <label>미결재</label>
  37. <value>N</value>
  38. </sanctyn>
  39. </init>
  40. <temp/>
  41. </root>
  42. </instance>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  47. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. fInitialize();
  52. ]]>
  53. </script>
  54. <script type="javascript">
  55. <![CDATA[
  56. function fInitialize()
  57. {
  58. misfGridInit(grd_rsihdpaplist);
  59. misfGridInit(grd_rsihdpaplist1);
  60. // 사용자별 청구 기관 List
  61. //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
  62. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  63. // 사용자별 물품 구분
  64. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  65. addComboItem( "cmb_goodflag", "전체", "", "above");
  66. // misfComboComCdListMulti("Z0007,R0025,R0025,R0109","cmb_instcd,cmb_goodflag,grd_rsihdpaplist.goodflag,grd_rsihdpaplist.calcdocukind");
  67. misfComboComCdListMulti("R0109","grd_rsihdpaplist.calcdocukind");
  68. misfComboComCdListMulti("R0109","grd_rsihdpaplist1.calcdocukind");
  69. misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist, "goodflag"); // 물품구분
  70. misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist1, "goodflag"); // 물품구분
  71. cmb_instcd.value = getUserInfo("dutplceinstcd");
  72. cmb_goodflag.select(0);
  73. //오늘날짜부터 3개월전 까지 세팅
  74. // var reqdate = getCurrentDate().toDate("YYYYMMDD");
  75. // model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
  76. // model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  77. //이번달 1일 과 마지막일을 셋팅하는 부분
  78. var curdate = getCurrentDate();
  79. var cvtdate = curdate.toDate("YYYYMMDD");
  80. model.setValue(ipt_fromdd.attribute("ref") , curdate.substr(0,6)+"01" );
  81. model.setValue(ipt_todd.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay());
  82. misfMsterDetailSet(grd_rsihdpaplist, null, "TRRSI02701", "Y");
  83. misfMsterDetailSet(grd_rsihdpaplist1, null, "TRRSI02708", "Y");
  84. misfMsterDetailSet(grd_rsihdpapwinlist, null, "TRRSI02702", "N");
  85. misfMsterDetailSet(grd_rsihdpapwinlist1, null, "TRRSI02709", "N");
  86. model.refresh();
  87. }
  88. ]]>
  89. </script>
  90. <submission id="TRRSI02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist"/>
  91. <submission id="TRRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist"/>
  92. <submission id="TRRSI02708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist1"/>
  93. <submission id="TRRSI02709" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist1"/>
  94. <submission id="TXRSI02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsihdpaplist" resultref="/root/temp"/>
  95. <submission id="TXRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  96. <submission id="TXRSI02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  97. </model>
  98. </xhtml:head>
  99. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  100. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  101. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:131px; height:14px; ">(구매팀)입고금액 결재처리</caption>
  102. </group>
  103. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:732px; ">
  104. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:60px; vertical-align:top; ">
  105. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  106. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
  107. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:8px; width:221px; height:19px; text-align:center; ">
  108. <choices>
  109. <itemset>
  110. <label/>
  111. <value/>
  112. </itemset>
  113. </choices>
  114. </select1>
  115. <caption id="cap_goodflag" class="search_name" style="left:405px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  116. <line id="line30" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:53px; "/>
  117. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
  118. <caption>조회</caption>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. if(!isRequiredControls("cmb_instcd"))return;
  122. if(!isRequiredControls("ipt_fromdd"))return;
  123. if(!isRequiredControls("ipt_todd"))return;
  124. submit("TRRSI02701");
  125. submit("TRRSI02708");
  126. grd_rsihdpaplist.dispatch("onrowchanged");
  127. grd_rsihdpaplist1.dispatch("onrowchanged");
  128. ]]>
  129. </script>
  130. </button>
  131. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" appearance="minimal" style="left:495px; top:8px; width:141px; height:19px; text-align:center; ">
  132. <choices>
  133. <itemset>
  134. <label/>
  135. <value/>
  136. </itemset>
  137. </choices>
  138. </select1>
  139. <caption id="cap_fromdd" class="search_name" style="left:15px; top:36px; width:89px; height:17px; ">구매일자 :</caption>
  140. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:225px; top:34px; width:100px; height:19px; text-align:center; ">
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. btn_search.dispatch("DOMActivate");
  144. ]]>
  145. </script>
  146. </input>
  147. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:34px; width:100px; height:19px; text-align:center; ">
  148. <script type="javascript" ev:event="xforms-value-changed">
  149. <![CDATA[
  150. btn_search.dispatch("DOMActivate");
  151. ]]>
  152. </script>
  153. </input>
  154. <caption id="caption23" style="left:209px; top:33px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  155. <caption id="cap_sanctyn" class="search_name" style="left:405px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
  156. <select1 id="cmb_sanctyn" ref="/root/send/sanctyn" class="combo_search" appearance="minimal" style="left:495px; top:34px; width:141px; height:19px; text-align:center; ">
  157. <choices>
  158. <itemset nodeset="/root/init/sanctyn">
  159. <label ref="label"/>
  160. <value ref="value"/>
  161. </itemset>
  162. </choices>
  163. </select1>
  164. <caption id="cap_winpsn" class="search_name" style="left:700px; top:10px; width:86px; height:17px; ">입고자 :</caption>
  165. <button id="btn_winpsn" class="icon_search" style="left:880px; top:10px; width:16px; height:16px; ">
  166. <caption/>
  167. <script type="javascript" ev:event="DOMActivate">
  168. <![CDATA[
  169. var mainObj = getMainViewer();
  170. var scrnID = mainObj.javascript.getScreenID();
  171. misfOpenPopUpList("01", ipt_winpsn, "", scrnID, "winpsn,winpsnnm,scrnID", model.getValue(cmb_instcd.attribute("ref")), "instcd") ;
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </button>
  176. <input id="ipt_winpsn" ref="/root/send/winpsn" class="input_search" style="left:779px; top:10px; width:97px; height:19px; text-align:center; ">
  177. <script type="javascript" ev:event="xfroms-value-changed">
  178. <![CDATA[
  179. if(ipt_winpsn.value.length == 0)
  180. {
  181. ipt_winpsnnm.value = "";
  182. }else{
  183. misfValidationCheck("01-1", "", "winpsn,winpsnnm");
  184. }
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </input>
  189. <input id="ipt_winpsnnm" ref="/root/send/winpsnnm" class="input_search" appearance="output" style="left:900px; top:10px; width:125px; height:19px; text-align:center; ">
  190. <script type="javascript" ev:event="xforms-value-changed">
  191. <![CDATA[
  192. if(ipt_winpsnnm.value.length == 0)
  193. {
  194. ipt_winpsn.value = "";
  195. }else {
  196. misfValidationCheck("01-2", "", "winpsn,winpsnnm");
  197. }
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </input>
  202. <caption id="caption2" class="search_name" style="left:700px; top:35px; width:86px; height:17px; ">거래처 :</caption>
  203. <input id="ipt_subsuplplcecd" ref="/root/send/subsuplplcecd" class="input_search" style="left:779px; top:34px; width:97px; height:19px; ">
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. if(ipt_subsuplplcecd.value != ""){
  207. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  208. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_subsuplplcecd.attribute("ref"))
  209. ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
  210. }else{
  211. ipt_subsuplplcenm.value = "";
  212. }
  213. model.refresh();
  214. ]]>
  215. </script>
  216. </input>
  217. <button id="btn_subsuplplcecd" class="icon_search" style="left:880px; top:36px; width:16px; height:16px; ">
  218. <caption/>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. rszfOpenPopUpListByWndName(ipt_subsuplplcecd,"","subsuplplcecd,subsuplplcenm","SPRSD00220","instcd","cmb_instcd", "Y");
  222. model.refresh();
  223. ]]>
  224. </script>
  225. </button>
  226. <input id="ipt_subsuplplcenm" ref="/root/send/subsuplplcenm" class="input_search" style="left:900px; top:34px; width:125px; height:19px; ">
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. if(ipt_subsuplplcenm.value != ""){
  230. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  231. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_subsuplplcenm.attribute("ref"))
  232. ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
  233. }else{
  234. ipt_subsuplplcecd.value = "";
  235. }
  236. model.refresh();
  237. ]]>
  238. </script>
  239. </input>
  240. </group>
  241. <button id="button3" class="btn_sw" group="tab" style="left:125px; top:91px; width:144px; height:22px; ">
  242. <caption>지불필내역</caption>
  243. <toggle case="case2" ev:event="DOMActivate"/>
  244. </button>
  245. <button id="button6" class="btn_sw" group="tab" selected="true" style="left:0px; top:91px; width:125px; height:22px; ">
  246. <caption>결재내역</caption>
  247. <toggle case="case1" ev:event="DOMActivate"/>
  248. </button>
  249. <case id="case1" selected="true" style="left:0px; top:0px; width:640px; height:280px; "/>
  250. <switch id="switch1" style="left:0px; top:115px; width:1190px; height:590px; ">
  251. <case id="case1" selected="true">
  252. <button id="btn_excel" class="btn5_letter3" style="left:955px; top:5px; width:53px; height:19px; ">
  253. <caption>Excel</caption>
  254. <script type="javascript" ev:event="DOMActivate">
  255. <![CDATA[
  256. var fileName = window.fileDialog("save", ",", false, "결재내역List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  257. if (fileName != "")
  258. {
  259. grd_rsihdpaplist.saveExcel(fileName, "결재내역List",true,true, "");
  260. }
  261. ]]>
  262. </script>
  263. </button>
  264. <datagrid id="grd_rsihdpaplist" nodeset="/root/main/rsihdpaplist" caption="물품구분명^거래처 코드^거래처명^입고일자^입고번호^계산서유형^계산일자^건수^금액^입금은행^은행계좌^결재^결재일자^결재자^전표일자^전표번호" colsep="^" colwidth="82, 73, 81, 80, 60, 88, 73, 46, 77, 75, 97, 41, 76, 72, 68, 74, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:33px; width:1180px; height:280px; ">
  265. <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
  266. <choices>
  267. <itemset>
  268. <label/>
  269. <value/>
  270. </itemset>
  271. </choices>
  272. </col>
  273. <col ref="suplplcecd"/>
  274. <col ref="custnm"/>
  275. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  276. <col ref="winno" style="text-align:right; "/>
  277. <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
  278. <choices>
  279. <itemset>
  280. <label/>
  281. <value/>
  282. </itemset>
  283. </choices>
  284. </col>
  285. <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
  286. <col ref="wincnt" format="#,###" style="text-align:right; "/>
  287. <col ref="winamt" format="#,###" style="text-align:right; "/>
  288. <col ref="banknm" style="text-align:center; "/>
  289. <col ref="aactno" style="text-align:center; "/>
  290. <col checkvalue="Y,N" ref="sanctyn" type="checkbox"/>
  291. <col ref="sanctdd" format="yyyy-mm-dd" style="text-align:center; "/>
  292. <col ref="sanctpsnnm" style="text-align:center; "/>
  293. <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
  294. <col ref="slipno" style="text-align:right; "/>
  295. <col ref="sanctpsn" visibility="hidden"/>
  296. <col ref="instcd" visibility="hidden"/>
  297. <col ref="wintaxamt" visibility="hidden"/>
  298. <col ref="winsupamt" visibility="hidden"/>
  299. <col ref="acntcd" visibility="hidden"/>
  300. <col ref="paycondt" visibility="hidden"/>
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. if(grd_rsihdpaplist.col == grd_rsihdpaplist.colRef("sanctyn"))
  304. {
  305. if(grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctyn")) == 'Y' )
  306. {
  307. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsn")) = getUserInfo("userid");
  308. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsnnm")) = getUserInfo("usernm");
  309. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctdd")) = getCurrentDate();
  310. }else
  311. {
  312. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsn")) = '';
  313. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctpsnnm")) = '';
  314. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("sanctdd")) = '';
  315. }
  316. }
  317. ]]>
  318. </script>
  319. <script type="javascript" ev:event="onrowchanged">
  320. <![CDATA[
  321. model.setValue("/root/send/windd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("windd"))) ;
  322. model.setValue("/root/send/winno",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("winno"))) ;
  323. model.setValue("/root/send/suplplcecd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("suplplcecd")));
  324. model.setValue("/root/send/goodflag_det",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("goodflag")));
  325. submit("TRRSI02702");
  326. grd_rsihdpaplist.dispatch("onmouseup");
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="onaftersort">
  330. <![CDATA[
  331. grd_rsihdpaplist.gridToInstance();
  332. ]]>
  333. </script>
  334. </datagrid>
  335. <caption id="cap_title" class="tit_2" style="left:5px; top:12px; width:157px; height:13px; ">결재 내역 List</caption>
  336. <line id="line2" class="line_1" style="x1:0px; y1:28px; x2:1180px; y2:28px; "/>
  337. <button id="button1" class="btn4_letter4" style="left:1015px; top:5px; width:80px; height:22px; ">
  338. <caption>자동분개</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. misfSave("TXRSI02702");
  342. ]]>
  343. </script>
  344. </button>
  345. <button id="button2" class="btn4_letter4" style="left:1100px; top:5px; width:80px; height:22px; ">
  346. <caption>분개확인</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. misfSave("TXRSI02704");
  350. btn_search.dispatch("DOMActivate");
  351. ]]>
  352. </script>
  353. </button>
  354. <button id="button4" class="btn5_letter3" style="left:1126px; top:314px; width:53px; height:19px; ">
  355. <caption>Excel</caption>
  356. <script type="javascript" ev:event="DOMActivate">
  357. <![CDATA[
  358. var fileName = window.fileDialog("save", ",", false, "결재내역상세List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  359. if (fileName != "")
  360. {
  361. grd_rsihdpapwinlist.saveExcel(fileName, "결재내역상세List",true,true, "");
  362. }
  363. ]]>
  364. </script>
  365. </button>
  366. <datagrid id="grd_rsihdpapwinlist" nodeset="/root/main/rsihdpapwinlist" caption="물품코드^명칭^모델^규격^제조국^청구부서^사용부서^입고수량^입고단위^입고단가^입고금액" colsep="^" colwidth="100, 200, 120, 120, 100, 110, 110, 80, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1180px; height:241px; ">
  367. <col ref="goodcd"/>
  368. <col ref="goodnm"/>
  369. <col ref="goodmodel"/>
  370. <col ref="goodspec"/>
  371. <col ref="prodplcenm"/>
  372. <col ref="reqdeptnm" visibility="hidden"/>
  373. <col ref="mngtdeptnm" visibility="hidden"/>
  374. <col ref="winqty" format="#,###" style="text-align:right; "/>
  375. <col ref="winunit" style="text-align:center; "/>
  376. <col ref="winunitcost" format="#,###" style="text-align:right; "/>
  377. <col ref="winamt" format="#,###" style="text-align:right; "/>
  378. </datagrid>
  379. <caption id="caption1" class="tit_2" style="left:5px; top:319px; width:157px; height:13px; ">결재 내역 상세 List</caption>
  380. <line id="line1" class="line_1" style="x1:0px; y1:334px; x2:1180px; y2:334px; "/>
  381. </case>
  382. <case id="case2">
  383. <button id="button5" class="btn5_letter3" style="left:1125px; top:5px; width:53px; height:19px; ">
  384. <caption>Excel</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. var fileName = window.fileDialog("save", ",", false, "결재내역List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  388. if (fileName != "")
  389. {
  390. grd_rsihdpaplist1.saveExcel(fileName, "결재내역List",true,true, "");
  391. }
  392. ]]>
  393. </script>
  394. </button>
  395. <datagrid id="grd_rsihdpaplist1" nodeset="/root/main/rsihdpaplist1" caption="물품구분명^거래처 코드^거래처명^입고일자^입고번호^계산서유형^계산일자^건수^금액^입금은행^은행계좌^결재^결재일자^결재자^전표일자^전표번호" colsep="^" colwidth="82, 73, 81, 80, 60, 88, 73, 46, 77, 75, 97, 41, 76, 72, 68, 74, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:33px; width:1180px; height:280px; ">
  396. <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
  397. <choices>
  398. <itemset>
  399. <label/>
  400. <value/>
  401. </itemset>
  402. </choices>
  403. </col>
  404. <col ref="suplplcecd"/>
  405. <col ref="custnm"/>
  406. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  407. <col ref="winno" style="text-align:right; "/>
  408. <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
  409. <choices>
  410. <itemset>
  411. <label/>
  412. <value/>
  413. </itemset>
  414. </choices>
  415. </col>
  416. <col ref="calcdocudd" format="yyyy-mm-dd" style="text-align:center; "/>
  417. <col ref="wincnt" format="#,###" style="text-align:right; "/>
  418. <col ref="winamt" format="#,###" style="text-align:right; "/>
  419. <col ref="banknm" style="text-align:center; "/>
  420. <col ref="aactno" style="text-align:center; "/>
  421. <col checkvalue="Y,N" ref="sanctyn" type="checkbox"/>
  422. <col ref="sanctdd" format="yyyy-mm-dd" style="text-align:center; "/>
  423. <col ref="sanctpsnnm" style="text-align:center; "/>
  424. <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
  425. <col ref="slipno" style="text-align:right; "/>
  426. <col ref="sanctpsn" visibility="hidden"/>
  427. <col ref="instcd" visibility="hidden"/>
  428. <col ref="wintaxamt" visibility="hidden"/>
  429. <col ref="winsupamt" visibility="hidden"/>
  430. <col ref="acntcd" visibility="hidden"/>
  431. <col ref="paycondt" visibility="hidden"/>
  432. <script type="javascript" ev:event="xforms-value-changed">
  433. <![CDATA[
  434. if(grd_rsihdpaplist1.col == grd_rsihdpaplist1.colRef("sanctyn"))
  435. {
  436. if(grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctyn")) == 'Y' )
  437. {
  438. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsn")) = getUserInfo("userid");
  439. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsnnm")) = getUserInfo("usernm");
  440. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctdd")) = getCurrentDate();
  441. }else
  442. {
  443. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsn")) = '';
  444. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctpsnnm")) = '';
  445. grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("sanctdd")) = '';
  446. }
  447. }
  448. ]]>
  449. </script>
  450. <script type="javascript" ev:event="onrowchanged">
  451. <![CDATA[
  452. model.setValue("/root/send/windd",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("windd"))) ;
  453. model.setValue("/root/send/winno",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("winno"))) ;
  454. model.setValue("/root/send/suplplcecd",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("suplplcecd")));
  455. model.setValue("/root/send/goodflag_det",grd_rsihdpaplist1.valueMatrix(grd_rsihdpaplist1.row, grd_rsihdpaplist1.colRef("goodflag")));
  456. submit("TRRSI02709");
  457. grd_rsihdpaplist1.dispatch("onmouseup");
  458. ]]>
  459. </script>
  460. <script type="javascript" ev:event="onaftersort">
  461. <![CDATA[
  462. grd_rsihdpaplist1.gridToInstance();
  463. ]]>
  464. </script>
  465. </datagrid>
  466. <caption id="caption3" class="tit_2" style="left:5px; top:12px; width:157px; height:13px; ">결재 내역 List</caption>
  467. <line id="line3" class="line_1" style="x1:0px; y1:28px; x2:1180px; y2:28px; "/>
  468. <datagrid id="grd_rsihdpapwinlist1" nodeset="/root/main/rsihdpapwinlist1" caption="물품코드^명칭^모델^규격^제조국^청구부서^사용부서^입고수량^입고단위^입고단가" colsep="^" colwidth="100, 200, 120, 120, 100, 110, 110, 80" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:339px; width:1180px; height:240px; ">
  469. <col ref="goodcd"/>
  470. <col ref="goodnm"/>
  471. <col ref="goodmodel"/>
  472. <col ref="goodspec"/>
  473. <col ref="prodplcenm"/>
  474. <col ref="reqdeptnm"/>
  475. <col ref="mngtdeptnm"/>
  476. <col ref="winqty" format="#,###" style="text-align:right; "/>
  477. <col ref="winunit" style="text-align:center; "/>
  478. <col ref="winunitcost" format="#,###"/>
  479. </datagrid>
  480. <button id="button7" class="btn5_letter3" style="left:1126px; top:314px; width:53px; height:19px; ">
  481. <caption>Excel</caption>
  482. <script type="javascript" ev:event="DOMActivate">
  483. <![CDATA[
  484. var fileName = window.fileDialog("save", ",", false, "결재내역상세List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  485. if (fileName != "")
  486. {
  487. grd_rsihdpapwinlist1.saveExcel(fileName, "결재내역상세List",true,true, "");
  488. }
  489. ]]>
  490. </script>
  491. </button>
  492. <caption id="caption4" class="tit_2" style="left:5px; top:319px; width:157px; height:13px; ">결재 내역 상세 List</caption>
  493. <line id="line4" class="line_1" style="x1:0px; y1:334px; x2:1180px; y2:334px; "/>
  494. </case>
  495. </switch>
  496. </group>
  497. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  498. <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  499. <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  500. <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  501. <caption>초기화</caption>
  502. <script type="javascript" ev:event="DOMActivate">
  503. <![CDATA[
  504. fInitialize();
  505. ]]>
  506. </script>
  507. </button>
  508. <button id="btn_sabe" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
  509. <caption>저장</caption>
  510. <script type="javascript" ev:event="DOMActivate">
  511. <![CDATA[
  512. if(getGridUpdateData(grd_rsihdpaplist) == "" && getGridUpdateData(grd_rsihdpaplist1) == "" )
  513. {
  514. messageBox("변경된 데이터가","I004");
  515. return;
  516. }
  517. misfSave("TXRSI02701");
  518. ]]>
  519. </script>
  520. </button>
  521. </group>
  522. </xhtml:body>
  523. </xhtml:html>