SMRSI02701_구매재고회계전표처리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. <rscmpcomlist/>
  11. <rsihdpaplist/>
  12. </main>
  13. <send>
  14. <instcd/>
  15. <goodflag/>
  16. <fromdd/>
  17. <todd/>
  18. <sanctyn/>
  19. <winpsn/>
  20. <winpsnnm/>
  21. <subsuplplcenm/>
  22. <subsuplplcecd/>
  23. </send>
  24. <init>
  25. <sanctyn>
  26. <label>전체</label>
  27. <value/>
  28. <label>결재</label>
  29. <value>Y</value>
  30. <label>미결재</label>
  31. <value>N</value>
  32. </sanctyn>
  33. </init>
  34. <hidden/>
  35. <temp/>
  36. </root>
  37. </instance>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  43. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. fInitialize();
  47. //misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSC00803", "Y");
  48. misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSI02704", "Y");
  49. //화면 권한 설정
  50. btn_save.disabled = !(checkAuth("X"));
  51. btn_prt.disabled= !(checkAuth("P"));
  52. model.refresh();
  53. ]]>
  54. </script>
  55. <submission id="TRRSC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscmpcomlist"/>
  56. <submission id="TXRSC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rscmpcomlist" resultref="/root/temp"/>
  57. <submission id="TRRSI02704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist"/>
  58. </model>
  59. <script type="javascript">
  60. <![CDATA[
  61. function fInitialize()
  62. {
  63. misfGridInit(grd_rscmpcomlist);
  64. // 사용자별 청구 기관 List
  65. rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
  66. // 사용자별 물품 구분
  67. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  68. addComboItem( "cmb_goodflag", "전체", "", "above");
  69. // misfComboComCdListMulti("Z0007,R0025,R0025,R0109","cmb_instcd,cmb_goodflag,grd_rsihdpaplist.goodflag,grd_rsihdpaplist.calcdocukind");
  70. //misfComboComCdListMulti("R0109","grd_rscmpcomlist.calcdocukind");
  71. //misfComboCopyItemSet(cmb_goodflag, "", grd_rscmpcomlist, "goodflag"); // 물품구분
  72. cmb_instcd.value = getUserInfo("dutplceinstcd");
  73. cmb_goodflag.select(0);
  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. misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSI02704", "Y");
  78. model.refresh();
  79. }
  80. ]]>
  81. </script>
  82. </xhtml:head>
  83. <xhtml:body>
  84. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  85. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:162px; height:14px; ">구매재고 회계 전표처리.</caption>
  86. </group>
  87. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  88. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:70px; ">
  89. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; "/>
  90. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
  91. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. if( getGridUpdateData(grd_rscmpcomlist) != "" )
  96. {
  97. if( messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
  98. misfMsterDetailRetrieve();
  99. }else{
  100. return;
  101. }
  102. }else{
  103. //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
  104. misfMsterDetailRetrieve();
  105. }
  106. //misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd,prodcmpynm", true);
  107. misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd", true);
  108. model.refresh();
  109. ]]>
  110. </script>
  111. </button>
  112. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
  113. <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; ">
  114. <choices>
  115. <itemset>
  116. <label/>
  117. <value/>
  118. </itemset>
  119. </choices>
  120. </select1>
  121. <caption id="cap_fromdd" class="search_name" style="left:15px; top:36px; width:88px; height:17px; ">입고일자 :</caption>
  122. <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; ">
  123. <script type="javascript" ev:event="xforms-value-changed">
  124. <![CDATA[
  125. btn_search.dispatch("DOMActivate");
  126. ]]>
  127. </script>
  128. </input>
  129. <caption id="caption23" style="left:209px; top:33px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  130. <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; ">
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. btn_search.dispatch("DOMActivate");
  134. ]]>
  135. </script>
  136. </input>
  137. <caption id="cap_goodflag" class="search_name" style="left:405px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  138. <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; ">
  139. <choices>
  140. <itemset>
  141. <label/>
  142. <value/>
  143. </itemset>
  144. </choices>
  145. </select1>
  146. <caption id="cap_sanctyn" class="search_name" style="left:405px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
  147. <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; ">
  148. <choices>
  149. <itemset nodeset="/root/init/sanctyn">
  150. <label ref="label"/>
  151. <value ref="value"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <caption id="cap_winpsn" class="search_name" style="left:700px; top:10px; width:86px; height:17px; ">입고자 :</caption>
  156. <input id="ipt_winpsn" ref="/root/send/winpsn" class="input_search" style="left:779px; top:10px; width:97px; height:19px; text-align:center; ">
  157. <script type="javascript" ev:event="xfroms-value-changed">
  158. <![CDATA[
  159. if(ipt_winpsn.value.length == 0)
  160. {
  161. ipt_winpsnnm.value = "";
  162. }else{
  163. misfValidationCheck("01-1", "", "winpsn,winpsnnm");
  164. }
  165. model.refresh();
  166. ]]>
  167. </script>
  168. </input>
  169. <button id="btn_winpsn" class="icon_search" style="left:880px; top:10px; width:16px; height:16px; ">
  170. <caption/>
  171. <script type="javascript" ev:event="DOMActivate">
  172. <![CDATA[
  173. misfOpenPopUpList("01", ipt_winpsn, "", "winpsn,winpsnnm");
  174. model.refresh();
  175. ]]>
  176. </script>
  177. </button>
  178. <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; ">
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. if(ipt_winpsnnm.value.length == 0)
  182. {
  183. ipt_winpsn.value = "";
  184. }else {
  185. misfValidationCheck("01-2", "", "winpsn,winpsnnm");
  186. }
  187. model.refresh();
  188. ]]>
  189. </script>
  190. </input>
  191. <caption id="caption3" class="search_name" style="left:700px; top:35px; width:86px; height:17px; ">거래처 :</caption>
  192. <input id="ipt_subsuplplcecd" ref="/root/send/subsuplplcecd" class="input_search" style="left:779px; top:34px; width:97px; height:19px; ">
  193. <script type="javascript" ev:event="xforms-value-changed">
  194. <![CDATA[
  195. if(ipt_subsuplplcecd.value != ""){
  196. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  197. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_subsuplplcecd.attribute("ref"))
  198. ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
  199. }else{
  200. ipt_subsuplplcenm.value = "";
  201. }
  202. model.refresh();
  203. ]]>
  204. </script>
  205. </input>
  206. <button id="btn_subsuplplcecd" class="icon_search" style="left:880px; top:36px; width:16px; height:16px; ">
  207. <caption/>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. rszfOpenPopUpListByWndName(ipt_subsuplplcecd,"","subsuplplcecd,subsuplplcenm","SPRSD00220","instcd","cmb_instcd", "Y");
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </button>
  215. <input id="ipt_subsuplplcenm" ref="/root/send/subsuplplcenm" class="input_search" style="left:900px; top:34px; width:125px; height:19px; ">
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. if(ipt_subsuplplcenm.value != ""){
  219. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  220. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_subsuplplcenm.attribute("ref"))
  221. ,"","subsuplplcecd,subsuplplcenm" ,ipt_subsuplplcecd,"SPRSD00220","instcd","cmb_instcd", "Y");
  222. }else{
  223. ipt_subsuplplcecd.value = "";
  224. }
  225. model.refresh();
  226. ]]>
  227. </script>
  228. </input>
  229. </group>
  230. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:157px; height:13px; ">결재내역 List</caption>
  231. <line id="line1" class="line_1" style="x1:0px; y1:100px; x2:1195px; y2:99px; "/>
  232. <datagrid id="grd_rscmpcomlist" nodeset="/root/main/rsihdpaplist" allowuserresize="false" caption="금액^차변과목^적요^대변과목^금액^거래처^전표일자^전표번호" colsep="^" colwidth="100, 190, 291, 190, 100, 150, 70, 70" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1195px; height:615px; ">
  233. <col ref="winamt" format="(-)#,###" style="text-align:right; "/>
  234. <col ref="acntnm" style="text-align:left; "/>
  235. <col ref="slipcmt" format="9999999999"/>
  236. <col ref="rlacntnm" style="text-align:left; "/>
  237. <col ref="winamt" format="(-)#,###" style="text-align:right; "/>
  238. <col ref="custnm" style="text-align:left; "/>
  239. <col ref="slipdd" style="text-align:left; "/>
  240. <col ref="slipno" style="text-align:left; "/>
  241. <script type="javascript" ev:event="onaftersort">
  242. <![CDATA[
  243. grd_rscmpcomlist.gridToInstance();
  244. ]]>
  245. </script>
  246. </datagrid>
  247. <button id="btn_grdadd1" class="btn2_letter3" visibility="hidden" style="left:1085px; top:77px; width:53px; height:19px; ">
  248. <caption>행추가</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. misfGridIUD(grd_rscmpcomlist, "A");
  252. ]]>
  253. </script>
  254. </button>
  255. <button id="btn_grddel1" class="btn2_letter3" visibility="hidden" style="left:1140px; top:77px; width:53px; height:19px; ">
  256. <caption>행삭제</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. misfGridIUD(grd_rscmpcomlist, "D");
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="caption4" style="left:56px; top:715px; width:35px; height:23px; vertical-align:middle; ">Total:</caption>
  264. <output id="opt_sumreqfla" ref="/root/init/reqamt" class="output_default" format="#,###" style="left:98px; top:718px; width:85px; height:19px; font-weight:bold; "/>
  265. <caption id="caption2" style="left:940px; top:715px; width:35px; height:23px; vertical-align:middle; ">Total:</caption>
  266. <output id="output1" ref="/root/init/reqamt" class="output_default" format="#,###" style="left:975px; top:718px; width:85px; height:19px; font-weight:bold; "/>
  267. </group>
  268. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  269. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  270. <caption>저장</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. if( getGridUpdateData(grd_rscmpcomlist) == "" )
  274. {
  275. messageBox("업데이트 된 내용이", "I004");
  276. return;
  277. }
  278. misfSave("TXRSC00802");
  279. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  280. btn_search.dispatch("DOMAtivate");
  281. model.refresh();
  282. ]]>
  283. </script>
  284. </button>
  285. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  286. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  287. <caption>초기화</caption>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. fInitialize();
  291. ]]>
  292. </script>
  293. </button>
  294. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  295. <caption>출력</caption>
  296. </button>
  297. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  298. <caption>화면이동</caption>
  299. </button>
  300. </group>
  301. </xhtml:body>
  302. </xhtml:html>