SMPCT00500_외래진료예약대기.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPCT00500_외래진료예약대기.xrw
  4. * 설 명 : 외래진료예약대기
  5. * 설 계 자 : 유정란
  6. * 작 성 자 : 유정란
  7. * 작 성 일 : 2009.08.25
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  13. <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">
  14. <xhtml:head>
  15. <xhtml:title>외래진료예약대기</xhtml:title>
  16. <model id="model1">
  17. <instance id="instance1">
  18. <root xmlns="">
  19. <main>
  20. <gridlist>
  21. <grid>
  22. <col1/>
  23. <col2/>
  24. <col3/>
  25. <col4/>
  26. <col5/>
  27. <col6/>
  28. <col7/>
  29. <col8/>
  30. <col9/>
  31. <col10/>
  32. <col11/>
  33. <col12/>
  34. <col13/>
  35. <col14/>
  36. <col15/>
  37. <col16/>
  38. <col17/>
  39. <col18/>
  40. <col19/>
  41. <col20/>
  42. <col21/>
  43. </grid>
  44. </gridlist>
  45. </main>
  46. <send>
  47. <data1/>
  48. </send>
  49. <init>
  50. <orddeptcd>
  51. <cd/>
  52. <nm/>
  53. </orddeptcd>
  54. <orddrid>
  55. <cd/>
  56. <nm/>
  57. <dp/>
  58. </orddrid>
  59. <centcd>
  60. <cd/>
  61. <nm/>
  62. </centcd>
  63. </init>
  64. <hidden>
  65. <condition1/>
  66. <condition2/>
  67. <condition3/>
  68. <svrnm/>
  69. <centcd/>
  70. <orddeptcd/>
  71. <orddrid/>
  72. <opt2/>
  73. </hidden>
  74. </root>
  75. </instance>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. submit("TRPCTCOM02");
  79. fInitialize();
  80. model.resetInstanceNode("/root/hidden/opt2");
  81. fOutComboSet();
  82. ]]>
  83. </script>
  84. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  85. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  88. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  89. <script type="javascript" src="../../../pam/pamctlweb/js/PCTCOM.js"/>
  90. <script type="javascript">
  91. <![CDATA[
  92. function fGridColorChange(){
  93. var temp = "";
  94. var amfrsrv = "", amfcapa = "", amrrsrv = "", amrcapa = "", amtrsrv = "", amtcapa = "";
  95. var pmfrsrv = "", pmfcapa = "", pmrrsrv = "", pmrcapa = "", pmtrsrv = "", pmtcapa = "";
  96. for (irow = 3; irow <= datagrid1.rows; irow++){
  97. // if (irow == 20) break;
  98. temp = model.getValue("/root/main/gridlist/grid["+ irow +"]/col21").getCarrigeReturnRemove();
  99. amfrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col8");
  100. amfcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col9");
  101. amrrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col10");
  102. amrcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col11");
  103. amtrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col12");
  104. amtcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col13");
  105. pmfrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col14");
  106. pmfcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col15");
  107. pmrrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col16");
  108. pmrcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col17");
  109. pmtrsrv = model.getValue("/root/main/gridlist/grid["+ irow +"]/col18");
  110. pmtcapa = model.getValue("/root/main/gridlist/grid["+ irow +"]/col19");
  111. if (eval(amfrsrv) > eval(amfcapa)){
  112. datagrid1.cellStyle("color",irow+2,7,irow+2,7) = "#ff0000";
  113. }
  114. if (eval(amrrsrv) > eval(amrcapa)){
  115. datagrid1.cellStyle("color",irow+2,9,irow+2,9) = "#ff0000";
  116. }
  117. if (eval(amtrsrv) > eval(amtcapa)){
  118. datagrid1.cellStyle("color",irow+2,11,irow+2,11) = "#ff0000";
  119. }
  120. if (eval(pmfrsrv) > eval(pmfcapa)){
  121. datagrid1.cellStyle("color",irow+2,13,irow+2,13) = "#ff0000";
  122. }
  123. if (eval(pmrrsrv) > eval(pmrcapa)){
  124. datagrid1.cellStyle("color",irow+2,15,irow+2,15) = "#ff0000";
  125. }
  126. if (eval(pmtrsrv) > eval(pmtcapa)){
  127. datagrid1.cellStyle("color",irow+2,17,irow+2,17) = "#ff0000";
  128. }
  129. if (temp == "" || temp == null || temp == " "){
  130. datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#fffffe";
  131. continue;
  132. }
  133. // temp = eval(temp) * 7;
  134. temp = eval(temp);
  135. if (temp <= 0){
  136. datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#fffffe";
  137. }
  138. else if (temp < 15){
  139. datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ffff00";
  140. }
  141. else if (temp >= 15 && temp < 30){
  142. datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ffcc00";
  143. }
  144. else if (temp >= 30){
  145. datagrid1.cellStyle("background-color",irow+2,20,irow+2,20) = "#ff0000";
  146. }
  147. }
  148. }
  149. ]]>
  150. </script>
  151. <submission id="TRPCTCOM01" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main"/>
  152. <submission id="TRPCTCOM02" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init"/>
  153. </model>
  154. </xhtml:head>
  155. <xhtml:body>
  156. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:16px; width:1193px; height:60px; "/>
  157. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:215px; height:14px; ">외래진료예약대기</caption>
  158. <datagrid id="datagrid1" nodeset="/root/main/gridlist/grid" caption="위치^센터^임상과^세부과^진료의^직급^요일^오전정원^오전정원^오전정원^오전정원^오전정원^오전정원^오후정원^오후정원^오후정원^오후정원^오후정원^오후정원^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)|위치^센터^임상과^세부과^진료의^직급^요일^초진^초진^재진^재진^총정원^총정원^초진^초진^재진^재진^총정원^총정원^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)|위치^센터^임상과^세부과^진료의^직급^요일^예약^capa^예약^capa^예약^capa^예약^capa^예약^capa^예약^capa^초진예약환자수(차주~2달후)^초진예약대기 예상기간(일)" colwidth="59, 109, 112, 84, 74, 64, 34, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 87, 61" mergecellsfixedrows="bycolrec" rowsep="|" colsep="^" style="left:0px; top:83px; width:1193px; height:692px; ">
  159. <col ref="col1"/>
  160. <col ref="col2"/>
  161. <col ref="col3"/>
  162. <col ref="col4"/>
  163. <col ref="col5"/>
  164. <col ref="col6"/>
  165. <col ref="col7"/>
  166. <col ref="col8"/>
  167. <col ref="col9"/>
  168. <col ref="col10"/>
  169. <col ref="col11"/>
  170. <col ref="col12"/>
  171. <col ref="col13"/>
  172. <col ref="col14"/>
  173. <col ref="col15"/>
  174. <col ref="col16"/>
  175. <col ref="col17"/>
  176. <col ref="col18"/>
  177. <col ref="col19"/>
  178. <col ref="col20"/>
  179. <col ref="col21"/>
  180. </datagrid>
  181. <button id="button1" class="btn1_letter2" style="left:709px; top:22px; width:56px; height:22px; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fSearch("getOutOrdRsrvWait");
  186. //datagrid1.mergecells = "byrestriccol";
  187. //model.refresh();
  188. fGridColorChange();
  189. ]]>
  190. </script>
  191. </button>
  192. <caption id="caption1" style="left:25px; top:23px; width:55px; height:20px; ">기준일자</caption>
  193. <input id="input1" ref="/root/hidden/condition1" inputtype="date" style="left:79px; top:22px; width:100px; height:19px; "/>
  194. <caption id="caption2" style="left:790px; top:23px; width:160px; height:20px; ">* 기준일자 포함하는 주 조회</caption>
  195. <button id="button2" class="btn2_letter4" style="left:1125px; top:52px; width:64px; height:19px; ">
  196. <caption>엑셀저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. if (getNodesetCount("/root/main/gridlist/grid") < 1 && datagrid1.rows < 1){
  200. messageBox("저장할 데이터가 없습니다!", "E999");
  201. return;
  202. }
  203. var fileName = window.fileDialog("save", "", false, "외래진료예약대기", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  204. if (fileName != ""){
  205. datagrid1.saveExcel(fileName, "외래진료예약대기", true, false, "", "", true);
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <output id="output4" style="left:931px; top:52px; width:25px; height:19px; background-color:#ffcc99; "/>
  211. <output id="output5" style="left:1021px; top:52px; width:25px; height:19px; background-color:#ff0000; "/>
  212. <caption id="caption3" style="left:791px; top:52px; width:55px; height:20px; ">15일이내</caption>
  213. <caption id="caption4" style="left:876px; top:52px; width:60px; height:20px; ">15 ~ 30일</caption>
  214. <caption id="caption5" style="left:966px; top:52px; width:55px; height:20px; ">30일 이상</caption>
  215. <output id="output3" style="left:841px; top:52px; width:25px; height:19px; background-color:#ffff00; "/>
  216. <line id="line12" class="line_1" style="x1:0px; y1:78px; x2:1194px; y2:78px; "/>
  217. <select1 id="cmb_orddrid" ref="/root/hidden/orddrid" appearance="minimal" style="left:582px; top:22px; width:95px; height:19px; ">
  218. <choices>
  219. <itemset nodeset="/root/init/orddrid">
  220. <label ref="nm"/>
  221. <value ref="cd"/>
  222. </itemset>
  223. </choices>
  224. <script type="javascript" ev:event="xforms-select">
  225. <![CDATA[
  226. fOutOrddridVrf();
  227. ]]>
  228. </script>
  229. </select1>
  230. <select1 id="cmb_centcd" ref="/root/hidden/centcd" appearance="minimal" style="left:410px; top:22px; width:170px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/centcd">
  233. <label ref="nm"/>
  234. <value ref="cd"/>
  235. </itemset>
  236. </choices>
  237. </select1>
  238. <select1 id="cmb_orddeptcd" ref="/root/hidden/orddeptcd" appearance="minimal" style="left:410px; top:22px; width:170px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/orddeptcd">
  241. <label ref="nm"/>
  242. <value ref="cd"/>
  243. </itemset>
  244. </choices>
  245. <script type="javascript" ev:event="xforms-value-changed">
  246. <![CDATA[
  247. fOutOrddridFilter("1");
  248. ]]>
  249. </script>
  250. </select1>
  251. <select1 id="radio2" ref="/root/hidden/opt2" overflow="visible" appearance="full" cols="4" style="left:185px; top:23px; width:220px; height:20px; border-style:none; ">
  252. <choices>
  253. <item>
  254. <label>전체</label>
  255. <value/>
  256. </item>
  257. <item>
  258. <label>센터</label>
  259. <value>1</value>
  260. </item>
  261. <item>
  262. <label>진료과</label>
  263. <value>2</value>
  264. </item>
  265. <item>
  266. <label>진료의사</label>
  267. <value>3</value>
  268. </item>
  269. </choices>
  270. <script type="javascript" ev:event="xforms-value-changed">
  271. <![CDATA[
  272. fOutComboSet();
  273. ]]>
  274. </script>
  275. </select1>
  276. </xhtml:body>
  277. </xhtml:html>