SMRSG03200_기간별품목별입고현황조회.xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>기관별품목별입고현황조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodwin>
  12. <goodwinlist/>
  13. </goodwin>
  14. <goodwindetail>
  15. <goodwinqtylist/>
  16. <goodwincustlist/>
  17. </goodwindetail>
  18. </list>
  19. <list2>
  20. <goodwout>
  21. <goodwoutlist/>
  22. </goodwout>
  23. <goodwoutdetail>
  24. <goodwoutqtylist/>
  25. <goodwoutcustlist/>
  26. </goodwoutdetail>
  27. </list2>
  28. </main>
  29. <init>
  30. <moncnt/>
  31. <monamt/>
  32. <custcnt/>
  33. <custamt/>
  34. <moncntout/>
  35. <monamtout/>
  36. <custcntout/>
  37. <custamtout/>
  38. </init>
  39. <send>
  40. <goodwin>
  41. <instcd/>
  42. <suplplcecd/>
  43. <suplplcenm/>
  44. <lrgcd/>
  45. <goodcd/>
  46. <goodnm/>
  47. <winfrdd/>
  48. <wintodd/>
  49. <goodflag/>
  50. <inout>in</inout>
  51. <mdlcd/>
  52. <smlcd/>
  53. <reqdeptcd/>
  54. <reqdeptnm/>
  55. <suppcustcd/>
  56. <suppcustnm/>
  57. <calccnfmyn/>
  58. <insuyn/>
  59. </goodwin>
  60. <goodwindetail>
  61. <winfrdd/>
  62. <wintodd/>
  63. <goodcd/>
  64. <inout>in</inout>
  65. <instcd/>
  66. <calccnfmyn/>
  67. <goodflag/>
  68. </goodwindetail>
  69. <goodwoutdetail>
  70. <winfrdd/>
  71. <wintodd/>
  72. <goodcd/>
  73. <inout>out</inout>
  74. <instcd/>
  75. <goodflag/>
  76. <calccnfmyn/>
  77. </goodwoutdetail>
  78. </send>
  79. </root>
  80. </instance>
  81. <script type="javascript" ev:event="xforms-ready">
  82. <![CDATA[
  83. //화면 Control을 초기화한다
  84. fInitialize();
  85. ]]>
  86. </script>
  87. <submission id="TRRSG03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
  88. <submission id="TRRSG03202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwindetail" resultref="/root/main/list/goodwindetail"/>
  89. <submission id="TRRSG03203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwindetail" resultref="/root/main/list/goodwincust"/>
  90. <submission id="TRRSG03204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list2/goodwout"/>
  91. <submission id="TRRSG03205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwoutdetail" resultref="/root/main/list2/goodwoutdetail"/>
  92. <bind id="moncnt" ref="/root/init/moncnt" calculate="sum(/root/main/list/goodwindetail/goodwinqtylist/winqty)" type="xsd:float"/>
  93. <bind id="monamt" ref="/root/init/monamt" calculate="sum(/root/main/list/goodwindetail/goodwinqtylist/winamt)" type="xsd:float"/>
  94. <bind id="custcnt" ref="/root/init/custcnt" calculate="sum(/root/main/list/goodwindetail/goodwincustlist/winqty)" type="xsd:float"/>
  95. <bind id="custamt" ref="/root/init/custamt" calculate="sum(/root/main/list/goodwindetail/goodwincustlist/winamt)" type="xsd:float"/>
  96. <bind id="moncntout" ref="/root/init/moncntout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutqtylist/delivedeptqty)" type="xsd:float"/>
  97. <bind id="monamtout" ref="/root/init/monamtout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutqtylist/deliveamt)" type="xsd:float"/>
  98. <bind id="custcntout" ref="/root/init/custcntout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutcustlist/delivedeptqty)" type="xsd:float"/>
  99. <bind id="custamtout" ref="/root/init/custamtout" calculate="sum(/root/main/list2/goodwoutdetail/goodwoutcustlist/delivedeptamt)" type="xsd:float"/>
  100. </model>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  104. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  105. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  106. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  107. <script type="javascript">
  108. <![CDATA[
  109. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  110. function fInitialize() {
  111. //rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  112. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  113. misfComboComCdListMulti("Z0007","cmb_instcd" );
  114. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  115. if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
  116. cmb_mdlcd.value = "";
  117. cmb_smlcd.value = "";
  118. cmb_lrgcd.value = "";
  119. ipt_reqdeptnm.value = "";
  120. ipt_reqdeptcd.value = "";
  121. ipt_goodcd.value = "";
  122. ipt_goodnm.value = "";
  123. // 대분류 코드 콤보 설정.
  124. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "Y", "Y");
  125. //입고
  126. model.removeNodeset(grd_goodwin.nodeset);
  127. model.removeNodeset(grd_winday.nodeset);
  128. model.removeNodeset(grd_wincust.nodeset);
  129. //출고
  130. model.removeNodeset(grd_goodwoutlist.nodeset);
  131. model.removeNodeset(grd_goodwoutqtylist.nodeset);
  132. model.removeNodeset(grd_goodwoutcustlist.nodeset);
  133. misfMsterDetailSet(grd_goodwin,null, "TRRSG03201" ,"N");
  134. misfMsterDetailSet(grd_goodwoutlist,null, "TRRSG03204" ,"N");
  135. /*
  136. misfMsterDetailSet(grd_winday,grd_goodwin, "TRRSG03201" ,"N");
  137. misfMsterDetailSet(grd_wincust,grd_goodwin, "TRRSG03201" ,"N");
  138. */
  139. var curdate = getCurrentDate();
  140. var cvtdate = curdate.toDate("YYYYMMDD");
  141. model.setValue(ipt_winfrdd.attribute("ref") , cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  142. model.setValue(ipt_wintodd.attribute("ref") ,curdate);
  143. rdo_inout.select(0);
  144. model.refresh();
  145. }
  146. function fRetrWinDetailList(pRow)
  147. {
  148. if(pRow < grd_goodwin.fixedRows || pRow < 0)return;
  149. model.setValue("/root/send/goodwindetail/instcd" , model.getValue(cmb_instcd.attribute("ref" )));
  150. model.setValue("/root/send/goodwindetail/winfrdd" , model.getValue(ipt_winfrdd.attribute("ref")));
  151. model.setValue("/root/send/goodwindetail/wintodd" , model.getValue(ipt_wintodd.attribute("ref")));
  152. model.setValue("/root/send/goodwindetail/goodcd" , grd_goodwin.valueMatrix(pRow, grd_goodwin.colRef("goodcd")));
  153. model.setValue("/root/send/goodwindetail/calccnfmyn", model.getValue(rdo_calccnfmyn.attribute("ref")));
  154. model.setValue("/root/send/goodwindetail/goodflag" , model.getValue(cmb_goodflag.attribute("ref" )));
  155. submit("TRRSG03202");
  156. }
  157. function fOutRetrWinDetailList(pRow)
  158. {
  159. if(pRow < grd_goodwoutlist.fixedRows || pRow < 0)return;
  160. model.setValue("/root/send/goodwoutdetail/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  161. model.setValue("/root/send/goodwoutdetail/winfrdd" , model.getValue(ipt_winfrdd.attribute("ref")));
  162. model.setValue("/root/send/goodwoutdetail/wintodd" , model.getValue(ipt_wintodd.attribute("ref")));
  163. model.setValue("/root/send/goodwoutdetail/goodcd" , grd_goodwoutlist.valueMatrix(pRow, grd_goodwoutlist.colRef("goodcd")));
  164. model.setValue("/root/send/goodwoutdetail/calccnfmyn", model.getValue(rdo_calccnfmyn.attribute("ref")));
  165. model.setValue("/root/send/goodwoutdetail/goodflag" , model.getValue(cmb_goodflag.attribute("ref" )));
  166. submit("TRRSG03205");
  167. }
  168. function finputSearch()
  169. {
  170. model.removeNodeset(grd_winday.nodeset);
  171. model.removeNodeset(grd_wincust.nodeset);
  172. //misfMsterDetailRetrieve();
  173. submit("TRRSG03201");
  174. if(grd_goodwin.rows - grd_goodwin.fixedRows > 0)fRetrWinDetailList(grd_goodwin.fixedRows);
  175. }
  176. function foutputSearch()
  177. {
  178. model.removeNodeset(grd_goodwoutqtylist.nodeset);
  179. model.removeNodeset(grd_goodwoutcustlist.nodeset);
  180. //misfMsterDetailRetrieve();
  181. submit("TRRSG03204");
  182. if(grd_goodwoutlist.rows - grd_goodwoutlist.fixedRows > 0)fOutRetrWinDetailList(grd_goodwoutlist.fixedRows);
  183. }
  184. ]]>
  185. </script>
  186. </xhtml:head>
  187. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  188. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  189. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">기간별 품목별 입/출고현황 조회</caption>
  190. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  191. </group>
  192. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  193. <group id="group4" style="left:0px; top:10px; width:1195px; height:90px; vertical-align:top; ">
  194. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:90px; background-color:#fffbf2; border-color:#ffd799; "/>
  195. <button id="button1" class="btn1_letter2" navindex="7" style="left:1134px; top:34px; width:56px; height:22px; text-align:left; ">
  196. <caption>조회</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. if(rdo_inout.value == "in")
  200. {
  201. finputSearch();
  202. }else if(rdo_inout.value == "out")
  203. {
  204. foutputSearch();
  205. }
  206. ]]>
  207. </script>
  208. </button>
  209. <line id="line3" class="line_4" style="top:54; x1:1126px; y1:9px; x2:1126px; y2:82px; "/>
  210. <caption id="caption13" class="search_name" style="left:815px; top:9px; width:98px; height:17px; ">거 래 처 :</caption>
  211. <caption id="caption2" class="search_name" style="left:220px; top:61px; width:86px; height:17px; ">입고일자 :</caption>
  212. <caption id="caption3" style="left:404px; top:60px; width:15px; height:20px; font-weight:bold; ">~</caption>
  213. <input id="ipt_winfrdd" ref="/root/send/goodwin/winfrdd" class="input_s_essential" inputtype="date" style="left:305px; top:61px; width:93px; height:19px; "/>
  214. <input id="ipt_wintodd" ref="/root/send/goodwin/wintodd" class="input_s_essential" inputtype="date" style="left:424px; top:61px; width:93px; height:19px; "/>
  215. <caption id="caption14" class="search_name" style="left:3px; top:9px; width:91px; height:17px; ">기관코드 :</caption>
  216. <select1 id="cmb_instcd" ref="/root/send/goodwin/instcd" class="combo_s_essential" appearance="minimal" style="left:88px; top:8px; width:117px; height:19px; ">
  217. <choices>
  218. <itemset nodeset="/root/init/instcd">
  219. <label ref="cdnm"/>
  220. <value ref="cdid"/>
  221. </itemset>
  222. </choices>
  223. </select1>
  224. <caption id="caption15" class="search_name" style="left:220px; top:35px; width:89px; height:17px; ">물품코드 :</caption>
  225. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_fix" appearance="input" style="left:1016px; top:10px; width:100px; height:19px; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. if(ipt_maincustlastsuplplcenm.value.length == 0)
  229. ipt_maincustlastsuplplce.value = "";
  230. else
  231. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  232. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  233. ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","cmb_instcd");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </input>
  238. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodwin/suplplcecd" class="input_default" style="left:912px; top:10px; width:80px; height:19px; ">
  239. <script type="javascript" ev:event="xforms-value-changed">
  240. <![CDATA[
  241. if(ipt_maincustlastsuplplce.value.length == 0)
  242. ipt_maincustlastsuplplcenm.value = "";
  243. else
  244. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  245. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","suplplcecd,suplplcenm" ,
  246. ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  247. model.refresh();
  248. model.setFocus("ipt_maincustlastsuplplcenm");
  249. ]]>
  250. </script>
  251. <script type="javascript" ev:event="onkeydown">
  252. <![CDATA[
  253. if(event.keyCode == 9)
  254. {
  255. if(event.shiftKey)model.setFocus("cmb_purcflag");
  256. else model.setFocus("ipt_suppcustcd");
  257. }
  258. event.preventDefault();
  259. ]]>
  260. </script>
  261. </input>
  262. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:995px; top:10px; width:16px; height:16px; ">
  263. <caption/>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  267. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suplplcecd,suplplcenm","SPRSD00220","instcd","cmb_instcd");
  268. model.refresh();
  269. ]]>
  270. </script>
  271. </button>
  272. <button id="btn_goodcd" class="icon_search" style="left:382px; top:35px; width:16px; height:16px; ">
  273. <caption/>
  274. <script type="javascript" ev:event="DOMActivate">
  275. <![CDATA[
  276. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </button>
  281. <input id="ipt_goodcd" ref="/root/send/goodwin/goodcd" class="input_s_essential" navindex="6" imemode="disabled" style="left:305px; top:35px; width:73px; height:19px; ">
  282. <script type="javascript" ev:event="xforms-value-changed">
  283. <![CDATA[
  284. if(ipt_goodcd.value.length == 0)
  285. ipt_goodnm.value = "";
  286. else
  287. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd",
  288. "goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) ,"","goodcd,goodnm",
  289. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  290. model.refresh();
  291. ]]>
  292. </script>
  293. </input>
  294. <input id="ipt_goodnm" ref="/root/send/goodwin/goodnm" class="input_fix" navindex="6" appearance="input" style="left:402px; top:35px; width:145px; height:19px; ">
  295. <script type="javascript" ev:event="xforms-value-changed">
  296. <![CDATA[
  297. if(ipt_goodnm.value.length == 0)
  298. ipt_goodcd.value = "";
  299. else
  300. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  301. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  302. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  303. model.refresh();
  304. ]]>
  305. </script>
  306. </input>
  307. <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" appearance="minimal" style="left:88px; top:35px; width:117px; height:19px; ">
  308. <choices>
  309. <itemset nodeset="/root/init/goodflag">
  310. <label ref="cdnm"/>
  311. <value ref="cdid"/>
  312. </itemset>
  313. </choices>
  314. <script type="javascript" ev:event="xforms-value-changed">
  315. <![CDATA[
  316. cmb_lrgcd.value = "";
  317. cmb_mdlcd.value = "";
  318. cmb_smlcd.value = "";
  319. // 대분류 코드 콤보 설정.
  320. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "Y", "Y");
  321. model.refresh();
  322. ]]>
  323. </script>
  324. </select1>
  325. <caption id="caption39" class="search_name" style="left:3px; top:36px; width:86px; height:17px; ">물품구분 :</caption>
  326. <caption id="cap_inout" class="search_name" style="left:3px; top:61px; width:124px; height:17px; ">입/출고 구분 :</caption>
  327. <select1 id="rdo_inout" ref="/root/send/goodwin/inout" appearance="full" cols="2" overflow="visible" style="left:118px; top:61px; width:87px; height:15px; border-style:none; ">
  328. <choices>
  329. <item>
  330. <label>입고</label>
  331. <value>in</value>
  332. </item>
  333. <item>
  334. <label>출고</label>
  335. <value>out</value>
  336. </item>
  337. </choices>
  338. <script type="javascript" ev:event="xforms-value-changed">
  339. <![CDATA[
  340. if(rdo_inout.value == "in")
  341. {
  342. model.toggle("case1");
  343. }else if(rdo_inout.value == "out")
  344. {
  345. model.toggle("case2");
  346. }
  347. ]]>
  348. </script>
  349. </select1>
  350. <caption id="cap_mdlcd" class="search_name" style="left:567px; top:35px; width:83px; height:17px; ">중분류 :</caption>
  351. <caption id="cap_smlcd" class="search_name" style="left:567px; top:61px; width:83px; height:17px; ">소분류 :</caption>
  352. <select1 id="cmb_lrgcd" ref="/root/send/goodwin/lrgcd" appearance="minimal" style="left:639px; top:8px; width:162px; height:19px; ">
  353. <choices>
  354. <itemset>
  355. <label/>
  356. <value/>
  357. </itemset>
  358. </choices>
  359. <script type="javascript" ev:event="xforms-value-changed">
  360. <![CDATA[
  361. cmb_mdlcd.value = "";
  362. cmb_smlcd.value = "";
  363. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "Y", "Y");
  364. cmb_mdlcd.dispatch("xforms-value-changed");
  365. model.refresh();
  366. ]]>
  367. </script>
  368. </select1>
  369. <select1 id="cmb_smlcd" ref="/root/send/goodwin/smlcd" appearance="minimal" style="left:639px; top:60px; width:162px; height:19px; ">
  370. <choices>
  371. <itemset>
  372. <label/>
  373. <value/>
  374. </itemset>
  375. </choices>
  376. </select1>
  377. <select1 id="cmb_mdlcd" ref="/root/send/goodwin/mdlcd" appearance="minimal" style="left:639px; top:34px; width:162px; height:19px; ">
  378. <choices>
  379. <itemset>
  380. <label/>
  381. <value/>
  382. </itemset>
  383. </choices>
  384. <script type="javascript" ev:event="xforms-value-changed">
  385. <![CDATA[
  386. cmb_smlcd.value = "";
  387. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, cmb_mdlcd.value, "cmb_smlcd", "", "S", "Y", "Y");
  388. model.refresh();
  389. ]]>
  390. </script>
  391. </select1>
  392. <caption id="cap_lrgcd" class="search_name" style="left:567px; top:9px; width:83px; height:17px; ">대분류 :</caption>
  393. <caption id="caption7" class="search_name" style="left:220px; top:9px; width:86px; height:17px; ">청구부서 :</caption>
  394. <button id="btn_reqdeptcd" class="icon_search" visibility="visible" style="left:382px; top:8px; width:16px; height:16px; ">
  395. <caption/>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. var recv_list = "reqdeptcd,reqdeptnm";
  399. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  400. model.refresh();
  401. ]]>
  402. </script>
  403. </button>
  404. <input id="ipt_reqdeptnm" ref="/root/send/goodwin/reqdeptnm" class="input_fix" appearance="input" style="left:402px; top:8px; width:145px; height:19px; text-align:left; ">
  405. <script type="javascript" ev:event="xforms-value-changed">
  406. <![CDATA[
  407. if(ipt_reqdeptnm.value.length == 0)
  408. ipt_reqdeptcd.value = "";
  409. else
  410. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
  411. model.refresh();
  412. ]]>
  413. </script>
  414. </input>
  415. <input id="ipt_reqdeptcd" ref="/root/send/goodwin/reqdeptcd" class="input_s_essential" style="left:305px; top:8px; width:73px; height:19px; text-align:left; ">
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. if(ipt_reqdeptcd.value.length == 0)
  419. ipt_reqdeptnm.value = "";
  420. else
  421. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", cmb_instcd.value, "instcd" );
  422. model.refresh();
  423. ]]>
  424. </script>
  425. </input>
  426. <input id="ipt_suppcustcd" ref="/root/send/goodwin/suppcustcd" class="input_default" style="left:912px; top:30px; width:80px; height:19px; ">
  427. <script type="javascript" ev:event="xforms-value-changed">
  428. <![CDATA[
  429. if(ipt_suppcustcd.value.length == 0)
  430. ipt_suppcustnm.value = "";
  431. else
  432. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  433. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref")),"","suppcustcd,suppcustnm" ,
  434. ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  435. model.refresh();
  436. model.setFocus("ipt_suppcustcd");
  437. ]]>
  438. </script>
  439. <script type="javascript" ev:event="onkeydown">
  440. <![CDATA[
  441. if(event.keyCode == 9)
  442. {
  443. if(event.shiftKey)model.setFocus("cmb_purcflag");
  444. else model.setFocus("ipt_suppcustcd");
  445. }
  446. event.preventDefault();
  447. ]]>
  448. </script>
  449. </input>
  450. <caption id="caption8" class="search_name" style="left:815px; top:30px; width:108px; height:17px; ">보조거래처 :</caption>
  451. <button id="button4" class="icon_search" style="left:995px; top:30px; width:16px; height:16px; ">
  452. <caption/>
  453. <script type="javascript" ev:event="DOMActivate">
  454. <![CDATA[
  455. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  456. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm","SPRSD00220","instcd","cmb_instcd");
  457. model.refresh();
  458. ]]>
  459. </script>
  460. </button>
  461. <input id="ipt_suppcustnm" ref="/root/send/goodwin/suppcustnm" class="input_fix" appearance="input" style="left:1016px; top:30px; width:100px; height:19px; ">
  462. <script type="javascript" ev:event="xforms-value-changed">
  463. <![CDATA[
  464. if(ipt_suppcustnm.value.length == 0)
  465. ipt_suppcustcd.value = "";
  466. else
  467. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  468. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustnm.attribute("ref")),"","suppcustcd,suppcustnm" ,
  469. ipt_suppcustnm,"SPRSD00220","instcd","cmb_instcd");
  470. model.refresh();
  471. ]]>
  472. </script>
  473. </input>
  474. <select1 id="rdo_calccnfmyn" ref="/root/send/goodwin/calccnfmyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:912px; top:51px; width:175px; height:15px; border-style:none; ">
  475. <choices>
  476. <item>
  477. <label>전체</label>
  478. <value/>
  479. </item>
  480. <item>
  481. <label>정산ONLY</label>
  482. <value>Y</value>
  483. </item>
  484. </choices>
  485. <script type="javascript" ev:event="xforms-value-changed">
  486. <![CDATA[
  487. if(rdo_inout.value == "in")
  488. {
  489. model.toggle("case1");
  490. }else if(rdo_inout.value == "out")
  491. {
  492. model.toggle("case2");
  493. }
  494. ]]>
  495. </script>
  496. </select1>
  497. <caption id="caption9" class="search_name" style="left:815px; top:51px; width:111px; height:17px; ">정산 구분 :</caption>
  498. <select1 id="radio1" ref="/root/send/goodwin/insuyn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:912px; top:70px; width:175px; height:15px; border-style:none; ">
  499. <choices>
  500. <item>
  501. <label>전체</label>
  502. <value/>
  503. </item>
  504. <item>
  505. <label>유</label>
  506. <value>Y</value>
  507. </item>
  508. <item>
  509. <label>무</label>
  510. <value>N</value>
  511. </item>
  512. </choices>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. if(rdo_inout.value == "in")
  516. {
  517. model.toggle("case1");
  518. }else if(rdo_inout.value == "out")
  519. {
  520. model.toggle("case2");
  521. }
  522. ]]>
  523. </script>
  524. </select1>
  525. <caption id="caption16" class="search_name" style="left:815px; top:70px; width:111px; height:17px; ">수가 여부 :</caption>
  526. </group>
  527. <switch id="switch1" style="left:0px; top:110px; width:1191px; height:624px; ">
  528. <case id="case1" selected="true" style="left:0px; top:0px; width:1188px; height:658px; ">
  529. <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="물품코드^품명^규격^모델^수량^단가^입고금액^주거래처^보조거래처^수가^수가유무" colsep="^" colwidth="69, 219, 120, 79, 52, 74, 100, 100, 100, 52, 100" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:30px; width:705px; height:592px; ">
  530. <col ref="goodcd"/>
  531. <col ref="goodnm"/>
  532. <col ref="goodspec"/>
  533. <col ref="goodmodel"/>
  534. <col ref="winqty" format="#,###" style="text-align:right; "/>
  535. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  536. <col ref="winamt" format="#,###" style="text-align:right; "/>
  537. <col ref="suplplcenm"/>
  538. <col ref="suppcustnm"/>
  539. <col ref="insuynnm" style="text-align:center; "/>
  540. <col ref="insuyn" visibility="hidden"/>
  541. <script type="javascript" ev:event="onrowchanged">
  542. <![CDATA[
  543. grd_goodwin.dispatch("onmouseup");
  544. if(grd_goodwin.rows - grd_goodwin.fixedRows == 0)return;
  545. fRetrWinDetailList(grd_goodwin.row);
  546. ]]>
  547. </script>
  548. </datagrid>
  549. <caption id="caption21" class="tit_2" style="left:5px; top:10px; width:131px; height:14px; ">입고 품목 목록</caption>
  550. <caption id="caption12" class="tit_2" style="left:715px; top:10px; width:131px; height:13px; ">기관별 입고 목록</caption>
  551. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:705px; y2:25px; "/>
  552. <datagrid id="grd_winday" nodeset="/root/main/list/goodwindetail/goodwinqtylist" caption="년월^수량^평균단가^금액" colsep="^" colwidth="93, 119, 82, 141" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:30px; width:477px; height:255px; ">
  553. <col ref="winym" format="yyyy-mm"/>
  554. <col ref="winqty" format="#,###" style="text-align:right; "/>
  555. <col ref="avrcost" format="#,###" style="text-align:right; "/>
  556. <col ref="winamt" format="#,###" style="text-align:right; "/>
  557. </datagrid>
  558. <line id="line4" class="line_1" style="x1:710px; y1:25px; x2:1187px; y2:25px; "/>
  559. <line id="line5" class="line_1" style="x1:710px; y1:318px; x2:1187px; y2:319px; "/>
  560. <datagrid id="grd_wincust" nodeset="/root/main/list/goodwindetail/goodwincustlist" caption="거래처^보조거래처^수량^금액" colsep="^" colwidth="130, 130, 76, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:322px; width:477px; height:301px; ">
  561. <col ref="suplplcenm"/>
  562. <col ref="suppcustnm"/>
  563. <col ref="winqty" format="#,###" style="text-align:right; "/>
  564. <col ref="winamt" format="#,###" style="text-align:right; "/>
  565. </datagrid>
  566. <button id="btn_excel1" class="btn5_letter3" navindex="7" style="left:652px; top:5px; width:53px; height:19px; text-align:left; ">
  567. <caption>Excel</caption>
  568. <script type="javascript" ev:event="DOMActivate">
  569. <![CDATA[
  570. misfSaveExcel(grd_goodwin);
  571. ]]>
  572. </script>
  573. </button>
  574. <button id="btn_excel2" class="btn5_letter3" navindex="7" style="left:1134px; top:5px; width:53px; height:19px; text-align:left; ">
  575. <caption>Excel</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. misfSaveExcel(grd_winday);
  579. ]]>
  580. </script>
  581. </button>
  582. <button id="button5" class="btn5_letter3" navindex="7" style="left:1134px; top:295px; width:53px; height:19px; text-align:left; ">
  583. <caption>Excel</caption>
  584. <script type="javascript" ev:event="DOMActivate">
  585. <![CDATA[
  586. misfSaveExcel(grd_wincust);
  587. ]]>
  588. </script>
  589. </button>
  590. <caption id="caption10" class="tit_2" style="left:715px; top:301px; width:157px; height:14px; ">거래처별 입고 목록</caption>
  591. <output id="opt_monamt" ref="/root/init/monamt" class="output_fix" format="#,###" style="left:985px; top:4px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
  592. <output id="opt_moncnt" ref="/root/init/moncnt" class="output_fix" format="#,###" style="left:911px; top:4px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
  593. <caption id="caption17" style="left:873px; top:8px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
  594. <caption id="caption18" style="left:882px; top:299px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
  595. <output id="opt_custamt" ref="/root/init/custamt" class="output_fix" format="#,###" style="left:994px; top:295px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
  596. <output id="opt_custcnt" ref="/root/init/custcnt" class="output_fix" format="#,###" style="left:920px; top:295px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
  597. </case>
  598. <case id="case2">
  599. <datagrid id="grd_goodwoutlist" nodeset="/root/main/list2/goodwout/goodwoutlist" caption="물품코드^품명^규격^모델^출고수량^출고금액^수가^수가유무" colsep="^" colwidth="79, 240, 120, 79, 64, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:30px; width:705px; height:587px; ">
  600. <col ref="goodcd"/>
  601. <col ref="goodnm"/>
  602. <col ref="goodspec"/>
  603. <col ref="goodmodel"/>
  604. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  605. <col ref="delivedeptamt" format="#,###" style="text-align:right; "/>
  606. <col ref="insuynnm" style="text-align:center; "/>
  607. <col ref="insuyn" visibility="hidden"/>
  608. <script type="javascript" ev:event="onrowchanged">
  609. <![CDATA[
  610. grd_goodwoutlist.dispatch("onmouseup");
  611. if(grd_goodwoutlist.rows - grd_goodwoutlist.fixedRows == 0)return;
  612. fOutRetrWinDetailList(grd_goodwoutlist.row);
  613. ]]>
  614. </script>
  615. </datagrid>
  616. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:136px; height:14px; ">불출 품목 목록</caption>
  617. <caption id="caption5" class="tit_2" style="left:715px; top:10px; width:131px; height:13px; ">기관별 출고 목록</caption>
  618. <line id="line6" class="line_1" style="x1:0px; y1:25px; x2:705px; y2:25px; "/>
  619. <datagrid id="grd_goodwoutqtylist" nodeset="/root/main/list2/goodwoutdetail/goodwoutqtylist" caption="년월^수량^평균단가^금액" colsep="^" colwidth="95, 104, 110, 125" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:30px; width:477px; height:255px; ">
  620. <col ref="deliveym" format="yyyy-mm"/>
  621. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  622. <col ref="avrcost" format="#,###" style="text-align:right; "/>
  623. <col ref="deliveamt" format="#,###" style="text-align:right; "/>
  624. </datagrid>
  625. <line id="line7" class="line_1" style="x1:710px; y1:25px; x2:1187px; y2:25px; "/>
  626. <line id="line8" class="line_1" style="x1:710px; y1:318px; x2:1187px; y2:319px; "/>
  627. <datagrid id="grd_goodwoutcustlist" nodeset="/root/main/list2/goodwoutdetail/goodwoutcustlist" caption="청구부서명^거래처명^수량^금액" colsep="^" colwidth="147, 120, 70, 98" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:710px; top:322px; width:477px; height:296px; ">
  628. <col ref="reqdeptnm"/>
  629. <col ref="suplplcenm"/>
  630. <col ref="delivedeptqty" format="#,###" style="text-align:right; "/>
  631. <col ref="delivedeptamt" format="#,###" style="text-align:right; "/>
  632. </datagrid>
  633. <button id="button2" class="btn5_letter3" navindex="7" style="left:652px; top:5px; width:53px; height:19px; text-align:left; ">
  634. <caption>Excel</caption>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. misfSaveExcel(grd_goodwoutlist);
  638. ]]>
  639. </script>
  640. </button>
  641. <button id="button3" class="btn5_letter3" navindex="7" style="left:1134px; top:5px; width:53px; height:19px; text-align:left; ">
  642. <caption>Excel</caption>
  643. <script type="javascript" ev:event="DOMActivate">
  644. <![CDATA[
  645. misfSaveExcel(grd_goodwoutqtylist);
  646. ]]>
  647. </script>
  648. </button>
  649. <button id="button6" class="btn5_letter3" navindex="7" style="left:1130px; top:296px; width:53px; height:19px; text-align:left; ">
  650. <caption>Excel</caption>
  651. <script type="javascript" ev:event="DOMActivate">
  652. <![CDATA[
  653. misfSaveExcel(grd_goodwoutcustlist);
  654. ]]>
  655. </script>
  656. </button>
  657. <caption id="caption11" class="tit_2" style="left:715px; top:302px; width:131px; height:14px; ">불출부서 목록</caption>
  658. <output id="opt_custamtout" ref="/root/init/custamtout" class="output_fix" format="#,###" style="left:994px; top:295px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
  659. <output id="opt_custcntout" ref="/root/init/custcntout" class="output_fix" format="#,###" style="left:920px; top:295px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
  660. <caption id="caption19" style="left:873px; top:8px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
  661. <caption id="caption20" style="left:882px; top:299px; width:38px; height:15px; font-weight:bold; text-align:center; vertical-align:top; ">합계 :</caption>
  662. <output id="opt_monamtout" ref="/root/init/monamtout" class="output_fix" format="#,###" style="left:985px; top:4px; width:105px; height:19px; font-weight:bold; text-align:right; "/>
  663. <output id="opt_monvntout" ref="/root/init/moncntout" class="output_fix" format="#,###" style="left:911px; top:4px; width:69px; height:19px; font-weight:bold; text-align:right; "/>
  664. </case>
  665. </switch>
  666. </group>
  667. <group id="group2" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  668. <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  669. <button id="button18" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  670. <caption>초기화</caption>
  671. <script type="javascript" ev:event="DOMActivate">
  672. <![CDATA[
  673. fInitialize();
  674. ]]>
  675. </script>
  676. </button>
  677. </group>
  678. </xhtml:body>
  679. </xhtml:html>