SPMNG00800_물품기본정보등록.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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. <goodlist>
  11. <reqflag>1</reqflag>
  12. <mstflag>T</mstflag>
  13. <proddrugsetflag/>
  14. <useyn>Y</useyn>
  15. <goodpos/>
  16. <goodpos1/>
  17. <goodpos2/>
  18. <dinfflag>1</dinfflag>
  19. <dinfdivs/>
  20. <lrgcd/>
  21. <mdlcd/>
  22. <smlcd/>
  23. <csrflag>Y</csrflag>
  24. <csrrequnit/>
  25. <csrreqqty/>
  26. </goodlist>
  27. </main>
  28. <send>
  29. <instcd/>
  30. </send>
  31. <temp/>
  32. <init>
  33. <initflag/>
  34. <deptflag/>
  35. <deptref>
  36. <instcd/>
  37. </deptref>
  38. <mlist>
  39. <R0092>
  40. <cdid/>
  41. <cdnm/>
  42. </R0092>
  43. <R0032>
  44. <cdid/>
  45. <cdnm/>
  46. </R0032>
  47. <R0039>
  48. <cdid/>
  49. <cdnm/>
  50. </R0039>
  51. <R0111>
  52. <cdid/>
  53. <cdnm/>
  54. </R0111>
  55. </mlist>
  56. </init>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. //화면 Control을 초기화한다
  62. // fCheckAuth();
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  67. <submission id="TRMNG00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/lrglist"/>
  68. <submission id="TRMNG00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/mdllist"/>
  69. <submission id="TRMNG00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqlrgcd" resultref="/root/init/smllist"/>
  70. </model>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  75. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  76. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  77. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  78. <script type="javascript">
  79. <![CDATA[
  80. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  81. function fInitialize() {
  82. zbcfGetCodeList( new Array ( "R0092" //청구방법
  83. ,"R0032" //구매단위
  84. ,"R0039" //불출단위
  85. ,"R0111" //구매구분
  86. ,"R0093" //청구기간
  87. )
  88. , new Array ( "/root/init/mlist" //청구방법
  89. ,"/root/init/mlist" //구매단위
  90. ,"/root/init/mlist" //불출단위
  91. ,"/root/init/mlist" //구매구분
  92. ,"/root/init/mlist" //청구기간
  93. )
  94. );
  95. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  96. model.makeValue("/root/send/reqlrgcd/useyn", "Y");
  97. submit("TRMNG00101");
  98. }
  99. function fCheckAuth() {
  100. btn_search.disabled = !checkAuth("R") ;
  101. btn_save.disabled = !checkAuth("X") ;
  102. }
  103. ]]>
  104. </script>
  105. </xhtml:head>
  106. <xhtml:body pagewidth="700" pageheight="180" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:683px; height:155px; ">
  108. <line id="line1" class="line_1" style="x1:5px; y1:26px; x2:680px; y2:26px; "/>
  109. <caption id="caption4" class="tit_2" style="left:10px; top:11px; width:126px; height:13px; ">물품기본정보 등록</caption>
  110. <button id="btn_comfirm" class="btn4_letter2" navindex="28" style="left:620px; top:130px; width:56px; height:22px; ">
  111. <caption>확인</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. //model.copyNode(opener.root.main.popup, root.main.goodlist);
  115. //수정
  116. var dinfflag = model.getValue("/root/main/goodlist/dinfflag");
  117. var dinfdivs = model.getValue("/root/main/goodlist/dinfdivs");
  118. var proddrugsetflag = model.getValue("/root/main/goodlist/proddrugsetflag");
  119. if(dinfflag =="1"){
  120. if(dinfdivs ==""){
  121. messageBox("멸균선택시 세부항목은","I003");
  122. model.setFocus("cmb_dinfdivs");
  123. return;;
  124. }
  125. }
  126. if(proddrugsetflag ==""){
  127. messageBox("Set구분은","I003");
  128. model.setFocus("rdo_proddrugsetflag2");
  129. return;;
  130. }
  131. var oprnerId = opener.window.javascript.getScreenID();
  132. if(oprnerId =="SMMNG00200"){
  133. opener.window.javascript.setParameter("mstflag" ,model.getValue("/root/main/goodlist/mstflag"));
  134. opener.window.javascript.setParameter("proddrugsetflag" ,model.getValue("/root/main/goodlist/proddrugsetflag"));
  135. opener.window.javascript.setParameter("reqflag" ,model.getValue("/root/main/goodlist/reqflag"));
  136. opener.window.javascript.setParameter("goodpos" ,model.getValue("/root/main/goodlist/goodpos"));
  137. opener.window.javascript.setParameter("goodpos1" ,model.getValue("/root/main/goodlist/goodpos1"));
  138. opener.window.javascript.setParameter("goodpos2" ,model.getValue("/root/main/goodlist/goodpos2"));
  139. opener.window.javascript.setParameter("lrgcd" ,model.getValue("/root/main/goodlist/lrgcd"));
  140. opener.window.javascript.setParameter("mdlcd" ,model.getValue("/root/main/goodlist/mdlcd"));
  141. opener.window.javascript.setParameter("smlcd" ,model.getValue("/root/main/goodlist/smlcd"));
  142. opener.window.javascript.setParameter("dinfflag" ,model.getValue("/root/main/goodlist/dinfflag"));
  143. opener.window.javascript.setParameter("dinfdivs" ,model.getValue("/root/main/goodlist/dinfdivs"));
  144. opener.window.javascript.setParameter("csrflag" ,model.getValue("/root/main/goodlist/csrflag"));
  145. opener.window.javascript.setParameter("csrrequnit" ,model.getValue("/root/main/goodlist/csrrequnit"));
  146. opener.window.javascript.setParameter("csrreqqty" ,model.getValue("/root/main/goodlist/csrreqqty"));
  147. opener.window.javascript.setParameter("useyn" ,model.getValue("/root/main/goodlist/useyn"));
  148. opener.javascript.fGoodInfoSave();
  149. }
  150. window.close();
  151. ]]>
  152. </script>
  153. </button>
  154. <input id="ipt_goodpos1" ref="/root/main/goodlist/goodpos1" navindex="12" style="left:108px; top:104px; width:30px; height:19px; "/>
  155. <input id="ipt_goodpos2" ref="/root/main/goodlist/goodpos2" navindex="13" style="left:141px; top:104px; width:33px; height:19px; "/>
  156. <select1 id="rdo_reqflag" ref="/root/main/goodlist/reqflag" navindex="1" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:75px; top:82px; width:245px; height:15px; border-style:none; ">
  157. <choices>
  158. <item>
  159. <label>비품</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>소모품</label>
  164. <value>2</value>
  165. </item>
  166. <item>
  167. <label>린넨</label>
  168. <value>4</value>
  169. </item>
  170. <item>
  171. <label>멸균의뢰</label>
  172. <value>3</value>
  173. </item>
  174. </choices>
  175. </select1>
  176. <input id="ipt_goodpos" ref="/root/main/goodlist/goodpos" navindex="11" imemode="alpha" style="left:75px; top:104px; width:30px; height:19px; text-align:center; "/>
  177. <select1 id="rdo_useyn" ref="/root/main/goodlist/useyn" navindex="10" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:395px; top:106px; width:125px; height:13px; border-style:none; ">
  178. <choices>
  179. <item>
  180. <label>사용</label>
  181. <value>Y</value>
  182. </item>
  183. <item>
  184. <label>미사용</label>
  185. <value>N</value>
  186. </item>
  187. </choices>
  188. </select1>
  189. <line id="line2" class="line_2" style="x1:5px; y1:53px; x2:680px; y2:53px; "/>
  190. <line id="line3" class="line_2" style="x1:5px; y1:77px; x2:680px; y2:77px; "/>
  191. <line id="line4" class="line_2" style="x1:5px; y1:101px; x2:680px; y2:101px; "/>
  192. <line id="line7" class="line_2" style="x1:5px; y1:125px; x2:680px; y2:125px; "/>
  193. <caption id="caption1" class="cell_1" style="left:347px; top:55px; width:65px; height:23px; vertical-align:middle; ">멸균구분</caption>
  194. <select1 id="rdo_dinfflag" ref="/root/main/goodlist/dinfflag" navindex="1" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:415px; top:59px; width:115px; height:15px; border-style:none; ">
  195. <choices>
  196. <item>
  197. <label>멸균</label>
  198. <value>1</value>
  199. </item>
  200. <item>
  201. <label>비멸균</label>
  202. <value>2</value>
  203. </item>
  204. </choices>
  205. <script type="javascript" ev:event="xforms-value-changed">
  206. <![CDATA[
  207. if(model.getValue(rdo_dinfflag.attribute("ref")) == "1") {
  208. cmb_dinfdivs.disabled = false;
  209. } else {
  210. model.resetInstanceNode(cmb_dinfdivs.attribute("ref"));
  211. cmb_dinfdivs.refresh();
  212. cmb_dinfdivs.disabled = true;
  213. }
  214. ]]>
  215. </script>
  216. </select1>
  217. <caption id="caption2" class="cell_1" style="left:287px; top:31px; width:65px; height:23px; vertical-align:middle; ">분류구분</caption>
  218. <caption id="caption45" style="left:449px; top:32px; width:15px; height:20px; ">/</caption>
  219. <select1 id="cmb_smlcd" ref="/root/main/goodlist/smlcd" appearance="minimal" style="left:568px; top:32px; width:90px; height:19px; ">
  220. <choices>
  221. <itemset nodeset="/root/init/smllist">
  222. <label ref="smlnm"/>
  223. <value ref="smlcd"/>
  224. </itemset>
  225. </choices>
  226. </select1>
  227. <caption id="caption3" style="left:556px; top:32px; width:15px; height:20px; ">/</caption>
  228. <select1 id="cmb_lrgcd" ref="/root/main/goodlist/lrgcd" appearance="minimal" style="left:355px; top:32px; width:90px; height:19px; ">
  229. <choices>
  230. <itemset nodeset="/root/init/lrglist">
  231. <label ref="lrgnm"/>
  232. <value ref="lrgcd"/>
  233. </itemset>
  234. </choices>
  235. <script type="javascript" ev:event="xforms-value-changed">
  236. <![CDATA[
  237. model.makeValue("/root/send/reqlrgcd/goodflag", "T");
  238. model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue(cmb_lrgcd.attribute("ref")));
  239. model.makeValue("/root/send/reqlrgcd/useyn", "Y");
  240. submit("TRMNG00102");
  241. model.removeNodeset("/root/main/goodlist/mdlcd");
  242. model.removeNodeset("/root/main/goodlist/smlcd");
  243. model.makeNode("/root/main/goodlist/mdlcd");
  244. model.makeNode("/root/main/goodlist/smlcd");
  245. var nodelist = instance1.selectNodes("/root/init/mdllist");
  246. if(nodelist.length < 1){
  247. model.removeNodeset("/root/init/mdllist");
  248. model.removeNodeset("/root/init/smllist");
  249. }
  250. cmb_mdlcd.refresh();
  251. cmb_smlcd.refresh();
  252. ]]>
  253. </script>
  254. </select1>
  255. <select1 id="cmb_mdlcd" ref="/root/main/goodlist/mdlcd" appearance="minimal" style="left:463px; top:32px; width:90px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/init/mdllist">
  258. <label ref="mdlnm"/>
  259. <value ref="mdlcd"/>
  260. </itemset>
  261. </choices>
  262. <script type="javascript" ev:event="xforms-value-changed">
  263. <![CDATA[
  264. model.makeValue("/root/send/reqlrgcd/lrgcd", model.getValue("/root/main/goodlist/lrgcd"));
  265. model.makeValue("/root/send/reqlrgcd/mdlcd", model.getValue("/root/main/goodlist/mdlcd"));
  266. model.makeValue("/root/send/reqlrgcd/useyn", "Y");
  267. submit("TRMNG00103");
  268. model.removeNodeset("/root/main/goodlist/smllist");
  269. model.makeNode("/root/main/goodlist/smllist");
  270. var nodelist = instance1.selectNodes("/root/init/smllist");
  271. if(nodelist.length < 1){
  272. model.removeNodeset("/root/init/smllist");
  273. }
  274. cmb_smlcd.refresh();
  275. ]]>
  276. </script>
  277. </select1>
  278. <caption id="caption46" class="cell_1" style="left:5px; top:79px; width:67px; height:23px; vertical-align:middle; ">물품구분</caption>
  279. <select1 id="rdo_csrreqflag" ref="/root/main/goodlist/csrflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:395px; top:83px; width:75px; height:13px; border-style:none; ">
  280. <choices>
  281. <item>
  282. <label>Y</label>
  283. <value>Y</value>
  284. </item>
  285. <item>
  286. <label>N</label>
  287. <value>N</value>
  288. </item>
  289. </choices>
  290. </select1>
  291. <caption id="caption55" class="cell_1" style="left:5px; top:55px; width:67px; height:23px; vertical-align:middle; ">Set 구분</caption>
  292. <caption id="caption5" class="cell_1" style="left:327px; top:79px; width:65px; height:23px; vertical-align:middle; ">CSR청구</caption>
  293. <select1 id="cmb_csrrequnit" ref="/root/main/goodlist/csrrequnit" disabled="true" appearance="minimal" style="left:558px; top:80px; width:58px; height:19px; ">
  294. <choices>
  295. <itemset nodeset="/root/init/mlist/R0039">
  296. <label ref="cdnm"/>
  297. <value ref="cdid"/>
  298. </itemset>
  299. </choices>
  300. </select1>
  301. <input id="ipt_csrreqqty" ref="/root/main/goodlist/csrreqqty" maxlength="12" format="###.##" style="left:619px; top:80px; width:34px; height:19px; ">
  302. <script type="javascript" ev:event="onkeydown">
  303. <![CDATA[
  304. if(event.keyCode == 9)model.setFocus("ipt_goodnm");
  305. //event.preventDefault();
  306. ]]>
  307. </script>
  308. </input>
  309. <caption id="caption7" class="cell_1" style="left:490px; top:79px; width:65px; height:23px; vertical-align:middle; ">기준단위</caption>
  310. <select1 id="rdo_mstflag" ref="/root/main/goodlist/mstflag" appearance="full" cols="2" overflow="visible" style="left:75px; top:35px; width:85px; height:13px; border-style:none; ">
  311. <choices>
  312. <item>
  313. <label>CSR</label>
  314. <value>T</value>
  315. </item>
  316. </choices>
  317. </select1>
  318. <caption id="caption9" class="cell_1" style="left:5px; top:31px; width:67px; height:23px; text-align:center; vertical-align:middle; ">마스터구분</caption>
  319. <select1 id="cmb_dinfdivs" ref="/root/main/goodlist/dinfdivs" appearance="minimal" style="left:538px; top:56px; width:120px; height:19px; ">
  320. <choices>
  321. <item>
  322. <label>고압증기멸균</label>
  323. <value>1</value>
  324. </item>
  325. <item>
  326. <label>가스멸균</label>
  327. <value>2</value>
  328. </item>
  329. <item>
  330. <label>건열멸균</label>
  331. <value>3</value>
  332. </item>
  333. <item>
  334. <label>플라즈마멸균</label>
  335. <value>4</value>
  336. </item>
  337. </choices>
  338. </select1>
  339. <caption id="caption40" class="cell_1" style="left:327px; top:103px; width:65px; height:23px; vertical-align:middle; ">사용여부</caption>
  340. <caption id="caption54" class="cell_1" style="left:5px; top:103px; width:67px; height:23px; vertical-align:middle; ">물품위치</caption>
  341. <select1 id="rdo_proddrugsetflag2" ref="/root/main/goodlist/proddrugsetflag" appearance="full" cellspacing="15" cols="4" overflow="visible" style="left:75px; top:60px; width:270px; height:13px; border-style:none; ">
  342. <choices>
  343. <item>
  344. <label>Set</label>
  345. <value>1</value>
  346. </item>
  347. <item>
  348. <label>Single</label>
  349. <value>2</value>
  350. </item>
  351. <item>
  352. <label>Single(Set)</label>
  353. <value>3</value>
  354. </item>
  355. <item>
  356. <label>없음</label>
  357. <value>4</value>
  358. </item>
  359. </choices>
  360. <script type="javascript" ev:event="xforms-value-changed">
  361. <![CDATA[
  362. if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "3") {
  363. model.setValue(rdo_csrreqflag.attribute("ref"), "N");
  364. model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
  365. } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "2") {
  366. model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
  367. model.setValue(cmb_csrrequnit.attribute("ref"), "EA");
  368. } else if(model.getValue(rdo_proddrugsetflag2.attribute("ref")) == "1") {
  369. model.setValue(rdo_csrreqflag.attribute("ref"), "Y");
  370. model.setValue(cmb_csrrequnit.attribute("ref"), "SET");
  371. }
  372. rdo_csrreqflag.refresh();
  373. cmb_csrrequnit.refresh();
  374. ]]>
  375. </script>
  376. </select1>
  377. </group>
  378. </xhtml:body>
  379. </xhtml:html>