SMRTS03800_당직일자등록.xrw 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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>SMRTS03800_당직일자등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dutdate>
  11. <dutdatelist/>
  12. </dutdate>
  13. </main>
  14. <send>
  15. <dutdate>
  16. <instcd/>
  17. <baseym/>
  18. </dutdate>
  19. <save>
  20. <dutdatelist/>
  21. </save>
  22. </send>
  23. <init/>
  24. <hidden>
  25. <temp/>
  26. </hidden>
  27. </root>
  28. </instance>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. misfGridInit(grd_dutdatelist);
  32. misfMsterDetailSet(grd_dutdatelist, null, "TRRTS03801" ,"Y");
  33. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  34. misfComboComCdListMulti("P0033","grd_dutdatelist.dayflag");
  35. misfGetAndSetUserInfo();
  36. model.setValue("/root/send/dutdate/instcd", getUserInfo("dutplceinstcd"));
  37. model.setValue("/root/send/dutdate/baseym", getCurrentDate().substr(0, 6));
  38. if (getUserInfo("dutplceinstcd") == "001" && getUserInfo("dutplcecd") == "4110100000") {
  39. cmb_instcd.disabled = false;
  40. }else{
  41. cmb_instcd.disabled = true;
  42. }
  43. btn_search.dispatch("DOMActivate");
  44. ]]>
  45. </script>
  46. <script type="javascript">
  47. <![CDATA[
  48. // function fInit()
  49. // {
  50. // misfGridInit(grd_dutdatelist);
  51. // misfMsterDetailSet(grd_dutdatelist, null, "TRRTS03801" ,"Y");
  52. //
  53. // misfComboComCdListMulti("Z0007,P0033","cmb_instcd,grd_dutdatelist.dayflag");
  54. // misfGetAndSetUserInfo();
  55. //
  56. // model.setValue("/root/send/dutdate/instcd", getUserInfo("dutplceinstcd"));
  57. // model.setValue("/root/send/dutdate/baseym", getCurrentDate().substr(0, 6));
  58. //
  59. // if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
  60. // {
  61. // cmb_instcd.disabled = false;
  62. // }
  63. // else
  64. // {
  65. // cmb_instcd.disabled = true;
  66. // }
  67. // btn_search.dispatch("DOMActivate");
  68. // }
  69. ]]>
  70. </script>
  71. <submission id="TRRTS03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutdate" resultref="/root/main/dutdate"/>
  72. <submission id="TXRTS03801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  73. </model>
  74. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  75. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  76. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  77. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  78. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  79. </xhtml:head>
  80. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  81. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  82. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">당직일자관리</caption>
  83. </group>
  84. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  85. <group id="group2" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  86. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
  87. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  88. <caption>조회</caption>
  89. <script type="javascript" ev:event="DOMActivate">
  90. <![CDATA[
  91. misfMsterDetailRetrieve();
  92. for(var i=1; i<grd_dutdatelist.rows; i++)
  93. {
  94. if(grd_dutdatelist.valueMatrix(i, grd_dutdatelist.colRef("holiflag")) == "0")
  95. {
  96. grd_dutdatelist.rowStyle(i, "data", "color") = "#FF0000";
  97. }
  98. else if(grd_dutdatelist.valueMatrix(i, grd_dutdatelist.colRef("holiflag")) == "4")
  99. {
  100. grd_dutdatelist.rowStyle(i, "data", "color") = "#0000FF";
  101. }
  102. else
  103. {
  104. grd_dutdatelist.rowStyle(i, "data", "color") = "#000000";
  105. }
  106. }
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line13" class="line_4" style="top:7; x1:1110px; y1:8px; x2:1110px; y2:30px; border-left-style:solid; "/>
  111. <caption id="caption1" class="search_name" style="left:308px; top:9px; width:73px; height:17px; ">기준월 :</caption>
  112. <input id="ipt_baseym" ref="/root/send/dutdate/baseym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:385px; top:8px; width:130px; height:19px; text-align:center; ">
  113. <script type="javascript" ev:event="xforms-value-changed">
  114. <![CDATA[
  115. btn_search.dispatch("DOMActivate");
  116. ]]>
  117. </script>
  118. </input>
  119. <select1 id="cmb_instcd" ref="/root/send/dutdate/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:99px; top:8px; width:155px; height:19px; ">
  120. <choices>
  121. <itemset>
  122. <label/>
  123. <value/>
  124. </itemset>
  125. </choices>
  126. <script type="javascript" ev:event="xforms-value-changed">
  127. <![CDATA[
  128. btn_search.dispatch("DOMActivate");
  129. ]]>
  130. </script>
  131. </select1>
  132. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">근무병원:</caption>
  133. </group>
  134. <datagrid id="grd_dutdatelist" nodeset="/root/main/dutdate/dutdatelist" caption="기관코드^기준일자^휴일구분^휴일명^요일구분^비고^명절여부^반휴여부^기관코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시|기관코드^기준일자^휴일구분^휴일명^요일구분^비고^명절여부^반휴여부^기관코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="0, 120, 130, 150, 120, 629, 33, 33, 73, 80, 154, 88" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:665px; ">
  135. <col ref="instcd" visibility="hidden"/>
  136. <col ref="basedd" type="inputdate" style="text-align:center; "/>
  137. <col ref="holiflag" type="combo" style="text-align:center; ">
  138. <choices>
  139. <item>
  140. <label>평일</label>
  141. <value>8</value>
  142. </item>
  143. <item>
  144. <label>토요일</label>
  145. <value>4</value>
  146. </item>
  147. <item>
  148. <label>공휴일</label>
  149. <value>0</value>
  150. </item>
  151. </choices>
  152. </col>
  153. <col ref="holinm" type="input"/>
  154. <col ref="dayflag" type="combo" style="text-align:center; ">
  155. <choices>
  156. <itemset>
  157. <label/>
  158. <value/>
  159. </itemset>
  160. </choices>
  161. </col>
  162. <col ref="cmt" type="input"/>
  163. <col checkvalue="Y,N" ref="natiholiyn" type="checkbox" visibility="hidden"/>
  164. <col checkvalue="Y,N" ref="halfholiyn" type="checkbox" visibility="hidden"/>
  165. <col ref="fstrgstrid" visibility="hidden"/>
  166. <col ref="fstrgstdt" visibility="hidden"/>
  167. <col ref="lastupdtrid" visibility="hidden"/>
  168. <col ref="lastupdtdt" visibility="hidden"/>
  169. <script type="javascript" ev:event="xforms-value-changed">
  170. <![CDATA[
  171. if(grd_dutdatelist.col == grd_dutdatelist.colRef("holiflag"))
  172. {
  173. if(grd_dutdatelist.valueMatrix(grd_dutdatelist.row, grd_dutdatelist.colRef("holiflag")) == "0")
  174. {
  175. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#FF0000";
  176. }
  177. else if(grd_dutdatelist.valueMatrix(grd_dutdatelist.row, grd_dutdatelist.colRef("holiflag")) == "4")
  178. {
  179. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#0000FF";
  180. }
  181. else
  182. {
  183. grd_dutdatelist.rowStyle(grd_dutdatelist.row, "data", "color") = "#000000";
  184. }
  185. }
  186. ]]>
  187. </script>
  188. </datagrid>
  189. <line id="line7" class="line_1" style="left:0; x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  190. <caption id="caption25" class="tit_2" style="left:5px; top:55px; width:151px; height:14px; ">당직일자 List</caption>
  191. <button id="btn_grdadddutdatelist" class="btn2_letter3" style="left:1020px; top:49px; width:53px; height:19px; ">
  192. <caption>행추가</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. misfGridIUD(grd_dutdatelist, "A");
  196. ]]>
  197. </script>
  198. </button>
  199. <button id="btn_savedutdatelistexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  200. <caption>엑셀저장</caption>
  201. <script type="javascript" ev:event="DOMActivate">
  202. <![CDATA[
  203. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  204. if (fileName != "") {
  205. grd_dutdatelist.saveExcel(fileName);
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_grddeldutdatelist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
  211. <caption>행삭제</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. misfGridIUD(grd_dutdatelist, "D");
  215. ]]>
  216. </script>
  217. </button>
  218. <caption id="caption2" style="left:132px; top:48px; width:858px; height:20px; font-weight:bold; color:#ff0000; ">※ 해당병원의 개원기념일, 선거일, 명절은 반드시 휴일 구분을 변경하여 주시기 바랍니다.</caption>
  219. </group>
  220. <group id="group4" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  221. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  222. <caption>저장</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. misfSave("TXRTS03801");
  226. ]]>
  227. </script>
  228. </button>
  229. <line id="line75" class="line_6" style="x1:0px; y1:24px; x2:1195px; y2:24px; "/>
  230. </group>
  231. </xhtml:body>
  232. </xhtml:html>