SMRSI02200_입고내역조회(약국).xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  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. <list>
  11. <goodwin>
  12. <goodwinlist/>
  13. </goodwin>
  14. <goodreq>
  15. <goodreqlist/>
  16. </goodreq>
  17. </list>
  18. <item/>
  19. </main>
  20. <init>
  21. </init>
  22. <send>
  23. <goodwin>
  24. <instcd/>
  25. <goodflag/>
  26. <lrgcd/>
  27. <lrgnm/>
  28. <windeptcd/>
  29. <windeptnm/>
  30. <suplplcecd/>
  31. <suplplcenm/>
  32. <goodcd/>
  33. <goodnm/>
  34. <winfrdd/>
  35. <wintodd/>
  36. </goodwin>
  37. <goodreq>
  38. <reqdd/>
  39. <reqno/>
  40. <reqseqno/>
  41. <goodcd/>
  42. </goodreq>
  43. </send>
  44. </root>
  45. </instance>
  46. <script type="javascript" ev:event="xforms-ready">
  47. <![CDATA[
  48. //화면 Control을 초기화한다
  49. fInitialize();
  50. ]]>
  51. </script>
  52. <submission id="TRRSI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
  53. <submission id="TRRSD00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  61. <script type="javascript">
  62. <![CDATA[
  63. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  64. function fInitialize() {
  65. model.resetInstanceNode("/root/send");
  66. misfGridInit(grd_goodwin);
  67. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"),"Y");
  68. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  69. rszfGridComboLrgcdList("PH", cmb_lrgcd, "lrgcd","Y");
  70. //rszfComboAppendBlankChild("cmb_lrgcd");
  71. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  72. rszfComboStockArthDeptcdList(cmb_windeptcd,getUserInfo("dutplceinstcd"),"PH","Y" );
  73. model.setValue(ipt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  74. //hidden
  75. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  76. model.setValue(cmb_goodflag.attribute("ref"),"PH");
  77. model.setValue(ipt_winfrdd.attribute("ref") , getCurrentDate());
  78. model.setValue(ipt_wintodd.attribute("ref") , getCurrentDate());
  79. misfMsterDetailSet(grd_goodwin,null, "TRRSI00401" ,"N");
  80. model.refresh();
  81. }
  82. ]]>
  83. </script>
  84. </xhtml:head>
  85. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  86. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  87. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">입고현황 조회</caption>
  88. </group>
  89. <group id="group5" scroll="auto" style="left:0px; top:38; width:1195px; height:744; ">
  90. <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="입고일자^입고부서^순번^주거래처^입고유형^약품코드^약품명^함량^제조회사^낱개^낱개^포장^포장^입고금액^입고번호^발주번호^입고자^입고정보|입고일자^입고부서^순번^주거래처^입고유형^약품코드^약품명^함량^제조회사^수량^단가^수량^구입가^입고금액^입고번호^발주번호^입고자^입고정보" colsep="^" colwidth="82, 81, 49, 83, 87, 84, 250, 26, 0, 64, 64, 65, 85, 100, 100, 100, 93, 130, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:100px; width:1195px; height:634px; ">
  91. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  92. <col ref="windeptnm"/>
  93. <col ref="winseqno" style="text-align:center; "/>
  94. <col ref="suplplcenm"/>
  95. <col ref="iokindnm"/>
  96. <col ref="goodcd"/>
  97. <col ref="goodnm"/>
  98. <col ref="goodspec" visibility="hidden"/>
  99. <col ref="prodcmpynm"/>
  100. <col ref="winqty" format="#,###" style="text-align:right; "/>
  101. <col ref="winunitcost" format="#,###" style="text-align:right; "/>
  102. <col ref="winpackqty" format="#,###" style="text-align:right; "/>
  103. <col ref="goodpurccost" format="#,###" style="text-align:right; "/>
  104. <col ref="winamt" format="#,###" style="text-align:right; "/>
  105. <col ref="winno" visibility="hidden" style="left:1135px; top:23px; width:100px; height:23px; text-align:center; "/>
  106. <col ref="deliveno" visibility="hidden" style="text-align:center; "/>
  107. <col ref="winpsnnm" style="text-align:center; "/>
  108. <col ref="winputno"/>
  109. <col ref="goodmodel" visibility="hidden"/>
  110. <col ref="winpackunit" visibility="hidden"/>
  111. <col ref="winpackcntperunit" visibility="hidden" format="#,###" style="text-align:right; "/>
  112. <col ref="winunit" visibility="hidden"/>
  113. <col ref="delivedeptqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  114. <col ref="stocqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  115. <col ref="instcd" visibility="hidden"/>
  116. <col ref="goodflag" visibility="hidden"/>
  117. <col ref="winpsn" visibility="hidden"/>
  118. <col ref="windeptcd" visibility="hidden"/>
  119. <col ref="installplcecd" visibility="hidden"/>
  120. <col ref="paycond" visibility="hidden"/>
  121. <col ref="temppay" visibility="hidden"/>
  122. <col ref="calcdocukind" visibility="hidden"/>
  123. <col ref="elctstmntyn" visibility="hidden"/>
  124. <col ref="iokind" visibility="hidden"/>
  125. <col ref="suplplcecd" visibility="hidden"/>
  126. <col ref="purcdmnddd" visibility="hidden"/>
  127. <col ref="purcdmndno" visibility="hidden"/>
  128. <col ref="purcdmndseq" visibility="hidden"/>
  129. <col ref="deliveseqno" visibility="hidden"/>
  130. <col ref="bnscd" visibility="hidden"/>
  131. <col ref="calcdocudd" visibility="hidden"/>
  132. <col ref="profno" visibility="hidden"/>
  133. <col ref="acntcd" visibility="hidden"/>
  134. <col ref="reqdd" visibility="hidden"/>
  135. <col ref="reqno" visibility="hidden"/>
  136. <col ref="reqseqno" visibility="hidden"/>
  137. <col ref="valiterm" visibility="hidden"/>
  138. <col ref="stocynindx" visibility="hidden"/>
  139. <col ref="chkdd" visibility="hidden"/>
  140. <col ref="chkpsn" visibility="hidden"/>
  141. <col ref="chkyn" visibility="hidden"/>
  142. <col ref="slipdd" visibility="hidden"/>
  143. <col ref="slipno" visibility="hidden"/>
  144. <col ref="suppcustcd" visibility="hidden"/>
  145. <col ref="cmt" visibility="hidden"/>
  146. <col ref="prewinqty" visibility="hidden"/>
  147. <col ref="minexch" visibility="hidden"/>
  148. <col ref="suppcustnm" visibility="hidden"/>
  149. <script type="javascript" ev:event="onrowchanged">
  150. <![CDATA[
  151. misfMsterDetailRetrieve();
  152. ]]>
  153. </script>
  154. <script type="javascript" ev:event="onaftersort">
  155. <![CDATA[
  156. grd_goodwin.gridToInstance();
  157. ]]>
  158. </script>
  159. </datagrid>
  160. <caption id="caption35" class="tit_2" style="left:5px; top:80px; width:95px; height:13px; ">입고내역</caption>
  161. <line id="line15" class="line_1" style="x1:0px; y1:95px; x2:1195px; y2:95px; "/>
  162. <button id="btn_excel" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  163. <caption>엑셀</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. misfSaveExcel(grd_goodwin);
  167. ]]>
  168. </script>
  169. </button>
  170. <group id="group7" style="left:0px; top:10px; width:1195px; height:61px; vertical-align:top; ">
  171. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; "/>
  172. <select1 id="cmb_goodflag" ref="/root/send/goodwin/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1053px; top:8; width:33px; height:19px; ">
  173. <choices>
  174. <itemset nodeset="/root/init/goodflag">
  175. <label ref="cdnm"/>
  176. <value ref="cdid"/>
  177. </itemset>
  178. </choices>
  179. </select1>
  180. <caption id="caption41" class="search_name" style="left:15px; top:9; width:86px; height:17px; ">입고일자 :</caption>
  181. <caption id="caption42" class="search_name" style="left:437px; top:9; width:86px; height:17px; ">입고부서 :</caption>
  182. <caption id="caption44" class="search_name" style="left:15px; top:35px; width:88px; height:17px; ">거 래 처 :</caption>
  183. <caption id="caption45" class="search_name" style="left:437px; top:35px; width:86px; height:17px; ">약품코드 :</caption>
  184. <line id="line30" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
  185. <button id="btn_search" class="btn1_letter2" style="left:1123; top:19px; width:56px; height:22px; ">
  186. <caption>조회</caption>
  187. <script type="javascript" ev:event="DOMActivate">
  188. <![CDATA[
  189. misfMsterDetailRetrieve();
  190. ]]>
  191. </script>
  192. </button>
  193. <caption id="caption22" style="left:209px; top:9px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  194. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodwin/suplplcenm" class="input_search" style="left:225px; top:34; width:186px; height:19px; ">
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. if(ipt_maincustlastsuplplcenm.value.length == 0)
  198. ipt_maincustlastsuplplce.value = "";
  199. else
  200. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  201. model.getValue(ipt_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref")),"","suplplcecd,suplplcenm" ,
  202. ipt_maincustlastsuplplcenm,"SPRSD00220","instcd","ipt_instcd");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </input>
  207. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodwin/suplplcecd" class="input_search" style="left:104px; top:34; width:94px; height:19px; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(ipt_maincustlastsuplplcenm.attribute("ref"),"");
  211. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(ipt_instcd.attribute("ref")) +",,"+model.getValue(ipt_maincustlastsuplplce.attribute("ref")) ,"","suplplcecd,suplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","ipt_instcd");
  212. model.refresh();
  213. ]]>
  214. </script>
  215. </input>
  216. <button id="button9" class="icon_search" style="left:204px; top:35px; width:16px; height:16px; ">
  217. <caption/>
  218. <script type="javascript" ev:event="DOMActivate">
  219. <![CDATA[
  220. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","suplplcecd,suplplcenm","SPRSD00220","instcd","ipt_instcd");
  221. model.refresh();
  222. ]]>
  223. </script>
  224. </button>
  225. <input id="ipt_goodnm" ref="/root/send/goodwin/goodnm" class="input_search" style="left:651px; top:34; width:310px; height:19px; ">
  226. <script type="javascript" ev:event="xforms-value-changed">
  227. <![CDATA[
  228. if(ipt_goodnm.value.length == 0)
  229. ipt_goodcd.value = "";
  230. else
  231. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodnm",
  232. "goodnm," + model.getValue(ipt_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodnm.attribute("ref")) ,"","goodcd,goodnm",
  233. ipt_goodnm,"SPRSD00210","instcd,goodflag","ipt_instcd,cmb_goodflag");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </input>
  238. <input id="ipt_goodcd" ref="/root/send/goodwin/goodcd" class="input_search" imemode="disabled" _chartype="upper" style="left:522px; top:34; width:105px; height:19px; ">
  239. <script type="javascript" ev:event="xforms-value-changed">
  240. <![CDATA[
  241. if ( model.getValue(ipt_goodcd.attribute("ref")).length == 0 ) model.setValue(ipt_goodnm.attribute("ref"),"");
  242. else rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(ipt_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","ipt_instcd,cmb_goodflag");
  243. model.refresh();
  244. ]]>
  245. </script>
  246. </input>
  247. <button id="button10" class="icon_search" style="left:631px; top:35px; width:16px; height:16px; ">
  248. <caption/>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","ipt_instcd,cmb_goodflag");
  252. model.refresh();
  253. ]]>
  254. </script>
  255. </button>
  256. <caption id="caption40" class="search_name" style="left:756px; top:9; width:89px; height:17px; ">대 분 류 :</caption>
  257. <select1 id="cmb_windeptcd" ref="/root/send/goodwin/windeptcd" class="combo_s_essential" appearance="minimal" style="left:522px; top:8; width:130px; height:19px; ">
  258. <choices>
  259. <itemset>
  260. <label/>
  261. <value/>
  262. </itemset>
  263. </choices>
  264. </select1>
  265. <select1 id="cmb_lrgcd" ref="/root/send/goodwin/lrgcd" class="combo_s_essential" appearance="minimal" style="left:840px; top:8; width:121px; height:19px; ">
  266. <choices>
  267. <itemset>
  268. <label/>
  269. <value/>
  270. </itemset>
  271. </choices>
  272. </select1>
  273. <input id="ipt_instcd" ref="/root/send/goodwin/instcd" visibility="hidden" style="left:1020px; top:8; width:30px; height:19px; "/>
  274. <input id="ipt_winfrdd" ref="/root/send/goodwin/winfrdd" class="input_s_essential" inputtype="date" style="left:104px; top:8; width:100px; height:19px; "/>
  275. <input id="ipt_wintodd" ref="/root/send/goodwin/wintodd" class="input_s_essential" inputtype="date" style="left:225px; top:8; width:100px; height:19px; "/>
  276. </group>
  277. </group>
  278. <group id="group2" style="left:0px; top:12px; width:1195; height:27px; ">
  279. <button id="button1" class="btn3_letter6" visibility="hidden" style="left:58px; top:3px; width:104px; height:22px; ">
  280. <caption>입고전표관리</caption>
  281. </button>
  282. <button id="button3" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  283. <caption>출력</caption>
  284. </button>
  285. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  286. <caption>초기화</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fInitialize();
  290. ]]>
  291. </script>
  292. </button>
  293. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  294. </group>
  295. </xhtml:body>
  296. </xhtml:html>