SMRTS00600_근무보고서현황.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <?xml version="1.0" encoding="EUC-KR"?>
  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. <dutrept/>
  11. <reptinfo/>
  12. <savelist/>
  13. </main>
  14. <hidden>
  15. <menu>
  16. <item>
  17. <name>근무보고 삭제</name>
  18. <func>fDelete</func>
  19. </item>
  20. </menu>
  21. </hidden>
  22. <temp>
  23. <title>
  24. <instnm/>
  25. <deptnm/>
  26. </title>
  27. </temp>
  28. <init/>
  29. <send>
  30. <req>
  31. <yy/>
  32. <trngflag/>
  33. <anual>1</anual>
  34. <instcd/>
  35. <orddeptcd/>
  36. </req>
  37. <del>
  38. <yy/>
  39. <frommm/>
  40. <emplno/>
  41. </del>
  42. <reqdept>
  43. <blankrowyn>Y</blankrowyn>
  44. </reqdept>
  45. </send>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fFormReady();
  51. ]]>
  52. </script>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 초기화
  56. function fDefaultDeptSetting(control)
  57. {
  58. var sPosdeptcd = getUserInfo("posdeptcd");
  59. var sDeptcd = control.value;
  60. // 주임교수이면서 핵의학과 교수일때
  61. if(sPosdeptcd == "2180000000" || sPosdeptcd == "2160000000")
  62. {
  63. if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
  64. {}
  65. else
  66. {
  67. messageBox(control.label+ "을 선택", "E001");
  68. control.value = sPosdeptcd;
  69. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  70. }
  71. }
  72. // 주임교수이면서 치과 교수일때
  73. else if(sPosdeptcd == "2240000000")
  74. {
  75. if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
  76. {}
  77. else
  78. {
  79. messageBox(control.label+ "을 선택", "E001");
  80. control.value = sPosdeptcd;
  81. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  82. }
  83. }
  84. else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  85. {
  86. if(sDeptcd != "2010000000")
  87. {
  88. messageBox(control.label+ "을 선택", "E001");
  89. sPosdeptcd = "2010000000";
  90. control.value = sPosdeptcd;
  91. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  92. }
  93. }
  94. else
  95. {
  96. if(checkAuth("P"))
  97. {}
  98. else
  99. {
  100. if(sPosdeptcd != sDeptcd)
  101. {
  102. messageBox(control.label+ "을 선택", "E001");
  103. control.value = sPosdeptcd;
  104. }
  105. }
  106. }
  107. model.refresh();
  108. }
  109. ]]>
  110. </script>
  111. <submission id="TRRTS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutreptstatlist"/>
  112. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
  113. <submission id="TXRTS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/del" resultref="/root/main/del"/>
  114. </model>
  115. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  117. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  118. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  119. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  120. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  121. </xhtml:head>
  122. <xhtml:body>
  123. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  124. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무보고서 현황</caption>
  125. </group>
  126. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:764px; ">
  127. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  128. <select1 id="cmb_orddeptcd" ref="/root/send/req/orddeptcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:737px; top:14px; width:100px; height:19px; ">
  129. <choices>
  130. <itemset nodeset="/root/main/tisorddeptcdlist">
  131. <label ref="deptnm"/>
  132. <value ref="deptcd"/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. fDefaultDeptSetting(cmb_orddeptcd);
  138. ]]>
  139. </script>
  140. </select1>
  141. <caption id="caption117" class="search_name" style="left:665px; top:15px; width:75px; height:17px; ">임상과 :</caption>
  142. <caption id="cap_trngflag" class="search_name" style="left:160px; top:15px; width:110px; height:17px; ">전공의구분 :</caption>
  143. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; "/>
  144. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  145. <select1 id="cmb_trngflag" ref="/root/send/req/trngflag" class="combo_s_essential" appearance="minimal" style="left:258px; top:14px; width:90px; height:19px; ">
  146. <choices>
  147. <itemset>
  148. <label/>
  149. <value/>
  150. </itemset>
  151. </choices>
  152. <script type="javascript" ev:event="xforms-select">
  153. <![CDATA[
  154. if (model.getValue("/root/send/req/trngflag") == "I")
  155. {
  156. cmb_anual.disabled = true;
  157. model.setValue("/root/send/req/anual", "");
  158. }
  159. else if (model.getValue("/root/send/req/trngflag") == "R")
  160. {
  161. cmb_anual.disabled = false;
  162. }
  163. ]]>
  164. </script>
  165. </select1>
  166. <caption id="caption1" class="search_name" style="left:360px; top:15px; width:70px; height:17px; ">년차 :</caption>
  167. <caption id="caption2" class="search_name" style="left:490px; top:15px; width:75px; height:17px; ">병원 :</caption>
  168. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:549px; top:14px; width:100px; height:19px; ">
  169. <choices>
  170. <itemset>
  171. <label/>
  172. <value/>
  173. </itemset>
  174. </choices>
  175. </select1>
  176. <select1 id="cmb_anual" ref="/root/send/req/anual" class="combo_s_essential" disabled="true" appearance="minimal" style="left:419px; top:14px; width:51px; height:19px; ">
  177. <choices>
  178. <item>
  179. <label>1</label>
  180. <value>1</value>
  181. </item>
  182. <item>
  183. <label>2</label>
  184. <value>2</value>
  185. </item>
  186. <item>
  187. <label>3</label>
  188. <value>3</value>
  189. </item>
  190. <item>
  191. <label>4</label>
  192. <value>4</value>
  193. </item>
  194. </choices>
  195. </select1>
  196. <datagrid id="grd_dutreptstatlist" nodeset="/root/main/dutreptstatlist" caption="년도^상하반기^사원번호^성명^03월^04월^05월^06월^07월^08월^09월^10월^11월^12월^01월^02월" colsep="^" colwidth="0, 30, 60, 70, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, 82" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="100" rowsep="|" selectionmode="byrow" style="left:0px; top:64px; width:1193px; height:699px; ">
  197. <col ref="yy"/>
  198. <col ref="supinfqurtyyflag"/>
  199. <col ref="emplno"/>
  200. <col ref="name"/>
  201. <col ref="mm03" style="word-wrap:none; "/>
  202. <col ref="mm04" style="word-wrap:none; "/>
  203. <col ref="mm05" style="word-wrap:none; "/>
  204. <col ref="mm06" style="word-wrap:none; "/>
  205. <col ref="mm07" style="word-wrap:none; "/>
  206. <col ref="mm08" style="word-wrap:none; "/>
  207. <col ref="mm09" style="word-wrap:none; "/>
  208. <col ref="mm10" style="word-wrap:none; "/>
  209. <col ref="mm11" style="word-wrap:none; "/>
  210. <col ref="mm12" style="word-wrap:none; "/>
  211. <col ref="mm01" style="word-wrap:none; "/>
  212. <col ref="mm02" style="word-wrap:none; "/>
  213. <script type="javascript" ev:event="onmousedown">
  214. <![CDATA[
  215. if(event.button == 3)
  216. {
  217. fShowCnxtMenu();
  218. }
  219. ]]>
  220. </script>
  221. <script type="javascript" ev:event="onaftersort">
  222. <![CDATA[
  223. grd_dutreptstatlist.gridToInstance();
  224. ]]>
  225. </script>
  226. </datagrid>
  227. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  228. <caption>조회</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. fRefDutReptStatList();
  232. ]]>
  233. </script>
  234. </button>
  235. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  236. <button id="btn_excel" class="btn2_letter4" style="left:1125px; top:43px; width:64px; height:19px; vertical-align:middle; ">
  237. <caption>엑셀저장</caption>
  238. <script type="javascript" ev:event="DOMActivate">
  239. <![CDATA[
  240. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  241. if (fileName != "") {;
  242. grd_dutreptstatlist.saveExcel(fileName, "", false, true);
  243. }
  244. ]]>
  245. </script>
  246. </button>
  247. </group>
  248. </xhtml:body>
  249. </xhtml:html>