SMMNP03901_수술방재고관리(관리자).xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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. <init>
  10. <lrglist>
  11. <lrgcd/>
  12. <lrgnm/>
  13. </lrglist>
  14. <mdllist>
  15. <mdlcd/>
  16. <mdlnm/>
  17. </mdllist>
  18. <smllist>
  19. <smlcd/>
  20. <smlnm/>
  21. </smllist>
  22. <oproomlist>
  23. <oproomcd/>
  24. <oproomnm/>
  25. </oproomlist>
  26. <goodflaglist>
  27. <goodflagcd/>
  28. <goodflagnm/>
  29. </goodflaglist>
  30. <hardcodeinfo/>
  31. </init>
  32. <main>
  33. <cond>
  34. <oproomcd/>
  35. <useflag/>
  36. <goodcd/>
  37. <goodnm/>
  38. <allsizespecid/>
  39. <lrgcd/>
  40. <mdlcd/>
  41. <smlcd/>
  42. <goodflag/>
  43. <tabflag>CCR</tabflag>
  44. <refdeptflag>O</refdeptflag>
  45. <prodcmpynm/>
  46. <deliveyn/>
  47. <delivepriod/>
  48. <purcflag/>
  49. <cureflag/>
  50. <stocflag>R</stocflag>
  51. <refflag/>
  52. <cnfmyn>N</cnfmyn>
  53. <variable/>
  54. <oprosette/>
  55. <refcnfmyn/>
  56. <searflag/>
  57. </cond>
  58. <stoclist>
  59. <stocflagnm/>
  60. <deptflag/>
  61. <purcflag/>
  62. <useflag/>
  63. <delivepriod/>
  64. <deliveyn/>
  65. <oproomnm/>
  66. <goodcd/>
  67. <allsizespecid/>
  68. <goodnm/>
  69. <goodspec/>
  70. <goodmodel/>
  71. <prodcmpynm/>
  72. <safestocqty/>
  73. <stocqty/>
  74. <inspqty/>
  75. <prcpunit/>
  76. <chkflag/>
  77. <disreqqty/>
  78. <deliveqty/>
  79. <rtnqty/>
  80. <undeliveqty/>
  81. <rgstdd/>
  82. <inspdd/>
  83. <inspid/>
  84. <oproomcd/>
  85. <bfsafestocqty/>
  86. <stat/>
  87. <reqdd/>
  88. <reqcnfmyn/>
  89. <bfdeliveqty/>
  90. <reqqty/>
  91. <stocflag/>
  92. </stoclist>
  93. </main>
  94. <send>
  95. <reqdata/>
  96. <savedata/>
  97. </send>
  98. <hidden/>
  99. <temp>
  100. <chkcncl/>
  101. <openflag>STOC</openflag>
  102. <logginlevel>
  103. <usrlevel/>
  104. </logginlevel>
  105. <btnflag/>
  106. </temp>
  107. </root>
  108. </instance>
  109. <submission id="TRMNP03904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" add="bottom" resultref="/root/main/stoclist"/>
  110. <submission id="TRMNP03905" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init"/>
  111. <submission id="TXMNP03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
  112. <submission id="TXMNP03902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
  113. <submission id="TXMNP03903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stoclist"/>
  114. <submission id="TRMNP03906" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/stoclist"/>
  115. <script type="javascript" ev:event="xforms-close">
  116. <![CDATA[
  117. model.setValue("/root/temp/chkcncl", "C");
  118. ]]>
  119. </script>
  120. <submission id="TRMNP04463" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/lrglist"/>
  121. <submission id="TRMNP04464" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/mdllist"/>
  122. <submission id="TRMNP04465" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/smllist"/>
  123. <submission id="TRMNP04604" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/temp/logginlevel"/>
  124. <submission id="TRMNP03004" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/rosettelist"/>
  125. <submission id="TRMNP03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/oproomlist"/>
  126. <submission id="TRMNP04903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/hardcodeinfo"/>
  127. </model>
  128. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  130. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  131. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  132. <script type="javascript" src="../../../emr/opanstweb/js/SMMNP03910.js"/>
  133. <script type="javascript" ev:event="xforms-ready">
  134. <![CDATA[
  135. fInit();
  136. ]]>
  137. </script>
  138. </xhtml:head>
  139. <xhtml:body guideline="1,1195;2,342;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  140. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  141. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">방재고 등록 및 관리</caption>
  142. </group>
  143. <group id="grp_biz" scroll="auto" style="left:0px; top:18px; width:1195px; height:737px; ">
  144. <line id="line2" class="line_1" style="x1:0px; y1:110px; x2:1195px; y2:110px; "/>
  145. <line id="line1" class="line_1" style="x1:0px; y1:124px; x2:1194px; y2:124px; "/>
  146. <group id="grp_sea" style="left:0px; top:0px; width:1194px; height:85px; vertical-align:top; ">
  147. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  148. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:31px; width:56px; height:22px; ">
  149. <caption>조회</caption>
  150. <script type="javascript" ev:event="DOMActivate">
  151. <![CDATA[
  152. fSearch("1");
  153. ]]>
  154. </script>
  155. </button>
  156. <line id="line13" class="line_4" style="x1:1110px; y1:18px; x2:1110px; y2:66px; "/>
  157. <caption id="caption4" class="search_name" style="left:300px; top:5px; width:83px; height:17px; ">수 술 방 :</caption>
  158. <select1 id="cmb_oproomcd" ref="/root/main/cond/oproomcd" appearance="minimal" style="left:450px; top:5px; width:55px; height:19px; ">
  159. <choices>
  160. <itemset nodeset="/root/init/oproomlist">
  161. <label ref="oproomnm"/>
  162. <value ref="oproomcd"/>
  163. </itemset>
  164. </choices>
  165. </select1>
  166. <caption id="caption26" class="search_name" style="left:520px; top:30px; width:86px; height:17px; ">불출시기 :</caption>
  167. <caption id="caption28" class="search_name" style="left:825px; top:30px; width:83px; height:17px; ">제 조 원 :</caption>
  168. <caption id="caption29" class="search_name" style="left:520px; top:55px; width:94px; height:17px; ">물품코드 :</caption>
  169. <input id="ipt_goodcd" ref="/root/main/cond/goodcd" class="input_search" style="left:610px; top:55px; width:85px; height:19px; ">
  170. <script type="javascript" ev:event="onkeyup">
  171. <![CDATA[
  172. inputEnterKey("btn_search", "DOMActivate");
  173. ]]>
  174. </script>
  175. </input>
  176. <button id="btn_goodsearch" class="icon_search" style="left:700px; top:56px; width:16px; height:16px; ">
  177. <caption/>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. model.setValue("/root/temp/chkcncl", "");
  181. //var variable = "'";
  182. //var goodcd = "";
  183. //var goodnm = "";
  184. //var oldgoodcd, oldgoodnm, oldvariable;
  185. //oldgoodcd = model.getValue("/root/main/cond/goodcd");
  186. //oldgoodnm = model.getValue("/root/main/cond/goodnm");
  187. //oldvariable = model.getValue("/root/main/cond/variable");
  188. var refflag = model.getValue("/root/temp/refflag");
  189. if( refflag == "1" ) { /*물품명으로 검색*/
  190. setParameter("refnm", model.getValue("/root/main/cond/goodnm"));
  191. setParameter("refflag", "1");
  192. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  193. setParameter("refnm", model.getValue("/root/main/cond/goodcd"));
  194. setParameter("refflag", "2");
  195. }
  196. setParameter("goodflag", model.getValue("/root/main/cond/goodflag"));
  197. setParameter("menuparam", "T");
  198. setParameter("cartgubn", model.getValue("/root/main/cond/refdeptflag"));
  199. setParameter("tabflag", "CCR");
  200. open("SMMNP04460" ,"", "100", "100", "SMMNP04460", "/root/temp/openflag", "/root/main/cond/openflag");
  201. /*var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  202. if( getData != "") {
  203. if( model.getValue("/root/temp/chkcncl") != "C" ) {
  204. var getDataTemp1 = getData.split("▩");
  205. for( var i = 0; i < getDataTemp1.length-1; i++) {
  206. var getDataTemp2 = getDataTemp1[i].split("|");
  207. variable = variable + getDataTemp2[0] + getDataTemp2[2] + "'";
  208. goodcd = goodcd + getDataTemp2[0];
  209. goodnm = goodnm + getDataTemp2[1];
  210. if(( i+1) != (getDataTemp1.length-1) ) {
  211. variable = variable + ", '";
  212. goodcd = goodcd + ", ";
  213. goodnm = goodnm + ", ";
  214. }
  215. //if( getDataTemp1.length - 1 = 1 ) {
  216. //model.setValue("/root/main/cond/allsizespecid", goodnm);
  217. //}
  218. }
  219. if( oldgoodcd != "" ) {
  220. goodcd = oldgoodcd + ", " + goodcd
  221. }
  222. if( oldgoodnm != "" ) {
  223. goodnm = oldgoodnm + ", " + goodnm
  224. }
  225. if( oldvariable != "" ) {
  226. variable = oldvariable + ", " + variable
  227. }
  228. model.setValue("/root/main/cond/goodcd", goodcd);
  229. model.setValue("/root/main/cond/goodnm", goodnm);
  230. model.setValue("/root/main/cond/variable", variable);
  231. fSearch();
  232. }
  233. }*/
  234. ]]>
  235. </script>
  236. </button>
  237. <input id="ipt_goodnm" ref="/root/main/cond/goodnm" class="input_search" style="left:720px; top:55px; width:185px; height:19px; ">
  238. <script type="javascript" ev:event="onkeyup">
  239. <![CDATA[
  240. inputEnterKey("btn_search", "DOMActivate");
  241. ]]>
  242. </script>
  243. </input>
  244. <select1 id="cmb_lrg" ref="/root/main/cond/lrgcd" appearance="minimal" style="left:190px; top:55px; width:80px; height:19px; ">
  245. <choices>
  246. <itemset nodeset="/root/init/lrglist">
  247. <label ref="lrgnm"/>
  248. <value ref="lrgcd"/>
  249. </itemset>
  250. </choices>
  251. <script type="javascript" ev:event="xforms-value-changed">
  252. <![CDATA[
  253. model.removeNodeset("/root/init/mdllist");
  254. model.removeNodeset("/root/init/smllist");
  255. model.setValue("/root/main/cond/mdlcd", "");
  256. model.setValue("/root/main/cond/smlcd", "");
  257. model.copyNode("/root/send/reqdata", "/root/main/cond");
  258. submit("TRMNP04464");
  259. ]]>
  260. </script>
  261. </select1>
  262. <select1 id="cmb_mdl" ref="/root/main/cond/mdlcd" appearance="minimal" style="left:280px; top:55px; width:80px; height:19px; ">
  263. <choices>
  264. <itemset nodeset="/root/init/mdllist">
  265. <label ref="mdlnm"/>
  266. <value ref="mdlcd"/>
  267. </itemset>
  268. </choices>
  269. <script type="javascript" ev:event="xforms-value-changed">
  270. <![CDATA[
  271. model.removeNodeset("/root/main/goodlist");
  272. model.removeNodeset("/root/init/smllist");
  273. model.setValue("/root/main/cond/smlcd", "");
  274. model.copyNode("/root/send/reqdata", "/root/main/cond");
  275. submit("TRMNP04465");
  276. ]]>
  277. </script>
  278. </select1>
  279. <select1 id="cmb_sml" ref="/root/main/cond/smlcd" appearance="minimal" style="left:370px; top:55px; width:80px; height:19px; ">
  280. <choices>
  281. <itemset nodeset="/root/init/smllist">
  282. <label ref="smlnm"/>
  283. <value ref="smlcd"/>
  284. </itemset>
  285. </choices>
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. fSearch("1");
  289. ]]>
  290. </script>
  291. </select1>
  292. <select1 id="cmb_goodflag" ref="/root/main/cond/goodflag" appearance="minimal" style="left:100px; top:55px; width:80px; height:19px; text-align:left; ">
  293. <choices>
  294. <itemset nodeset="/root/init/goodflaglist">
  295. <label ref="goodflagnm"/>
  296. <value ref="goodflagcd"/>
  297. </itemset>
  298. </choices>
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. model.removeNodeset("/root/init/lrglist");
  302. model.removeNodeset("/root/init/mdllist");
  303. model.removeNodeset("/root/init/smllist");
  304. model.setValue("/root/main/cond/lrgcd", "");
  305. model.setValue("/root/main/cond/mdlcd", "");
  306. model.setValue("/root/main/cond/smlcd", "");
  307. model.copyNode("/root/send/reqdata", "/root/main/cond");
  308. submit("TRMNP04463", false);
  309. addComboItem("cmb_lrg", "전 체", "", "above" );
  310. model.refresh();
  311. ]]>
  312. </script>
  313. </select1>
  314. <caption id="caption1" class="search_name" style="left:5px; top:55px; width:94px; height:17px; ">물품구분 :</caption>
  315. <caption id="caption3" class="search_name" style="left:5px; top:30px; width:94px; height:17px; ">사용구분 :</caption>
  316. <caption id="caption5" class="search_name" style="left:5px; top:4px; width:94px; height:17px; ">부서구분 :</caption>
  317. <caption id="caption8" class="search_name" style="left:825px; top:5px; width:94px; height:17px; ">구매구분 :</caption>
  318. <select1 id="radio3" ref="/root/main/cond/purcflag" appearance="full" cols="4" overflow="visible" style="left:915px; top:5px; width:180px; height:20px; border-style:none; ">
  319. <choices>
  320. <item>
  321. <label>전체</label>
  322. <value/>
  323. </item>
  324. <item>
  325. <label>구매</label>
  326. <value>1</value>
  327. </item>
  328. <item>
  329. <label>수탁</label>
  330. <value>2</value>
  331. </item>
  332. <item>
  333. <label>가납</label>
  334. <value>3</value>
  335. </item>
  336. </choices>
  337. </select1>
  338. <select1 id="radio4" ref="/root/main/cond/useflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:30px; width:185px; height:20px; border-style:none; ">
  339. <choices>
  340. <item>
  341. <label>전체</label>
  342. <value/>
  343. </item>
  344. <item>
  345. <label>1회</label>
  346. <value>N</value>
  347. </item>
  348. <item>
  349. <label>재사용</label>
  350. <value>Y</value>
  351. </item>
  352. <item>
  353. <label>분할</label>
  354. <value>Z</value>
  355. </item>
  356. </choices>
  357. </select1>
  358. <caption id="caption9" class="search_name" style="left:300px; top:30px; width:90px; height:17px; ">처방구분 :</caption>
  359. <caption id="caption10" class="search_name" style="left:520px; top:4px; width:99px; height:17px; ">CCR불출 :</caption>
  360. <select1 id="radio5" ref="/root/main/cond/delivepriod" appearance="full" cols="4" overflow="visible" style="left:610px; top:30px; width:205px; height:20px; border-style:none; ">
  361. <choices>
  362. <item>
  363. <label>전체</label>
  364. <value/>
  365. </item>
  366. <item>
  367. <label>일단위</label>
  368. <value>1</value>
  369. </item>
  370. <item>
  371. <label>의뢰</label>
  372. <value>2</value>
  373. </item>
  374. <item>
  375. <label>미불출</label>
  376. <value>3</value>
  377. </item>
  378. </choices>
  379. </select1>
  380. <select1 id="combo1" ref="/root/main/cond/cureflag" appearance="minimal" style="left:390px; top:30px; width:65px; height:19px; ">
  381. <choices>
  382. <item>
  383. <label>전체</label>
  384. <value/>
  385. </item>
  386. <item>
  387. <label>Suture</label>
  388. <value>1</value>
  389. </item>
  390. <item>
  391. <label>Supplies</label>
  392. <value>2</value>
  393. </item>
  394. <item>
  395. <label>Drug</label>
  396. <value>3</value>
  397. </item>
  398. <item>
  399. <label>Instrument</label>
  400. <value>4</value>
  401. </item>
  402. <item>
  403. <label>처치,행위</label>
  404. <value>5</value>
  405. </item>
  406. <item>
  407. <label>린넨/소모품</label>
  408. <value>6</value>
  409. </item>
  410. <item>
  411. <label>Sheet</label>
  412. <value>7</value>
  413. </item>
  414. <item>
  415. <label>Glove</label>
  416. <value>8</value>
  417. </item>
  418. <item>
  419. <label>일반물품</label>
  420. <value>9</value>
  421. </item>
  422. <item>
  423. <label>린넨</label>
  424. <value>10</value>
  425. </item>
  426. <item>
  427. <label>공용</label>
  428. <value>11</value>
  429. </item>
  430. </choices>
  431. </select1>
  432. <select1 id="radio6" ref="/root/main/cond/deliveyn" appearance="full" cols="3" overflow="visible" style="left:610px; top:5px; width:105px; height:20px; border-style:none; ">
  433. <choices>
  434. <item>
  435. <label>전체</label>
  436. <value/>
  437. </item>
  438. <item>
  439. <label>Y</label>
  440. <value>Y</value>
  441. </item>
  442. <item>
  443. <label>N</label>
  444. <value>N</value>
  445. </item>
  446. </choices>
  447. </select1>
  448. <input id="ipt_prodcmpynm" ref="/root/main/cond/prodcmpynm" class="input_search" style="left:915px; top:30px; width:115px; height:19px; ">
  449. <script type="javascript" ev:event="onkeyup">
  450. <![CDATA[
  451. inputEnterKey("btn_prodcmpy", "DOMActivate");
  452. ]]>
  453. </script>
  454. </input>
  455. <button id="btn_prodcmpy" class="icon_search" style="left:1040px; top:31px; width:16px; height:16px; ">
  456. <caption/>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. setParameter("refnm", model.getValue("/root/main/cond/prodcmpynm"));
  460. setParameter("refflag", "1");
  461. modal("SMMNP04410" ,"", "100", "100", "SMMNP04410", "", "");
  462. var getData = model.getValue("/root/properties/parameters/SendData/SendDatavalue");
  463. if( getData == "") {
  464. return;
  465. }else {
  466. var getDataTemp = getData.split("|");
  467. model.setValue("/root/main/cond/prodcmpynm", getDataTemp[1]);
  468. ipt_prodcmpynm.refresh();
  469. }
  470. ]]>
  471. </script>
  472. </button>
  473. <select1 id="combo2" ref="/root/main/cond/refdeptflag" appearance="minimal" style="left:100px; top:5px; width:100px; height:19px; ">
  474. <choices>
  475. <item>
  476. <label>수술</label>
  477. <value>O</value>
  478. </item>
  479. <item>
  480. <label>마취</label>
  481. <value>A</value>
  482. </item>
  483. <item>
  484. <label>회복</label>
  485. <value>R</value>
  486. </item>
  487. <item>
  488. <label>안과</label>
  489. <value>E</value>
  490. </item>
  491. </choices>
  492. </select1>
  493. <button id="button2" class="btn2_letter3" style="left:910px; top:55px; width:53px; height:19px; ">
  494. <caption>초기화</caption>
  495. <script type="javascript" ev:event="DOMActivate">
  496. <![CDATA[
  497. model.setValue("/root/main/cond/goodcd", "");
  498. model.setValue("/root/main/cond/goodnm", "");
  499. model.setValue("/root/main/cond/allsizespecid", "");
  500. model.setValue("/root/main/cond/variable", "");
  501. model.refresh();
  502. ]]>
  503. </script>
  504. </button>
  505. <select1 id="cmb_rosette" ref="/root/main/cond/oprosette" class="combo_default" appearance="minimal" style="left:390px; top:5px; width:55px; height:19px; ">
  506. <choices>
  507. <itemset nodeset="/root/init/rosettelist">
  508. <label ref="rosettenm"/>
  509. <value ref="rosettecd"/>
  510. </itemset>
  511. </choices>
  512. <script type="javascript" ev:event="xforms-value-changed">
  513. <![CDATA[
  514. model.removenode("/root/send");
  515. model.makeNode("/root/send");
  516. model.makeValue("/root/send/opcnfmdd" ,getCurrentDate().substr(0, 8) );
  517. model.makeValue("/root/send/rosette" ,model.getValue("/root/main/cond/oprosette"));
  518. if(submit("TRMNP03002")){ // 수술실코드 가져오기
  519. addComboItem("cmb_oproomcd","전체","","above");
  520. }
  521. ]]>
  522. </script>
  523. </select1>
  524. </group>
  525. <datagrid id="grd_stoclist" nodeset="/root/main/stoclist" class="datagrid2" backcoloralternate="transparent" caption="재고&#xA;관리^부서&#xA;구분^구매&#xA;구분^사용&#xA;구분^불출&#xA;시기^불출&#xA;여부^수술&#xA;방^물품코드^SUB^물품명^규격^모델^제조원^단위^안전&#xA;재고^재고&#xA;수량^재고&#xA;실사^^신청&#xA;량^불출&#xA;수량^반납&#xA;수량^미불출^등록일자^확정일자^확정자^조정전안전재고^상태값^신청일^확정여부^이전불출량^실신청수량^재고구분" colsep="^" colwidth="40, 40, 40, 40, 45, 40, 40, 70, 35, 125, 80, 80, 80, 40, 40, 40, 40, 35, 40, 40, 40, 40, 70, 70, 50, 0, 0, 0, 0, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:115px; width:1195px; height:600px; ">
  526. <col ref="stocflagnm" style="text-align:center; "/>
  527. <col ref="deptflag" style="text-align:center; "/>
  528. <col ref="purcflag" style="text-align:center; "/>
  529. <col ref="useflag" style="text-align:center; "/>
  530. <col ref="delivepriod" style="text-align:center; "/>
  531. <col ref="deliveyn" style="text-align:center; "/>
  532. <col ref="oproomnm" style="text-align:center; "/>
  533. <col ref="goodcd" style="text-align:center; "/>
  534. <col ref="allsizespecid" type="output" style="text-align:center; "/>
  535. <col ref="goodnm" style="text-align:left; "/>
  536. <col ref="goodspec" style="text-align:left; "/>
  537. <col ref="goodmodel" style="text-align:left; "/>
  538. <col ref="prodcmpynm" style="text-align:left; "/>
  539. <col ref="prcpunit" style="text-align:center; "/>
  540. <col ref="safestocqty" style="text-align:right; "/>
  541. <col ref="stocqty" style="text-align:right; "/>
  542. <col ref="inspqty" style="text-align:right; "/>
  543. <col ref="chkflag" type="checkbox"/>
  544. <col ref="disreqqty" style="text-align:right; "/>
  545. <col ref="deliveqty" type="input" style="text-align:right; "/>
  546. <col ref="rtnqty" type="input" style="text-align:right; "/>
  547. <col ref="undeliveqty" type="input" style="text-align:right; "/>
  548. <col ref="rgstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  549. <col ref="inspdd" format="yyyy-mm-dd" style="text-align:center; "/>
  550. <col ref="inspid" style="text-align:center; "/>
  551. <col ref="oproomcd"/>
  552. <col ref="bfsafestocqty"/>
  553. <col ref="stat"/>
  554. <col ref="reqdd"/>
  555. <col ref="reqcnfmyn"/>
  556. <col ref="bfdeliveqty"/>
  557. <col ref="reqqty"/>
  558. <col ref="stocflag" style="text-align:center; "/>
  559. <script type="javascript" ev:event="onendedit">
  560. <![CDATA[
  561. var iRow = -1;
  562. var iCol = -1;
  563. iRow = grd_stoclist.row;
  564. iCol = grd_stoclist.col;
  565. if (grd_stoclist.rows <= 1 || grd_stoclist.row == 0||grd_stoclist.col == 1){
  566. return;
  567. }
  568. var stocflag = model.getValue("/root/main/cond/stocflag");
  569. if( grd_stoclist.col == 20 ) {
  570. var reqqty = model.getValue("/root/main/stoclist[" + iRow + "]/reqqty");
  571. var deliveqty = model.getValue("/root/main/stoclist[" + iRow + "]/deliveqty");
  572. var bfdeliveqty = model.getValue("/root/main/stoclist[" + iRow + "]/bfdeliveqty");
  573. var undeliveqty = model.getValue("/root/main/stoclist[" + iRow + "]/undeliveqty");
  574. var cnfmyn = model.getValue("/root/main/cond/cnfmyn");
  575. if( parseInt(deliveqty) < 0 ) {//불출수량 -못들어가게 막음 2009.11.13 최소현 선생님 요청
  576. messageBox("불출수량은 0보다 커야합니다.!", "E000");
  577. return;
  578. }
  579. if( cnfmyn == "S" ) {
  580. model.setValue("/root/main/stoclist[" + iRow + "]/undeliveqty", parseInt(undeliveqty) - parseInt(deliveqty));
  581. }else {
  582. if( (parseInt(reqqty) - parseInt(deliveqty)) > 0 ) {
  583. model.setValue("/root/main/stoclist[" + iRow + "]/undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  584. }else {
  585. model.setValue("/root/main/stoclist[" + iRow + "]/undeliveqty", 0);
  586. }
  587. }
  588. }
  589. //수량이 있고 이전 불출수량과 틀릴때
  590. if( !(model.getValue("/root/main/stoclist[" + iRow + "]/deliveqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/deliveqty") == "") ) {
  591. model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
  592. }
  593. //수량이 없고 이전재고와 틀린경우(등록된 안전재고를 0으로 만들때)
  594. //if( (model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") == "") ) {
  595. // if( model.getValue("/root/main/stoclist[" + iRow + "]/bfsafestocqty") != model.getValue("/root/main/stoclist[" + iRow + "]/safestocqty") ) {
  596. // model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
  597. // }
  598. //}
  599. //if( !(model.getValue("/root/main/stoclist[" + iRow + "]/inspqty") == "0" || model.getValue("/root/main/stoclist[" + iRow + "]/inspqty") == "") ) {
  600. // model.setValue("/root/main/stoclist[" + iRow + "]/chkflag", "true");
  601. //}
  602. model.refresh();
  603. ]]>
  604. </script>
  605. <script type="javascript" ev:event="onkeyup">
  606. <![CDATA[
  607. if( event.keyCode == 13 ) {
  608. fNextRowM();
  609. }
  610. ]]>
  611. </script>
  612. <script type="javascript" ev:event="onaftersort">
  613. <![CDATA[
  614. grd_stoclist.gridToInstance();
  615. ]]>
  616. </script>
  617. </datagrid>
  618. <select1 id="radio7" ref="/root/main/cond/stocflag" appearance="full" cols="3" overflow="visible" style="left:5px; top:91px; width:260px; height:15px; border-style:none; ">
  619. <choices>
  620. <item>
  621. <label>안전재고등록</label>
  622. <value>R</value>
  623. </item>
  624. <item>
  625. <label>안전재고변경</label>
  626. <value>U</value>
  627. </item>
  628. <item>
  629. <label>재고실사</label>
  630. <value>I</value>
  631. </item>
  632. </choices>
  633. <script type="javascript" ev:event="xforms-value-changed">
  634. <![CDATA[
  635. var stocflag = model.getValue("/root/main/cond/stocflag");
  636. if( stocflag == "R" || stocflag == "U" ) {
  637. grd_stoclist.colDisabled(17) = "true";
  638. grd_stoclist.colDisabled(15) = "false";
  639. }else {
  640. grd_stoclist.colDisabled(17) = "false";
  641. grd_stoclist.colDisabled(15) = "true";
  642. }
  643. model.removeNodeset("/root/main/stoclist");
  644. model.refresh();
  645. ]]>
  646. </script>
  647. </select1>
  648. <select1 id="rdo_cnfmyn" ref="/root/main/cond/cnfmyn" appearance="full" cols="4" overflow="visible" style="left:270px; top:91px; width:215px; height:15px; border-style:none; ">
  649. <choices>
  650. <item>
  651. <label>전체</label>
  652. <value/>
  653. </item>
  654. <item>
  655. <label>확정</label>
  656. <value>Y</value>
  657. </item>
  658. <item>
  659. <label>일부확정</label>
  660. <value>S</value>
  661. </item>
  662. <item>
  663. <label>미확정</label>
  664. <value>N</value>
  665. </item>
  666. </choices>
  667. <script type="javascript" ev:event="xforms-value-changed">
  668. <![CDATA[
  669. fChangeBtn();
  670. ]]>
  671. </script>
  672. </select1>
  673. <group id="group2" style="left:935px; top:87px; width:255px; height:22px; ">
  674. <button id="btn_cnclcnfm" class="btn5_letter4" visibility="hidden" style="left:188px; top:1px; width:64px; height:19px; ">
  675. <caption>확정취소</caption>
  676. <script type="javascript" ev:event="DOMActivate">
  677. <![CDATA[
  678. fCnclCnfmSave();
  679. ]]>
  680. </script>
  681. </button>
  682. <button id="btn_saveexcel2" class="btn2_letter3" visibility="visible" style="left:155px; top:1px; width:53px; height:19px; ">
  683. <caption>Excel</caption>
  684. <script type="javascript" ev:event="DOMActivate">
  685. <![CDATA[
  686. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  687. if (fileName != "")
  688. {
  689. grd_stoclist.saveExcel(fileName, "sheetname:Sheet1;", true, true, "", "", false);
  690. }
  691. ]]>
  692. </script>
  693. </button>
  694. <button id="btn_delete" class="btn2_letter2" visibility="hidden" style="left:67px; top:1px; width:42px; height:19px; ">
  695. <caption>삭제</caption>
  696. <script type="javascript" ev:event="DOMActivate">
  697. <![CDATA[
  698. fDelHist();
  699. ]]>
  700. </script>
  701. </button>
  702. <button id="btn_prnt2" class="btn2_letter2" visibility="visible" style="left:111px; top:1px; width:42px; height:19px; ">
  703. <caption>출력</caption>
  704. <script type="javascript" ev:event="DOMActivate">
  705. <![CDATA[
  706. exeReportPreview("RPMNP03900", "XMLSTR");
  707. ]]>
  708. </script>
  709. </button>
  710. <button id="btn_cnfm" class="btn5_letter2" visibility="visible" style="left:210px; top:1px; width:42px; height:19px; ">
  711. <caption>확정</caption>
  712. <script type="javascript" ev:event="DOMActivate">
  713. <![CDATA[
  714. fCnfmSave();
  715. ]]>
  716. </script>
  717. </button>
  718. </group>
  719. <caption id="caption2" style="left:0px; top:715px; width:730px; height:20px; ">물품코드를 선택할 경우에는 전체 수술방에 대한 조회가 가능합니다. 수술방 전체에 대한 물품 전체조회는 시스템 부하상 불가능합니다.</caption>
  720. </group>
  721. </xhtml:body>
  722. </xhtml:html>