SMMNG01500_(미)반납조회.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  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. <goodrtninfo>
  11. <rtninfo>
  12. <goodrtnlist>
  13. <csrreqdeptcd/>
  14. <reqdeptnm/>
  15. <reqdd/>
  16. <reqpridflag/>
  17. <goodcd/>
  18. <goodnm/>
  19. <goodspec/>
  20. <goodmodel/>
  21. <rtnqty/>
  22. <reqdt/>
  23. <reqnm/>
  24. <certdt/>
  25. <certnm/>
  26. <lendreqdt/>
  27. <lendreqnm/>
  28. <dlvdt/>
  29. <dlvnm/>
  30. </goodrtnlist>
  31. </rtninfo>
  32. </goodrtninfo>
  33. <goodirrtninfo>
  34. <irrtninfo>
  35. <goodirrtnlist>
  36. </goodirrtnlist>
  37. </irrtninfo>
  38. </goodirrtninfo>
  39. </main>
  40. <send>
  41. <reqdata/>
  42. </send>
  43. <cond>
  44. <rtninfo>
  45. <instcd/>
  46. <csrreqdeptcd/>
  47. <deptcd/>
  48. <reqfromdd/>
  49. <reqtodd/>
  50. <deliveflag>1</deliveflag>
  51. <reqpridflag/>
  52. <rtnflag>R</rtnflag>
  53. </rtninfo>
  54. <disrtninfo>
  55. <instcd/>
  56. <csrreqdeptcd/>
  57. <deptcd/>
  58. </disrtninfo>
  59. </cond>
  60. <temp>
  61. <csrreqdeptlist/>
  62. </temp>
  63. <hidden>
  64. <csrreqdeptlist/>
  65. <deptcodelist/>
  66. <csrdeptlist/>
  67. <common>
  68. <instcdinfo/>
  69. </common>
  70. </hidden>
  71. <init>
  72. <csrreqdeptlist/>
  73. <deptcodelist/>
  74. <csrdeptlist/>
  75. </init>
  76. <tmp>
  77. <csrreqdeptlist/>
  78. </tmp>
  79. <csrreqdeptinfo>
  80. <csrreqdeptlist/>
  81. </csrreqdeptinfo>
  82. <printinfo>
  83. <goodrtninfo>
  84. <rtninfo/>
  85. </goodrtninfo>
  86. <goodirrtninfo>
  87. <irrtninfo/>
  88. </goodirrtninfo>
  89. </printinfo>
  90. </root>
  91. </instance>
  92. <script type="javascript" ev:event="xforms-ready">
  93. <![CDATA[
  94. var getDeptcd = opener.javascript.getParameter("deptcd");
  95. model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
  96. model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
  97. fDeliveflagChg();//청구차수 선택시 상태값 변경
  98. model.removeNodeset("/root/send/reqdata");
  99. zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
  100. model.setValue("/root/cond/rtninfo/instcd" , getUserInfo("dutplceinstcd"));
  101. model.setValue("/root/cond/disrtninfo/instcd" , getUserInfo("dutplceinstcd"));
  102. model.makeValue("/root/send/goodreq/instcd" , getUserInfo("dutplceinstcd"));
  103. model.makeValue("/root/send/goodreq/useyn", "Y");
  104. submit("TRMNG00401");
  105. copyNodesetType("/root/init/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  106. copyNodesetType("/root/hidden/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  107. copyNodesetType("/root/tmp/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  108. copyNodesetType("/root/csrreqdeptinfo/csrreqdeptlist" ,"/root/temp/csrreqdeptlist","replace", model, model);
  109. model.removeNodeset("/root/send/goodreq");
  110. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  111. addComboItem( "cmb_discsrreqdeptcd", "전체", "", "above");
  112. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  113. if(getUserInfo("dutplcecd") != "3080000000") {
  114. if(getDeptcd !=""){
  115. model.makeValue("/root/send/reqdata/deptcd",getDeptcd);
  116. }else{
  117. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  118. }
  119. }
  120. model.makeValue("/root/send/reqdata/refcond", "deptcd");
  121. submit("TRMNG00303");
  122. copyNodesetType("/root/init/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
  123. copyNodesetType("/root/hidden/deptcodelist" ,"/root/temp/deptcodelist","replace", model, model);
  124. model.setValue("/root/cond/rtninfo/csrreqdeptcd",model.getValue("/root/init/deptcodelist/csrreqdeptcd2"));
  125. //20110226_KNUH_Start 중앙공급실경우 전체조회되도록
  126. if(getUserInfo("dutplcecd") != "3080000000") {
  127. model.setValue("/root/cond/disrtninfo/csrreqdeptcd",model.getValue("/root/hidden/deptcodelist/csrreqdeptcd2"));
  128. }
  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. //20110226_KNUH_Start 중앙공급실경우 전체조회되도록
  138. if(getUserInfo("dutplcecd") != "3080000000") {
  139. if(getDeptcd !=""){
  140. model.setValue("/root/cond/rtninfo/deptcd",getDeptcd);
  141. model.setValue("/root/cond/disrtninfo/deptcd",getDeptcd);
  142. }else{
  143. model.setValue("/root/cond/rtninfo/deptcd",getUserInfo("dutplcecd"));
  144. model.setValue("/root/cond/disrtninfo/deptcd",getUserInfo("dutplcecd"));
  145. }
  146. } else {
  147. addComboItem( "cmb_disdeptcd", "전체", "", "above");
  148. }
  149. cmb_deptcd.refresh();
  150. cmb_disdeptcd.refresh();
  151. model.setValue("/root/cond/rtninfo/reqfromdd" ,getCurrentDate());
  152. model.setValue("/root/cond/rtninfo/reqtodd" ,getCurrentDate());
  153. model.removeNodeset("/root/send/reqdata");
  154. model.removeNodeset("/root/main/goodrtninfo/rtninfo/goodrtnlist");
  155. model.removeNodeset("/root/main/goodirrtninfo/irrtninfo/goodirrtnlist");
  156. model.refresh();
  157. fIrRtnSearch("rtn");
  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="TRMNG00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/tmlist"/>
  164. <submission id="TRMNG01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/goodirrtninfo"/>
  165. <submission id="TRMNG01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/goodrtninfo"/>
  166. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  167. </model>
  168. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  170. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  172. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  173. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  174. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  175. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  176. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  177. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  178. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  179. <script type="javascript">
  180. <![CDATA[
  181. //반납 및 미반납 내역 조회
  182. //(srchflag : rtn->반납,dis->미반납)
  183. function fIrRtnSearch(srchflag){
  184. if(srchflag == "rtn"){
  185. model.makeValue("/root/send/reqdata/srchflag","rtn");
  186. if(model.getValue("/root/cond/rtninfo/reqpridflag") =="-"){
  187. model.makeValue("/root/send/reqdata/reqpridflag" ,"");
  188. }else{
  189. model.makeValue("/root/send/reqdata/reqpridflag",model.getValue("/root/cond/rtninfo/reqpridflag"));
  190. }
  191. model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/rtninfo/csrreqdeptcd"));
  192. model.makeValue("/root/send/reqdata/deptcd" ,model.getValue("/root/cond/rtninfo/deptcd"));
  193. model.makeValue("/root/send/reqdata/reqfromdd" ,model.getValue("/root/cond/rtninfo/reqfromdd"));
  194. model.makeValue("/root/send/reqdata/reqtodd" ,model.getValue("/root/cond/rtninfo/reqtodd"));
  195. model.makeValue("/root/send/reqdata/deliveflag" ,model.getValue("/root/cond/rtninfo/deliveflag"));
  196. model.makeValue("/root/send/reqdata/rtnflag" ,model.getValue("/root/cond/rtninfo/rtnflag"));
  197. if(submit("TRMNG01502")){
  198. fRtnFlagColCng();
  199. model.removeNodeset("/root/send/reqdata");
  200. }
  201. }else if(srchflag == "dis"){
  202. model.makeValue("/root/send/reqdata/srchflag" ,"dis");
  203. model.makeValue("/root/send/reqdata/instcd" ,model.getValue("/root/cond/disrtninfo/instcd"));
  204. model.makeValue("/root/send/reqdata/csrreqdeptcd" ,model.getValue("/root/cond/disrtninfo/csrreqdeptcd"));
  205. model.makeValue("/root/send/reqdata/deptcd" ,model.getValue("/root/cond/disrtninfo/deptcd"));
  206. if(submit("TRMNG01501")){
  207. model.removeNodeset("/root/send/reqdata");
  208. }
  209. }
  210. //model.refresh();
  211. }
  212. //청구차수 선택시 상태값 변경
  213. function fDeliveflagChg(){
  214. var eryn = model.getValue(chk_eryn.attribute("ref"));
  215. var std = isSearchString(eryn, "1");
  216. var er = isSearchString(eryn, "2");
  217. if(std) {
  218. cmb_reqpridflag.disabled = false;
  219. model.setValue(cmb_reqpridflag.attribute("ref"), model.getValue("/root/init/tmlist/reqseqlist/reqseq"));
  220. cmb_reqpridflag.refresh();
  221. } else {
  222. cmb_reqpridflag.disabled = true;
  223. cmb_reqpridflag.value = "-";
  224. }
  225. }
  226. // 상태구분에 따른 colHidden 상태 변경
  227. function fRtnFlagColCng(){
  228. var rtnflag = model.getValue("/root/cond/rtninfo/rtnflag");
  229. if(rtnflag=="RC"){
  230. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certdt")) = false;
  231. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certnm")) = false;
  232. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqdt")) = false;
  233. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqnm")) = false;
  234. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvdt")) = false;
  235. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvnm")) = false;
  236. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("rtnqty2")) = false;
  237. }else {
  238. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certdt")) = true;
  239. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certnm")) = true;
  240. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqdt")) = true;
  241. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqnm")) = true;
  242. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvdt")) = true;
  243. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvnm")) = true;
  244. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("rtnqty2")) = true;
  245. }
  246. }
  247. ]]>
  248. </script>
  249. </xhtml:head>
  250. <xhtml:body pagewidth="1270" pageheight="780" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  251. <group id="group1" style="left:0px; top:0px; width:1125px; height:13px; ">
  252. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">(미)반납내역조회</caption>
  253. </group>
  254. <button id="btn_cncrpatsrch" class="btn_sw" group="tab" selected="true" style="left:3px; top:15px; width:100px; height:22px; ">
  255. <caption>반 납</caption>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. model.toggle("case1");
  259. ]]>
  260. </script>
  261. </button>
  262. <switch id="switch1" style="left:5px; top:40px; width:1239px; height:688px; ">
  263. <case id="case1" selected="true">
  264. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:3px; top:5px; width:1230px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  265. <button id="btn_search" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
  266. <caption>조회</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fIrRtnSearch("rtn");
  270. ]]>
  271. </script>
  272. </button>
  273. <line id="line4" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
  274. <caption id="caption1" class="tit_2" style="left:5px; top:76px; width:146px; height:14px; ">CSR 반납 물품정보</caption>
  275. <line id="line1" class="line_1" style="x1:2px; y1:95px; x2:1234px; y2:95px; "/>
  276. <select id="chk_eryn" ref="/root/cond/rtninfo/deliveflag" overflow="visible" appearance="full" cellspacing="70" cols="2" style="left:110px; top:47px; width:190px; height:15px; border-style:none; ">
  277. <choices>
  278. <item>
  279. <label>정규</label>
  280. <value>1</value>
  281. </item>
  282. <item>
  283. <label>응급</label>
  284. <value>2</value>
  285. </item>
  286. </choices>
  287. <script type="javascript" ev:event="xforms-value-changed">
  288. <![CDATA[
  289. fDeliveflagChg();
  290. ]]>
  291. </script>
  292. </select>
  293. <select1 id="cmb_instcd" ref="/root/cond/rtninfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:110px; top:19px; width:125px; height:19px; text-align:center; ">
  294. <choices>
  295. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  296. <label ref="cdnm"/>
  297. <value ref="cdid"/>
  298. </itemset>
  299. </choices>
  300. </select1>
  301. <input id="ipt_reqfrdd" ref="/root/cond/rtninfo/reqfromdd" class="input_s_essential" inputtype="date" style="left:785px; top:20px; width:100px; height:19px; text-align:center; "/>
  302. <caption id="caption20" class="search_name" style="left:270px; top:20px; width:94px; height:17px; ">부서구분 :</caption>
  303. <caption id="caption2" class="search_name" style="left:20px; top:45px; width:86px; height:17px; ">청구차수 :</caption>
  304. <caption id="caption24" class="search_name" style="left:695px; top:22px; width:86px; height:17px; ">반납일자 :</caption>
  305. <caption id="caption14" class="search_name" style="left:20px; top:19px; width:86px; height:17px; ">기관코드 :</caption>
  306. <select1 id="cmb_csrreqdeptcd" ref="/root/cond/rtninfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:360px; top:20px; width:110px; height:19px; ">
  307. <choices>
  308. <itemset nodeset="/root/init/csrreqdeptlist">
  309. <label ref="csrreqdeptnm"/>
  310. <value ref="csrreqdeptcd"/>
  311. </itemset>
  312. </choices>
  313. <script type="javascript" ev:event="xforms-value-changed">
  314. <![CDATA[
  315. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  316. model.makeValue("/root/send/reqdata/useyn","Y");
  317. submit("TRMNG00402");
  318. copyNodesetType("/root/init/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  319. cmb_deptcd.refresh();
  320. if(getNodesetCnt(model,"/root/init/csrdeptlist") == 1 ){
  321. model.setValue("/root/cond/rtninfo/deptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  322. }else{
  323. addComboItem( "cmb_deptcd", "전체", "", "above");
  324. model.setValue("/root/cond/rtninfo/deptcd",model.getValue("/root/init/csrdeptlist/deptcd[1]"));
  325. }
  326. model.removeNodeset("/root/send/reqdata");
  327. fIrRtnSearch("rtn");
  328. ]]>
  329. </script>
  330. </select1>
  331. <button id="button1" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
  332. <caption>엑셀</caption>
  333. <script type="javascript" ev:event="DOMActivate">
  334. <![CDATA[
  335. var fileName = window.fileDialog("save", ",", false, "반납리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  336. if (fileName != "")
  337. {
  338. grd_goodrtnlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  339. }
  340. ]]>
  341. </script>
  342. </button>
  343. <button id="button5" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
  344. <caption>출력</caption>
  345. <script type="javascript" ev:event="DOMActivate">
  346. <![CDATA[
  347. for(var i =1;i<grd_goodrtnlist.rows;i++){
  348. var csrreqdeptcd = grd_goodrtnlist.labelMatrix(i,grd_goodrtnlist.colRef("csrreqdeptcd"));
  349. grd_goodrtnlist.valueMatrix(i,grd_goodrtnlist.colRef("csrreqdeptnm"))= csrreqdeptcd;
  350. }
  351. copyNodesetType("/root/printinfo/goodrtninfo/rtninfo" ,"/root/main/goodrtninfo/rtninfo","replace", model, model);
  352. exeReportPreview("RPMNG01500", "XMLSTR", "/root/printinfo/goodrtninfo/rtninfo");
  353. ]]>
  354. </script>
  355. </button>
  356. <select1 id="rdo_reqdelrflag" ref="/root/cond/rtninfo/rtnflag" scroll="auto" appearance="full" cols="3" rows="1" overflow="visible" style="left:423px; top:45px; width:150px; height:20px; border-style:none; ">
  357. <choices>
  358. <item>
  359. <label>미반납</label>
  360. <value>R</value>
  361. </item>
  362. <item>
  363. <label>반납</label>
  364. <value>RC</value>
  365. </item>
  366. </choices>
  367. <script type="javascript" ev:event="xforms-value-changed">
  368. <![CDATA[
  369. var rtnflag = model.getValue("/root/cond/rtninfo/rtnflag");
  370. if(rtnflag=="RC"){
  371. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certdt")) = false;
  372. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certnm")) = false;
  373. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqdt")) = false;
  374. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqnm")) = false;
  375. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvdt")) = false;
  376. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvnm")) = false;
  377. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("rtnqty2")) = false;
  378. }else {
  379. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certdt")) = true;
  380. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("certnm")) = true;
  381. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqdt")) = true;
  382. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("lendreqnm")) = true;
  383. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvdt")) = true;
  384. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("dlvnm")) = true;
  385. grd_goodrtnlist.colHidden(grd_goodrtnlist.colRef("rtnqty2")) = true;
  386. }
  387. ]]>
  388. </script>
  389. </select1>
  390. <caption id="cap_indschflag" class="search_name" style="left:335px; top:44px; width:86px; height:17px; ">상태구분 :</caption>
  391. <select1 id="cmb_deptcd" ref="/root/cond/rtninfo/deptcd" class="combo_s_essential" appearance="minimal" style="left:576px; top:20px; width:109px; height:19px; ">
  392. <choices>
  393. <itemset nodeset="/root/init/csrdeptlist">
  394. <label ref="deptnm"/>
  395. <value ref="deptcd"/>
  396. </itemset>
  397. </choices>
  398. <script type="javascript" ev:event="xforms-value-changed">
  399. <![CDATA[
  400. fIrRtnSearch("rtn");
  401. ]]>
  402. </script>
  403. </select1>
  404. <caption id="caption10" class="search_name" style="left:485px; top:20px; width:90px; height:17px; ">청구부서 :</caption>
  405. <caption id="caption11" class="search_no_b" style="left:895px; top:22px; width:12px; height:17px; ">~</caption>
  406. <input id="input3" ref="/root/cond/rtninfo/reqtodd" class="input_s_essential" inputtype="date" style="left:920px; top:20px; width:100px; height:19px; text-align:center; "/>
  407. <datagrid id="grd_goodrtnlist" nodeset="/root/main/goodrtninfo/rtninfo/goodrtnlist" class="datagrid2" caption="부서구분^caption1^청구부서^청구일자^청구차수^물품코드^물품명^규격^모델^반납&#xA;수량^반납일시^반납자^반납&#xA;확인^반납확인일시^확인자^대여일시^대여자^불출일시^불출자" colsep="^" colwidth="72, 52, 95, 88, 37, 100, 199, 100, 100, 40, 100, 100, 40, 100, 100, 100, 100, 100, 100" dataheight="11" explorerbar="sort" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="byrow" style="left:2px; top:100px; width:1230px; height:585px; ">
  408. <col disabled="true" ref="csrreqdeptcd" type="combo" style="text-align:center; ">
  409. <choices>
  410. <itemset nodeset="/root/csrreqdeptinfo/csrreqdeptlist">
  411. <label ref="csrreqdeptnm"/>
  412. <value ref="csrreqdeptcd"/>
  413. </itemset>
  414. </choices>
  415. </col>
  416. <col disabled="true" ref="csrreqdeptnm" type="combo" visibility="hidden" style="text-align:center; ">
  417. <choices>
  418. <itemset nodeset="/root/csrreqdeptinfo/csrreqdeptlist">
  419. <label ref="csrreqdeptnm"/>
  420. <value ref="csrreqdeptcd"/>
  421. </itemset>
  422. </choices>
  423. </col>
  424. <col disabled="true" ref="reqdeptnm" type="output" style="text-align:center; "/>
  425. <col disabled="true" ref="reqdd" type="inputdate" style="text-align:center; "/>
  426. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  427. <choices>
  428. <item>
  429. <label>1차</label>
  430. <value>1</value>
  431. </item>
  432. <item>
  433. <label>2차</label>
  434. <value>2</value>
  435. </item>
  436. <item>
  437. <label>3차</label>
  438. <value>3</value>
  439. </item>
  440. <item>
  441. <label>4차</label>
  442. <value>4</value>
  443. </item>
  444. <item>
  445. <label>5차</label>
  446. <value>5</value>
  447. </item>
  448. <item>
  449. <label>응급</label>
  450. <value>-</value>
  451. </item>
  452. </choices>
  453. </col>
  454. <col ref="goodcd" style="text-align:center; "/>
  455. <col ref="goodnm" style="text-align:left; "/>
  456. <col ref="goodspec"/>
  457. <col ref="goodmodel"/>
  458. <col ref="rtnlendqty" style="text-align:right; background-color:#dddddd; "/>
  459. <col ref="rtndt" format="yyyy-mm-dd hh:nn" style="left:826px; top:32px; width:100px; height:23px; text-align:center; "/>
  460. <col ref="rtnnm" style="text-align:center; "/>
  461. <col ref="rtnqty2" style="text-align:right; "/>
  462. <col ref="certdt" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  463. <col ref="certnm" visibility="hidden" style="text-align:center; "/>
  464. <col ref="reqtm" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  465. <col ref="reqpsnnm" visibility="hidden" style="text-align:center; "/>
  466. <col ref="dlvdt" visibility="hidden" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  467. <col ref="dlvnm" visibility="hidden" style="text-align:center; "/>
  468. <script type="javascript" ev:event="onaftersort">
  469. <![CDATA[
  470. grd_gooddlvrlist.gridToInstance();
  471. ]]>
  472. </script>
  473. </datagrid>
  474. <select1 id="cmb_reqpridflag" ref="/root/cond/rtninfo/reqpridflag" appearance="minimal" style="left:155px; top:43px; width:65px; height:19px; ">
  475. <choices>
  476. <item>
  477. <label>전체</label>
  478. <value/>
  479. </item>
  480. <item>
  481. <label>1차</label>
  482. <value>1</value>
  483. </item>
  484. <item>
  485. <label>2차</label>
  486. <value>2</value>
  487. </item>
  488. <item>
  489. <label>3차</label>
  490. <value>3</value>
  491. </item>
  492. </choices>
  493. <script type="javascript" ev:event="xforms-value-changed">
  494. <![CDATA[
  495. ]]>
  496. </script>
  497. </select1>
  498. </case>
  499. <case id="case3">
  500. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:1230px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  501. <caption id="caption3" class="tit_2" style="left:5px; top:81px; width:146px; height:13px; ">CSR 미반납 물품정보</caption>
  502. <button id="button3" class="btn1_letter2" style="left:1108px; top:25px; width:56px; height:22px; ">
  503. <caption>엑셀</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. var fileName = window.fileDialog("save", ",", false, "미반납내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  507. if (fileName != "")
  508. {
  509. grd_goodirrtnlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  510. }
  511. ]]>
  512. </script>
  513. </button>
  514. <button id="button6" class="btn1_letter2" style="left:1050px; top:25px; width:56px; height:22px; ">
  515. <caption>조회</caption>
  516. <script type="javascript" ev:event="DOMActivate">
  517. <![CDATA[
  518. fIrRtnSearch("dis");
  519. ]]>
  520. </script>
  521. </button>
  522. <button id="btn_goodirrtnlistprt" class="btn1_letter2" style="left:1166px; top:25px; width:56px; height:22px; ">
  523. <caption>출력</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. for(var i =1;i<grd_goodirrtnlist.rows;i++){
  527. var csrreqdeptcd = grd_goodirrtnlist.labelMatrix(i,grd_goodirrtnlist.colRef("csrreqdeptcd"));
  528. grd_goodirrtnlist.valueMatrix(i,grd_goodirrtnlist.colRef("csrreqdeptnm"))= csrreqdeptcd;
  529. }
  530. copyNodesetType("/root/printinfo/goodirrtninfo/irrtninfo" ,"/root/main/goodirrtninfo/irrtninfo","replace", model, model);
  531. exeReportPreview("RPMNG01501", "XMLSTR", "/root/printinfo/goodirrtninfo/irrtninfo");
  532. ]]>
  533. </script>
  534. </button>
  535. <select1 id="cmb_disinstcd" ref="/root/cond/disrtninfo/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:115px; top:26px; width:125px; height:19px; text-align:center; ">
  536. <choices>
  537. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  538. <label ref="cdnm"/>
  539. <value ref="cdid"/>
  540. </itemset>
  541. </choices>
  542. </select1>
  543. <caption id="caption4" class="search_name" style="left:275px; top:26px; width:94px; height:17px; ">부서구분 :</caption>
  544. <caption id="caption8" class="search_name" style="left:15px; top:26px; width:86px; height:17px; ">기관코드 :</caption>
  545. <line id="line2" class="line_4" style="x1:1040px; y1:20px; x2:1040px; y2:52px; "/>
  546. <select1 id="cmb_discsrreqdeptcd" ref="/root/cond/disrtninfo/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:365px; top:26px; width:141px; height:19px; text-align:left; ">
  547. <choices>
  548. <itemset nodeset="/root/hidden/csrreqdeptlist">
  549. <label ref="csrreqdeptnm"/>
  550. <value ref="csrreqdeptcd"/>
  551. </itemset>
  552. </choices>
  553. <script type="javascript" ev:event="xforms-value-changed">
  554. <![CDATA[
  555. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_discsrreqdeptcd.value);
  556. model.makeValue("/root/send/reqdata/useyn","Y");
  557. submit("TRMNG00402");
  558. copyNodesetType("/root/hidden/csrdeptlist","/root/temp/csrdeptlist","replace", model, model);
  559. addComboItem( "cmb_disdeptcd", "전체", "", "above");
  560. cmb_disdeptcd.select(0);
  561. // if(getNodesetCnt(model,"/root/hidden/csrdeptlist") == 1 ){
  562. // model.setValue("/root/cond/disrtninfo/deptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  563. // }else{
  564. // addComboItem( "cmb_disdeptcd", "전체", "", "above");
  565. // model.setValue("/root/cond/disrtninfo/deptcd",model.getValue("/root/hidden/csrdeptlist/deptcd[1]"));
  566. // }
  567. model.removeNodeset("/root/send/reqdata");
  568. fIrRtnSearch("dis");
  569. ]]>
  570. </script>
  571. </select1>
  572. <caption id="caption9" class="search_name" style="left:547px; top:26px; width:86px; height:17px; ">청구부서 :</caption>
  573. <select1 id="cmb_disdeptcd" ref="/root/cond/disrtninfo/deptcd" class="combo_s_essential" appearance="minimal" style="left:639px; top:26px; width:141px; height:19px; ">
  574. <choices>
  575. <itemset nodeset="/root/hidden/csrdeptlist">
  576. <label ref="deptnm"/>
  577. <value ref="deptcd"/>
  578. </itemset>
  579. </choices>
  580. <script type="javascript" ev:event="xforms-value-changed">
  581. <![CDATA[
  582. fIrRtnSearch("dis");
  583. ]]>
  584. </script>
  585. </select1>
  586. <line id="line3" class="line_1" style="x1:2px; y1:100px; x2:1232px; y2:100px; "/>
  587. <datagrid id="grd_goodirrtnlist" nodeset="/root/main/goodirrtninfo/irrtninfo/goodirrtnlist" class="datagrid2" caption="부서구분^부서한글^청구부서^물품코드^물품명^규격^모델^대여&#xA;수량^청구일^청구&#xA;차수^청구일시^청구자^불출일시^불출자명^불출자^불출자" colsep="^" colwidth="72, 100, 118, 89, 230, 85, 79, 45, 82, 42, 100, 59, 101, 100" dataheight="11" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:2px; top:105px; width:1230px; height:580px; ">
  588. <col disabled="true" ref="csrreqdeptcd" type="combo" style="text-align:center; ">
  589. <choices>
  590. <itemset nodeset="/root/tmp/csrreqdeptlist">
  591. <label ref="csrreqdeptnm"/>
  592. <value ref="csrreqdeptcd"/>
  593. </itemset>
  594. </choices>
  595. </col>
  596. <col disabled="true" ref="csrreqdeptnm" type="combo" visibility="hidden" style="text-align:center; ">
  597. <choices>
  598. <itemset nodeset="/root/tmp/csrreqdeptlist">
  599. <label ref="csrreqdeptnm"/>
  600. <value ref="csrreqdeptcd"/>
  601. </itemset>
  602. </choices>
  603. </col>
  604. <col ref="reqdeptnm" type="output" style="text-align:center; "/>
  605. <col ref="goodcd" style="text-align:left; "/>
  606. <col ref="goodnm"/>
  607. <col ref="goodspec" type="output"/>
  608. <col ref="goodmodel" type="output"/>
  609. <col ref="dlvlendqty" style="text-align:right; background-color:#dddddd; "/>
  610. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  611. <col disabled="true" ref="reqpridflag" type="combo" style="text-align:center; ">
  612. <choices>
  613. <item>
  614. <label>1차</label>
  615. <value>1</value>
  616. </item>
  617. <item>
  618. <label>2차</label>
  619. <value>2</value>
  620. </item>
  621. <item>
  622. <label>3차</label>
  623. <value>3</value>
  624. </item>
  625. <item>
  626. <label>4차</label>
  627. <value>4</value>
  628. </item>
  629. <item>
  630. <label>5차</label>
  631. <value>5</value>
  632. </item>
  633. <item>
  634. <label>응급</label>
  635. <value>-</value>
  636. </item>
  637. </choices>
  638. </col>
  639. <col ref="reqdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  640. <col ref="reqnm" style="text-align:center; "/>
  641. <col ref="dlvdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  642. <col ref="dlvnm" style="text-align:center; "/>
  643. <script type="javascript" ev:event="onaftersort">
  644. <![CDATA[
  645. grd_goodirrtnlist.gridToInstance();
  646. ]]>
  647. </script>
  648. </datagrid>
  649. </case>
  650. </switch>
  651. <button id="button4" class="btn_sw" group="tab" style="left:102px; top:15px; width:118px; height:22px; ">
  652. <caption>미 반 납</caption>
  653. <script type="javascript" ev:event="onclick">
  654. <![CDATA[
  655. model.toggle("case3");
  656. ]]>
  657. </script>
  658. </button>
  659. </xhtml:body>
  660. </xhtml:html>