SMMCT00105_과별의사별입원장발급건수.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. * 제 목 : SMMCT00105_과별의사별입원장발급건수.xrw
  4. * 설 명 : 과별의사별입원장발급건수
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2009.09.12
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>과별의사별입원장발급건수</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <fromdd/>
  21. <todd/>
  22. <termflag>0</termflag>
  23. <orddeptcd/>
  24. <subdeptcd/>
  25. <medispclid/>
  26. <opt_orddept>Y</opt_orddept>
  27. <opt_orddr>Y</opt_orddr>
  28. </condition>
  29. <inpatissueinfo>
  30. <inpatissuecntlist/>
  31. </inpatissueinfo>
  32. </main>
  33. <send>
  34. <reqdata/>
  35. </send>
  36. <init>
  37. <orddept>
  38. <dept/>
  39. </orddept>
  40. <info/>
  41. <userlist>
  42. <usercombo>
  43. <userid/>
  44. <usernm/>
  45. </usercombo>
  46. </userlist>
  47. <subdeptinfo>
  48. <subdeptlist/>
  49. </subdeptinfo>
  50. </init>
  51. </root>
  52. </instance>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  56. <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
  57. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  58. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  59. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  60. <script type="javascript" src="../../../emr/emrctlweb/js/MCT001.js"/>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. fInit_SMMCT00105();
  64. ]]>
  65. </script>
  66. <submission id="TRMCT00105" ref="/root/send/reqdata" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inpatissueinfo"/>
  67. <submission id="TRMMB04101" method="post" mediatype="application/x-www-form-urlencoded"/>
  68. <submission id="TRMMB04102" method="post" mediatype="application/x-www-form-urlencoded"/>
  69. <submission id="TRMMB04103" method="post" mediatype="application/x-www-form-urlencoded"/>
  70. <submission id="TRMMB04106" method="post" mediatype="application/x-www-form-urlencoded"/>
  71. </model>
  72. <script type="javascript">
  73. <![CDATA[
  74. /*
  75. * @desc : 초기화
  76. */
  77. function fInit_SMMCT00105(){
  78. //진료과
  79. mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept" , "D"); //부서코드 콤보
  80. addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 Item '전체'추가
  81. addComboInstance("/root/init/subdeptinfo" , "subdeptcd^subdeptnm", "-^전체", "subdeptlist"); //부서콤보 Item '전체'추가
  82. //전문의
  83. mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , getUserInfo("dutplcecd"), "0330", "", "M");
  84. addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
  85. //초기값 셋팅
  86. model.setValue("/root/main/condition/fromdd" , getCurrentDate());
  87. model.setValue("/root/main/condition/todd" , getCurrentDate());
  88. model.setValue("/root/main/condition/termflag", "0");
  89. model.setValue("/root/main/condition/orddeptcd" , "-");
  90. model.setValue("/root/main/condition/subdeptcd" , "-");
  91. model.setValue("/root/main/condition/medispclid" , "-");
  92. model.removeNodeset(grd_inpatcntlst.nodeset );
  93. cap_total.value = "총 0 건";
  94. model.refresh();
  95. }
  96. /**
  97. * @desc : 입원장발급건수 조회
  98. */
  99. function fGetInPatCntList(){
  100. var cnt = 0 ;
  101. cap_total.value = "총 " + cnt + " 건";
  102. model.removeNodeset(grd_inpatcntlst.nodeset);
  103. model.resetInstanceNode("/root/send/reqdata");
  104. model.copyNode("/root/send/reqdata", "/root/main/condition");
  105. if( model.getValue("/root/send/reqdata/orddeptcd") == "-" ) model.setValue("/root/send/reqdata/orddeptcd", "");
  106. if( model.getValue("/root/send/reqdata/subdeptcd") == "-" ) model.setValue("/root/send/reqdata/subdeptcd", "");
  107. if( model.getValue("/root/send/reqdata/medispclid") == "-" ) model.setValue("/root/send/reqdata/medispclid", "");
  108. submit("TRMCT00105");
  109. var nodelst = instance1.selectNodes(grd_inpatcntlst.nodeset );
  110. var tmpCnt = 0 ;
  111. if( nodelst.length > 0 ) {
  112. var sCnt = "";
  113. for( var i = 1 ; i <= nodelst.length ; i++ ) {
  114. sCnt = model.getValue(grd_inpatcntlst.nodeset + "[" + i + "]/issuecnt" );
  115. if( !isNull(sCnt ) ) {
  116. tmpCnt = parseInt(sCnt) ;
  117. if( !isNaN(tmpCnt) ) cnt = cnt + tmpCnt ;
  118. }
  119. }
  120. }
  121. //grd_inpatcntlst.subTotal("sum", 0, 3,"#,###", "#ffff00", "#0000ff", "bold", 0, "Total" );
  122. if( model.getValue("/root/main/condition/opt_orddept") == "Y" && model.getValue("/root/main/condition/opt_orddr") == "Y" ) {
  123. grd_inpatcntlst.subTotal("sum", 1, 6, "format:#,###; ", "background-color:#fafad2; font-weight:bold;"); //ffff00
  124. }
  125. cap_total.value = "총 " + cnt + " 건";
  126. model.refresh();
  127. }
  128. function fSetCtrlStat(){
  129. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddeptcd") ) = true ;
  130. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("subdeptcd") ) = true ;
  131. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrnm") ) = true ;
  132. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrpos") ) = true ;
  133. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrspec") ) = true ;
  134. if( model.getValue("/root/main/condition/opt_orddept" ) == "Y" ){
  135. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddeptcd") ) = false ;
  136. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("subdeptcd") ) = false ;
  137. }
  138. if( model.getValue("/root/main/condition/opt_orddr" ) == "Y" ){
  139. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrnm") ) = false ;
  140. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrpos") ) = false ;
  141. grd_inpatcntlst.colHidden(grd_inpatcntlst.colRef("orddrspec") ) = false ;
  142. }
  143. fGetInPatCntList();
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body accesskey="f2" guideline="2,763;2,765;2,763;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:300px; height:13px; ">과별 의사별 입원장발급건수</caption>
  150. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:20px; width:1194px; height:65px; "/>
  151. <button id="btn_req" class="btn1_letter2" style="left:1125px; top:40px; width:56px; height:22px; ">
  152. <caption>조회</caption>
  153. <script type="javascript" ev:event="DOMActivate">
  154. <![CDATA[
  155. fGetInPatCntList();
  156. ]]>
  157. </script>
  158. </button>
  159. <line id="line5" style="x1:1110px; y1:30px; x2:1110px; y2:72px; border-color:#ffe4bb; border-left-style:solid; "/>
  160. <caption id="caption20" class="tit_2" style="left:5px; top:92px; width:139px; height:13px; ">입원장발급건수 조회</caption>
  161. <line id="line1" class="line_1" style="x1:4px; y1:110px; x2:1191px; y2:111px; "/>
  162. <input id="input1" ref="/root/main/condition/todd" class="input_s_essential" inputtype="date" style="left:280px; top:32px; width:90px; height:19px; "/>
  163. <input id="input2" ref="/root/main/condition/fromdd" class="input_s_essential" inputtype="date" style="left:180px; top:32px; width:90px; height:19px; "/>
  164. <caption id="caption8" style="left:269px; top:34px; width:15px; height:15px; ">~</caption>
  165. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:86px; height:17px; ">기간 :</caption>
  166. <datagrid id="grd_inpatcntlst" nodeset="/root/main/inpatissueinfo/inpatissuecntlist" caption="진료과^세부분과^전문의^직위^선택진료^입원장발급건수" colwidth="100, 128, 122, 142, 72, 108" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" subtotalposition="below" rowsep="|" colsep="^" tooltip="true" style="left:3px; top:115px; width:702px; height:665px; ">
  167. <col ref="orddeptcd" style="text-align:center; "/>
  168. <col ref="subdeptcd" style="text-align:center; "/>
  169. <col ref="orddrnm" style="text-align:center; "/>
  170. <col ref="orddrpos" style="text-align:center; "/>
  171. <col ref="orddrspec" checkvalue="Y,N" disabled="false" style="text-align:center; "/>
  172. <col ref="issuecnt" format="#,###" style="text-align:center; "/>
  173. </datagrid>
  174. <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; ">
  175. <choices>
  176. <item>
  177. <label>입원지시일</label>
  178. <value>0</value>
  179. </item>
  180. <item>
  181. <label>입원희망일</label>
  182. <value>1</value>
  183. </item>
  184. <item>
  185. <label>환자입원희망일</label>
  186. <value>2</value>
  187. </item>
  188. </choices>
  189. </select1>
  190. <select1 id="cmb_medispclid" ref="/root/main/condition/medispclid" class="combo_search" appearance="minimal" itemcount="30" style="left:860px; top:58px; width:90px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/userlist/usercombo">
  193. <label ref="usernm"/>
  194. <value ref="userid"/>
  195. </itemset>
  196. </choices>
  197. </select1>
  198. <caption id="caption14" class="search_name" style="left:591px; top:58px; width:76px; height:17px; ">세 부 과</caption>
  199. <select1 id="cmb_subdept" ref="/root/main/condition/subdeptcd" class="combo" appearance="minimal" style="left:670px; top:58px; width:100px; height:19px; ">
  200. <choices>
  201. <itemset nodeset="/root/init/subdeptinfo/subdeptlist">
  202. <label ref="subdeptnm"/>
  203. <value ref="subdeptcd"/>
  204. </itemset>
  205. </choices>
  206. </select1>
  207. <caption id="caption7" class="search_name" style="left:381px; top:58px; width:76px; height:17px; ">진 료 과</caption>
  208. <caption id="caption1" class="search_name" style="left:781px; top:58px; width:76px; height:17px; ">주 치 의</caption>
  209. <select1 id="cmb_orddept" ref="/root/main/condition/orddeptcd" class="combo_search" appearance="minimal" editmode="search" style="left:480px; top:58px; width:100px; height:19px; ">
  210. <choices>
  211. <itemset nodeset="/root/init/orddept/dept">
  212. <label ref="depthngnm"/>
  213. <value ref="deptcd"/>
  214. </itemset>
  215. </choices>
  216. <script type="javascript" ev:event="xforms-value-changed">
  217. <![CDATA[
  218. fSetMedDr("", cmb_orddept.value ) ;
  219. ]]>
  220. </script>
  221. </select1>
  222. <caption id="cap_total" class="search_name" style="left:980px; top:43px; width:125px; height:17px; ">총 0 건</caption>
  223. <select id="chk_dept" ref="/root/main/condition/opt_orddept" class="checkbox_search" visibility="visible" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:480px; top:31px; width:75px; height:20px; border-style:none; ">
  224. <choices>
  225. <item>
  226. <label>진 료 과</label>
  227. <value>Y</value>
  228. </item>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. fSetCtrlStat( "D");
  233. ]]>
  234. </script>
  235. </select>
  236. <select id="chk_dr" ref="/root/main/condition/opt_orddr" class="checkbox_search" visibility="visible" overflow="visible" appearance="full" cols="1" sep="|" cellspacing="30" style="left:590px; top:31px; width:75px; height:20px; border-style:none; ">
  237. <choices>
  238. <item>
  239. <label>주 치 의</label>
  240. <value>Y</value>
  241. </item>
  242. </choices>
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. fSetCtrlStat( "M");
  246. ]]>
  247. </script>
  248. </select>
  249. <caption id="caption5" class="search_name" visibility="visible" style="left:381px; top:32px; width:91px; height:17px; ">조 회 옵 션</caption>
  250. <button id="button1" class="btn2_letter2" style="left:1150px; top:89px; width:42px; height:19px; ">
  251. <caption>엑셀</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. var title = "과별 의사별 입원장 발급건수 (" + cmb_termflag.label + " : " + model.getValue("/root/main/condition/fromdd" ) + " ~ " + model.getValue("/root/main/condition/todd" ) ;
  255. //fsaveGridToExcel(grd_inpatinfolst, title);
  256. var fileName = window.fileDialog("save", ",", false, "입원장발급건수", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  257. if (fileName != ""){
  258. grd_inpatcntlst.saveExcel(fileName, "입원장발급건수", true, true, "", "", false);
  259. var s = fileName.lastIndexOf("\\");
  260. var fileName=fileName.substring(s+1);
  261. var rmsg = messageBox("저장된 Excel을", "Q004");
  262. if( rmsg == 6 ){
  263. window.exec("excel.exe", fileName);
  264. }
  265. }
  266. ]]>
  267. </script>
  268. </button>
  269. </xhtml:body>
  270. </xhtml:html>