SMRSO02400_출고내역조회(약국).xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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. <list>
  11. <gooddelive>
  12. <gooddelivelist/>
  13. </gooddelive>
  14. </list>
  15. </main>
  16. <init>
  17. <reqdeliveqty/>
  18. </init>
  19. <send>
  20. <save>
  21. <gooddelivelist/>
  22. </save>
  23. <gooddelive>
  24. <instcd/>
  25. <goodflag/>
  26. <delivedeptcd/>
  27. <delivedeptnm/>
  28. <windeptnm/>
  29. <windeptcd/>
  30. <goodnm/>
  31. <goodcd/>
  32. <delivefrdd/>
  33. <delivetodd/>
  34. <iokindcd/>
  35. <lrgnm/>
  36. <lrgcd/>
  37. </gooddelive>
  38. </send>
  39. </root>
  40. </instance>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. //화면 Control을 초기화한다
  44. fInitialize();
  45. ]]>
  46. </script>
  47. <submission id="TRRSO00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/gooddelive" resultref="/root/main/list/gooddelive"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  52. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  55. <script type="javascript">
  56. <![CDATA[
  57. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  58. function fInitialize() {
  59. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  60. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  61. rszfGetPurcIOFlagList(cmb_iokindcd, model.getValue(cmb_instcd.attribute("ref")) , "O","Y","","","%");
  62. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  63. rszfGridComboLrgcdList("PH", cmb_lrgcd, "lrgcd","Y");
  64. rszfComboStockArthDeptcdList(cmb_delivedeptcd,getUserInfo("dutplceinstcd"),"PH" );
  65. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  66. misfGridInit(grd_gooddelive);
  67. misfMsterDetailSet(grd_gooddelive,null, "TRRSO00401" ,"N");
  68. var curdate = getCurrentDate();
  69. var cvtdate = curdate.toDate("YYYYMMDD");
  70. model.setValue(ipt_delivefrdd.attribute("ref") ,cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD"));
  71. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  72. model.setValue(ipt_delivetodd.attribute("ref") ,curdate);
  73. //hidden
  74. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  75. model.setValue(cmb_goodflag.attribute("ref") ,"PH");
  76. model.refresh();
  77. }
  78. function fCheckRetrieveData()
  79. {
  80. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  81. {
  82. model.setFocus("cmb_instcd");
  83. return false;
  84. }
  85. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  86. {
  87. model.setFocus("cmb_goodflag");
  88. return false;
  89. }
  90. if(model.getValue(ipt_delivefrdd.attribute("ref")).length== 0 )
  91. {
  92. model.setFocus("ipt_delivefrdd");
  93. return false;
  94. }
  95. if(model.getValue(ipt_delivetodd.attribute("ref")).length== 0 )
  96. {
  97. model.setFocus("ipt_delivetodd");
  98. return false;
  99. }
  100. if(model.getValue(cmb_delivedeptcd.attribute("ref")).length== 0 )
  101. {
  102. model.setFocus("cmb_delivedeptcd");
  103. return false;
  104. }
  105. }
  106. ]]>
  107. </script>
  108. </xhtml:head>
  109. <xhtml:body>
  110. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  111. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">약품 출고내역 조회</caption>
  112. </group>
  113. <group id="group5" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  114. <group id="group6" style="left:0px; top:13px; width:1195px; height:87px; vertical-align:top; ">
  115. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:85px; "/>
  116. <button id="btn_seach" class="btn1_letter2" navindex="8" style="left:1124px; top:20px; width:56px; height:22px; text-align:left; ">
  117. <caption>조회</caption>
  118. <script type="javascript" ev:event="DOMActivate">
  119. <![CDATA[
  120. if(fCheckRetrieveData() == false)return;
  121. misfGridInit(grd_gooddelive)
  122. misfMsterDetailRetrieve();
  123. ]]>
  124. </script>
  125. </button>
  126. <line id="line14" class="line_4" style="x1:1109px; y1:10px; x2:1109px; y2:53px; border-color:#ffe4bb; border-left-style:solid; "/>
  127. <caption id="caption1" class="search_name" style="left:410px; top:9px; width:86px; height:17px; ">약품분류 :</caption>
  128. <caption id="caption10" class="search_name" style="left:15px; top:9; width:94px; height:17px; ">기관코드 :</caption>
  129. <caption id="caption4" class="search_name" style="left:765px; top:9px; width:86px; height:17px; ">출고부서 :</caption>
  130. <caption id="caption7" class="search_name" style="left:410px; top:35px; width:93px; height:17px; ">출고일자 :</caption>
  131. <select1 id="cmb_instcd" ref="/root/send/gooddelive/instcd" class="combo_s_essential" appearance="minimal" style="left:100px; top:8; width:120px; height:19px; ">
  132. <choices>
  133. <itemset nodeset="/root/init/goodflag">
  134. <label ref="cdnm"/>
  135. <value ref="cdid"/>
  136. </itemset>
  137. </choices>
  138. </select1>
  139. <input id="ipt_delivefrdd" ref="/root/send/gooddelive/delivefrdd" class="input_s_essential" inputtype="date" style="left:496px; top:34px; width:110px; height:19px; "/>
  140. <input id="ipt_delivetodd" ref="/root/send/gooddelive/delivetodd" class="input_s_essential" inputtype="date" style="left:638px; top:34px; width:110px; height:19px; "/>
  141. <caption id="caption11" class="search_n_b" style="left:617px; top:36px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  142. <input id="ipt_windeptcd" ref="/root/send/gooddelive/windeptnm" class="input_search" style="left:214px; top:60px; width:156px; height:19px; ">
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. misfValidationCheck("02", "", "windeptcd,windeptnm" );
  146. model.refresh();
  147. model.setFocus("ipt_reqflag");
  148. ]]>
  149. </script>
  150. </input>
  151. <input id="ipt_windeptnm" ref="/root/send/gooddelive/windeptcd" class="input_search" style="left:100px; top:60px; width:90px; height:19px; ">
  152. <script type="javascript" ev:event="xforms-value-changed">
  153. <![CDATA[
  154. misfValidationCheck("02", "", "windeptcd,windeptnm" );
  155. model.refresh();
  156. model.setFocus("ipt_reqflag");
  157. ]]>
  158. </script>
  159. </input>
  160. <button id="button2" class="icon_search" style="left:194px; top:62px; width:16px; height:16px; ">
  161. <caption/>
  162. <script type="javascript" ev:event="DOMActivate">
  163. <![CDATA[
  164. var recv_list = "windeptcd,windeptnm";
  165. misfOpenPopUpList("02", ipt_windeptcd,"", recv_list) ;
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <caption id="caption3" class="search_name" style="left:15px; top:61px; width:93px; height:17px; ">입고부서 :</caption>
  171. <caption id="caption12" class="search_name" style="left:410px; top:61px; width:86px; height:17px; ">약품코드 :</caption>
  172. <button id="button3" class="icon_search" style="left:590px; top:62px; width:16px; height:16px; ">
  173. <caption/>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  177. model.refresh();
  178. ]]>
  179. </script>
  180. </button>
  181. <input id="ipt_goodnm" ref="/root/send/gooddelive/goodnm" class="input_search" style="left:610px; top:60px; width:180px; height:19px; ">
  182. <script type="javascript" ev:event="xforms-value-changed">
  183. <![CDATA[
  184. if(ipt_goodnm.value != "")
  185. {
  186. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  187. }else{
  188. ipt_goodnm.value = "";
  189. ipt_goodcd.value = "";
  190. }
  191. model.refresh();
  192. ]]>
  193. </script>
  194. </input>
  195. <input id="ipt_goodcd" ref="/root/send/gooddelive/goodcd" class="input_search" imemode="disabled" style="left:496px; top:60px; width:90px; height:19px; ">
  196. <script type="javascript" ev:event="xforms-value-changed">
  197. <![CDATA[
  198. if(ipt_goodcd.value != "")
  199. {
  200. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_goodflag.attribute("ref")) + "," + model.getValue(ipt_goodcd.attribute("ref")) + ",,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  201. }else{
  202. ipt_goodcd.value = "";
  203. ipt_goodnm.value = "";
  204. }
  205. model.refresh();
  206. ]]>
  207. </script>
  208. </input>
  209. <caption id="caption2" class="search_name" style="left:15; top:35; width:93px; height:17px; ">출고유형 :</caption>
  210. <select1 id="cmb_iokindcd" ref="/root/send/gooddelive/iokindcd" class="combo_s_essential" appearance="minimal" style="left:100; top:34; width:120px; height:19px; ">
  211. <choices>
  212. <itemset nodeset="/root/init/ioflag">
  213. <label ref="cdnm"/>
  214. <value ref="cdid"/>
  215. </itemset>
  216. </choices>
  217. </select1>
  218. <select1 id="cmb_goodflag" ref="/root/send/gooddelive/goodflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1040px; top:8px; width:26px; height:19px; ">
  219. <choices>
  220. <itemset nodeset="/root/init/goodflag">
  221. <label ref="cdnm"/>
  222. <value ref="cdid"/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <select1 id="cmb_delivedeptcd" ref="/root/send/gooddelive/delivedeptcd" class="combo_s_essential" appearance="minimal" style="left:850px; top:8px; width:120px; height:19px; ">
  227. <choices>
  228. <itemset>
  229. <label/>
  230. <value/>
  231. </itemset>
  232. </choices>
  233. </select1>
  234. <select1 id="cmb_lrgcd" ref="/root/send/gooddelive/lrgcd" class="combo_s_essential" appearance="minimal" style="left:496px; top:8px; width:154px; height:19px; ">
  235. <choices>
  236. <itemset>
  237. <label/>
  238. <value/>
  239. </itemset>
  240. </choices>
  241. </select1>
  242. </group>
  243. <caption id="caption5" class="tit_2" style="left:5px; top:108px; width:157px; height:13px; ">출고내역</caption>
  244. <line id="line1" class="line_1" style="x1:0px; y1:123px; x2:1195px; y2:123px; "/>
  245. <datagrid id="grd_gooddelive" nodeset="/root/main/list/gooddelive/gooddelivelist" caption="출고일자^입고부서^출고유형^출고번호^출고순번^약품코드^약품명^함량^물품모델^출고^출고^출고자^출고자" colsep="^" colwidth="73, 129, 89, 61, 59, 113, 322, 104, 0, 67, 54, 96, 80, 100, 100, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:128px; width:1195px; height:602px; ">
  246. <col ref="delivedd" format="yyyy-mm-dd"/>
  247. <col ref="windeptnm"/>
  248. <col ref="iokindnm"/>
  249. <col ref="deliveno" style="text-align:center; "/>
  250. <col ref="deliveseqno" style="text-align:center; "/>
  251. <col ref="goodcd"/>
  252. <col ref="goodnm"/>
  253. <col ref="goodspec"/>
  254. <col ref="goodmodel" visibility="hidden"/>
  255. <col ref="delivedeptqty" style="text-align:right; "/>
  256. <col ref="deliveunit" style="text-align:center; "/>
  257. <col ref="delivepsnnm" style="text-align:center; "/>
  258. <col ref="delivepsn" visibility="hidden" style="text-align:center; "/>
  259. <col ref="reqflag" visibility="hidden"/>
  260. <col ref="reqdd" visibility="hidden" format="yyyy-mm-dd"/>
  261. <col ref="reqno" visibility="hidden" style="text-align:center; "/>
  262. <col ref="reqseqno" visibility="hidden" style="text-align:center; "/>
  263. </datagrid>
  264. <caption id="caption8" visibility="hidden" style="left:920px; top:103px; width:58px; height:20px; vertical-align:middle; ">출고합계 :</caption>
  265. <output id="ipt_reqdeliveqty" ref="/root/init/reqdeliveqty" class="input_s_essential" visibility="hidden" style="left:978px; top:102px; width:100px; height:19px; "/>
  266. <button id="btn_excel" class="btn6_letter2" style="left:1135px; top:100px; width:56px; height:22px; ">
  267. <caption>엑셀</caption>
  268. <script type="javascript" ev:event="DOMActivate">
  269. <![CDATA[
  270. misfSaveExcel(grd_gooddelive);
  271. ]]>
  272. </script>
  273. </button>
  274. </group>
  275. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  276. <button id="button35" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  277. <caption>초기화</caption>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. //화면 Control을 초기화한다
  281. fInitialize();
  282. ]]>
  283. </script>
  284. </button>
  285. <line id="line2" class="line_6" style="x1:0; y1:25; x2:1195px; y2:25; "/>
  286. </group>
  287. </xhtml:body>
  288. </xhtml:html>