SMMNE05900_기간별응급당직전문의조회.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. <workerinfo>
  11. <workerinfolist/>
  12. </workerinfo>
  13. </main>
  14. <cond>
  15. <sdate/>
  16. <edate/>
  17. <gbn>E</gbn>
  18. <drid/>
  19. <srchym/>
  20. </cond>
  21. <init/>
  22. <send/>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. fInit();
  28. ]]>
  29. </script>
  30. <submission id="TRMNE05901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
  31. </model>
  32. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  36. <script type="javascript">
  37. <![CDATA[
  38. function fInit() {
  39. var curym = getCurrentDate().substring(0, 6);
  40. model.makeValue("/root/cond/srchym", curym);
  41. model.refresh();
  42. }
  43. function fGetDrList() {
  44. var srchym = model.getValue("/root/cond/srchym");
  45. var sSdate = srchym + "01";
  46. var sEdate = srchym + getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6));
  47. model.setValue("/root/cond/sdate", sSdate);
  48. model.setValue("/root/cond/edate", sEdate);
  49. var sGbn = model.getValue("/root/cond/gbn");
  50. model.removeNodeset("/root/send/info");
  51. model.makeValue("/root/send/info/sdate", sSdate);
  52. model.makeValue("/root/send/info/edate", sEdate);
  53. model.makeValue("/root/send/info/gbn", sGbn);
  54. submit("TRMNE05901");
  55. var j = 1;
  56. for (var i = 1; i <= 23; i++) {
  57. grd_workerlist.ValueMatrix(0, j) = model.getValue("/root/main/workerinfo/workerinfolist[1]/dept" + i);
  58. j = j + 2;
  59. }
  60. }
  61. /**
  62. * @desc : 이전 년버튼 클릭시 - 전년도+월로 세팅
  63. * @
  64. * @param :
  65. * @return :
  66. * @author : dhkim 20090610
  67. * @---------------------------------------------------
  68. */
  69. function fClkBfYear(srchym){
  70. var yyear = srchym.substring(0, 4);
  71. var mmont = srchym.substring(4, 6);
  72. yyear--;
  73. srchym = yyear + mmont;
  74. model.setValue('/root/cond/srchym', srchym);
  75. model.refresh();
  76. }
  77. /**
  78. * @desc : 다음 년버튼 클릭시 - 다음년도+월로 세팅
  79. * @
  80. * @param :
  81. * @return :
  82. * @author : dhkim 20090610
  83. * @---------------------------------------------------
  84. */
  85. function fClkAfYear(srchym){
  86. var yyear = srchym.substring(0, 4);
  87. var mmont = srchym.substring(4, 6);
  88. yyear++;
  89. srchym = yyear + mmont;
  90. model.setValue('/root/cond/srchym', srchym);
  91. model.refresh();
  92. }
  93. /**
  94. * @desc : 이전 달버튼 클릭시 - 년도+전월 세팅
  95. * @
  96. * @param :
  97. * @return :
  98. * @author : dhkim 20090610
  99. * @---------------------------------------------------
  100. */
  101. function fClkBfMonth(srchym){
  102. var yyear = srchym.substring(0, 4);
  103. var mmont = srchym.substring(4, 6);
  104. mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
  105. if(mmont == '12'){
  106. yyear--;
  107. }
  108. srchym = yyear + mmont;
  109. model.setValue('/root/cond/srchym', srchym);
  110. model.refresh();
  111. }
  112. /**
  113. * @desc : 다음 달버튼 클릭시 - 년도+다음월 세팅
  114. * @
  115. * @param :
  116. * @return :
  117. * @author : dhkim 20090610
  118. * @---------------------------------------------------
  119. */
  120. function fClkAfMonth(srchym){
  121. var yyear = srchym.substring(0, 4);
  122. var mmont = srchym.substring(4, 6);
  123. mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
  124. if(mmont == '01'){
  125. yyear++;
  126. }
  127. srchym = yyear + mmont;
  128. model.setValue('/root/cond/srchym', srchym);
  129. model.refresh();
  130. }
  131. ]]>
  132. </script>
  133. </xhtml:head>
  134. <xhtml:body pagewidth="1100" pageheight="890" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  135. <group id="group3" scroll="auto" style="left:0px; top:72px; width:1080px; height:790px; text-align:center; ">
  136. <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:1080px; y2:0px; "/>
  137. <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="일자^진료과1^진료과1^진료과2^진료과2^진료과3^진료과3^진료과4^진료과4^진료과5^진료과5^진료과6^진료과6^진료과7^진료과7^진료과8^진료과8^진료과9^진료과9^진료과10^진료과10^진료과11^진료과11^진료과12^진료과12^진료과13^진료과13^진료과14^진료과14^진료과15^진료과15^진료과16^진료과16^진료과17^진료과17^진료과18^진료과18^진료과19^진료과19^진료과20^진료과20^진료과21^진료과21^진료과22^진료과22^진료과23^진료과23|일자^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처^의사^연락처" colsep="^" colwidth="90, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100, 70, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:1080px; height:785px; ">
  138. <col ref="workdd" format="yyyy-mm-dd"/>
  139. <col ref="dr1"/>
  140. <col ref="no1"/>
  141. <col ref="dr2"/>
  142. <col ref="no2"/>
  143. <col ref="dr3"/>
  144. <col ref="no3"/>
  145. <col ref="dr4"/>
  146. <col ref="no4"/>
  147. <col ref="dr5"/>
  148. <col ref="no5"/>
  149. <col ref="dr6"/>
  150. <col ref="no6"/>
  151. <col ref="dr7"/>
  152. <col ref="no7"/>
  153. <col ref="dr8"/>
  154. <col ref="no8"/>
  155. <col ref="dr9"/>
  156. <col ref="no9"/>
  157. <col ref="dr10"/>
  158. <col ref="no10"/>
  159. <col ref="dr11"/>
  160. <col ref="no11"/>
  161. <col ref="dr12"/>
  162. <col ref="no12"/>
  163. <col ref="dr13"/>
  164. <col ref="no13"/>
  165. <col ref="dr14"/>
  166. <col ref="no14"/>
  167. <col ref="dr15"/>
  168. <col ref="no15"/>
  169. <col ref="dr16"/>
  170. <col ref="no16"/>
  171. <col ref="dr17"/>
  172. <col ref="no17"/>
  173. <col ref="dr18"/>
  174. <col ref="no18"/>
  175. <col ref="dr19"/>
  176. <col ref="no19"/>
  177. <col ref="dr20"/>
  178. <col ref="no20"/>
  179. <col ref="dr21"/>
  180. <col ref="no21"/>
  181. <col ref="dr22"/>
  182. <col ref="no22"/>
  183. <col ref="dr23"/>
  184. <col ref="no23"/>
  185. </datagrid>
  186. </group>
  187. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:720px; height:13px; ">기간별 응급실 당직 전문의 조회</caption>
  188. <group id="group4" style="left:1px; top:20px; width:1080px; height:50px; vertical-align:top; ">
  189. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1080px; height:50px; "/>
  190. <button id="btn_search" class="btn1_letter2" navindex="3" style="left:935px; top:15px; width:56px; height:22px; ">
  191. <caption>조회</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. fGetDrList();
  195. ]]>
  196. </script>
  197. </button>
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. fInit();
  201. ]]>
  202. </script>
  203. <line id="line1" style="x1:923px; y1:9px; x2:923px; y2:38px; border-color:#ffe4bb; border-left-style:solid; "/>
  204. <button id="button3" class="btn1_letter3" navindex="3" style="left:995px; top:15px; width:68px; height:22px; ">
  205. <caption>EXCEL</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. var fileName = window.fileDialog("save", ",", false, "기간별응급당직전문의", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  209. if(fileName != ""){
  210. grd_workerlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  211. }
  212. ]]>
  213. </script>
  214. </button>
  215. <button id="btn_bfyear" class="icon_pre_year" style="left:90px; top:17px; width:16px; height:16px; ">
  216. <caption/>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. fClkBfYear(model.getValue('/root/cond/srchym'));
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_bfmonth" class="icon_pre_month" style="left:108px; top:17px; width:16px; height:16px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fClkBfMonth(model.getValue('/root/cond/srchym'));
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="btn_afmonth" class="icon_next_month" style="left:217px; top:17px; width:16px; height:16px; ">
  232. <caption/>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fClkAfMonth(model.getValue('/root/cond/srchym'));
  236. ]]>
  237. </script>
  238. </button>
  239. <button id="btn_afyear" class="icon_next_year" style="left:235px; top:17px; width:16px; height:16px; ">
  240. <caption/>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. fClkAfYear(model.getValue('/root/cond/srchym'));
  244. ]]>
  245. </script>
  246. </button>
  247. <caption id="caption4" class="search_name" style="left:5px; top:14px; width:91px; height:17px; ">당직년월 :</caption>
  248. <input id="ipt_srchym" ref="/root/cond/srchym" class="input_search" navindex="1" format="yyyy-mm" style="left:126px; top:15px; width:88px; height:19px; text-align:center; "/>
  249. </group>
  250. </xhtml:body>
  251. </xhtml:html>