SMMNG01700_(미)불출내역조회.xrw 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>(미)불출내역조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <gooddlvrinfo>
  11. <gooddlvrlist>
  12. <reqdivs/>
  13. <dlvrflag/>
  14. <deptnm/>
  15. <reqdd/>
  16. <reqpridflag/>
  17. <deliveflag/>
  18. <dinfdivs/>
  19. <reqflag/>
  20. <goodcd/>
  21. <goodnm/>
  22. <goodspec/>
  23. <goodmodel/>
  24. <exchngqty/>
  25. <reqqty/>
  26. <rergstqty/>
  27. <lendqty/>
  28. <rgstqty/>
  29. <cmt/>
  30. <sumqty/>
  31. <dlvqty/>
  32. <nodlvqty/>
  33. <exchngcmt/>
  34. <devlcmt/>
  35. <reqtm/>
  36. <reqpsnnm/>
  37. <certdt/>
  38. <certnm/>
  39. <delivedt/>
  40. <delivepsnnm/>
  41. </gooddlvrlist>
  42. </gooddlvrinfo>
  43. <disgooddlvrinfo>
  44. <disgooddlvrlist/>
  45. </disgooddlvrinfo>
  46. </main>
  47. <cond>
  48. <gooddlvrinfo>
  49. <instcd/>
  50. <csrreqdeptcd/>
  51. <reqdeptcd/>
  52. <reqfromdd/>
  53. <reqtodd/>
  54. <reqpridflag>
  55. </reqpridflag>
  56. <deliveflag>1</deliveflag>
  57. <reqdelrflag>dvr</reqdelrflag>
  58. <reqoptflag/>
  59. <reqallopt/>
  60. <dlvflag>1</dlvflag>
  61. <goodflag>02</goodflag>
  62. <data/>
  63. </gooddlvrinfo>
  64. <disgooddlvrinfo>
  65. <instcd/>
  66. <csrreqdeptcd/>
  67. <reqdeptcd/>
  68. <reqfromdd/>
  69. <reqtodd/>
  70. <disreqoptflag/>
  71. <disreqallopt>Y</disreqallopt>
  72. <goodflag>02</goodflag>
  73. <data/>
  74. </disgooddlvrinfo>
  75. </cond>
  76. <send>
  77. <reqdata/>
  78. </send>
  79. <init>
  80. <csrreqdeptlist/>
  81. <deptcodelist/>
  82. <csrdeptlist/>
  83. </init>
  84. <hidden>
  85. <csrreqdeptlist/>
  86. <deptcodelist/>
  87. <csrdeptlist/>
  88. <common>
  89. <instcdinfo/>
  90. </common>
  91. </hidden>
  92. <temp/>
  93. <tmp>
  94. <csrreqdeptlist/>
  95. </tmp>
  96. </root>
  97. </instance>
  98. <script type="javascript" ev:event="xforms-ready">
  99. <![CDATA[
  100. var getDeptcd = opener.javascript.getParameter("deptcd");
  101. model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
  102. model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
  103. fDeliveflagChg();//청구차수 선택시 상태값 변경
  104. model.removeNodeset("/root/send/reqdata");
  105. zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
  106. model.setValue("/root/cond/gooddlvrinfo/instcd", getUserInfo("dutplceinstcd"));
  107. model.setValue("/root/cond/disgooddlvrinfo/instcd", getUserInfo("dutplceinstcd"));
  108. model.makeValue("/root/send/goodreq/instcd", getUserInfo("dutplceinstcd"));
  109. model.makeValue("/root/send/goodreq/useyn", "Y");
  110. submit("TRMNG00401");
  111. copyNodesetType("/root/init/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  112. copyNodesetType("/root/hidden/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  113. copyNodesetType("/root/tmp/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  114. model.removeNodeset("/root/send/goodreq");
  115. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  116. addComboItem( "cmb_discsrreqdeptcd", "전체", "", "above");
  117. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  118. if(getDeptcd !=""){
  119. model.makeValue("/root/send/reqdata/deptcd",getDeptcd);
  120. }else{
  121. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  122. }
  123. model.makeValue("/root/send/reqdata/refcond", "deptcd");
  124. submit("TRMNG00303");
  125. copyNodesetType("/root/init/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
  126. copyNodesetType("/root/hidden/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
  127. model.setValue("/root/cond/gooddlvrinfo/csrreqdeptcd",model.getValue("/root/init/deptcodelist/csrreqdeptcd2"));
  128. model.setValue("/root/cond/disgooddlvrinfo/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
  129. cmb_csrreqdeptcd.refresh();
  130. cmb_discsrreqdeptcd.refresh();
  131. model.removeNodeset("/root/send/reqdata");
  132. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  133. model.makeValue("/root/send/reqdata/useyn","Y");
  134. submit("TRMNG00402");
  135. copyNodesetType("/root/init/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  136. copyNodesetType("/root/hidden/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  137. //전체 조회되도록 수정 by 박영우 2010-03-05
  138. addComboItem( "cmb_deptcd", "전체", "", "above");
  139. addComboItem( "cmb_disdeptcd", "전체", "", "above");
  140. if(getDeptcd !=""){
  141. model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",getDeptcd);
  142. model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",getDeptcd);
  143. }else{
  144. model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  145. model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  146. }
  147. cmb_deptcd.refresh();
  148. cmb_disdeptcd.refresh();
  149. model.setValue("/root/cond/gooddlvrinfo/reqfromdd",getCurrentDate());
  150. model.setValue("/root/cond/gooddlvrinfo/reqtodd",getCurrentDate());
  151. model.setValue("/root/cond/disgooddlvrinfo/reqfromdd",getCurrentDate());
  152. model.setValue("/root/cond/disgooddlvrinfo/reqtodd",getCurrentDate());
  153. model.removeNodeset("/root/send/reqdata");
  154. model.removeNodeset("/root/main/gooddlvrinfo/gooddlvrlist");
  155. model.removeNodeset("/root/main/disgooddlvrinfo/disgooddlvrlist");
  156. model.setValue("/root/cond/gooddlvrinfo/reqallopt", "Y");
  157. model.refresh();
  158. ]]>
  159. </script>
  160. <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/temp/csrreqdeptlist"/>
  161. <submission id="TRMNG00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/deptcodelist"/>
  162. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/csrdeptlist"/>
  163. <submission id="TRMNG01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/gooddlvrinfo"/>
  164. <submission id="TRMNG01702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/disgooddlvrinfo"/>
  165. <submission id="TRMNG00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/tmlist"/>
  166. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  167. <submission id="TXMNG01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/gooddlvrinfo"/>
  168. </model>
  169. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  171. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  172. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  173. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  174. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  175. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  176. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  177. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  178. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  179. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  180. <script type="javascript">
  181. <![CDATA[
  182. //불출 및 미불출 내역 조회
  183. //(srchflag : dvr->불출,dis->미불출)
  184. function fGoodDvlSearch(srchflag){
  185. fGoodDvlOption(srchflag); //불출 및 미불출에 따른 청구구분 조건
  186. if(srchflag == "dvr"){
  187. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/gooddlvrinfo/instcd"));
  188. model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/gooddlvrinfo/csrreqdeptcd"));
  189. model.makeValue("/root/send/reqdata/reqdeptcd" ,model.getValue("/root/cond/gooddlvrinfo/reqdeptcd"));
  190. model.makeValue("/root/send/reqdata/reqfromdd" ,model.getValue("/root/cond/gooddlvrinfo/reqfromdd"));
  191. model.makeValue("/root/send/reqdata/reqtodd" ,model.getValue("/root/cond/gooddlvrinfo/reqtodd"));
  192. model.makeValue("/root/send/reqdata/dlvflag" ,model.getValue("/root/cond/gooddlvrinfo/dlvflag"));
  193. if(model.getValue("/root/cond/gooddlvrinfo/reqpridflag") =="-"){
  194. model.makeValue("/root/send/reqdata/reqpridflag" ,"");
  195. }else{
  196. model.makeValue("/root/send/reqdata/reqpridflag" ,model.getValue("/root/cond/gooddlvrinfo/reqpridflag"));
  197. }
  198. model.makeValue("/root/send/reqdata/deliveflag" ,model.getValue("/root/cond/gooddlvrinfo/deliveflag"));
  199. model.makeValue("/root/send/reqdata/reqdelrflag" ,model.getValue("/root/cond/gooddlvrinfo/reqdelrflag"));
  200. model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/gooddlvrinfo/goodflag"));
  201. model.makeValue("/root/send/reqdata/data" ,model.getValue("/root/cond/gooddlvrinfo/data"));
  202. if(submit("TRMNG01701")){
  203. model.removeNodeset("/root/send/reqdata");
  204. grd_gooddlvrlist.rebuildStyle();
  205. for(var i= grd_gooddlvrlist.fixedRows ; i < grd_gooddlvrlist.rows; i++ ){
  206. var exchngflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("exchngflag"));
  207. var reqqtyflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("reqqtyflag"));
  208. var rergstflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("rergstflag"));
  209. var lendflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("lendflag"));
  210. var rgstqtyflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("rgstqtyflag"));
  211. var sumflag = grd_gooddlvrlist.valueMatrix(i,grd_gooddlvrlist.colRef("sumflag"));
  212. if(exchngflag =="N"){
  213. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("exchngqty"),i, grd_gooddlvrlist.colRef("exchngqty")) = "#ff9900";
  214. }
  215. if(reqqtyflag =="N" ){
  216. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("reqqty"), i, grd_gooddlvrlist.colRef("reqqty")) = "#ff9900";
  217. }
  218. if(rergstflag =="N"){
  219. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("rergstqty"), i, grd_gooddlvrlist.colRef("rergstqty")) = "#ff9900";
  220. }
  221. if(lendflag =="N"){
  222. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("lendqty"), i, grd_gooddlvrlist.colRef("lendqty")) = "#ff9900";
  223. }
  224. if(rgstqtyflag =="N"){
  225. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("rgstqty"), i, grd_gooddlvrlist.colRef("rgstqty")) = "#ff9900";
  226. }
  227. if(sumflag =="N"){
  228. grd_gooddlvrlist.cellStyle("background-color", i, grd_gooddlvrlist.colRef("sumqty"), i, grd_gooddlvrlist.colRef("sumqty")) = "#ff9900";
  229. }
  230. }
  231. }
  232. }else if(srchflag == "dis"){
  233. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/disgooddlvrinfo/instcd"));
  234. model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/disgooddlvrinfo/csrreqdeptcd"));
  235. model.makeValue("/root/send/reqdata/reqdeptcd" ,model.getValue("/root/cond/disgooddlvrinfo/reqdeptcd"));
  236. model.makeValue("/root/send/reqdata/reqfromdd" ,model.getValue("/root/cond/disgooddlvrinfo/reqfromdd"));
  237. model.makeValue("/root/send/reqdata/reqtodd" ,model.getValue("/root/cond/disgooddlvrinfo/reqtodd"));
  238. model.makeValue("/root/send/reqdata/goodflag" ,model.getValue("/root/cond/disgooddlvrinfo/goodflag"));
  239. model.makeValue("/root/send/reqdata/data" ,model.getValue("/root/cond/disgooddlvrinfo/data"));
  240. if(submit("TRMNG01702")){
  241. model.removeNodeset("/root/send/reqdata");
  242. }
  243. }
  244. //model.refresh();
  245. }
  246. //청구차수 선택시 상태값 변경
  247. function fDeliveflagChg(){
  248. var eryn = model.getValue(chk_eryn.attribute("ref"));
  249. var std = isSearchString(eryn, "1");
  250. var er = isSearchString(eryn, "2");
  251. if(std) {
  252. cmb_reqpridflag.disabled = false;
  253. model.setValue(cmb_reqpridflag.attribute("ref"), model.getValue("/root/init/tmlist/reqseqlist/reqseq"));
  254. cmb_reqpridflag.refresh();
  255. } else {
  256. cmb_reqpridflag.disabled = true;
  257. cmb_reqpridflag.value = "-";
  258. }
  259. }
  260. //청구구분 추가 by 박영우 20100201
  261. function fGoodDvlOption(srchflag) {
  262. if(srchflag == "dvr") {
  263. //그리드 초기화
  264. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = true;
  265. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = true;
  266. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = true;
  267. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = true;
  268. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = true;
  269. var reqallopt = model.getValue("/root/cond/gooddlvrinfo/reqallopt");
  270. var reqoptflag = model.getValue("/root/cond/gooddlvrinfo/reqoptflag");
  271. if(reqallopt == "Y") {
  272. model.makeValue("/root/send/reqdata/reqoptflag", "1 2 3 4 5");
  273. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = false;
  274. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = false;
  275. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = false;
  276. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = false;
  277. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = false;
  278. } else {
  279. model.makeValue("/root/send/reqdata/reqoptflag", reqoptflag);
  280. var reqopt = reqoptflag.split(" ");
  281. var exchnge, req, rergst, lend, rgst; //청구구분: 교환, 청구, 대여, 재멸균, 멸균의뢰
  282. exchnge = req = rergst = lend = rgst = "N";
  283. for(var i=0; i<reqopt.length; i++) {
  284. switch(Number(reqopt[i])) {
  285. case 1:
  286. exchnge = "Y";
  287. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("exchngqty")) = false;
  288. break;
  289. case 2:
  290. req = "Y";
  291. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("reqqty")) = false;
  292. break;
  293. case 3:
  294. rergst = "Y";
  295. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rergstqty")) = false;
  296. break;
  297. case 4:
  298. lend = "Y";
  299. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("lendqty")) = false;
  300. break;
  301. case 5:
  302. rgst = "Y";
  303. grd_gooddlvrlist.colHidden(grd_gooddlvrlist.colRef("rgstqty")) = false;
  304. break;
  305. default: exchnge = req = rergst = lend = rgst = "N"; break;
  306. }
  307. }
  308. }
  309. } else if(srchflag == "dis") {
  310. //그리드 초기화
  311. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = true;
  312. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = true;
  313. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = true;
  314. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = true;
  315. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = true;
  316. var disreqoptflag = model.getValue("/root/cond/disgooddlvrinfo/disreqoptflag");
  317. var disreqallopt = model.getValue("/root/cond/disgooddlvrinfo/disreqallopt");
  318. if(disreqallopt == "Y") {
  319. model.makeValue("/root/send/reqdata/disreqoptflag", "1 2 3 4 5");
  320. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = false;
  321. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = false;
  322. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = false;
  323. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = false;
  324. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = false;
  325. } else {
  326. model.makeValue("/root/send/reqdata/disreqoptflag", disreqoptflag);
  327. var disreqopt = disreqoptflag.split(" ");
  328. var exchnge, req, rergst, lend, rgst; //청구구분: 교환, 청구, 대여, 재멸균, 멸균의뢰
  329. exchnge = req = rergst = lend = rgst = "N";
  330. for(var i=0; i<disreqopt.length; i++) {
  331. switch(Number(disreqopt[i])) {
  332. case 1:
  333. exchnge = "Y";
  334. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("exchngqty")) = false;
  335. break;
  336. case 2:
  337. req = "Y";
  338. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("reqqty")) = false;
  339. break;
  340. case 3:
  341. rergst = "Y";
  342. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rergstqty")) = false;
  343. break;
  344. case 4:
  345. lend = "Y";
  346. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("lendqty")) = false;
  347. break;
  348. case 5:
  349. rgst = "Y";
  350. grd_disgooddlvrlist.colHidden(grd_disgooddlvrlist.colRef("rgstqty")) = false;
  351. break;
  352. default: exchnge = req = rergst = lend = rgst = "N"; break;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. ]]>
  359. </script>
  360. </xhtml:head>
  361. <xhtml:body pagewidth="1270" pageheight="780" guideline="1,1242;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  362. <group id="group1" style="left:0px; top:0px; width:1125px; height:13px; ">
  363. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">(미)불출내역조회</caption>
  364. </group>
  365. <button id="btn_cncrpatsrch" class="btn_sw" group="tab" selected="true" style="left:3px; top:15px; width:100px; height:22px; ">
  366. <caption>불출내역조회</caption>
  367. <script type="javascript" ev:event="onclick">
  368. <![CDATA[
  369. model.toggle("case1");
  370. chk_reqallopt.refresh();
  371. ]]>
  372. </script>
  373. </button>
  374. <switch id="switch1" style="left:5px; top:40px; width:1239px; height:688px; ">
  375. <case id="case1">
  376. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:3px; top:5px; width:1230px; height:87px; background-color:#fffbf2; border-color:#ffd799; "/>
  377. <button id="btn_search" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
  378. <caption>조회</caption>
  379. <script type="javascript" ev:event="DOMActivate">
  380. <![CDATA[
  381. fGoodDvlSearch("dvr");
  382. ]]>
  383. </script>
  384. </button>
  385. <line id="line4" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
  386. <caption id="caption1" class="tit_2" style="left:5px; top:101px; width:115px; height:13px; ">불출내역조회</caption>
  387. <line id="line1" class="line_1" style="x1:3px; y1:115px; x2:1233px; y2:115px; "/>
  388. <select id="chk_eryn" ref="/root/cond/gooddlvrinfo/deliveflag" overflow="visible" appearance="full" cellspacing="70" cols="2" style="left:100px; top:42px; width:190px; height:15px; border-style:none; ">
  389. <choices>
  390. <item>
  391. <label>정규</label>
  392. <value>1</value>
  393. </item>
  394. <item>
  395. <label>응급</label>
  396. <value>2</value>
  397. </item>
  398. </choices>
  399. <script type="javascript" ev:event="xforms-value-changed">
  400. <![CDATA[
  401. fDeliveflagChg();
  402. ]]>
  403. </script>
  404. </select>
  405. <select1 id="cmb_instcd" ref="/root/cond/gooddlvrinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:100px; top:14px; width:125px; height:19px; text-align:center; ">
  406. <choices>
  407. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  408. <label ref="cdnm"/>
  409. <value ref="cdid"/>
  410. </itemset>
  411. </choices>
  412. </select1>
  413. <input id="ipt_reqfrdd" ref="/root/cond/gooddlvrinfo/reqfromdd" class="input_s_essential" inputtype="date" style="left:810px; top:15px; width:90px; height:19px; text-align:center; "/>
  414. <caption id="caption20" class="search_name" style="left:240px; top:14px; width:94px; height:17px; ">부서구분 :</caption>
  415. <caption id="caption2" class="search_name" style="left:10px; top:40px; width:86px; height:17px; ">청구차수 :</caption>
  416. <caption id="caption24" class="search_name" style="left:615px; top:15px; width:86px; height:17px; ">조회일자 :</caption>
  417. <caption id="caption14" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">기관코드 :</caption>
  418. <select1 id="cmb_csrreqdeptcd" ref="/root/cond/gooddlvrinfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:330px; top:15px; width:80px; height:19px; ">
  419. <choices>
  420. <itemset nodeset="/root/init/csrreqdeptlist">
  421. <label ref="csrreqdeptnm"/>
  422. <value ref="csrreqdeptcd"/>
  423. </itemset>
  424. </choices>
  425. <script type="javascript" ev:event="xforms-value-changed">
  426. <![CDATA[
  427. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  428. model.makeValue("/root/send/reqdata/useyn","Y");
  429. submit("TRMNG00402");
  430. copyNodesetType("/root/init/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  431. cmb_deptcd.refresh();
  432. if(getNodesetCount(model,"/root/init/csrdeptlist") == 1 ){
  433. model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  434. }else{
  435. addComboItem( "cmb_deptcd", "전체", "", "above");
  436. model.setValue("/root/cond/gooddlvrinfo/reqdeptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  437. }
  438. model.removeNodeset("/root/send/reqdata");
  439. fGoodDvlSearch("dvr");
  440. ]]>
  441. </script>
  442. </select1>
  443. <button id="button1" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
  444. <caption>엑셀</caption>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  448. if (fileName != "")
  449. {
  450. grd_gooddlvrlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  451. }
  452. ]]>
  453. </script>
  454. </button>
  455. <button id="button5" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
  456. <caption>출력</caption>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. messageBox("개발중","I009");
  460. ]]>
  461. </script>
  462. </button>
  463. <select1 id="rdo_reqdelrflag" ref="/root/cond/gooddlvrinfo/reqdelrflag" scroll="auto" appearance="full" cols="3" rows="1" overflow="visible" style="left:410px; top:40px; width:150px; height:20px; border-style:none; ">
  464. <choices>
  465. <item>
  466. <label>청구기준</label>
  467. <value>ref</value>
  468. </item>
  469. <item>
  470. <label>불출기준</label>
  471. <value>dvr</value>
  472. </item>
  473. </choices>
  474. <script type="javascript" ev:event="xforms-value-changed">
  475. <![CDATA[
  476. var reqdelrflag = rdo_reqdelrflag.value;
  477. if(reqdelrflag == "ref") {
  478. grd_gooddlvrlist.caption = "상태^청구구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균\n의뢰^비고^total&#xA;수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag";
  479. } else if(reqdelrflag == "dvr") {
  480. grd_gooddlvrlist.caption = "상태^불출구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균\n의뢰^비고^total&#xA;수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag";
  481. }
  482. ]]>
  483. </script>
  484. </select1>
  485. <caption id="cap_indschflag" class="search_name" style="left:325px; top:39px; width:91px; height:17px; ">구 분 :</caption>
  486. <select1 id="cmb_deptcd" ref="/root/cond/gooddlvrinfo/reqdeptcd" class="combo_s_essential" appearance="minimal" style="left:512px; top:15px; width:84px; height:19px; ">
  487. <choices>
  488. <itemset nodeset="/root/init/csrdeptlist">
  489. <label ref="deptnm"/>
  490. <value ref="deptcd"/>
  491. </itemset>
  492. </choices>
  493. <script type="javascript" ev:event="xforms-value-changed">
  494. <![CDATA[
  495. fGoodDvlSearch("dvr");
  496. ]]>
  497. </script>
  498. </select1>
  499. <caption id="caption10" class="search_name" style="left:425px; top:14px; width:90px; height:17px; ">청구부서 :</caption>
  500. <caption id="caption11" class="search_no_b" style="left:902px; top:17px; width:12px; height:17px; ">~</caption>
  501. <input id="input3" ref="/root/cond/gooddlvrinfo/reqtodd" class="input_s_essential" inputtype="date" style="left:915px; top:15px; width:90px; height:19px; text-align:center; "/>
  502. <datagrid id="grd_gooddlvrlist" nodeset="/root/main/gooddlvrinfo/gooddlvrlist" class="datagrid2" caption="상태^불출구분^청구부서명^청구일자^청구차수^응급여부^멸균구분^물품구분^물품코드^물품명^규격^모델^교환^청구^재멸균^대여^멸균&#xA;의뢰^비고^total&#xA;수량^불출수량^미불출수량^미불출사유^미불출사유비고^청구일시^청구자^확인일시^확인자^불출일시^불출자^exchngflag^reqqtyflag^rergstflag^lendflag^rgstqtyflag^sumflag" colsep="^" colwidth="41, 72, 69, 88, 37, 34, 81, 79, 100, 199, 100, 0, 46, 44, 48, 43, 44, 100, 41, 34, 43, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="11" explorerbar="sort" extendlastcol="scroll" frozencols="12" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:3px; top:120px; width:1230px; height:560px; ">
  503. <col disabled="true" ref="reqdivs" type="combo" style="text-align:center; ">
  504. <choices>
  505. <item>
  506. <label>청구</label>
  507. <value>1</value>
  508. </item>
  509. <item>
  510. <label>마감</label>
  511. <value>2</value>
  512. </item>
  513. <item>
  514. <label>확인</label>
  515. <value>3</value>
  516. </item>
  517. <item>
  518. <label>불출</label>
  519. <value>4</value>
  520. </item>
  521. <item>
  522. <label>반납</label>
  523. <value>5</value>
  524. </item>
  525. </choices>
  526. </col>
  527. <col disabled="true" ref="dlvrflag" type="combo" style="text-align:center; ">
  528. <choices>
  529. <item>
  530. <label>일반</label>
  531. <value>1</value>
  532. </item>
  533. <item>
  534. <label>가스불출</label>
  535. <value>2</value>
  536. </item>
  537. <item>
  538. <label>추가불출</label>
  539. <value>3</value>
  540. </item>
  541. </choices>
  542. </col>
  543. <col disabled="true" ref="reqdeptnm" type="output" style="text-align:center; "/>
  544. <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
  545. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  546. <choices>
  547. <item>
  548. <label>1차</label>
  549. <value>1</value>
  550. </item>
  551. <item>
  552. <label>2차</label>
  553. <value>2</value>
  554. </item>
  555. <item>
  556. <label>3차</label>
  557. <value>3</value>
  558. </item>
  559. <item>
  560. <label>4차</label>
  561. <value>4</value>
  562. </item>
  563. <item>
  564. <label>5차</label>
  565. <value>5</value>
  566. </item>
  567. <item>
  568. <label>응급</label>
  569. <value>-</value>
  570. </item>
  571. </choices>
  572. </col>
  573. <col checkvalue="2,1" disabled="true" ref="deliveflag" type="checkbox"/>
  574. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  575. <choices>
  576. <item>
  577. <label>고압증기멸균</label>
  578. <value>1</value>
  579. </item>
  580. <item>
  581. <label>가스멸균</label>
  582. <value>2</value>
  583. </item>
  584. <item>
  585. <label>건열멸균</label>
  586. <value>3</value>
  587. </item>
  588. <item>
  589. <label>플라즈마멸균</label>
  590. <value>4</value>
  591. </item>
  592. </choices>
  593. </col>
  594. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  595. <choices>
  596. <item>
  597. <label>비품</label>
  598. <value>1</value>
  599. </item>
  600. <item>
  601. <label>소모품</label>
  602. <value>2</value>
  603. </item>
  604. <item>
  605. <label>멸균의뢰</label>
  606. <value>3</value>
  607. </item>
  608. <item>
  609. <label>린넨</label>
  610. <value>4</value>
  611. </item>
  612. </choices>
  613. </col>
  614. <col ref="goodcd" style="text-align:center; "/>
  615. <col ref="goodnm"/>
  616. <col ref="goodspec"/>
  617. <col ref="goodmodel"/>
  618. <col ref="exchngqty" style="text-align:right; "/>
  619. <col ref="reqqty" style="text-align:right; "/>
  620. <col ref="rergstqty" style="text-align:right; "/>
  621. <col ref="lendqty" style="text-align:right; "/>
  622. <col ref="rgstqty" style="text-align:right; "/>
  623. <col ref="cmt"/>
  624. <col ref="sumqty" visibility="hidden" style="text-align:right; "/>
  625. <col ref="dlvqty" style="text-align:right; "/>
  626. <col ref="nodlvqty" visibility="hidden" style="text-align:right; "/>
  627. <col disabled="true" ref="exchngcmt" type="combo" visibility="hidden" style="text-align:center; ">
  628. <choices>
  629. <item>
  630. <label>입력에러</label>
  631. <value>1</value>
  632. </item>
  633. <item>
  634. <label>과량청구</label>
  635. <value>2</value>
  636. </item>
  637. <item>
  638. <label>공급실수량부족</label>
  639. <value>3</value>
  640. </item>
  641. <item>
  642. <label>기타</label>
  643. <value>4</value>
  644. </item>
  645. </choices>
  646. </col>
  647. <col ref="devlcmt" visibility="hidden"/>
  648. <col ref="reqtm" format="yyyy-mm-dd hh:nn"/>
  649. <col ref="reqpsnnm" style="text-align:center; "/>
  650. <col ref="certdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
  651. <col ref="certnm" visibility="hidden" style="text-align:center; "/>
  652. <col ref="delivedt" format="yyyy-mm-dd hh:nn"/>
  653. <col ref="delivepsnnm" style="text-align:center; "/>
  654. <col ref="exchngflag" visibility="hidden"/>
  655. <col ref="reqqtyflag" visibility="hidden"/>
  656. <col ref="rergstflag" visibility="hidden"/>
  657. <col ref="lendflag" visibility="hidden"/>
  658. <col ref="rgstqtyflag" visibility="hidden"/>
  659. <col ref="sumflag" visibility="hidden"/>
  660. <script type="javascript" ev:event="onaftersort">
  661. <![CDATA[
  662. grd_gooddlvrlist.gridToInstance();
  663. ]]>
  664. </script>
  665. </datagrid>
  666. <select1 id="cmb_reqpridflag" ref="/root/cond/gooddlvrinfo/reqpridflag" appearance="minimal" style="left:145px; top:38px; width:65px; height:19px; ">
  667. <choices>
  668. <item>
  669. <label>전체</label>
  670. <value/>
  671. </item>
  672. <item>
  673. <label>1차</label>
  674. <value>1</value>
  675. </item>
  676. <item>
  677. <label>2차</label>
  678. <value>2</value>
  679. </item>
  680. <item>
  681. <label>3차</label>
  682. <value>3</value>
  683. </item>
  684. </choices>
  685. <script type="javascript" ev:event="xforms-value-changed">
  686. <![CDATA[
  687. ]]>
  688. </script>
  689. </select1>
  690. <caption id="caption12" class="search_name" style="left:615px; top:40px; width:94px; height:17px; ">청구구분 :</caption>
  691. <select id="chk_reqoptflag" ref="/root/cond/gooddlvrinfo/reqoptflag" overflow="visible" appearance="full" cols="5" style="left:750px; top:40px; width:260px; height:20px; border-style:none; ">
  692. <choices>
  693. <item>
  694. <label>교환</label>
  695. <value>1</value>
  696. </item>
  697. <item>
  698. <label>청구</label>
  699. <value>2</value>
  700. </item>
  701. <item>
  702. <label>재멸균</label>
  703. <value>3</value>
  704. </item>
  705. <item>
  706. <label>대여</label>
  707. <value>4</value>
  708. </item>
  709. <item>
  710. <label>멸균의뢰</label>
  711. <value>5</value>
  712. </item>
  713. </choices>
  714. <script type="javascript" ev:event="xforms-value-changed">
  715. <![CDATA[
  716. var reqoptflag = model.getValue("/root/cond/gooddlvrinfo/reqdelrflag");
  717. if(reqoptflag != "") chk_reqallopt.value = "";
  718. ]]>
  719. </script>
  720. </select>
  721. <select id="chk_reqallopt" ref="/root/cond/gooddlvrinfo/reqallopt" overflow="visible" appearance="full" style="left:705px; top:40px; width:50px; height:20px; border-style:none; ">
  722. <choices>
  723. <item>
  724. <label>전체</label>
  725. <value>Y</value>
  726. </item>
  727. </choices>
  728. <script type="javascript" ev:event="xforms-value-changed">
  729. <![CDATA[
  730. //전체선택 추가
  731. var reqallopt = model.getValue("/root/cond/gooddlvrinfo/reqallopt");
  732. if(reqallopt == "Y") {
  733. chk_reqoptflag.value = "";
  734. fGoodDvlSearch("dvr");
  735. }
  736. ]]>
  737. </script>
  738. </select>
  739. <select1 id="rdo_dlvflag" ref="/root/cond/gooddlvrinfo/dlvflag" appearance="full" cols="2" overflow="visible" style="left:705px; top:17px; width:100px; height:13px; border-style:none; ">
  740. <choices>
  741. <item>
  742. <label>청구</label>
  743. <value>1</value>
  744. </item>
  745. <item>
  746. <label>불출</label>
  747. <value>2</value>
  748. </item>
  749. </choices>
  750. </select1>
  751. <caption id="caption15" class="search_name" style="left:10px; top:65px; width:106px; height:17px; font-family:돋움체; ">구 분 :</caption>
  752. <select1 id="rdo_goodflag" ref="/root/cond/gooddlvrinfo/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:70px; width:125px; height:13px; border-style:none; ">
  753. <choices>
  754. <item>
  755. <label>물품코드</label>
  756. <value>01</value>
  757. </item>
  758. <item>
  759. <label>물품명</label>
  760. <value>02</value>
  761. </item>
  762. </choices>
  763. </select1>
  764. <input id="ipt_reqdata" ref="/root/cond/gooddlvrinfo/data" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:65px; width:145px; height:19px; ">
  765. <script type="javascript" ev:event="onkeyup">
  766. <![CDATA[
  767. inputEnterKey("btn_search", "DOMActivate");
  768. ]]>
  769. </script>
  770. </input>
  771. </case>
  772. <case id="case3" selected="true">
  773. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:72px; background-color:#fffbf2; border-color:#ffd799; "/>
  774. <caption id="caption3" class="tit_2" style="left:5px; top:76px; width:119px; height:14px; ">미불출내역조회</caption>
  775. <datagrid id="grd_disgooddlvrlist" nodeset="/root/main/disgooddlvrinfo/disgooddlvrlist" caption="청구일자^청구부서명^청구&#xA;차수^물품코드^물품명^규격^모델^교환^교환^청구^청구^재멸균^재멸균^대여^대여^멸균^멸균^미불출수량^추가&#xA;불출^미불출사유^청구일시^청구자^확인자^instcd^reqno^reqseqno^exchngaddqty^lendaddqty^reqaddqty^rgstaddqty^rergstaddqty^nodlvexchngqty^nodlvlendqty^nodlvreqqty^nodlvrgstqty^nodlvrergstqty^reqdpetcd^goodflag^reqflag^deliveunit^reqdivs|청구일자^청구부서명^청구&#xA;차수^물품코드^물품명^규격^모델^확인^미불출^확인^미불출^확인^미불출^확인^미불출^확인^미불출^미불출수량^추가&#xA;불출^미불출사유^청구일시^청구자^확인자^instcd^reqno^reqseqno^exchngaddqty^lendaddqty^reqaddqty^rgstaddqty^rergstaddqty^nodlvexchngqty^nodlvlendqty^nodlvreqqty^nodlvrgstqty^nodlvrergstqty^reqdpetcd^goodflag^reqflag^deliveunit^reqdivs" colsep="^" colwidth="100, 90, 36, 89, 155, 77, 0, 46, 43, 44, 43, 40, 43, 40, 43, 44, 43, 45, 46, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="byrow" style="left:2px; top:100px; width:1230px; height:580px; ">
  776. <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
  777. <col ref="reqdeptnm" type="output" style="text-align:center; "/>
  778. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  779. <choices>
  780. <item>
  781. <label>1차</label>
  782. <value>1</value>
  783. </item>
  784. <item>
  785. <label>2차</label>
  786. <value>2</value>
  787. </item>
  788. <item>
  789. <label>3차</label>
  790. <value>3</value>
  791. </item>
  792. <item>
  793. <label>4차</label>
  794. <value>4</value>
  795. </item>
  796. <item>
  797. <label>5차</label>
  798. <value>5</value>
  799. </item>
  800. <item>
  801. <label>응급</label>
  802. <value>-</value>
  803. </item>
  804. </choices>
  805. </col>
  806. <col ref="goodcd"/>
  807. <col ref="goodnm"/>
  808. <col ref="goodspec"/>
  809. <col ref="goodmodel"/>
  810. <col ref="exchngqty" style="text-align:right; "/>
  811. <col ref="nodlvexchngqty" style="text-align:right; "/>
  812. <col ref="reqqty" style="text-align:right; "/>
  813. <col ref="nodlvreqqty" style="text-align:right; "/>
  814. <col ref="rergstqty" style="text-align:right; "/>
  815. <col ref="nodlvrergstqty"/>
  816. <col ref="lendqty" style="text-align:right; "/>
  817. <col ref="nodlvlendqty" style="text-align:right; "/>
  818. <col ref="rgstqty" style="text-align:right; "/>
  819. <col ref="nodlvrgstqty" style="text-align:right; "/>
  820. <col ref="nodlvqty" style="text-align:right; "/>
  821. <col ref="addqty" type="input" style="text-align:right; "/>
  822. <col disabled="true" ref="exchngcmt" type="combo" style="text-align:center; ">
  823. <choices>
  824. <item>
  825. <label>입력에러</label>
  826. <value>1</value>
  827. </item>
  828. <item>
  829. <label>과량청구</label>
  830. <value>2</value>
  831. </item>
  832. <item>
  833. <label>공급실수량부족</label>
  834. <value>3</value>
  835. </item>
  836. <item>
  837. <label>기타</label>
  838. <value>4</value>
  839. </item>
  840. </choices>
  841. </col>
  842. <col ref="reqtm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  843. <col ref="reqpsnnm" style="text-align:center; "/>
  844. <col ref="certnm" visibility="hidden" style="text-align:center; "/>
  845. <col ref="instcd" visibility="hidden"/>
  846. <col ref="reqno" visibility="hidden"/>
  847. <col ref="reqseqno" visibility="hidden"/>
  848. <col ref="exchngaddqty" visibility="hidden"/>
  849. <col ref="lendaddqty" visibility="hidden"/>
  850. <col ref="reqaddqty" visibility="hidden"/>
  851. <col ref="rgstaddqty" visibility="hidden"/>
  852. <col ref="rergstaddqty" visibility="hidden"/>
  853. <col ref="nodlvexchngqty" visibility="hidden"/>
  854. <col ref="nodlvlendqty" visibility="hidden"/>
  855. <col ref="nodlvreqqty" visibility="hidden"/>
  856. <col ref="nodlvrgstqty" visibility="hidden"/>
  857. <col ref="nodlvrergstqty" visibility="hidden"/>
  858. <col ref="reqdeptcd" visibility="hidden"/>
  859. <col ref="goodflag" visibility="hidden"/>
  860. <col ref="reqflag" visibility="hidden"/>
  861. <col ref="deliveunit" visibility="hidden"/>
  862. <col ref="reqdivs" visibility="hidden"/>
  863. <script type="javascript" ev:event="xforms-value-changed">
  864. <![CDATA[
  865. var nodlvqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvqty")));
  866. var addqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("addqty")));
  867. var exchngaddqty = 0;
  868. var lendaddqty = 0;
  869. var reqaddqty = 0;
  870. var rgstaddqty = 0;
  871. var rergstaddqty = 0;
  872. //미불출수량을 가져온다.
  873. var exchngqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvexchngqty")));
  874. var reqqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvreqqty")));
  875. var lendqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvlendqty")));
  876. var rgstqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvrgstqty")));
  877. var rergstqty = parseInt(grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("nodlvrergstqty")));
  878. var tmpqty = 0; //임시로 값을 담을 변수
  879. //계산을 위해 값이 없는 변수값의 경우에는 0으로 초기화. 아닌경우에는 그냥 둠.
  880. if(addqty == "" || addqty == null) {
  881. addqty = 0;
  882. }
  883. if(exchngqty == "" || exchngqty == null) {
  884. exchngqty = 0;
  885. }
  886. if(reqqty == "" || reqqty == null) {
  887. reqqty = 0;
  888. }
  889. if(lendqty == "" || lendqty == null) {
  890. lendqty = 0;
  891. }
  892. if(rgstqty == "" || rgstqty == null) {
  893. rgstqty = 0;
  894. }
  895. if(rergstqty == "" || rergstqty == null) {
  896. rergstqty = 0;
  897. }
  898. if( grd_disgooddlvrlist.col == grd_disgooddlvrlist.colRef("addqty") ) {
  899. if( parseInt(nodlvqty) < parseInt(addqty) ) {
  900. messageBox("추가불출은 미불출 수량보다 클 수 없습니다.", "E");
  901. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("addqty")) = 0;
  902. grd_disgooddlvrlist.rowStatus(grd_disgooddlvrlist.row) = "0";
  903. return;
  904. } else {
  905. //교환수량이 총 추가불출 수량보다 클경우( 내부적인 추가 교환수량을 불출할 수량 계산함.) 교환이 1순위
  906. if(exchngqty > 0) {
  907. if(exchngqty > addqty) {
  908. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("exchngaddqty")) = addqty;
  909. } else {
  910. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("exchngaddqty")) = exchngqty;
  911. tmpqty = addqty - exchngqty;
  912. if(tmpqty == 0) {
  913. return;
  914. }
  915. if(lendqty > tmpqty) {
  916. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = tmpqty;
  917. } else {
  918. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = lendqty;
  919. tmpqty = tmpqty - lendqty;
  920. if(tmpqty == 0) {
  921. return;
  922. }
  923. if(rgstqty > tmpqty) {
  924. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = tmpqty;
  925. } else {
  926. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = rgstqty;
  927. tmpqty = tmpqty - rgstqty;
  928. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
  929. }
  930. }
  931. }
  932. } else if(lendqty > 0) {
  933. if(lendqty > addqty) {
  934. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = addqty;
  935. } else {
  936. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("lendaddqty")) = lendqty;
  937. tmpqty = tmpqty - lendqty;
  938. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
  939. }
  940. } else if(reqqty > 0) {
  941. if(reqqty > addqty) {
  942. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("reqaddqty")) = addqty;
  943. } else {
  944. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("reqaddqty")) = reqqty;
  945. tmpqty = tmpqty - lendqty;
  946. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
  947. }
  948. } else if(rgstqty > 0) {
  949. if(lendqty > addqty) {
  950. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = addqty;
  951. } else {
  952. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rgstaddqty")) = rgstqty;
  953. tmpqty = tmpqty - lendqty;
  954. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = tmpqty;
  955. }
  956. } else {
  957. grd_disgooddlvrlist.valueMatrix(grd_disgooddlvrlist.row, grd_disgooddlvrlist.colRef("rergstaddqty")) = rergstqty;
  958. }
  959. }
  960. }
  961. ]]>
  962. </script>
  963. </datagrid>
  964. <button id="button3" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
  965. <caption>엑셀</caption>
  966. <script type="javascript" ev:event="DOMActivate">
  967. <![CDATA[
  968. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  969. if (fileName != "")
  970. {
  971. grd_disgooddlvrlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  972. }
  973. ]]>
  974. </script>
  975. </button>
  976. <button id="button6" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
  977. <caption>조회</caption>
  978. <script type="javascript" ev:event="DOMActivate">
  979. <![CDATA[
  980. fGoodDvlSearch("dis");
  981. ]]>
  982. </script>
  983. </button>
  984. <input id="input1" ref="/root/cond/disgooddlvrinfo/reqfromdd" class="input_s_essential" inputtype="date" style="left:780px; top:14px; width:100px; height:19px; text-align:center; "/>
  985. <select1 id="cmb_disinstcd2" ref="/root/cond/disgooddlvrinfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:14px; width:125px; height:19px; text-align:center; ">
  986. <choices>
  987. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  988. <label ref="cdnm"/>
  989. <value ref="cdid"/>
  990. </itemset>
  991. </choices>
  992. </select1>
  993. <button id="button7" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
  994. <caption>출력</caption>
  995. <script type="javascript" ev:event="DOMActivate">
  996. <![CDATA[
  997. messageBox("개발중","I009");
  998. ]]>
  999. </script>
  1000. </button>
  1001. <caption id="caption4" class="search_name" style="left:250px; top:14px; width:94px; height:17px; ">부서구분 :</caption>
  1002. <caption id="caption7" class="search_name" style="left:685px; top:14px; width:86px; height:17px; ">청구일자 :</caption>
  1003. <caption id="caption8" class="search_name" style="left:10px; top:14px; width:86px; height:17px; ">기관코드 :</caption>
  1004. <line id="line2" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
  1005. <select1 id="cmb_discsrreqdeptcd" ref="/root/cond/disgooddlvrinfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:340px; top:14px; width:110px; height:19px; ">
  1006. <choices>
  1007. <itemset nodeset="/root/hidden/csrreqdeptlist">
  1008. <label ref="csrreqdeptnm"/>
  1009. <value ref="csrreqdeptcd"/>
  1010. </itemset>
  1011. </choices>
  1012. <script type="javascript" ev:event="xforms-value-changed">
  1013. <![CDATA[
  1014. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_discsrreqdeptcd.value);
  1015. model.makeValue("/root/send/reqdata/useyn","Y");
  1016. submit("TRMNG00402");
  1017. copyNodesetType("/root/hidden/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  1018. if(getNodesetCount(model,"/root/hidden/csrdeptlist") == 1 ){
  1019. model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  1020. }else{
  1021. addComboItem( "cmb_disdeptcd", "전체", "", "above");
  1022. model.setValue("/root/cond/disgooddlvrinfo/reqdeptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  1023. }
  1024. model.removeNodeset("/root/send/reqdata");
  1025. fGoodDvlSearch("dis");
  1026. ]]>
  1027. </script>
  1028. </select1>
  1029. <caption id="caption5" class="search_no_b" style="left:885px; top:17px; width:12px; height:17px; ">~</caption>
  1030. <input id="input2" ref="/root/cond/disgooddlvrinfo/reqtodd" class="input_s_essential" inputtype="date" style="left:900px; top:14px; width:100px; height:19px; text-align:center; "/>
  1031. <caption id="caption9" class="search_name" style="left:467px; top:14px; width:86px; height:17px; ">청구부서 :</caption>
  1032. <select1 id="cmb_disdeptcd" ref="/root/cond/disgooddlvrinfo/reqdeptcd" class="combo_s_essential" appearance="minimal" style="left:559px; top:14px; width:110px; height:19px; ">
  1033. <choices>
  1034. <itemset nodeset="/root/hidden/csrdeptlist">
  1035. <label ref="deptnm"/>
  1036. <value ref="deptcd"/>
  1037. </itemset>
  1038. </choices>
  1039. <script type="javascript" ev:event="xforms-value-changed">
  1040. <![CDATA[
  1041. fGoodDvlSearch("dis");
  1042. ]]>
  1043. </script>
  1044. </select1>
  1045. <line id="line3" class="line_1" style="x1:2px; y1:95px; x2:1232px; y2:95px; "/>
  1046. <caption id="caption13" class="search_name" style="left:615px; top:45px; width:94px; height:17px; ">청구구분 :</caption>
  1047. <select id="chk_disreqoptflag" ref="/root/cond/disgooddlvrinfo/disreqoptflag" overflow="visible" appearance="full" cols="5" style="left:750px; top:45px; width:260px; height:20px; border-style:none; ">
  1048. <choices>
  1049. <item>
  1050. <label>교환</label>
  1051. <value>1</value>
  1052. </item>
  1053. <item>
  1054. <label>청구</label>
  1055. <value>2</value>
  1056. </item>
  1057. <item>
  1058. <label>재멸균</label>
  1059. <value>3</value>
  1060. </item>
  1061. <item>
  1062. <label>대여</label>
  1063. <value>4</value>
  1064. </item>
  1065. <item>
  1066. <label>멸균의뢰</label>
  1067. <value>5</value>
  1068. </item>
  1069. </choices>
  1070. <script type="javascript" ev:event="xforms-value-changed">
  1071. <![CDATA[
  1072. var disreqoptflag = model.getValue("/root/cond/disgooddlvrinfo/disreqoptflag");
  1073. if(disreqoptflag != "") chk_disreqallopt.value = "";
  1074. ]]>
  1075. </script>
  1076. </select>
  1077. <select id="chk_disreqallopt" ref="/root/cond/disgooddlvrinfo/disreqallopt" overflow="visible" appearance="full" style="left:705px; top:45px; width:50px; height:20px; border-style:none; ">
  1078. <choices>
  1079. <item>
  1080. <label>전체</label>
  1081. <value>Y</value>
  1082. </item>
  1083. </choices>
  1084. <script type="javascript" ev:event="xforms-value-changed">
  1085. <![CDATA[
  1086. var reqallopt = model.getValue("/root/cond/disgooddlvrinfo/disreqallopt");
  1087. if(reqallopt == "Y") {
  1088. chk_disreqoptflag.value = "";
  1089. fGoodDvlSearch("dis");
  1090. }
  1091. ]]>
  1092. </script>
  1093. </select>
  1094. <button id="button2" class="btn5_letter2" style="left:1189px; top:75px; width:42px; height:19px; ">
  1095. <caption>불출</caption>
  1096. <script type="javascript" ev:event="DOMActivate">
  1097. <![CDATA[
  1098. var updtdata = getGridUpdateData(grd_disgooddlvrlist);
  1099. if(updtdata == null) {
  1100. messageBox("변경된 내역이 없습니다.", "E");
  1101. return;
  1102. }
  1103. model.makeValue("/root/send/savedata/dlvrlist", updtdata);
  1104. if(submit("TXMNG01701")) {
  1105. messageBox("저장되었습니다", "I");
  1106. fGoodDvlSearch("dis");
  1107. }
  1108. ]]>
  1109. </script>
  1110. </button>
  1111. <input id="ipt_disdata" ref="/root/cond/disgooddlvrinfo/data" class="input_search" imemode="alpha" appearance="input" style="left:230px; top:42px; width:145px; height:19px; ">
  1112. <script type="javascript" ev:event="onkeyup">
  1113. <![CDATA[
  1114. inputEnterKey("button6", "DOMActivate");
  1115. ]]>
  1116. </script>
  1117. </input>
  1118. <select1 id="rdo_disgoodflag" ref="/root/cond/disgooddlvrinfo/goodflag" appearance="full" cols="4" overflow="visible" style="left:100px; top:45px; width:125px; height:13px; border-style:none; ">
  1119. <choices>
  1120. <item>
  1121. <label>물품코드</label>
  1122. <value>01</value>
  1123. </item>
  1124. <item>
  1125. <label>물품명</label>
  1126. <value>02</value>
  1127. </item>
  1128. </choices>
  1129. </select1>
  1130. <caption id="caption16" class="search_name" style="left:10px; top:45px; width:106px; height:17px; font-family:돋움체; ">구 분 :</caption>
  1131. </case>
  1132. </switch>
  1133. <button id="button4" class="btn_sw" group="tab" selected="true" style="left:102px; top:15px; width:118px; height:22px; ">
  1134. <caption>미불출내역조회</caption>
  1135. <script type="javascript" ev:event="onclick">
  1136. <![CDATA[
  1137. model.toggle("case3");
  1138. chk_reqallopt.refresh();
  1139. ]]>
  1140. </script>
  1141. </button>
  1142. </xhtml:body>
  1143. </xhtml:html>