SMMNG02300_세탁물청구관리.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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. <main>
  10. <porqinfo>
  11. <porqlist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <goodunit/>
  16. <reqcnt/>
  17. <reqid/>
  18. <outcnt/>
  19. <outid/>
  20. <stockcnt/>
  21. <remark1/>
  22. <reqdd/>
  23. <deptcd/>
  24. <ioflag/>
  25. <instcd/>
  26. <deptnm/>
  27. <reqnm/>
  28. <outnm/>
  29. </porqlist>
  30. <csrdeptlist/>
  31. </porqinfo>
  32. <cond>
  33. <reqdd/>
  34. <deptcd/>
  35. <instcd/>
  36. <lowdept/>
  37. </cond>
  38. <csrdeptlist/>
  39. <possmenucnt/>
  40. <possmenulist/>
  41. </main>
  42. <send>
  43. <reqdd/>
  44. <deptcd/>
  45. <rexport/>
  46. <cdgrupid/>
  47. <gubuncd>01</gubuncd>
  48. <cdid/>
  49. <lowflag/>
  50. </send>
  51. <init>
  52. <csrdeptinfo/>
  53. </init>
  54. <temp/>
  55. </root>
  56. </instance>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  67. <submission id="TRMNG02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/porqinfo"/>
  68. <submission id="TXMNG02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  69. <submission id="TRMNG00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
  70. <submission id="TRMNV00001" mediatype="application/x-www-form-urlencoded" method="post"/>
  71. <submission id="TXMNG02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/prntdata" resultref="/root/temp"/>
  72. <submission id="TRMNG02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  73. </model>
  74. <script type="javascript">
  75. <![CDATA[
  76. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  77. function fInitialize()
  78. {
  79. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm")); //기관코드
  80. model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate());
  81. fGetHardCodeInfo("/root/send/cdgrupid", "/root/init/csrdeptinfo", "160"); // 중앙공급실 부서코드 조회
  82. var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
  83. if (!isNull(userdutplcecd)) {
  84. model.setValue(cmb_deptcd.attribute("ref"), 'ALL');
  85. model.setValue("/root/send/cdid", "Y");
  86. } else {
  87. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  88. model.setValue("/root/send/cdid", "N");
  89. cmb_deptcd.disabled = true; //중앙공급실이 아닐 경우 부서선택 숨김
  90. }
  91. ipt_reqdd.refresh();
  92. cmb_deptcd.refresh();
  93. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  94. model.makeValue("/root/send/reqdata/useyn", "Y");
  95. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  96. submit("TRMNG00402");
  97. submit("TRMNG00404");
  98. addComboItem("cmb_deptcd","--전체--","ALL","above");
  99. submit("TRMNG02302");
  100. var getuserinstcd = model.getValue("/root/temp/useinfo/cdid");
  101. if (getuserinstcd == "Y" ) {
  102. chk_low.visible = true;
  103. // cmb_lowdept.visible = true;
  104. } else {
  105. chk_low.visible = false;
  106. cmb_lowdept.visible = false;
  107. }
  108. fSearch();
  109. }
  110. function fUsrSetting() {
  111. var ioflag;
  112. var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
  113. submit("TRMNG02302");
  114. var getuserinstcd = model.getValue("/root/temp/useinfo/cdid");
  115. // for(var i = grd_porqlist.fixedRows; i < grd_porqlist.rows; i++) {
  116. for(var i = 1; i < grd_porqlist.rows; i++) {
  117. // ioflag = grd_porqlist.valueMatrix(i, grd_porqlist.colRef("ioflag"));
  118. // outidflag = grd_porqlist.valueMatrix(i, grd_porqlist.col Ref("outid"));
  119. // reqidflag = grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqid"));
  120. ioflag = model.getValue("/root/main/porqinfo/porqlist[" + i + "]/ioflag");
  121. outidflag = model.getValue("/root/main/porqinfo/porqlist[" + i + "]/outid");
  122. reqidflag = model.getValue("/root/main/porqinfo/porqlist[" + i + "]/reqid");
  123. if(ioflag == "N") {
  124. grd_porqlist.rowStatus(i) = "1";
  125. if (!isNull(userdutplcecd) && isNull(outidflag)) {
  126. grd_porqlist.colType(grd_porqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
  127. //grd_pnrqlist.colType(grd_pnrqlist.colRef("remark2")) = 'output'; //중앙공급실에서 비고 비활성화
  128. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outnm")) = getUserInfo("usernm"); //담당자
  129. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outid")) = getUserInfo("userid"); //담당자
  130. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/outnm", getUserInfo("usernm")); //담당자
  131. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/outid", getUserInfo("userid")) //담당자
  132. } else if (isNull(userdutplcecd) && isNull(outidflag)) {
  133. grd_porqlist.colType(grd_porqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
  134. //grd_pnrqlist.colType(grd_pnrqlist.colRef("remark1")) = 'output'; //중앙공급실에서 비고 비활성화
  135. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqnm")) = getUserInfo("usernm"); //청구요청자
  136. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqid")) = getUserInfo("userid"); //담당자
  137. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/reqnm", getUserInfo("usernm")); //담당자
  138. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/reqid", getUserInfo("userid")); //담당자
  139. }
  140. }
  141. if (ioflag == "O" && !isNull(userdutplcecd)) {
  142. grd_porqlist.colType(grd_porqlist.colRef("reqcnt")) = 'output'; //중앙공급실에서 병동 청구수량 비활성화
  143. //grd_pnrqlist.colType(grd_pnrqlist.colRef("remark2")) = 'output'; //중앙공급실에서 비고 비활성화
  144. if (isNull(outidflag)) {
  145. grd_porqlist.rowStatus(i) = "2";
  146. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outnm")) = getUserInfo("usernm"); //담당자
  147. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outid")) = getUserInfo("userid"); //담당자
  148. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/outnm", getUserInfo("usernm")); //담당자
  149. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/outid", getUserInfo("userid")) //담당자
  150. }
  151. } else if (ioflag == "O" && isNull(userdutplcecd)) {
  152. grd_porqlist.colType(grd_porqlist.colRef("outcnt")) = 'output'; //병동에서에서 병동 불출수량 비활성화
  153. //grd_pnrqlist.colType(grd_pnrqlist.colRef("remark1")) = 'output'; //중앙공급실에서 비고 비활성화
  154. if (isNull(reqidflag)) {
  155. grd_porqlist.rowStatus(i) = "2";
  156. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqnm")) = getUserInfo("usernm"); //청구요청자
  157. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqid")) = getUserInfo("userid"); //담당자
  158. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/reqnm", getUserInfo("usernm")); //담당자
  159. // model.setValue("/root/main/porqinfo/porqlist[" + i + "]/reqid", getUserInfo("userid")); //담당자
  160. }
  161. }
  162. // alert(model.getValue("/root/main/porqinfo/porqlist[" + i + "]/reqid"));
  163. // alert(instance1.selectNodesXml("/root/main/porqinfo/porqlist[" + i + "]"));
  164. }
  165. //grd_porqlist.mergecol(1)=false; //병합 비활성화
  166. grd_porqlist.mergecol(grd_porqlist.colRef("goodcd"))=false;
  167. grd_porqlist.mergecol(grd_porqlist.colRef("goodnm"))=false;
  168. grd_porqlist.mergecol(grd_porqlist.colRef("goodspec"))=false;
  169. grd_porqlist.mergecol(grd_porqlist.colRef("goodunit"))=false;
  170. grd_porqlist.mergecol(grd_porqlist.colRef("reqcnt"))=false;
  171. grd_porqlist.mergecol(grd_porqlist.colRef("reqnm"))=false;
  172. grd_porqlist.mergecol(grd_porqlist.colRef("outcnt"))=false;
  173. grd_porqlist.mergecol(grd_porqlist.colRef("outnm"))=false;
  174. grd_porqlist.mergecol(grd_porqlist.colRef("stockcnt"))=false;
  175. grd_porqlist.mergecol(grd_porqlist.colRef("prntnm"))=false;
  176. grd_porqlist.mergecol(grd_porqlist.colRef("gooddesc"))=false;
  177. grd_porqlist.mergecol(grd_porqlist.colRef("prntdt"))=false;
  178. if ( getuserinstcd == "Y") {
  179. grd_porqlist.mergeCol(grd_porqlist.colRef("remark1")) = false;
  180. grd_porqlist.colHidden(grd_porqlist.colRef("prntnm")) = false;
  181. grd_porqlist.colHidden(grd_porqlist.colRef("gooddesc")) = false;
  182. grd_porqlist.colHidden(grd_porqlist.colRef("prntdt")) = false;
  183. } else {
  184. grd_porqlist.colHidden(grd_porqlist.colRef("prntnm")) = true;
  185. grd_porqlist.colHidden(grd_porqlist.colRef("gooddesc")) = true;
  186. grd_porqlist.colHidden(grd_porqlist.colRef("prntdt")) = true;
  187. }
  188. grd_porqlist.mergecells="bycol";
  189. }
  190. function fSearch() {
  191. model.setValue("/root/send/reqdd", model.getValue(ipt_reqdd.attribute("ref")));
  192. model.setValue("/root/send/deptcd", model.getValue(cmb_deptcd.attribute("ref")));
  193. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  194. submit("TRMNG02301", "false");
  195. fUsrSetting();
  196. }
  197. function fPrintRex() {
  198. model.removenode("/root/send/report/porqlist");
  199. model.makeNode("/root/send/report/porqlist");
  200. copyNodesetType("/root/send/report/porqlist", "/root/main/porqinfo/porqlist");
  201. var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
  202. // 중앙공급실 유저만 출력여부 업데이트
  203. if (getUserInfo("dutplcecd") == userdutplcecd) {
  204. fSaveprnt();
  205. }
  206. exeReportPreview("RPMNG02300", "XMLSTR", "/root/send/report/porqlist");
  207. fSearch();
  208. }
  209. function fSearch2() {
  210. model.setValue("/root/send/reqdd", model.getValue(ipt_reqdd.attribute("ref")));
  211. model.setValue("/root/send/deptcd", model.getValue(cmb_lowdept.attribute("ref")));
  212. model.setValue("/root/send/gubuncd", model.getValue(rdo_gubuncd.attribute("ref"))); //마스터코드구분 01:물품마스터02:창고마스터
  213. submit("TRMNG02301", "false");
  214. fUsrSetting();
  215. }
  216. function fSaveprnt() {
  217. for (i=0; i< grd_porqlist.rows; i++) {
  218. if(grd_porqlist.valueMatrix(i, grd_porqlist.colRef("prntdt")) == "" || grd_porqlist.valueMatrix(i, grd_porqlist.colRef("prntdt")) == null ) {
  219. grd_porqlist.rowStatus(i) = 2;
  220. }
  221. }
  222. model.makeValue("/root/send/prntdata/porqlist", getGridUpdateData(grd_porqlist) );
  223. submit("TXMNG02302");
  224. }
  225. ]]>
  226. </script>
  227. </xhtml:head>
  228. <xhtml:body pagewidth="1024" pageheight="746" guideline="1,1007;2,547;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  229. <group id="grp_tle" style="left:0px; top:0px; width:995px; height:13px; ">
  230. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물청구관리</caption>
  231. </group>
  232. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:995px; height:665px; ">
  233. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">세탁물청구관리</caption>
  234. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:990px; y2:26px; "/>
  235. <button id="btn_sav" class="btn5_letter2" style="left:946px; top:3px; width:42px; height:19px; ">
  236. <caption>저장</caption>
  237. <script type="javascript" ev:event="DOMActivate">
  238. <![CDATA[
  239. model.makeValue("/root/send/savedata/porqlist", getGridUpdateData(grd_porqlist) );
  240. submit("TXMNG02301");
  241. if ( chk_low.value == "Y") {
  242. fSearch2(); // 하위부서 check시 조회는 하위부서로.
  243. } else {
  244. fSearch();
  245. }
  246. ]]>
  247. </script>
  248. </button>
  249. <datagrid id="grd_porqlist" nodeset="/root/main/porqinfo/porqlist" caption="부서명^품목코드^품명^규격^단위^청구요청량^청구자^실제불출량^담당자^실재고 수량^비고^상세설명^출력여부^출력시간" colsep="^" colwidth="96, 86, 100, 70, 67, 83, 79, 83, 65, 77, 125, 100, 60, 120, 34, 30, 28, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:29px; width:990px; height:635px; ">
  250. <col ref="deptnm" visibility="visible"/>
  251. <col ref="goodcd" visibility="visible"/>
  252. <col ref="goodnm" visibility="visible"/>
  253. <col ref="goodspec" visibility="visible"/>
  254. <col ref="goodunit" visibility="visible"/>
  255. <col ref="reqcnt" type="input" visibility="visible" format="#,###"/>
  256. <col ref="reqnm" visibility="visible"/>
  257. <col ref="outcnt" type="input" visibility="visible" format="#,###"/>
  258. <col ref="outnm" visibility="visible"/>
  259. <col ref="stockcnt" visibility="visible"/>
  260. <col ref="remark1" type="input"/>
  261. <col ref="gooddesc" visibility="visibile"/>
  262. <col ref="prntnm" visibility="visible"/>
  263. <col ref="prntdt" visibility="visible"/>
  264. <col ref="prntyn" visibility="hidden"/>
  265. <col ref="reqdd" visibility="hidden"/>
  266. <col ref="deptcd" visibility="hidden"/>
  267. <col ref="ioflag" visibility="hidden"/>
  268. <col ref="instcd" visibility="hidden"/>
  269. <col ref="reqid" visibility="hidden"/>
  270. <col ref="outid" visibility="hidden"/>
  271. <script type="javascript" ev:event="xforms-value-changed">
  272. <![CDATA[
  273. var remark1 = "";
  274. var reqid = "";
  275. var outid = "";
  276. var userdutplcecd = model.getValue("/root/init/csrdeptinfo/codelist[cdid = '"+getUserInfo("dutplcecd")+"']/cdid");
  277. var getuseinstcd = model.getValue("/root/temp/useinfo/cdid");
  278. if(grd_porqlist.col == grd_porqlist.colRef("remark1") || grd_porqlist.col == grd_porqlist.colRef("reqcnt") || grd_porqlist.col == grd_porqlist.colRef("outcnt")) {
  279. remark1 = grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("remark1"));
  280. reqid = getUserInfo("userid");
  281. outid = getUserInfo("userid");
  282. for(var i = grd_porqlist.fixedRows; i < grd_porqlist.rows; i++) { //전체 행에서 같은 셀병합을 위하여 같은 부서만 적용.
  283. if(getuseinstcd != "Y") {
  284. if ( grd_porqlist.valueMatrix(i, grd_porqlist.colRef("deptcd")) == grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("deptcd")) ) {
  285. if (grd_porqlist.rowStatus(i) == "1" || grd_porqlist.rowStatus(i) == "3" ) { //그리드 상태를 변경한다
  286. grd_porqlist.rowStatus(i) = "1";
  287. } else if (grd_porqlist.rowStatus(i) == "2" || grd_porqlist.rowStatus(i) == "0") { //그리드 상태를 변경한다
  288. grd_porqlist.rowStatus(i) = "2";
  289. }
  290. grd_porqlist.valueMatrix(i, grd_porqlist.colRef("remark1")) = remark1;
  291. if (isNull(userdutplcecd) ){
  292. grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqid")) = reqid;
  293. } else {
  294. grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outid")) = outid;
  295. }
  296. }
  297. } else if (getuseinstcd == "Y") {
  298. if (isNull(userdutplcecd) ){
  299. grd_porqlist.valueMatrix(i, grd_porqlist.colRef("reqid")) = reqid;
  300. } else {
  301. grd_porqlist.valueMatrix(i, grd_porqlist.colRef("outid")) = outid;
  302. }
  303. // grd_porqlist.valueMatrix(i, grd_porqlist.colRef("prntdt")) = "";
  304. }
  305. }
  306. if (getuseinstcd == "Y") {
  307. if ( grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("prntdt")) != "" || grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("prntdt")) != null) {
  308. grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("prntdt")) = "";
  309. grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("prntnm")) = "";
  310. grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("prntyn")) = "";
  311. }
  312. }
  313. // alert(grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("outcnt")));
  314. if( getuseinstcd == "Y" && (grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("outid")) == ""
  315. || grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("outid")) == null) ) {
  316. grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("outcnt")) = grd_porqlist.valueMatrix(grd_porqlist.row, grd_porqlist.colRef("reqcnt"));
  317. }
  318. }
  319. ]]>
  320. </script>
  321. <script type="javascript" ev:event="onkeypress">
  322. <![CDATA[
  323. var row = grd_porqlist.row;
  324. if(event.keyCode == 13) { // Enter 쳤을 경우 아래 수량으로
  325. if(grd_porqlist.col == grd_porqlist.colRef("reqcnt") || grd_porqlist.col == grd_porqlist.colRef("outcnt")) { //불출수량이나 미불출수량 엔터시
  326. if(grd_porqlist.row + 1 < grd_porqlist.rows) {
  327. grd_porqlist.row = row + 1;
  328. }
  329. }
  330. }
  331. ]]>
  332. </script>
  333. </datagrid>
  334. <select1 id="rdo_gubuncd" ref="/root/send/gubuncd" disabled="true" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:220px; top:5px; width:390px; height:15px; border-style:none; ">
  335. <choices>
  336. <item>
  337. <label>물품마스터</label>
  338. <value>01</value>
  339. </item>
  340. <item>
  341. <label>창고마스터</label>
  342. <value>02</value>
  343. </item>
  344. </choices>
  345. </select1>
  346. </group>
  347. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:995px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  348. <select1 id="cmb_lowdept" ref="/root/main/cond/lowdept" appearance="minimal" style="left:500px; top:30px; width:100px; height:19px; ">
  349. <choices>
  350. <itemset nodeset="/root/main/deptcodelist">
  351. <label ref="deptnm"/>
  352. <value ref="deptcd"/>
  353. </itemset>
  354. </choices>
  355. <script type="javascript" ev:event="xforms-value-changed">
  356. <![CDATA[
  357. fSearch2();
  358. ]]>
  359. </script>
  360. </select1>
  361. <caption id="caption2" class="search_name" style="left:430px; top:30px; width:88px; height:17px; ">부서명:</caption>
  362. <caption id="cap_csrreqdeptcd" class="search_name" style="left:260px; top:30px; width:68px; height:17px; ">청구일:</caption>
  363. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:818px; top:26px; width:56px; height:22px; ">
  364. <caption>조회</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. fSearch();
  368. ]]>
  369. </script>
  370. </button>
  371. <input id="ipt_reqdd" ref="/root/main/cond/reqdd" class="input_default" inputtype="date" maxlength="6" format="yyyy-mm-dd" style="left:330px; top:30px; width:90px; height:19px; ">
  372. <script type="javascript" ev:event="xforms-value-changed">
  373. <![CDATA[
  374. fSearch();
  375. ]]>
  376. </script>
  377. </input>
  378. <line id="line2" class="line_4" style="x1:812px; y1:25px; x2:812px; y2:50px; "/>
  379. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  380. <output id="opt_instcdnm" ref="/root/main/cond/instcd" class="output_fix" style="left:100px; top:30px; width:150px; height:19px; text-align:center; "/>
  381. <button id="button3" class="btn1_letter2" style="left:876px; top:26px; width:56px; height:22px; ">
  382. <caption>엑셀</caption>
  383. <script type="javascript" ev:event="DOMActivate">
  384. <![CDATA[
  385. var fileName = window.fileDialog("save", ",", false, "세탁물창고재고현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  386. if (fileName != "")
  387. {
  388. grd_porqlist.saveExcel(fileName, "SheetName", false, false, "", "", "false");
  389. }
  390. ]]>
  391. </script>
  392. </button>
  393. <button id="btn_prt" class="btn1_letter2" style="left:934px; top:26px; width:56px; height:22px; ">
  394. <caption>출력</caption>
  395. <script type="javascript" ev:event="DOMActivate">
  396. <![CDATA[
  397. fPrintRex();
  398. ]]>
  399. </script>
  400. </button>
  401. <select id="chk_low" ref="/root/send/lowflag" overflow="visible" appearance="full" style="left:720px; top:30px; width:100px; height:20px; border-style:none; ">
  402. <choices>
  403. <item>
  404. <label>하위부서</label>
  405. <value>Y</value>
  406. </item>
  407. </choices>
  408. <script type="javascript" ev:event="xforms-value-changed">
  409. <![CDATA[
  410. if ( chk_low.value == "Y" ) {
  411. cmb_deptcd.visible = false;
  412. cmb_lowdept.visible = true;
  413. if ( cmb_lowdept.value != null && cmb_lowdept.value != "") {
  414. fSearch2();
  415. }
  416. } else {
  417. cmb_deptcd.visible = true;
  418. cmb_lowdept.visible = false;
  419. fSearch();
  420. }
  421. ]]>
  422. </script>
  423. </select>
  424. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" disabled="false" appearance="minimal" style="left:500px; top:30px; width:100px; height:19px; ">
  425. <choices>
  426. <itemset nodeset="/root/main/csrdeptlist">
  427. <label ref="deptnm"/>
  428. <value ref="deptcd"/>
  429. </itemset>
  430. </choices>
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. fSearch();
  434. ]]>
  435. </script>
  436. </select1>
  437. </xhtml:body>
  438. </xhtml:html>