SMRTS02700_근무기준정보관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. <dutbaseinfo>
  11. <dutbaseinfolist>
  12. <flag/>
  13. <dutym/>
  14. <instcd/>
  15. <orddeptcd/>
  16. <orddeptnm/>
  17. <partcd/>
  18. <rowcnt/>
  19. </dutbaseinfolist>
  20. </dutbaseinfo>
  21. </main>
  22. <send>
  23. <req>
  24. <dutym/>
  25. <instcd/>
  26. <orddeptcd/>
  27. </req>
  28. <dutbaseinfolist/>
  29. </send>
  30. <init>
  31. <deptcond>
  32. <deptcond/>
  33. </deptcond>
  34. <orddeptinfo>
  35. <orddeptinfo>
  36. <orddeptcd/>
  37. <orddeptnm/>
  38. </orddeptinfo>
  39. </orddeptinfo>
  40. </init>
  41. <hidden>
  42. <deptcond/>
  43. </hidden>
  44. <temp>
  45. <selvalulistflag/>
  46. <valueitemflagcdlist/>
  47. <outpsn/>
  48. <popupgbn/>
  49. <outpnotice/>
  50. </temp>
  51. </root>
  52. </instance>
  53. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
  54. <submission id="TRRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutvaluepsn"/>
  55. <submission id="TXRTC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutvaluepsn"/>
  56. <submission id="TXRTC00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req"/>
  57. <submission id="TRRTS02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/init/orddeptcd"/>
  58. <submission id="TRRTS02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutbaseinfo"/>
  59. <submission id="TRRTS02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dutbaseinfo"/>
  60. <submission id="TXRTS02701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  61. <submission id="TXRTS02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/temp"/>
  62. </model>
  63. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. model.setValue("/root/send/req/dutym", getCurrentDate());
  73. model.setValue("/root/send/req/instcd", getUserInfo("dutplceinstcd"));
  74. rszfGetLabelControlComboList("R0314", "cmb_instcd", "detldesc");
  75. model.removeNodeset("/root/init/orddeptinfo/orddeptinfo");
  76. submit("TRRTS02701");
  77. rszGridAddComboItem( "cmb_orddeptcd", "전체", "", "above" );
  78. model.refresh();
  79. btn_search.dispatch("DOMActivate");
  80. ]]>
  81. </script>
  82. <script type="javascript">
  83. <![CDATA[
  84. function fCheckAuth() {
  85. btn_search.disabled = !checkAuth("R") ;
  86. btn_save.disabled = !checkAuth("X") ;
  87. btn_delrow.disabled = !checkAuth("X") ;
  88. btn_copy.disabled = !(checkAuth("X"));
  89. cmb_instcd.disabled = !(checkAuth("P"));
  90. }
  91. ]]>
  92. </script>
  93. </xhtml:head>
  94. <xhtml:body style="margin-left:8; margin-right:8; ">
  95. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  96. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무 기준 정보 관리</caption>
  97. </group>
  98. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  99. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  101. <caption>조회</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. model.removeNodeset("/root/main/dutbaseinfo/dutbaseinfolist");
  105. submit("TRRTS02702");
  106. model.refresh();
  107. ]]>
  108. </script>
  109. </button>
  110. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  111. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:91px; height:17px; ">근무 년월 :</caption>
  112. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  113. <caption id="caption2" class="tit_2" style="left:0px; top:54px; width:144px; height:14px; ">근무 기준 정보</caption>
  114. <button id="btn_copy" class="btn2_letter5" style="left:1105px; top:47px; width:75px; height:19px; ">
  115. <caption>전월 copy</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. messageBox("이전에 등록된 기준 정보가 있을 경우 전부 삭제 됩니다.", "I");
  119. if (messageBox("전월 근무 기준 정보를 " ,"Q002") != 6) return;
  120. var savedata = grd_dutbaseinfo.getUpdateData();
  121. model.setValue("/root/send/dutbaseinfolist", savedata);
  122. submit("TXRTS02702")
  123. model.refresh();
  124. btn_search.dispatch("DOMActivate");
  125. ]]>
  126. </script>
  127. </button>
  128. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:366px; top:18px; width:135px; height:19px; ">
  129. <choices>
  130. <itemset>
  131. <label/>
  132. <value/>
  133. </itemset>
  134. </choices>
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. model.removeNodeset("/root/init/orddeptinfo/orddeptinfo");
  138. submit("TRRTS02701");
  139. rszGridAddComboItem( "cmb_orddeptcd", "전체", "", "above" );
  140. model.refresh();
  141. ]]>
  142. </script>
  143. </select1>
  144. <caption id="cap_instcd" class="search_name" style="left:265px; top:19px; width:95px; height:17px; ">근무 기관 :</caption>
  145. <datagrid id="grd_dutbaseinfo" nodeset="/root/main/dutbaseinfo/dutbaseinfolist" visibility="visible" caption="근무 년월^기관명^임상코드^임상과^기존 분과코드^분과 코드^칸수^flag" colsep="^" colwidth="100, 206, 100, 207, 100, 149, 74, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:1190px; height:665px; ">
  146. <col ref="dutym" format="yyyy/mm" style="text-align:center; "/>
  147. <col disabled="true" ref="instcd" type="combo" style="text-align:left; ">
  148. <choices>
  149. <itemset nodeset="/root/init/lavelcombo/R03140/R03140">
  150. <label ref="detldesc"/>
  151. <value ref="cdid"/>
  152. </itemset>
  153. </choices>
  154. </col>
  155. <col ref="orddeptcd" visibility="hidden"/>
  156. <col ref="orddeptnm" style="text-align:left; "/>
  157. <col ref="oldpartcd" type="input" visibility="hidden" style="text-align:left; "/>
  158. <col ref="partcd" type="input" style="text-align:left; "/>
  159. <col ref="rowcnt" type="input" style="text-align:center; "/>
  160. <col ref="flag" visibility="hidden"/>
  161. </datagrid>
  162. <button id="btn_delrow" class="btn2_letter3" style="left:1045px; top:47px; width:53px; height:19px; ">
  163. <caption>행삭제</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var firstRow = grd_dutbaseinfo.selectedRow(0);
  167. var lastRow = grd_dutbaseinfo.selectedRow(grd_dutbaseinfo.selectedRows-1);
  168. for(var i=lastRow; i>=firstRow; i--){
  169. if (grd_dutbaseinfo.valueMatrix(grd_dutbaseinfo.row, grd_dutbaseinfo.colRef("flag"))=='X'){
  170. grd_dutbaseinfo.rowStatus(i) = 4;
  171. }else{
  172. grd_dutbaseinfo.deleteRow(i);
  173. }
  174. }
  175. ]]>
  176. </script>
  177. </button>
  178. <input id="dt_dutym" ref="/root/send/req/dutym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:115px; top:18px; width:125px; height:19px; "/>
  179. <select1 id="cmb_orddeptcd" ref="/root/send/req/orddeptcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:606px; top:18px; width:135px; height:19px; ">
  180. <choices>
  181. <itemset nodeset="/root/init/orddeptinfo/orddeptinfo">
  182. <label ref="orddeptnm"/>
  183. <value ref="orddeptcd"/>
  184. </itemset>
  185. </choices>
  186. </select1>
  187. <caption id="caption1" class="search_name" style="left:525px; top:19px; width:95px; height:17px; ">임상과 :</caption>
  188. <button id="button7" class="btn2_letter10" style="left:909px; top:47px; width:130px; height:19px; ">
  189. <caption>전공의 정보 가져오기</caption>
  190. <script type="javascript" ev:event="DOMActivate">
  191. <![CDATA[
  192. model.removeNodeset("/root/main/dutbaseinfo/dutbaseinfolist");
  193. submit("TRRTS02703");
  194. for(var i = grd_dutbaseinfo.fixedRows ; i < grd_dutbaseinfo.rows ; i++ ){
  195. grd_dutbaseinfo.rowStatus(i) = "1";
  196. }
  197. model.refresh();
  198. ]]>
  199. </script>
  200. </button>
  201. <button id="button1" class="btn2_letter3" visibility="hidden" style="left:985px; top:47px; width:53px; height:19px; ">
  202. <caption>행복사</caption>
  203. <script type="javascript" ev:event="DOMActivate">
  204. <![CDATA[
  205. grd_dutbaseinfo.insertRow(grd_dutbaseinfo.Row, "below");
  206. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/flag", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row-1) + "]/flag" ));
  207. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/dutym", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" +(grd_dutbaseinfo.Row-1)+ "]/dutym" ));
  208. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/instcd", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row-1) + "]/instcd" ));
  209. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/orddeptcd", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row-1) + "]/orddeptcd"));
  210. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/orddeptnm", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row-1) + "]/orddeptnm"));
  211. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/partcd", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" +(grd_dutbaseinfo.Row-1) + "]/partcd" ));
  212. model.setValue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row) + "]/rowcnt", model.getvalue("/root/main/dutbaseinfo/dutbaseinfolist[" + (grd_dutbaseinfo.Row-1) + "]/rowcnt" ));
  213. //grd_dutbaseinfo.removeStatus(grd_dutbaseinfo.Row, "insert");
  214. ]]>
  215. </script>
  216. </button>
  217. </group>
  218. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  219. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  220. <caption>저장</caption>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. if (messageBox("근무 기준 정보를 " ,"Q002") != 6) return;
  224. /* for(var i = grd_dutbaseinfo.fixedRows ; i < grd_dutbaseinfo.rows ; i++ ){
  225. if (grd_dutbaseinfo.rowStatus(i) != "4"){
  226. grd_dutbaseinfo.rowStatus(i) = "2";
  227. }
  228. }*/
  229. var savedata = grd_dutbaseinfo.getUpdateData();
  230. model.setValue("/root/send/dutbaseinfolist", savedata);
  231. submit("TXRTS02701")
  232. model.refresh();
  233. btn_search.dispatch("DOMActivate");
  234. ]]>
  235. </script>
  236. </button>
  237. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  238. <output id="outp_notice" ref="/root/temp/outpnotice" style="left:3px; top:5; width:600px; height:19px; font-weight:bold; color:#0000ff; "/>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>