SMPMB02800_기간별진료현황조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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. <orddrid/>
  11. <orddeptcd/>
  12. <fromdd/>
  13. <todd/>
  14. <drholiordsche>
  15. <drholiordschelist>
  16. </drholiordschelist>
  17. </drholiordsche>
  18. <result/>
  19. <histstatcd/>
  20. <srchflag/>
  21. <endcnfmyn/>
  22. <prcsstat/>
  23. </main>
  24. <send>
  25. <holiflag/>
  26. <orddrid/>
  27. <orddeptcd/>
  28. <srchcond/>
  29. <fromdd/>
  30. <todd/>
  31. <updatedata>
  32. <datalist/>
  33. </updatedata>
  34. <ordendcnfmyn/>
  35. <acceptstatflag/>
  36. <histstat/>
  37. <endcnfmyn/>
  38. <prcsstat/>
  39. </send>
  40. <init>
  41. <P0037list>
  42. <P0037>
  43. <cdnm/>
  44. <cdid/>
  45. </P0037>
  46. </P0037list>
  47. <P0406list>
  48. <P0406>
  49. <cdid/>
  50. <cdnm/>
  51. </P0406>
  52. </P0406list>
  53. <orddeptcd>
  54. <orddeptcdlist>
  55. <cd/>
  56. <nm/>
  57. </orddeptcdlist>
  58. </orddeptcd>
  59. <orddrid>
  60. <orddridlist>
  61. <cd/>
  62. <nm/>
  63. <dp/>
  64. <sp/>
  65. </orddridlist>
  66. </orddrid>
  67. <P0464list>
  68. <P0464>
  69. <cdid/>
  70. <cdnm/>
  71. </P0464>
  72. </P0464list>
  73. </init>
  74. <hidden>
  75. <flag>
  76. <orddeptcd/>
  77. <orddrid/>
  78. </flag>
  79. </hidden>
  80. <temp>
  81. <ordlist/>
  82. </temp>
  83. </root>
  84. </instance>
  85. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  86. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. zbcfGetCodeList(new Array("P0037","P0406", "P0464"), new Array("/root/init/P0037list","/root/init/P0406list", "/root/init/P0464list"));
  90. pamGetDeptCDDrIDList();
  91. addComboItem("cmb_orddeptcd","전체","","above");
  92. addComboItem("cmb_orddrid","전체","","above");
  93. model.refresh();
  94. fInitialize();
  95. //model.setValue("/root/main/histstatcd","YC");.....
  96. //grd_orddr.nodeset = "/root/init/orddrid/orddridlist[dp = " + cmb_orddeptcd.value + "]";
  97. //grd_orddr.rebuild();
  98. //팝업화면으로 사용될 때
  99. if (checkOpener()){
  100. var orddeptcd = opener.javascript.getParameter("SMPMB02800_orddeptcd");
  101. var orddrid = opener.javascript.getParameter("SMPMB02800_orddrid");
  102. if( orddeptcd != '' && orddrid != '' ){
  103. //진료과 세팅
  104. model.setValue("/root/main/orddeptcd", orddeptcd);
  105. // cmb_orddeptcd.refresh();
  106. // cmb_orddeptcd.dispatch("xforms-value-changed");
  107. //진료의 세팅
  108. model.setValue("/root/main/orddrid", orddrid);
  109. // cmb_orddrid.refresh();
  110. // cmb_orddrid.dispatch("xforms-value-changed");
  111. btn_search.dispatch("DOMActivate");
  112. }
  113. }
  114. ]]>
  115. </script>
  116. <submission id="TRPMB00905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drholiordsche"/>
  117. </model>
  118. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  119. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  120. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  121. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  123. <script type="javascript">
  124. <![CDATA[
  125. function fInitialize(){
  126. model.resetInstanceNode("/root/send");
  127. model.resetInstanceNode("/root/main");
  128. // model.removenode("/root/main/drholiordsche/drholiordschelist");
  129. model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
  130. //날자 입력 항목에 오늘 날자 세팅
  131. var curDate = getCurrentDate();
  132. model.setValue("/root/main/fromdd", curDate);
  133. model.setValue("/root/main/todd", curDate);
  134. /*
  135. //현재일자 + 1달
  136. curDate = curDate.toDate().getAddDate(1,"M");
  137. var nextDate = curDate.getFullYear();
  138. nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
  139. nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
  140. model.setValue("/root/main/todd", nextDate);
  141. */
  142. model.refresh();
  143. }
  144. //의사휴진일정 조회
  145. function fSearchDrHoliSche(){
  146. // model.resetInstanceNode("/root/send");
  147. var checkflag = model.getValue("/root/main/srchflag");
  148. model.setValue("/root/send/holiflag", model.getValue("/root/main/srchflag"));
  149. model.setValue("/root/send/prcsstat", model.getValue("/root/main/prcsstat"));
  150. model.setValue("/root/send/orddrid", model.getValue("/root/main/orddrid"));
  151. model.setValue("/root/send/orddeptcd", model.getValue("/root/main/orddeptcd"));
  152. model.setValue("/root/send/srchcond", model.getValue("/root/main/srchcond"));
  153. model.setValue("/root/send/fromdd", model.getValue("/root/main/fromdd"));
  154. model.setValue("/root/send/todd", model.getValue("/root/main/todd"));
  155. if(model.getValue("/root/send/fromdd") != "" && model.getValue("/root/send/todd") != "" ){
  156. submit("TRPMB00905");
  157. }else{
  158. messageBox("조회기간 정보를 입려하지", "E007");
  159. return;
  160. }
  161. model.refresh();
  162. }
  163. //출력물
  164. function fHolilistPrint(){
  165. var fromdd = model.getValue("/root/main/fromdd");
  166. var todd = model.getValue("/root/main/todd");
  167. model.makeNode("/root/temp/ordlist/orddeptnm");
  168. model.makeNode("/root/temp/ordlist/orddrnm");
  169. model.makeNode("/root/temp/ordlist/sp");
  170. model.makeNode("/root/temp/ordlist/jobposcd");
  171. model.makeNode("/root/temp/ordlist/unitcnt");
  172. model.makeNode("/root/temp/ordlist/tempcnt");
  173. model.makeNode("/root/temp/ordlist/changcnt");
  174. model.makeNode("/root/temp/ordlist/layoffday");
  175. model.makeNode("/root/temp/ordlist/layoffunitcnt");
  176. model.makeNode("/root/temp/ordlist/realunitcnt");
  177. model.makeNode("/root/temp/ordlist/fromdd");
  178. model.makeNode("/root/temp/ordlist/todd");
  179. //상단에 진료과 진료의 세팅
  180. model.makeNode("/root/temp/ordlist/orddeptcd");
  181. model.makeNode("/root/temp/ordlist/orddrid");
  182. //var orddd = model.getValue("");
  183. model.makeValue("/root/temp/ordlist/orddeptcd", cmb_orddeptcd.label);
  184. model.makeValue("/root/temp/ordlist/orddrid", cmb_orddrid.label);
  185. //일자
  186. model.setValue("/root/temp/ordlist/fromdd", fromdd);
  187. model.setValue("/root/temp/ordlist/todd", todd);
  188. for (i = 1; i <= getNodesetCount("/root/main/drholiordsche/drholiordschelist"); i++) {
  189. model.makeValue("/root/temp/ordlist[" + i + "]/orddeptnm",grd_holische.labelmatrix(i, 1));
  190. model.makeValue("/root/temp/ordlist[" + i + "]/orddrnm",grd_holische.labelmatrix(i, 2));
  191. model.makeValue("/root/temp/ordlist[" + i + "]/sp",grd_holische.labelmatrix(i, 3));
  192. model.makeValue("/root/temp/ordlist[" + i + "]/jobposcd",grd_holische.labelmatrix(i, 4));
  193. model.makeValue("/root/temp/ordlist[" + i + "]/unitcnt",grd_holische.labelmatrix(i, 5));
  194. model.makeValue("/root/temp/ordlist[" + i + "]/tempcnt",grd_holische.labelmatrix(i, 6));
  195. model.makeValue("/root/temp/ordlist[" + i + "]/changcnt",grd_holische.labelmatrix(i, 7));
  196. model.makeValue("/root/temp/ordlist[" + i + "]/layoffday",grd_holische.labelmatrix(i, 8));
  197. model.makeValue("/root/temp/ordlist[" + i + "]/layoffunitcnt",grd_holische.labelmatrix(i, 9));
  198. model.makeValue("/root/temp/ordlist[" + i + "]/realunitcnt",grd_holische.labelmatrix(i, 10));
  199. }
  200. exeReportPreview("RPPMB02800_기간별진료현황", "XMLSTR", "","", "false","","","","","false");
  201. }
  202. ]]>
  203. </script>
  204. </xhtml:head>
  205. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  206. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  207. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">기간별 진료현황 조회</caption>
  208. </group>
  209. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  210. <group id="group4" style="left:0px; top:14px; width:1194px; height:35px; vertical-align:top; ">
  211. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  212. <button id="btn_search" class="btn1_letter2" style="left:1134px; top:7px; width:56px; height:22px; ">
  213. <caption>조회</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. model.removenode("/root/main/drholiordsche/drholiordschelist");
  217. model.resetInstanceNode("/root/main/drholiordsche/drholiordschelist");
  218. fSearchDrHoliSche();
  219. /*
  220. //전체건수조회
  221. var cnt = getNodesetCount("/root/main/drholiordsche/drholiordschelist");
  222. model.setValue("/root/temp/gridcnt", cnt);
  223. var sum_unitcnt = 0;
  224. for(var i = 1; i <= cnt; i++) {
  225. sum_unitcnt = parseInt(model.getvalue("/root/main/drholiordsche/drholiordschelist[" + i + "]/layoffunitcnt")) + sum_unitcnt;
  226. }
  227. model.setValue("/root/temp/sum_unitcnt", sum_unitcnt);
  228. grd_holische.subtotalposition= "below";
  229. for(var i=2 ; i<22 ; i++){
  230. if (i ==10 || i==11 || i==12 || i==13) {
  231. grd_holische.subtotal("sum",22, i, "#,###", "background-color:#99ff99", 1, "합계");
  232. }
  233. }
  234. */
  235. model.refresh();
  236. ]]>
  237. </script>
  238. </button>
  239. <caption id="caption10" style="left:595px; top:9px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
  240. <select1 id="cmb_orddrid" ref="/root/main/orddrid" class="combo_s_essential" appearance="minimal" style="left:304px; top:9px; width:76px; height:19px; ">
  241. <choices>
  242. <itemset nodeset="/root/init/orddrid/orddridlist">
  243. <label ref="nm"/>
  244. <value ref="cd"/>
  245. </itemset>
  246. </choices>
  247. </select1>
  248. <caption id="caption5" class="search_name" style="left:0px; top:9px; width:73px; height:17px; ">진료과 :</caption>
  249. <caption id="caption7" class="search_name" style="left:211px; top:9px; width:86px; height:17px; ">진료의사 :</caption>
  250. <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_s_essential" appearance="minimal" style="left:80px; top:9px; width:100px; height:19px; ">
  251. <choices>
  252. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  253. <label ref="nm"/>
  254. <value ref="cd"/>
  255. </itemset>
  256. </choices>
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
  260. model.setValue("/root/main/orddrid", "");
  261. cmb_orddrid.refresh();
  262. ]]>
  263. </script>
  264. </select1>
  265. <caption id="caption2" class="search_name" style="left:413px; top:9px; width:86px; height:17px; ">조회기간 :</caption>
  266. <input id="ipt_fromdd" ref="/root/main/fromdd" class="input_search" inputtype="date" style="left:508px; top:9px; width:85px; height:19px; "/>
  267. <input id="ipt_todd" ref="/root/main/todd" class="input_search" inputtype="date" style="left:610px; top:9px; width:85px; height:19px; "/>
  268. <line id="line13" class="line_4" style="x1:1128px; y1:7px; x2:1128px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  269. </group>
  270. <col type="checkbox"/>
  271. <caption id="caption4" class="tit_2" style="left:6px; top:59px; width:157px; height:14px; ">기간별 진료현황 리스트</caption>
  272. <line id="line3" class="line_1" style="x1:0px; y1:74px; x2:1194px; y2:74px; "/>
  273. <datagrid id="grd_holische" nodeset="/root/main/drholiordsche/drholiordschelist" class="datagrid2" caption="진료과^진료의사^선택&#xA;진료^직위^예정&#xA;UNIT수^임시&#xA;UNIT수^대진&#xA;UNIT수^휴진&#xA;일수^휴진&#xA;UNIT수^실진료&#xA;UNIT수" colsep="^" colwidth="142, 150, 80, 160, 102, 102, 102, 102, 102, 102" dataheight="25" defaultrows="2" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:80px; width:1194px; height:661px; font-weight:bolder; ">
  274. <col ref="orddeptnm"/>
  275. <col ref="orddrnm"/>
  276. <col ref="sp"/>
  277. <col ref="jobposcd"/>
  278. <col ref="unitcnt" style="text-align:center; "/>
  279. <col ref="tempunit" style="text-align:center; "/>
  280. <col ref="changunit" style="text-align:center; "/>
  281. <col ref="layoffday" style="text-align:center; "/>
  282. <col ref="layoffunitcnt" style="text-align:center; "/>
  283. <col ref="realunitcnt" style="text-align:center; "/>
  284. </datagrid>
  285. <button id="btn_print" class="btn6_letter2" style="left:1134px; top:51px; width:56px; height:22px; ">
  286. <caption>출력</caption>
  287. <script type="javascript" ev:event="DOMActivate">
  288. <![CDATA[
  289. fHolilistPrint();
  290. ]]>
  291. </script>
  292. </button>
  293. </group>
  294. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  295. <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  296. <caption>초기화</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. fInitialize();
  300. ]]>
  301. </script>
  302. </button>
  303. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  304. </group>
  305. </xhtml:body>
  306. </xhtml:html>