SMRTS00100_인턴수련계획관리.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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>인턴 수련계획 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <intntrnghospplanlist/>
  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. <intntrnghospplanlist/>
  25. </save>
  26. <intntrnghospplanlist>
  27. <emplno/>
  28. <yy/>
  29. <supinfqurtyyflag/>
  30. </intntrnghospplanlist>
  31. </send>
  32. <init/>
  33. <hidden>
  34. <excelloadyn/>
  35. </hidden>
  36. <temp>
  37. <prcpmsg/>
  38. <tretmsg/>
  39. <tretcnt/>
  40. <tretdouyn/>
  41. </temp>
  42. </root>
  43. </instance>
  44. <submission id="TRRTS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/intntrnghospplanlist"/>
  45. <submission id="TXRTS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  46. <submission id="TXRTS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
  47. <submission id="TXRTS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/temp"/>
  48. </model>
  49. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  50. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  53. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  54. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. //사용자 권한
  58. fCheckAuth();
  59. // 그리드 초기화
  60. misfGridInit(grd_intntrnghospplanlist);
  61. misfMsterDetailSet(grd_intntrnghospplanlist, null, "TRRTS00101", "Y");
  62. misfComboComCdListMulti("R0237,R0305,Z0007,R0305", "cmb_supinfqurtyyflag,cmb_firstinstcd,cmb_posinstcd,combo1");
  63. addComboItem( "cmb_firstinstcd", "", "", "above");
  64. misfComboCopyItemSet(cmb_firstinstcd, "/root/send/condition/firstinstcd", cmb_secondinstcd, "/root/send/condition/secondinstcd");
  65. misfComboCopyItemSet(combo1, "/root/send/condition/firstinstcd", grd_intntrnghospplanlist, "firstinstcd");
  66. misfComboCopyItemSet(combo1, "/root/send/condition/firstinstcd", grd_intntrnghospplanlist, "secondinstcd");
  67. //misfComboCopyItemSet(cmb_posinstcd, "/root/send/condition/posinstcd", grd_intntrnghospplanlist, "posinstcd");
  68. var curDate = getCurrentDate().toDate().getDateFormat("YYYYMMDD");
  69. var isDate = curDate.toDate().getAddDate(2,'M').getDateFormat("YYYY");
  70. var sDate = getNewDate();
  71. model.setValue("/root/send/condition/yy", isDate);
  72. ipt_apprtcdrflag.value="I";
  73. model.refresh();
  74. ]]>
  75. </script>
  76. <script type="javascript">
  77. <![CDATA[
  78. //========================================================================================
  79. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  80. //========================================================================================
  81. function fCheckAuth() {
  82. btn_search.disabled = !checkAuth("R") ;
  83. btn_save.disabled = !checkAuth("X") ;
  84. }
  85. function fShowPrcpMsg()
  86. {
  87. var cnt_tot = getNodesetCount("/root/main/intntrnghospplanlist");
  88. var cnt_one_empty = getNodesetCount("/root/main/intntrnghospplanlist[(firstinstcd='' and secondinstcd!='') or (firstinstcd!='' and secondinstcd='') ]");
  89. var cnt_two_empty = getNodesetCount("/root/main/intntrnghospplanlist[firstinstcd='' and secondinstcd='']");
  90. var msg = "조회된 건수 : " + cnt_tot;
  91. if (cnt_one_empty > 0)
  92. {
  93. msg += "\n\n";
  94. msg += "미배정된 건수가 존재합니다.\n\n";
  95. msg += "하나 미배정된 건수 : " + cnt_one_empty + "\n";
  96. msg += "모두 미배정된 건수 : " + cnt_two_empty + "\n";
  97. btn_prcphosp.disabled = false;
  98. }
  99. else
  100. {
  101. btn_prcphosp.disabled = true;
  102. }
  103. messageBox(msg, "I", "");
  104. }
  105. ]]>
  106. </script>
  107. </xhtml:head>
  108. <xhtml:body style="margin-left:8; margin-right:8; ">
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">인턴 수련 계획 관리</caption>
  111. </group>
  112. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  113. <datagrid id="grd_intntrnghospplanlist" nodeset="/root/main/intntrnghospplanlist" caption="순번^이름^사원번호^채용번호^년도^상하반기^전공의구분^년차^주민번호^석차^성별^학교^군보^상반기^하반기^전공^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^1월^2월^수련계획여부^부서코드^수련년도변경여부^전공의구분^교육년도^임상과코드^소속기관" colsep="^" colwidth="40, 62, 80, 21, 21, 23, 24, 28, 28, 41, 37, 47, 83, 114, 132, 83, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 28, 22, 18, 41, 50, 34, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:91px; width:1195px; height:633px; ">
  114. <col ref="rowno" style="text-align:center; "/>
  115. <col ref="name" style="text-align:center; "/>
  116. <col ref="emplno" type="inputbutton" style="text-align:center; "/>
  117. <col ref="apntinfono" visibility="hidden" style="text-align:center; "/>
  118. <col ref="yy" visibility="hidden" style="text-align:center; "/>
  119. <col ref="supinfqurtyyflag" visibility="hidden" style="text-align:center; "/>
  120. <col ref="apprtcdrflag" visibility="hidden" style="text-align:center; "/>
  121. <col ref="anual" visibility="hidden" style="text-align:center; "/>
  122. <col ref="rregno" visibility="hidden"/>
  123. <col ref="rank" style="text-align:center; "/>
  124. <col ref="gndr" style="text-align:center; "/>
  125. <col ref="schnm" style="text-align:center; "/>
  126. <col ref="armynm" style="text-align:center; "/>
  127. <col ref="firstinstcd" type="combo" _required="true">
  128. <choices>
  129. <itemset>
  130. <label/>
  131. <value/>
  132. </itemset>
  133. </choices>
  134. </col>
  135. <col ref="secondinstcd" type="combo" _required="true">
  136. <choices>
  137. <itemset>
  138. <label/>
  139. <value/>
  140. </itemset>
  141. </choices>
  142. </col>
  143. <col ref="dentyn" style="text-align:center; "/>
  144. <col imemode="alpha" ref="mardeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  145. <col imemode="alpha" ref="aprdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  146. <col imemode="alpha" ref="maydeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  147. <col imemode="alpha" ref="jundeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  148. <col imemode="alpha" ref="juldeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  149. <col imemode="alpha" ref="augdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  150. <col imemode="alpha" ref="sepdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  151. <col imemode="alpha" ref="octdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  152. <col imemode="alpha" ref="novdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  153. <col imemode="alpha" ref="decdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  154. <col imemode="alpha" ref="jandeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  155. <col imemode="alpha" ref="febdeptcd" type="input" format="LL" maxlength="2" style="text-align:center; "/>
  156. <col ref="dpdatayn" visibility="hidden" style="text-align:center; "/>
  157. <col ref="posdeptcd" visibility="hidden" style="text-align:center; "/>
  158. <col ref="trainyychangyn" visibility="hidden" style="text-align:center; "/>
  159. <col ref="apprtcdrflagnm" visibility="hidden" style="text-align:center; "/>
  160. <col ref="educyy" visibility="hidden" style="text-align:center; "/>
  161. <col ref="preststatcd" visibility="hidden" style="text-align:center; "/>
  162. <col ref="posinstcd" visibility="hidden"/>
  163. <script type="javascript" ev:event="onbuttonclick">
  164. <![CDATA[
  165. if (grd_intntrnghospplanlist.col == 2) {//사원번호 버튼을 눌렀을 때
  166. var recv_list = "emplno,name,rregno,apprtcdrflagnm,gndr,rank,schnm,armynm,anual,apprtcdrflag";
  167. misfOpenPopUpList("34", grd_intntrnghospplanlist,"",recv_list);
  168. }
  169. ]]>
  170. </script>
  171. <script type="javascript" ev:event="onaftersort">
  172. <![CDATA[
  173. grd_intntrnghospplanlist.gridToInstance();
  174. ]]>
  175. </script>
  176. </datagrid>
  177. <caption id="caption22" class="tit_2" style="left:5px; top:72px; width:157px; height:13px; ">근무병원 및 수련과관리</caption>
  178. <group id="group6" style="left:0px; top:10px; width:1195px; height:50px; vertical-align:top; ">
  179. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:10px; width:1195px; height:35px; "/>
  180. <caption id="cap_yy" class="search_name" style="left:15px; top:21px; width:85px; height:17px; ">년 도 :</caption>
  181. <caption id="cap_supinfqurtyyflag" class="search_name" style="left:166px; top:21px; width:91px; height:17px; ">상하반기 :</caption>
  182. <caption id="caption60" class="search_name" style="left:690px; top:20px; width:107px; height:17px; ">First병원 :</caption>
  183. <caption id="caption61" class="search_name" style="left:885px; top:20px; width:109px; height:17px; ">Second병원 :</caption>
  184. <select1 id="cmb_firstinstcd" ref="/root/send/condition/firstinstcd" class="combo_s_essential" appearance="minimal" style="left:779px; top:19px; width:100px; height:19px; ">
  185. <choices>
  186. <itemset>
  187. <label/>
  188. <value/>
  189. </itemset>
  190. </choices>
  191. </select1>
  192. <select1 id="cmb_secondinstcd" ref="/root/send/condition/secondinstcd" class="combo_s_essential" appearance="minimal" style="left:994px; top:19px; width:100px; height:19px; ">
  193. <choices>
  194. <itemset>
  195. <label/>
  196. <value/>
  197. </itemset>
  198. </choices>
  199. </select1>
  200. <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; ">
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. btn_search.dispatch("DOMActivate");
  204. ]]>
  205. </script>
  206. </input>
  207. <select1 id="cmb_posinstcd" ref="/root/send/condition/posinstcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:1105px; top:10px; width:55px; height:19px; ">
  208. <choices>
  209. <itemset>
  210. <label/>
  211. <value/>
  212. </itemset>
  213. </choices>
  214. </select1>
  215. <caption id="caption3" class="search_name" style="left:535px; top:21px; width:65px; height:17px; ">이 름 :</caption>
  216. <caption id="caption4" class="search_name" style="left:356px; top:21px; width:106px; height:17px; ">사원번호 :</caption>
  217. <line id="line3" class="line_4" style="x1:1110px; y1:18px; x2:1110px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
  218. <select1 id="cmb_supinfqurtyyflag" ref="/root/send/condition/supinfqurtyyflag" class="combo_s_essential" navindex="2" appearance="minimal" style="left:256px; top:19px; width:90px; height:19px; ">
  219. <choices>
  220. <itemset>
  221. <label/>
  222. <value/>
  223. </itemset>
  224. </choices>
  225. <script type="javascript" ev:event="xforms-value-changed">
  226. <![CDATA[
  227. btn_search.dispatch("DOMActivate");
  228. ]]>
  229. </script>
  230. </select1>
  231. <input id="input3" ref="/root/send/condition/name" class="input_default" imemode="hangul" style="left:600px; top:19px; width:80px; height:19px; "/>
  232. <input id="input4" ref="/root/send/condition/emplno" class="input_default" style="left:445px; top:19px; width:80px; height:19px; "/>
  233. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
  234. <caption>조회</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. //필수 입력 항목 체크(공통 ftHelper.js)
  238. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
  239. return false;
  240. }
  241. misfMsterDetailRetrieve();
  242. /* 사원별 rowcolor 표시*/
  243. var iYear = 1;
  244. var sColor = "#ffff99";
  245. icnt = 0;
  246. for(var i = grd_intntrnghospplanlist.fixedRows ; i < grd_intntrnghospplanlist.rows ; i++ )
  247. {
  248. var preststatcd=grd_intntrnghospplanlist.valueMatrix(i, grd_intntrnghospplanlist.colRef("preststatcd"));
  249. if(icnt % iYear == 0)
  250. {
  251. if(sColor == "#ffff99")
  252. {
  253. if(preststatcd=='2'){
  254. sColor = "#ff9900";
  255. }else{
  256. sColor = "#FFFFFF";
  257. }
  258. }
  259. else
  260. { if(preststatcd=='2'){
  261. sColor = "#ff9900";
  262. }else{
  263. sColor = "#ffff99";
  264. }
  265. }
  266. }
  267. grd_intntrnghospplanlist.rowStyle(i, "all", "background-color") = sColor;
  268. icnt ++;
  269. }
  270. fShowPrcpMsg();
  271. ]]>
  272. </script>
  273. </button>
  274. <input id="ipt_apprtcdrflag" ref="/root/send/condition/apprtcdrflag" visibility="hidden" style="left:1165px; top:10px; width:25px; height:19px; "/>
  275. </group>
  276. <line id="line19" class="line_1" style="x1:0px; y1:86px; x2:1195px; y2:86px; "/>
  277. <button id="button16" class="btn5_letter8" style="left:1015px; top:65px; width:108px; height:19px; ">
  278. <caption>수련과ExcelLoad</caption>
  279. <script type="javascript" ev:event="DOMActivate">
  280. <![CDATA[
  281. var fileName = window.fileDialog("open", "", false);
  282. grd_intntrnghospplanlist.loadExcel(fileName);
  283. var header1=model.getValue("/root/main/intntrnghospplanlist[1]/name");
  284. if(header1=="이름"){
  285. grd_intntrnghospplanlist.deleteRow(1);
  286. grd_intntrnghospplanlist.clearStatus();
  287. }
  288. model.setValue("/root/hidden/excelloadyn","Y");
  289. model.refresh();
  290. ]]>
  291. </script>
  292. </button>
  293. <button id="button1" class="btn2_letter4" style="left:1125px; top:65px; width:64px; height:19px; ">
  294. <caption>엑셀저장</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  298. if (fileName != "") {
  299. grd_intntrnghospplanlist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  300. }
  301. ]]>
  302. </script>
  303. </button>
  304. <button id="btn_grddel" class="btn2_letter3" visibility="hidden" style="left:960px; top:65px; width:53px; height:19px; ">
  305. <caption>행삭제</caption>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. misfGridIUD(grd_intntrnghospplanlist,"D");
  309. model.refresh();
  310. ]]>
  311. </script>
  312. </button>
  313. <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:905px; top:65px; width:53px; height:19px; ">
  314. <caption>행추가</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
  318. return false;
  319. }
  320. misfGridIUD(grd_intntrnghospplanlist, "A");
  321. var cur_row=grd_intntrnghospplanlist.row;
  322. grd_intntrnghospplanlist.valueMatrix(cur_row, grd_intntrnghospplanlist.colRef("dpdatayn")) ="N";
  323. ]]>
  324. </script>
  325. </button>
  326. <select1 id="combo1" visibility="hidden" appearance="minimal" style="left:790px; top:65px; width:100px; height:19px; ">
  327. <choices>
  328. <itemset>
  329. <label/>
  330. <value/>
  331. </itemset>
  332. </choices>
  333. </select1>
  334. <button id="btn_prcphosp" class="btn2_letter10" disabled="true" style="left:481px; top:65px; width:130px; height:19px; ">
  335. <caption>미배정병원 배정작업</caption>
  336. <script type="javascript" ev:event="DOMActivate">
  337. <![CDATA[
  338. var node = instance1.selectSingleNode("/root/main/intntrnghospplanlist[firstinstcd='' or secondinstcd='']");
  339. var srcnode;
  340. var path;
  341. var set_instcd;
  342. var dest_inst;
  343. var dest_colnm;
  344. if (node != null)
  345. {
  346. var rownum = node.getXPathString("rownum");
  347. var firstinstcd = node.getXPathString("firstinstcd");
  348. var secondinstcd = node.getXPathString("secondinstcd");
  349. var gndr = node.getXPathString("gndr");
  350. if (firstinstcd == "")
  351. {
  352. dest_inst = "firstinstcd";
  353. dest_colnm = "상반기";
  354. set_instcd = secondinstcd;
  355. }
  356. else
  357. {
  358. dest_inst = "secondinstcd";
  359. dest_colnm = "하반기";
  360. set_instcd = firstinstcd;
  361. }
  362. path = "/root/main/intntrnghospplanlist[";
  363. path += "(firstinstcd != '" + set_instcd + "' and secondinstcd != '" + set_instcd + "')";
  364. path += " and gndr= '"+gndr+"'"
  365. path += " and rownum <= '"+rownum+"'"
  366. path += "]";
  367. var max_rownum = model.getXPathValue("max("+ path +"/rownum)");
  368. var colidx = grd_intntrnghospplanlist.colRef("rownum");
  369. var dest_rowidx;
  370. for (var i = grd_intntrnghospplanlist.rows; i >= 0; i--)
  371. {
  372. if (rownum == grd_intntrnghospplanlist.valueMatrix(i, colidx))
  373. {
  374. dest_rowidx = i;
  375. break;
  376. }
  377. }
  378. var src_rowidx;
  379. for (var i = grd_intntrnghospplanlist.rows; i >= 0; i--)
  380. {
  381. if (max_rownum == grd_intntrnghospplanlist.valueMatrix(i, colidx))
  382. {
  383. src_rowidx = i;
  384. break;
  385. }
  386. }
  387. var colidx_name = grd_intntrnghospplanlist.colRef("name");
  388. var colidxinst = grd_intntrnghospplanlist.colRef( dest_inst );
  389. var get_instcd = grd_intntrnghospplanlist.valueMatrix(src_rowidx, colidxinst);
  390. var dest_msg = "[대상] " + rownum + ". ";
  391. dest_msg += grd_intntrnghospplanlist.valueMatrix(dest_rowidx, colidx_name);
  392. dest_msg += " : ";
  393. dest_msg += get_instcd;
  394. var src_msg = "[소스] " + max_rownum + ". ";
  395. src_msg += grd_intntrnghospplanlist.valueMatrix(src_rowidx, colidx_name);
  396. src_msg += " : ";
  397. src_msg += set_instcd;
  398. var msg = "아래와 같이 " + dest_colnm + " 배정병원을 입력하려고 합니다.";
  399. msg += "\n\n";
  400. msg += dest_msg + "\n\n";
  401. msg += src_msg + "\n\n";
  402. model.setValue("/root/temp/prcpmsg", msg);
  403. if ( messageBox(msg, "Q004", "") != 6) {
  404. return;
  405. }
  406. else
  407. {
  408. grd_intntrnghospplanlist.valueMatrix(dest_rowidx, colidxinst) = get_instcd;
  409. grd_intntrnghospplanlist.addStatus(dest_rowidx, "update");
  410. grd_intntrnghospplanlist.valueMatrix(src_rowidx, colidxinst) = set_instcd;
  411. grd_intntrnghospplanlist.addStatus(src_rowidx, "update");
  412. grd_intntrnghospplanlist.refresh();
  413. fShowPrcpMsg();
  414. }
  415. }
  416. ]]>
  417. </script>
  418. </button>
  419. <button id="button2" class="btn2_letter8" style="left:615px; top:65px; width:130px; height:19px; ">
  420. <caption>이전작업 메세지</caption>
  421. <script type="javascript" ev:event="DOMActivate">
  422. <![CDATA[
  423. var msg = model.getValue("/root/temp/prcpmsg");
  424. if (msg == "")
  425. msg = "이전작업 메세지가 없습니다.";
  426. messageBox(msg, "I", "");
  427. ]]>
  428. </script>
  429. </button>
  430. <button id="button3" class="btn5_letter10" navindex="99" style="left:347px; top:65px; width:130px; height:19px; ">
  431. <caption>인턴치과수련계획생성</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. var retMes = messageBox("인턴 치과 수련계획을 생성 하시겠습니까?", "Q999");
  435. if ( retMes != 6) {
  436. return;
  437. }
  438. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
  439. return false;
  440. }
  441. submit("TXRTS00102");
  442. var tretdouyn = model.getValue("/root/temp/tretdouyn");
  443. var tretmsg = model.getValue("/root/temp/tretmsg");
  444. var tretcnt = model.getValue("/root/temp/tretcnt");
  445. if( tretdouyn =='Y'){
  446. messageBox(tretmsg,"E006");
  447. }else{
  448. if(tretcnt=='0'){
  449. var msg="I004";
  450. }else{
  451. var msg="I001";
  452. }
  453. messageBox(tretmsg,msg);
  454. }
  455. ]]>
  456. </script>
  457. </button>
  458. <button id="button4" class="btn5_letter10" navindex="99" style="left:212px; top:65px; width:130px; height:19px; ">
  459. <caption>인턴의과수련계획생성</caption>
  460. <script type="javascript" ev:event="DOMActivate">
  461. <![CDATA[
  462. var retMes = messageBox("인턴 의과 수련계획을 생성 하시겠습니까?", "Q999");
  463. if ( retMes != 6) {
  464. return; }
  465. if ( !isRequiredControls("ipt_yy", "cmb_supinfqurtyyflag") ) {
  466. return false;
  467. }
  468. submit("TXRTS00103");
  469. btn_search.dispatch("DOMActivate");
  470. ]]>
  471. </script>
  472. </button>
  473. </group>
  474. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  475. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  476. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  477. <caption>저장</caption>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  481. if ( retMes != 6) {
  482. return;
  483. }
  484. if(!checkRequiredColumn("grd_intntrnghospplanlist"))return;
  485. var excelloadyn=model.getValue("/root/hidden/excelloadyn");
  486. for(var i=grd_intntrnghospplanlist.fixedRows; i<grd_intntrnghospplanlist.rows;i++){
  487. var dpdatayn=grd_intntrnghospplanlist.valueMatrix(i,grd_intntrnghospplanlist.colRef("dpdatayn"));
  488. if(dpdatayn =='N'){
  489. grd_intntrnghospplanlist.addStatus(i,"insert");
  490. }else{
  491. if(excelloadyn == 'Y'){
  492. grd_intntrnghospplanlist.addStatus(i,"update");
  493. }
  494. }
  495. }
  496. misfSave("TXRTS00101");
  497. model.setValue("/root/hidden/excelloadyn","N");
  498. btn_search.dispatch("DOMActivate");
  499. ]]>
  500. </script>
  501. </button>
  502. </group>
  503. </xhtml:body>
  504. </xhtml:html>