SMRTR01400_인턴병원배정예외자관리.xrw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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. <intnexsethospstatlist/>
  11. </main>
  12. <send>
  13. <condition>
  14. <yy/>
  15. <supinfqurtyyflag>1</supinfqurtyyflag>
  16. <emplno/>
  17. <firstinstcd/>
  18. <secondinstcd/>
  19. <name/>
  20. <posinstcd/>
  21. <apprtcdrflag/>
  22. </condition>
  23. <save>
  24. <intnexsethospstatlist/>
  25. </save>
  26. </send>
  27. <init/>
  28. <hidden/>
  29. <temp/>
  30. </root>
  31. </instance>
  32. <submission id="TRRTR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/intnexsethospstatlist"/>
  33. <submission id="TXRTR01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  34. </model>
  35. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  39. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  40. <script type="javascript" ev:event="xforms-ready">
  41. <![CDATA[
  42. //사용자 권한
  43. fCheckAuth();
  44. // 그리드 초기화
  45. misfGridInit(grd_intnexsethospstatlist);
  46. misfMsterDetailSet(grd_intnexsethospstatlist, null, "TRRTR01401", "Y");
  47. misfComboComCdListMulti("R0237,R0305,Z0007", "cmb_supinfqurtyyflag,cmb_firstinstcd");
  48. addComboItem( "cmb_firstinstcd", "", "", "above");
  49. misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", cmb_secondinstcd, "/root/send/condition/secondinstcd");
  50. misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", grd_intnexsethospstatlist, "firstinstcd");
  51. misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", grd_intnexsethospstatlist, "secondinstcd");
  52. var curDate = getCurrentDate().toDate().getDateFormat("YYYYMMDD");
  53. var isDate = curDate.toDate().getAddDate(2,'M').getDateFormat("YYYY");
  54. var sDate = getNewDate();
  55. model.setValue("/root/send/condition/yy", isDate);
  56. model.refresh();
  57. ]]>
  58. </script>
  59. <script type="javascript">
  60. <![CDATA[
  61. //========================================================================================
  62. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  63. //========================================================================================
  64. function fCheckAuth() {
  65. btn_search.disabled = !checkAuth("R") ;
  66. btn_save.disabled = !checkAuth("X") ;
  67. }
  68. ]]>
  69. </script>
  70. </xhtml:head>
  71. <xhtml:body pagewidth="840" pageheight="640" style="margin-left:8; margin-right:8; ">
  72. <group id="group1" style="left:0px; top:0px; width:800px; height:13px; ">
  73. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴병원배정 예외자 관리</caption>
  74. </group>
  75. <group id="group2" scroll="auto" style="left:0px; top:38px; width:802px; height:600px; ">
  76. <datagrid id="grd_intnexsethospstatlist" nodeset="/root/main/intnexsethospstatlist" caption="순번^사원번호^성명^성별^학교구분^석차^출신교^예외여부^상반기^하반기^채용번호^채용년도^상하반기^주민번호" colsep="^" colwidth="40, 62, 80, 41, 63, 45, 131, 64, 125, 125, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:1px; top:116px; width:800px; height:450px; ">
  77. <col ref="rowno" style="text-align:center; "/>
  78. <col ref="emplno" type="output" style="text-align:center; "/>
  79. <col ref="name" style="text-align:center; "/>
  80. <col ref="gndr" style="text-align:center; "/>
  81. <col ref="schflag" style="text-align:center; "/>
  82. <col ref="rank" style="text-align:center; "/>
  83. <col ref="schnm" style="text-align:center; "/>
  84. <col checkvalue="Y,N" ref="careryn" type="checkbox"/>
  85. <col ref="firstinstcd" type="combo" _required="true">
  86. <choices>
  87. <itemset>
  88. <label/>
  89. <value/>
  90. </itemset>
  91. </choices>
  92. </col>
  93. <col ref="secondinstcd" type="combo" _required="true">
  94. <choices>
  95. <itemset>
  96. <label/>
  97. <value/>
  98. </itemset>
  99. </choices>
  100. </col>
  101. <script type="javascript" ev:event="onaftersort">
  102. <![CDATA[
  103. grd_intntrnghospplanlist.gridToInstance();
  104. ]]>
  105. </script>
  106. <col ref="apntinfono" visibility="hidden" style="text-align:center; "/>
  107. <col ref="apntyy" visibility="hidden" style="text-align:center; "/>
  108. <col ref="supinfqurtyyflag" visibility="hidden" style="text-align:center; "/>
  109. <col ref="rregno" visibility="hidden" style="text-align:center; "/>
  110. </datagrid>
  111. <caption id="caption22" class="tit_2" style="left:5px; top:97px; width:175px; height:13px; ">인턴병원배정 예외자 관리</caption>
  112. <group id="group6" style="left:0px; top:10px; width:800px; height:80px; vertical-align:top; ">
  113. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:800px; height:60px; "/>
  114. <caption id="cap_yy" class="search_name" style="left:15px; top:21px; width:85px; height:17px; ">년 도 :</caption>
  115. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:196px; top:21px; width:91px; height:17px; ">상하반기 :</caption>
  116. <caption id="caption60" class="search_name" style="left:196px; top:45px; width:107px; height:17px; ">First병원 :</caption>
  117. <caption id="caption61" class="search_name" style="left:420px; top:45px; width:109px; height:17px; ">Second병원 :</caption>
  118. <select1 id="cmb_firstinstcd" ref="/root/send/condition/firstinstcd" class="combo_s_essential" appearance="minimal" style="left:285px; top:44px; width:100px; height:19px; ">
  119. <choices>
  120. <itemset>
  121. <label/>
  122. <value/>
  123. </itemset>
  124. </choices>
  125. </select1>
  126. <select1 id="cmb_secondinstcd" ref="/root/send/condition/secondinstcd" class="combo_s_essential" appearance="minimal" style="left:529px; top:44px; width:100px; height:19px; ">
  127. <choices>
  128. <itemset>
  129. <label/>
  130. <value/>
  131. </itemset>
  132. </choices>
  133. </select1>
  134. <input id="ipt_yy" ref="/root/send/condition/yy" class="input_default" inputtype="date" format="yyyy" style="left:80px; top:19px; width:75px; height:19px; ">
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. btn_search.dispatch("DOMActivate");
  138. ]]>
  139. </script>
  140. </input>
  141. <caption id="caption4" class="search_name" style="left:420px; top:21px; width:106px; height:17px; ">사원번호 :</caption>
  142. <caption id="caption3" class="search_name" style="left:15px; top:46px; width:65px; height:17px; ">이 름 :</caption>
  143. <line id="line3" class="line_4" style="x1:645px; y1:18px; x2:645px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  144. <select1 id="cmb_supinfqurtyyflag" ref="/root/send/condition/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:283px; top:19px; width:90px; height:19px; ">
  145. <choices>
  146. <itemset>
  147. <label/>
  148. <value/>
  149. </itemset>
  150. </choices>
  151. <script type="javascript" ev:event="xforms-value-changed">
  152. <![CDATA[
  153. btn_search.dispatch("DOMActivate");
  154. ]]>
  155. </script>
  156. </select1>
  157. <input id="ipt_emplno" ref="/root/send/condition/emplno" class="input_default" style="left:509px; top:19px; width:80px; height:19px; "/>
  158. <input id="input3" ref="/root/send/condition/name" class="input_default" imemode="hangul" style="left:80px; top:44px; width:80px; height:19px; "/>
  159. <button id="btn_search" class="btn1_letter2" style="left:730px; top:29px; width:56px; height:22px; ">
  160. <caption>조회</caption>
  161. <script type="javascript" ev:event="DOMActivate">
  162. <![CDATA[
  163. //필수 입력 항목 체크(공통 ftHelper.js)
  164. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
  165. return false;
  166. }
  167. misfMsterDetailRetrieve();
  168. /* 사원별 rowcolor 표시*/
  169. var iYear = 1;
  170. var sColor = "#ffff99";
  171. var icnt = 0;
  172. for (var i = grd_intnexsethospstatlist.fixedRows ; i < grd_intnexsethospstatlist.rows ; i++ ) {
  173. var preststatcd=grd_intnexsethospstatlist.valueMatrix(i, grd_intnexsethospstatlist.colRef("preststatcd"));
  174. if (icnt % iYear == 0) {
  175. if (sColor == "#ffff99") {
  176. if (preststatcd == "2") {
  177. sColor = "#ff9900";
  178. } else{
  179. sColor = "#FFFFFF";
  180. }
  181. } else {
  182. if (preststatcd == "2") {
  183. sColor = "#ff9900";
  184. } else {
  185. sColor = "#ffff99";
  186. }
  187. }
  188. }
  189. grd_intnexsethospstatlist.rowStyle(i, "all", "background-color") = sColor;
  190. icnt ++;
  191. }
  192. ]]>
  193. </script>
  194. </button>
  195. <caption id="caption1" class="search_name" style="left:15px; top:46px; width:65px; height:17px; ">이 름 :</caption>
  196. <input id="input1" ref="/root/send/condition/name" class="input_default" imemode="hangul" style="left:80px; top:44px; width:80px; height:19px; "/>
  197. </group>
  198. <line id="line19" class="line_1" style="x1:0px; y1:115px; x2:800px; y2:115px; "/>
  199. </group>
  200. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:800px; height:27px; ">
  201. <line id="line11" class="line_6" style="x1:0; y1:25; x2:800; y2:25; "/>
  202. <button id="btn_save" class="btn4_letter2" style="left:730px; top:0px; width:56px; height:22px; ">
  203. <caption>저장</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  207. if ( retMes != 6) {
  208. return;
  209. }
  210. misfSave("TXRTR01401");
  211. btn_search.dispatch("DOMActivate");
  212. ]]>
  213. </script>
  214. </button>
  215. </group>
  216. </xhtml:body>
  217. </xhtml:html>