SMMNP03902_재고현황조회.xrw 27 KB

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