SMMCT00100_입원장발급현황.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <?xml version="1.0" encoding="UTF-8"?>
  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. <condition>
  11. <fromdd/>
  12. <todd/>
  13. <termflag>0</termflag>
  14. <orddeptcd/>
  15. <subdeptcd/>
  16. <medispclid/>
  17. <cnclinfg/>
  18. </condition>
  19. <inpatissueinfo>
  20. <inpatissueinfolist/>
  21. </inpatissueinfo>
  22. </main>
  23. <send>
  24. <reqdata/>
  25. </send>
  26. <init>
  27. <orddept>
  28. <dept/>
  29. </orddept>
  30. <info/>
  31. <userlist>
  32. <usercombo>
  33. <userid/>
  34. <usernm/>
  35. </usercombo>
  36. </userlist>
  37. <subdeptinfo>
  38. <subdeptlist/>
  39. </subdeptinfo>
  40. </init>
  41. </root>
  42. </instance>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  46. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  47. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  48. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  49. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  50. <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  53. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. fInit_SMMCT00100();
  57. ]]>
  58. </script>
  59. <submission id="TRMCT00100" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inpatissueinfo"/>
  60. <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
  61. <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
  62. <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
  63. <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. /*
  68. * @desc : 초기화
  69. */
  70. function fInit_SMMCT00100(){
  71. //진료과
  72. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
  73. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  74. addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
  75. //전문의
  76. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
  77. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  78. //초기값 셋팅
  79. model.setValue("/root/main/condition/fromdd" , getCurrentDate());
  80. model.setValue("/root/main/condition/todd" , getCurrentDate());
  81. model.setValue("/root/main/condition/termflag", "0");
  82. model.setValue("/root/main/condition/orddeptcd" , "-");
  83. model.setValue("/root/main/condition/subdeptcd" , "-");
  84. model.setValue("/root/main/condition/medispclid" , "-");
  85. model.removeNodeset(grd_inpatinfolst.nodeset );
  86. cap_total.value = "총 0 명";
  87. model.refresh();
  88. }
  89. /**
  90. * @desc : 입원장발급현황 조회
  91. */
  92. function fGetInPatInfoList(){
  93. var cnt = 0 ;
  94. cap_total.value = "총 " + cnt + " 명";
  95. model.removeNodeset(grd_inpatinfolst.nodeset);
  96. model.resetInstanceNode("/root/send/reqdata");
  97. model.copyNode("/root/send/reqdata", "/root/main/condition");
  98. if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
  99. if( model.getValue("/root/send/reqdata/subdeptcd") == "-" ) model.setValue("/root/send/reqdata/subdeptcd", "");
  100. if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
  101. submit("TRMCT00100");
  102. var nodelist = instance1.selectNodes(grd_inpatinfolst.nodeset );
  103. if( nodelist != null ) cnt = nodelist.length ;
  104. cap_total.value = "총 " + cnt + " 명";
  105. model.refresh();
  106. }
  107. ]]>
  108. </script>
  109. </xhtml:head>
  110. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  111. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">입원장발급현황</caption>
  112. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:40px; "/>
  113. <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:52px; border-color:#ffe4bb; border-left-style:solid; "/>
  114. <caption id="caption20" class="tit_2" style="left:5px; top:67px; width:139px; height:13px; ">입원장발급현황 조회</caption>
  115. <line id="line1" class="line_1" style="x1:4px; y1:85px; x2:1191px; y2:86px; "/>
  116. <select1 id="cmb_termflag" ref="/root/main/condition/termflag" class="combo_default" disabled="false" appearance="minimal" style="left:77px; top:32px; width:100px; height:19px; ">
  117. <choices>
  118. <item>
  119. <label>입원지시일</label>
  120. <value>0</value>
  121. </item>
  122. <item>
  123. <label>입원희망일</label>
  124. <value>1</value>
  125. </item>
  126. <item>
  127. <label>환자입원희망일</label>
  128. <value>2</value>
  129. </item>
  130. </choices>
  131. </select1>
  132. <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
  133. <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:280px; top:32px; width:90px; height:19px; "/>
  134. <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:460px; top:33px; width:100px; height:19px; ">
  135. <choices>
  136. <itemset nodeset="/root/init/orddept/dept">
  137. <label ref="depthngnm"/>
  138. <value ref="deptcd"/>
  139. </itemset>
  140. </choices>
  141. <script type="javascript" ev:event="xforms-value-changed">
  142. <![CDATA[
  143. fSetMedDr("", cmb_orddept.value ) ;
  144. ]]>
  145. </script>
  146. </select1>
  147. <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" appearance="minimal" style="left:645px; top:33px; width:95px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  150. <label ref="subdeptnm"/>
  151. <value ref="subdeptcd"/>
  152. </itemset>
  153. </choices>
  154. </select1>
  155. <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:830px; top:33px; width:85px; height:19px; ">
  156. <choices>
  157. <itemset nodeset="/root/init/userlist/usercombo">
  158. <label ref="usernm"/>
  159. <value ref="userid"/>
  160. </itemset>
  161. </choices>
  162. </select1>
  163. <select id="chk_all" ref="/root/main/condition/cnclinfg" class="checkbox_search" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:920px; top:34px; width:75px; height:20px; border-style:none; ">
  164. <choices>
  165. <item>
  166. <label>취소포함</label>
  167. <value>Y</value>
  168. </item>
  169. </choices>
  170. </select>
  171. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  172. <caption>조회</caption>
  173. <script type="javascript" ev:event="DOMActivate">
  174. <![CDATA[
  175. fGetInPatInfoList();
  176. /*model.resetInstanceNode("/root/send");
  177. var fromdd = model.getValue("/root/main/condition/fromdd");
  178. var todd = model.getValue("/root/main/condition/todd");
  179. model.setValue("/root/send/fromdd", fromdd);
  180. model.setValue("/root/send/todd", todd);
  181. submit("TRMCT00100");
  182. model.refresh();*/
  183. ]]>
  184. </script>
  185. </button>
  186. <caption id="caption8" style="left:269px; top:34px; width:15px; height:15px; ">~</caption>
  187. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
  188. <datagrid id="grd_inpatinfolst" nodeset="/root/main/inpatissueinfo/inpatissueinfolist" autoresize="true" caption="입원여부^입원예약^환자ID^환자이름^세부분과^전문의^입원지시일^입원희망일^환자입원희망일^수술예정일^실제입원일^응급실내원일^입원대기일수^CP여부^진단명^입원취소사유" colwidth="69, 90, 80, 87, 100, 63, 90, 90, 90, 90, 90, 90, 84, 58, 300, 204" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:90px; width:1187px; height:690px; ">
  189. <col ref="inflag" style="text-align:center; "/>
  190. <col ref="inrsrvacptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  191. <col ref="pid" style="text-align:center; "/>
  192. <col ref="pname" style="text-align:center; "/>
  193. <col ref="subdeptcd" style="text-align:center; "/>
  194. <col ref="orddrnm" style="text-align:center; "/>
  195. <col ref="indirecttdd" format="yyyy-mm-dd" style="text-align:center; "/>
  196. <col ref="inhopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  197. <col ref="patinhopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  198. <col ref="scheopdd" format="yyyy-mm-dd" style="text-align:center; "/>
  199. <col ref="indd" format="yyyy-mm-dd" style="text-align:center; "/>
  200. <col ref="erindd" format="yyyy-mm-dd" style="text-align:center; "/>
  201. <col ref="indlydy" style="text-align:center; "/>
  202. <col ref="cpyn" style="text-align:center; "/>
  203. <col ref="diagnm"/>
  204. <col ref="inrsrvcnclresn"/>
  205. </datagrid>
  206. <caption id="caption14" class="search_name" style="left:566px; top:33px; width:76px; height:17px; ">세 부 과</caption>
  207. <caption id="caption7" class="search_name" style="left:381px; top:33px; width:76px; height:17px; ">진 료 과</caption>
  208. <caption id="caption1" class="search_name" style="left:751px; top:33px; width:76px; height:17px; ">주 치 의</caption>
  209. <caption id="cap_total" class="search_name" style="left:1000px; top:33px; width:110px; height:17px; ">총 0 명</caption>
  210. <button id="button1" class="btn2_letter2" style="left:1150px; top:64px; width:42px; height:19px; ">
  211. <caption>엑셀</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. var title = "입원장발급현황 (" + cmb_termflag.label + " : " + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) ;
  215. //fsaveGridToExcel(grd_inpatinfolst, title);
  216. var fileName = window.fileDialog("save", ",", false, "입원장발급현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  217. if (fileName != ""){
  218. grd_inpatinfolst.saveExcel(fileName, "입원장발급현황", true, true, "", "", false);
  219. var s = fileName.lastIndexOf("\\");
  220. var fileName=fileName.substring(s+1);
  221. var rmsg = messageBox("저장된 Excel을", "Q004");
  222. if( rmsg == 6 ){
  223. window.exec("excel.exe", fileName);
  224. }
  225. }
  226. ]]>
  227. </script>
  228. </button>
  229. </xhtml:body>
  230. </xhtml:html>