SPMNG00700_멸균품목내역.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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. <reqdinfinfo>
  11. <reqdinfinfolist/>
  12. </reqdinfinfo>
  13. <reqdinfdetlinfo>
  14. <reqdinfgoodinfolist/>
  15. </reqdinfdetlinfo>
  16. </main>
  17. <send>
  18. <reqdata/>
  19. </send>
  20. <temp>
  21. <csrreqdeptlist/>
  22. </temp>
  23. <cond>
  24. <srchflag>01</srchflag>
  25. <csrreqdeptcd/>
  26. <reqdeptcd/>
  27. <reqpridflag/>
  28. <delivestat>bfdlv</delivestat>
  29. <rtnflag/>
  30. <reqdd/>
  31. <goodflag/>
  32. </cond>
  33. <init>
  34. <lrglist/>
  35. <mdllist/>
  36. <smllist/>
  37. <csrdeptlist/>
  38. </init>
  39. <hidden>
  40. <deptcodelist/>
  41. <common>
  42. <deliveflaginfo/>
  43. </common>
  44. </hidden>
  45. </root>
  46. </instance>
  47. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  49. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  50. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  51. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  52. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  53. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. fInitialize();
  57. ]]>
  58. </script>
  59. <submission id="TRMNG00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" resultref="/root/main/reqdinfinfo"/>
  60. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/temp/csrreqdeptlist"/>
  61. <submission id="TRMNG00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/deptcodelist"/>
  62. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/csrdeptlist"/>
  63. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  64. <submission id="TRMNG00704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/reqdinfdetlinfo"/>
  65. </model>
  66. <script type="javascript">
  67. <![CDATA[
  68. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  69. function fInitialize()
  70. {
  71. clearParameter("dutycd");
  72. var dutycd = opener.javascript.getParameter("dutycd");
  73. if(dutycd == "W") {
  74. caption7.text = "청구세척품 내역";
  75. } else {
  76. caption7.text = "청구멸균품 내역";
  77. }
  78. caption7.refresh();
  79. zbcfGetCodeList (new Array("M0592"),new Array("/root/hidden/common/deliveflaginfo"),true);
  80. model.removeNodeset("/root/main/reqdinfinfo/reqdinfinfolist");
  81. model.removeNodeset("/root/main/reqdinfdetlinfo/reqdinfgoodinfolist");
  82. model.setValue("/root/cond/reqdd",getCurrentDate());
  83. model.makeValue("/root/send/goodreq/instcd", getUserInfo("dutplceinstcd"));
  84. model.makeValue("/root/send/goodreq/useyn", "Y");
  85. model.makeValue("/root/cond/srchflag","D");
  86. submit("TRMNG00401");//부서구분 조회
  87. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  88. model.removeNodeset("/root/send/reqdata");
  89. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  90. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  91. model.makeValue("/root/send/reqdata/refcond", "deptcd");
  92. submit("TRMNG00303");
  93. model.setValue("/root/cond/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
  94. cmb_csrreqdeptcd.refresh();
  95. model.removeNodeset("/root/send/reqdata");
  96. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  97. model.makeValue("/root/send/reqdata/useyn","Y");
  98. submit("TRMNG00402");
  99. model.setValue("/root/cond/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd"));
  100. cmb_deptcd.refresh();
  101. model.refresh();
  102. fSerachData();
  103. }
  104. function fSerachData()
  105. {
  106. var delivestat = model.getValue("/root/cond/delivestat");
  107. if((delivestat =="R")||(delivestat =="RC")){
  108. cap_reqdd.attribute("text") ="반납일자 :";
  109. model.makeValue("/root/cond/srchflag","T");
  110. }else{
  111. cap_reqdd.attribute("text") ="청구일자 :";
  112. model.makeValue("/root/cond/srchflag","D");
  113. }
  114. cap_reqdd.refresh();
  115. submit("TRMNG00703");
  116. }
  117. ]]>
  118. </script>
  119. </xhtml:head>
  120. <xhtml:body pagewidth="770" pageheight="600" guideline="1,963;2,771;1,865;" style="font-family:굴림체; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  121. <group id="grp_biz" scroll="auto" style="left:5px; top:16px; width:740px; height:549px; ">
  122. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:7px; width:725px; height:88px; background-color:#fffbf2; border-color:#ffd799; "/>
  123. <caption id="caption1" class="tit_2" style="left:4px; top:106px; width:136px; height:14px; ">청구부서</caption>
  124. <line id="line1" class="line_1" style="x1:4px; y1:120px; x2:369px; y2:120px; "/>
  125. <button id="button1" class="btn2_letter4" style="left:305px; top:100px; width:64px; height:19px; ">
  126. <caption>선택적용</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var chkyn;
  130. var param = "";
  131. var goodnm = "";
  132. for(var i = grd_reqdinfinfolist.fixedRows; i < grd_reqdinfinfolist.rows; i++) {
  133. chkyn = grd_reqdinfinfolist.valueMatrix(i, grd_reqdinfinfolist.colRef("chkyn"));
  134. reqdeptnm = grd_reqdinfinfolist.valueMatrix(i, grd_reqdinfinfolist.colRef("reqdeptnm"));
  135. if(chkyn == "Y") {
  136. param += reqdeptnm;
  137. if((i+1) != grd_reqdinfinfolist.rows) { //마지막 데이터가 아니라면
  138. param += "\n";
  139. }
  140. }
  141. }
  142. if ( checkOpener() ) {
  143. opener.javascript.setParameter("param",param);
  144. } else {
  145. var rtn = messageBox("상위화면을 찾을 수", "E001");
  146. opener.javascript.setParameter("param","");
  147. }
  148. window.close();
  149. ]]>
  150. </script>
  151. </button>
  152. <datagrid id="grd_reqdinfinfolist" nodeset="/root/main/reqdinfinfo/reqdinfinfolist" class="datagrid2" caption="선택^청구&#xA;구분^청구&#xA;차수^청구부서^reqdeptcd^reqdd" colsep="^" colwidth="32, 47, 50, 174, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:125px; width:365px; height:415px; ">
  153. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  154. <col disabled="true" ref="deliveflag" type="combo" style="text-align:center; ">
  155. <choices>
  156. <itemset nodeset="/root/hidden/common/deliveflaginfo/M0592">
  157. <label ref="cdnm"/>
  158. <value ref="cdid"/>
  159. </itemset>
  160. </choices>
  161. </col>
  162. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  163. <choices>
  164. <item>
  165. <label>1차</label>
  166. <value>1</value>
  167. </item>
  168. <item>
  169. <label>2차</label>
  170. <value>2</value>
  171. </item>
  172. <item>
  173. <label>3차</label>
  174. <value>3</value>
  175. </item>
  176. <item>
  177. <label>4차</label>
  178. <value>4</value>
  179. </item>
  180. <item>
  181. <label>5차</label>
  182. <value>5</value>
  183. </item>
  184. </choices>
  185. </col>
  186. <col ref="reqdeptnm" style="text-align:center; "/>
  187. <col ref="reqdeptcd" visibility="hidden"/>
  188. <col ref="reqdd" visibility="hidden"/>
  189. <script type="javascript" ev:event="ondblclick">
  190. <![CDATA[
  191. if(!isDataCell()) return;
  192. if(grd_reqdinfinfolist.col !=grd_reqdinfinfolist.colRef("chkyn")){
  193. var iRow = grd_reqdinfinfolist.row - grd_reqdinfinfolist.fixedRows+1;
  194. model.makeValue("/root/send/reqdata/reqdd" ,grd_reqdinfinfolist.valueMatrix(iRow,grd_reqdinfinfolist.colRef("reqdd")));
  195. model.makeValue("/root/send/reqdata/deliveflag" ,grd_reqdinfinfolist.valueMatrix(iRow,grd_reqdinfinfolist.colRef("deliveflag")));
  196. model.makeValue("/root/send/reqdata/reqpridflag",grd_reqdinfinfolist.valueMatrix(iRow,grd_reqdinfinfolist.colRef("reqpridflag")));
  197. model.makeValue("/root/send/reqdata/reqdeptcd" ,grd_reqdinfinfolist.valueMatrix(iRow,grd_reqdinfinfolist.colRef("reqdeptcd")));
  198. var delivestat = model.getValue("/root/cond/delivestat");
  199. if((delivestat =="R")||(delivestat =="RC")){
  200. model.makeValue("/root/send/reqdata/srchflag","T");
  201. }else{
  202. model.makeValue("/root/send/reqdata/srchflag","D");
  203. }
  204. if(submit("TRMNG00704")){
  205. model.removeNodeset("/root/send/reqdata");
  206. }
  207. }
  208. ]]>
  209. </script>
  210. </datagrid>
  211. <line id="line3" class="line_4" style="x1:655px; y1:32px; x2:655px; y2:73px; border-color:#ffe4bb; border-left-style:solid; "/>
  212. <button id="btn_search" class="btn1_letter2" style="left:665px; top:45px; width:56px; height:22px; ">
  213. <caption>조회</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. fSerachData();
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="caption3" class="search_name" style="left:10px; top:15px; width:91px; height:17px; ">조회 조건 :</caption>
  221. <select1 id="cmb_reqpridflag" ref="/root/cond/reqpridflag" appearance="minimal" style="left:410px; top:40px; width:65px; height:19px; ">
  222. <choices>
  223. <item>
  224. <label>전체</label>
  225. <value/>
  226. </item>
  227. <item>
  228. <label>1차</label>
  229. <value>1</value>
  230. </item>
  231. <item>
  232. <label>2차</label>
  233. <value>2</value>
  234. </item>
  235. <item>
  236. <label>3차</label>
  237. <value>3</value>
  238. </item>
  239. <item>
  240. <label>응급</label>
  241. <value>-</value>
  242. </item>
  243. </choices>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. fSerachData();
  247. ]]>
  248. </script>
  249. </select1>
  250. <caption id="caption2" class="search_name" style="left:318px; top:41px; width:86px; height:17px; ">청구차수:</caption>
  251. <select1 id="cmb_deptcd" ref="/root/cond/reqdeptcd" class="combo_s_essential" appearance="minimal" style="left:410px; top:15px; width:95px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/csrdeptlist">
  254. <label ref="deptnm"/>
  255. <value ref="deptcd"/>
  256. </itemset>
  257. </choices>
  258. <script type="javascript" ev:event="xforms-value-changed">
  259. <![CDATA[
  260. fSerachData();
  261. ]]>
  262. </script>
  263. </select1>
  264. <caption id="caption20" class="search_name" style="left:110px; top:15px; width:94px; height:17px; ">부서구분 :</caption>
  265. <caption id="caption10" class="search_name" style="left:318px; top:15px; width:90px; height:17px; ">청구부서 :</caption>
  266. <select1 id="cmb_csrreqdeptcd" ref="/root/cond/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:200px; top:15px; width:95px; height:19px; ">
  267. <choices>
  268. <itemset nodeset="/root/temp/csrreqdeptlist">
  269. <label ref="csrreqdeptnm"/>
  270. <value ref="csrreqdeptcd"/>
  271. </itemset>
  272. </choices>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  276. model.makeValue("/root/send/reqdata/useyn","Y");
  277. submit("TRMNG00402");
  278. cmb_deptcd.refresh();
  279. if(getNodesetCnt(model,"/root/init/csrdeptlist") == 1 ){
  280. model.setValue("/root/cond/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  281. }else{
  282. addComboItem( "cmb_deptcd", "전체", "", "above");
  283. model.setValue("/root/cond/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  284. }
  285. model.removeNodeset("/root/send/reqdata");
  286. fSerachData();
  287. ]]>
  288. </script>
  289. </select1>
  290. <select1 id="rdo_delivestat" ref="/root/cond/delivestat" overflow="visible" appearance="full" cols="4" style="left:132px; top:68px; width:263px; height:20px; border-style:none; ">
  291. <choices>
  292. <item>
  293. <label>불출전</label>
  294. <value>bfdlv</value>
  295. </item>
  296. <item>
  297. <label>불출완료</label>
  298. <value>fdlv</value>
  299. </item>
  300. <item>
  301. <label>반납</label>
  302. <value>R</value>
  303. </item>
  304. <item>
  305. <label>반납완료</label>
  306. <value>RC</value>
  307. </item>
  308. </choices>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. var delivestat = model.getValue("/root/cond/delivestat");
  312. if((delivestat =="R")||(delivestat =="RC")){
  313. cap_reqdd.attribute("text") ="반납일자 :";
  314. model.makeValue("/root/cond/srchflag","T");
  315. }else{
  316. cap_reqdd.attribute("text") ="청구일자 :";
  317. model.makeValue("/root/cond/srchflag","D");
  318. }
  319. cap_reqdd.refresh();
  320. ]]>
  321. </script>
  322. </select1>
  323. <caption id="caption4" class="search_name" style="left:110px; top:68px; width:25px; height:17px; "/>
  324. <datagrid id="datagrid1" nodeset="/root/main/reqdinfdetlinfo/reqdinfgoodinfolist" class="datagrid2" caption="물품코드^물품명" colsep="^" colwidth="119, 199" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:380px; top:125px; width:350px; height:415px; ">
  325. <col ref="goodcd" style="text-align:center; "/>
  326. <col ref="goodnm" style="text-align:left; "/>
  327. </datagrid>
  328. <caption id="caption7" class="tit_2" style="left:380px; top:106px; width:136px; height:13px; ">청구멸균품 내역</caption>
  329. <line id="line2" class="line_1" style="x1:380px; y1:120px; x2:730px; y2:120px; "/>
  330. <caption id="cap_reqdd" class="search_name" style="left:110px; top:41px; width:94px; height:17px; ">청구일자 :</caption>
  331. <input id="ipt_reqdd" ref="/root/cond/reqdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:200px; top:40px; width:94px; height:19px; "/>
  332. </group>
  333. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">멸균/세척품내역 조회</caption>
  334. </xhtml:body>
  335. </xhtml:html>