SMMNP03900_수술방재고관리-방재고실사입력.xrw 28 KB

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