SPMNW18010_기자재현황통계.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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. <cond>
  11. <deptcd/>
  12. <fromdd/>
  13. <goodcd/>
  14. </cond>
  15. <goodinfo>
  16. <goodlist/>
  17. </goodinfo>
  18. </main>
  19. <send>
  20. <reqdata/>
  21. <savedata/>
  22. </send>
  23. <init/>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. //grd_ivinfo.fixedcellcheckbox(0, grd_ivinfo.colRef("chkyn")) = true;
  29. /*
  30. // 간호 하드코딩 조회
  31. model.makeValue("/root/send/cdgrupid", "'I05', 'I06', 'I07','I13'");
  32. model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  33. submit("TRMNW00001", false);
  34. var userid = getUserInfo("userid") ;
  35. //IV팀이면. 활성화
  36. if(userid == model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") || userid == 'ENR'){
  37. btn_cmpl.disabled = false;
  38. btn_savrem.disabled = false;
  39. btn_cncl.disabled = false;
  40. } else { // IV팀이 아니면 비활성화
  41. btn_cmpl.disabled = true;
  42. btn_savrem.disabled = true;
  43. btn_cncl.disabled = true;
  44. }
  45. */
  46. // 간호 하드코딩 조회
  47. model.makeValue("/root/send/cdgrupid", "'402'");
  48. model.makeValue("/root/send/srchdd" , getCurrentDate()); // 조회기준일자
  49. submit("TRMNW00001", false);
  50. // 부서(병동) 목록 조회
  51. var instcd = getUserInfo("dutplceinstcd");
  52. var standard_yn = "orduseyn";
  53. var ord_deptflag = 'W';
  54. var rslt_ref = "/root/init/dept";
  55. var sort_field = "depthngnm";
  56. var sort_method = "asc";
  57. var dt = getCurrentDate();
  58. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_field, sort_method, dt);
  59. //model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  60. model.setValue(cmb_deptcd.attribute("ref"), '');
  61. model.setValue(cmb_goodcd.attribute("ref"), '');
  62. //submit("TRMNW11001", false); // 전체 부서조회
  63. addComboItem("cmb_deptcd", "전 체", "", "above");
  64. model.setValue(ipt_fromdd.attribute("ref"), getDateAddc(getCurrentDate(),-1));
  65. //model.setValue(ipt_fromdd.attribute("ref"), getCurrentDate());
  66. ipt_fromdd.refresh();
  67. // grd_goodinfo.mergeCol(1) = false;
  68. // grd_goodinfo.mergeCol(2) = false;
  69. // grd_goodinfo.mergeCol(3) = false;
  70. // //grd_goodinfo.mergeCol(4) = false;
  71. // grd_goodinfo.mergeCol(5) = false;
  72. // grd_goodinfo.mergeCol(6) = false;
  73. // grd_goodinfo.mergeCol(7) = false;
  74. // grd_goodinfo.mergeCol(8) = false;
  75. // grd_goodinfo.mergeCol(9) = false;
  76. /*
  77. if(model.getValue("/root/init/codeinfo/codelist[cdgrupid='I07' and supcdid ='"+userid+"']/supcdid") == userid) {
  78. } else { // IV팀이 아니면 비활성화
  79. if(getUserInfo("userid") == "ENR") {
  80. model.setValue(cmb_deptcd.attribute("ref"), "");
  81. cmb_deptcd.refresh();
  82. } else {
  83. model.setValue(cmb_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  84. cmb_deptcd.refresh();
  85. }
  86. }
  87. */
  88. fSearch() ;
  89. ]]>
  90. </script>
  91. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmblist"/>
  92. <!--submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/-->
  93. <submission id="TRMNW19301" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/goodinfo"/>
  94. <submission id="TXMNW14511" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  95. <submission id="TRMNW11001" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptinfo"/>
  96. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  97. </model>
  98. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  99. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  102. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  104. <script type="javascript">
  105. <![CDATA[
  106. function fSearch() {
  107. // model.removenode("/root/send");
  108. // model.makeNode("/root/send");
  109. model.resetInstanceNode("/root/send");
  110. model.copyNode("/root/send/reqdata", "/root/main/cond");
  111. submit("TRMNW19301");
  112. /*
  113. var nodePath = grd_ivinfo.nodeset;
  114. for(var i = grd_ivinfo.fixedRows; i < grd_ivinfo.rows; i++) {
  115. if (model.getValue(nodePath + "["+i+"]/disp1") == "Y") {
  116. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  117. }else{
  118. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp1img")) = "";
  119. }
  120. if (model.getValue(nodePath + "["+i+"]/disp2") == "Y") {
  121. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  122. }else{
  123. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp2img")) = "";
  124. }
  125. if (model.getValue(nodePath + "["+i+"]/disp3") == "Y") {
  126. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  127. }else{
  128. grd_ivinfo.cellstyle("background-image", i, grd_ivinfo.colRef("disp3img")) = "";
  129. }
  130. }
  131. */
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body pagewidth="785" pageheight="780" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  137. <group id="group3" scroll="auto" style="left:0px; top:0px; width:765px; height:760px; ">
  138. <caption id="cpt_title" class="tit_1" style="left:0px; top:0px; width:191px; height:14px; font-family:굴림; ">장비이용도 사용현황 통계</caption>
  139. <group id="grp_sea" style="left:0px; top:20px; width:750px; height:40px; vertical-align:top; ">
  140. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:750px; height:40px; "/>
  141. <button id="btn_ref" class="btn1_letter2" navindex="7" style="left:630px; top:11px; width:56px; height:22px; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. fSearch() ;
  146. ]]>
  147. </script>
  148. </button>
  149. <caption id="caption3" class="search_name" style="left:205px; top:11px; width:90px; height:17px; font-family:굴림; ">업무일자 :</caption>
  150. <line id="line2" class="line_4" style="x1:620px; y1:10px; x2:620px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  151. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:295px; top:10px; width:95px; height:19px; font-family:굴림; ">
  152. <script type="javascript" ev:event="xforms-value-changed">
  153. <![CDATA[
  154. fSearch() ;
  155. ]]>
  156. </script>
  157. </input>
  158. <caption id="caption29" class="search_name" style="left:10px; top:11px; width:67px; height:17px; font-family:굴림; ">부 서 :</caption>
  159. <select1 id="cmb_deptcd" ref="/root/main/cond/deptcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:80px; top:11px; width:115px; height:19px; font-family:굴림; ">
  160. <choices>
  161. <itemset nodeset="/root/init/dept/dept">
  162. <label ref="depthngnm"/>
  163. <value ref="deptcd"/>
  164. </itemset>
  165. </choices>
  166. <script type="javascript" ev:event="xforms-value-changed">
  167. <![CDATA[
  168. fSearch();
  169. ]]>
  170. </script>
  171. </select1>
  172. <caption id="caption1" class="search_name" style="left:410px; top:11px; width:73px; height:17px; font-family:굴림; ">자산명 :</caption>
  173. <button id="button2" class="btn1_letter2" navindex="8" style="left:688px; top:11px; width:56px; height:22px; ">
  174. <caption>엑셀</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var fileName = window.fileDialog("save", ",", false, "기자재사용현황통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  178. grd_goodinfo.saveExcel(fileName, "sheetname;colhiddenextend:true;exportfalsecols:1,2,8,9,10;col_3:label;col_16:label;col_18:label;col_19:label;");
  179. ]]>
  180. </script>
  181. </button>
  182. <select1 id="cmb_goodcd" ref="/root/main/cond/goodcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:485px; top:11px; width:115px; height:19px; font-family:굴림; ">
  183. <choices>
  184. <itemset nodeset="/root/init/codeinfo/codelist[cdgrupid='402']">
  185. <label ref="cdnm"/>
  186. <value ref="supcdid"/>
  187. </itemset>
  188. </choices>
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. fSearch();
  192. ]]>
  193. </script>
  194. </select1>
  195. </group>
  196. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:750px; y2:65px; "/>
  197. <datagrid id="grd_goodinfo" nodeset="/root/main/goodinfo/goodlist" class="datagrid2" caption="병동^wardcd^lrgcd^자산명^규격^보유재고^사용^미사용^사용률(%)" colsep="^" colwidth="162, 1, 0, 200, 90, 65, 65, 65, 65" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:70px; width:750px; height:670px; ">
  198. <col ref="wardnm" style="text-align:center; "/>
  199. <col ref="wardcd" visibility="hidden"/>
  200. <col ref="lrgcd" visibility="hidden"/>
  201. <col ref="goodnm" style="text-align:center; "/>
  202. <col ref="goodspec" style="text-align:center; "/>
  203. <col ref="tot" style="text-align:center; "/>
  204. <col ref="using" style="text-align:center; "/>
  205. <col ref="remain" style="text-align:center; "/>
  206. <col ref="percent" type="output" style="text-align:center; "/>
  207. <script type="javascript" ev:event="onaftersort">
  208. <![CDATA[
  209. grd_goodinfo.gridToInstance();
  210. ]]>
  211. </script>
  212. </datagrid>
  213. </group>
  214. </xhtml:body>
  215. </xhtml:html>