SMRTS01800_사랑나눔교육일정변경.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  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. <item>
  11. <cmt/>
  12. </item>
  13. <humnatrsreq>
  14. <humnatrscorlist>
  15. <humnatrscorlist/>
  16. </humnatrscorlist>
  17. </humnatrsreq>
  18. <dgnoref>
  19. <dgno/>
  20. <yy/>
  21. <educfromdd/>
  22. <eductodd/>
  23. <eduinstnm/>
  24. <deptnm/>
  25. <dutinstnm/>
  26. </dgnoref>
  27. <dgnopsnnumlist/>
  28. <humnatreducdgcapa>
  29. <humnatreducdgcapalist/>
  30. </humnatreducdgcapa>
  31. </main>
  32. <init>
  33. <cnfmynlist>
  34. <label>확정</label>
  35. <value>Y</value>
  36. <label>미확정</label>
  37. <value>N</value>
  38. </cnfmynlist>
  39. </init>
  40. <send>
  41. <req>
  42. <yy/>
  43. <dgno/>
  44. <chdgno/>
  45. <deptcd/>
  46. <emplno/>
  47. <emplnm/>
  48. <dutinstnm/>
  49. <valuerslt/>
  50. <dutplceinstnm/>
  51. <seqno/>
  52. </req>
  53. <chdgnolist>
  54. <yy/>
  55. <emplno/>
  56. <chdgno/>
  57. </chdgnolist>
  58. <humnatrsreq>
  59. <humnatrscorlist/>
  60. </humnatrsreq>
  61. <dgnoreq>
  62. <dgno/>
  63. <yy/>
  64. </dgnoreq>
  65. <temp/>
  66. <reportlist>
  67. <humnatreducdgcapa>
  68. <humnatreducdgcapalist/>
  69. </humnatreducdgcapa>
  70. <humnatrsreq>
  71. <humnatrscorlist/>
  72. </humnatrsreq>
  73. </reportlist>
  74. </send>
  75. <temp/>
  76. </root>
  77. </instance>
  78. <script type="javascript" ev:event="xforms-ready">
  79. <![CDATA[
  80. model.setValue("/root/send/req/emplno", getUserInfo("userid"));
  81. model.getValue("/root/send/req/emplno");
  82. //함수 위치 : /tistrngeducplanmngtweb/js/SMRTS00600.js
  83. //의료원 실무자
  84. authflag1 = fGrupAuthFlag("UG00000046");
  85. //수련교육 관리자
  86. authflag2 = fGrupAuthFlag("UG00000034");
  87. if (authflag1 == "Y" || authflag2 == "Y"){
  88. caption6.attribute("text") = "사랑나눔교육 일정변경 신청 및 조회";
  89. btn_emplsearch.visible = true;
  90. btn_search.visible = true;
  91. btn_grdadd.visible = true;
  92. } else {
  93. caption6.attribute("text") = "사랑나눔교육 일정변경 신청";
  94. btn_emplsearch.visible = false;
  95. btn_search.visible = false;
  96. ipt_emplno.refresh();
  97. }
  98. misfGridInit(grd_humnatrscorlist);
  99. misfMsterDetailSet(grd_humnatrscorlist, null, "TRRTS01802", "Y");
  100. misfGridComboComCdList("R0256",grd_humnatrscorlist,"valuerslt");
  101. var today = getCurrentDate();
  102. var cur_mm = parseInt(today.substring(4, 6));
  103. var cur_yy = parseInt(today.substring(0, 4));
  104. /*if (cur_mm < 3)
  105. {
  106. cur_yy--;
  107. }*/
  108. model.setValue("/root/send/req/yy", cur_yy);
  109. submit("TRRTC01301");
  110. model.removeNodeset("/root/send/reportlist/humnatreducdgcapa");
  111. model.makeNode("/root/send/reportlist/humnatreducdgcapa");
  112. model.copyNode("/root/send/reportlist/humnatreducdgcapa", "/root/main/humnatreducdgcapa");
  113. addComboItem( "cmb_dgno", "차기년도", "0", "below");
  114. ipt_yy.refresh();
  115. misfComboCopyItemSet(cmb_dgno, "/root/send/req/dgno", grd_humnatrscorlist, "dgno");
  116. misfComboCopyItemSet(cmb_dgno, "/root/send/req/oldchdgno", grd_humnatrscorlist, "oldchdgno");
  117. misfComboCopyItemSet(cmb_dgno, "/root/send/req/chdgno", grd_humnatrscorlist, "chdgno");
  118. var jobposcd= getUserInfo("jobposcd");
  119. if(!checkAuth("P"))
  120. {
  121. model.setValue("/root/send/req/deptcd", getUserInfo("dutplcecd"));
  122. model.setValue("/root/send/req/emplno", getUserInfo("userid"));
  123. model.setValue("/root/send/req/emplnm", getUserInfo("usernm"));
  124. model.setValue("/root/send/req/dutinstnm", getUserInfo("dutplceinstnm"));
  125. }
  126. else if(checkAuth("P"))
  127. {
  128. ipt_emplno.disabled = false;
  129. btn_emplsearch.disabled = false;
  130. ipt_emplnm.disabled = false;
  131. }
  132. submit("TRRTS00602");
  133. submit("TRRTS01002");
  134. cmb_dgno.value = ipt_dgno.value;
  135. btn_search.dispatch("DOMActivate");
  136. ]]>
  137. </script>
  138. <submission id="TRRTS01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrscorlist"/>
  139. <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatreducdgcapa/humnatreducdgcapalist"/>
  140. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
  141. <submission id="TRRTS01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dgnoref"/>
  142. <submission id="TRRTS01801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chdgnolist" resultref="/root/main/list"/>
  143. <submission id="TRRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrsreq"/>
  144. <submission id="TRRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/reportlist"/>
  145. <submission id="TRRTS01804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dgnoreq" resultref="/root/main/dgnopsnnumlist"/>
  146. <submission id="TRRTS01805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/dgnolist"/>
  147. <submission id="TRRTS01806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/chdgnolist" resultref="/root/main/capayn"/>
  148. <submission id="TXRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/temp"/>
  149. <submission id="TXRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/temp"/>
  150. </model>
  151. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  154. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  155. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  156. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  157. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  158. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  159. <script type="javascript">
  160. <![CDATA[
  161. var authflag1, authflag2;
  162. function fCheckData(cur_row) {
  163. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("dgno")) = '';
  164. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("educfromdd")) = '';
  165. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eductodd")) = '';
  166. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = '';
  167. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = '';
  168. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = '';
  169. }
  170. ]]>
  171. </script>
  172. </xhtml:head>
  173. <xhtml:body>
  174. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  175. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사랑나눔교육 일정변경 신청 및 조회</caption>
  176. </group>
  177. <group id="group2" scroll="auto" style="left:0px; top:43px; width:1195px; height:697px; ">
  178. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  179. <caption id="cap_yy" class="search_name" style="left:5px; top:39px; width:86px; height:17px; ">년 도 :</caption>
  180. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:24px; width:56px; height:22px; text-align:left; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. if ( !isRequiredControls("ipt_yy") ) {
  185. return false;
  186. }
  187. model.resetInstanceNode("/root/main/item/cmt");
  188. model.refresh();
  189. misfMsterDetailRetrieve();
  190. txt_cmt.value = grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef("cmt"));
  191. txt_cmt.refresh();
  192. // submit("TRRTS01001");
  193. ]]>
  194. </script>
  195. </button>
  196. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  197. <caption id="cap_dgno" class="search_name" style="left:274px; top:39px; width:94px; height:17px; ">교육차수 :</caption>
  198. <caption id="caption3" class="tit_2" style="left:0px; top:255px; width:201px; height:13px; ">사랑나눔교육 변경 예정일 등록</caption>
  199. <line id="line1" class="line_1" style="x1:0px; y1:275px; x2:1194px; y2:275px; "/>
  200. <textarea id="txt_cmt" ref="/root/main/item/cmt" maxlength="100" style="left:0px; top:90px; width:1194px; height:145px; ">
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. /*for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
  204. grd_humnatrscorlist.addStatus(i,"update");
  205. }*/
  206. ]]>
  207. </script>
  208. </textarea>
  209. <caption id="caption4" class="tit_2" style="left:0px; top:75px; width:201px; height:13px; ">변경사유</caption>
  210. <input id="input2" ref="/root/main/dgnoref/deptnm" class="output_fix" style="left:360px; top:13px; width:165px; height:19px; "/>
  211. <input id="input3" ref="/root/send/req/dutinstnm" class="output_fix" style="left:630px; top:38px; width:165px; height:19px; "/>
  212. <input id="ipt_yy" ref="/root/send/req/yy" class="output_fix" style="left:89px; top:38px; width:176px; height:19px; "/>
  213. <input id="ipt_dgno" ref="/root/main/dgnoref/dgno" class="output_fix" style="left:360px; top:38px; width:165px; height:19px; "/>
  214. <input id="input6" ref="/root/main/dgnoref/educfromdd" class="output_fix" format="yyyy-mm-dd" style="left:630px; top:13px; width:75px; height:19px; "/>
  215. <input id="input7" ref="/root/main/dgnoref/eduinstnm" class="output_fix" style="left:910px; top:13px; width:165px; height:19px; "/>
  216. <caption id="caption1" class="search_name" style="left:540px; top:13px; width:94px; height:17px; ">교육기간 :</caption>
  217. <caption id="caption2" class="search_name" style="left:820px; top:13px; width:94px; height:17px; ">교육병원 :</caption>
  218. <caption id="caption5" class="search_name" style="left:5px; top:13px; width:86px; height:17px; ">사 번 :</caption>
  219. <caption id="caption8" class="search_name" style="left:274px; top:13px; width:94px; height:17px; ">임 상 과 :</caption>
  220. <caption id="caption9" class="search_name" style="left:540px; top:39px; width:94px; height:17px; ">근무병원 :</caption>
  221. <button id="btn_grddel" class="btn2_letter3" visibility="hidden" style="left:1137px; top:254px; width:53px; height:19px; ">
  222. <caption>행삭제</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. misfGridIUD(grd_humnatrscorlist,"D");
  226. model.refresh();
  227. ]]>
  228. </script>
  229. </button>
  230. <button id="btn_grdadd" class="btn2_letter3" visibility="hidden" style="left:1081px; top:254px; width:53px; height:19px; ">
  231. <caption>행추가</caption>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. if(grd_humnatrscorlist.rows > 2){
  235. messageBox("예정일 등록은 2개이상 입력 ","E001");
  236. return;
  237. }
  238. misfGridIUD(grd_humnatrscorlist, "A");
  239. // submit("TRRTS01805");
  240. // grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef(""))
  241. var cur_row=grd_humnatrscorlist.row;
  242. grd_humnatrscorlist.colDisabled (9) = true;
  243. grd_humnatrscorlist.colDisabled (10) = true;
  244. grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("emplno")) =ipt_emplno.value;
  245. grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("name")) =ipt_emplnm.value;
  246. grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("yy")) =ipt_yy.value;
  247. grd_humnatrscorlist.valueMatrix(cur_row, grd_humnatrscorlist.colRef("dgno")) =ipt_dgno.value;
  248. ]]>
  249. </script>
  250. </button>
  251. <select1 id="cmb_dgno" ref="/root/send/req/dgno" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:980px; top:70px; width:100px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/main/humnatreducdgcapa/humnatreducdgcapalist">
  254. <label ref="dgno"/>
  255. <value ref="value"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <input id="input4" ref="/root/main/dgnoref/eductodd" class="output_fix" format="yyyy-mm-dd" style="left:720px; top:13px; width:75px; height:19px; "/>
  260. <caption id="caption15" style="left:707; top:15px; width:16px; height:17px; font-weight:bold; ">~</caption>
  261. <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="input_essential" disabled="true" navindex="21" style="left:180; top:13px; width:85px; height:19px; "/>
  262. <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_essential" disabled="true" navindex="20" maxlength="10" style="left:89px; top:13px; width:69px; height:19px; ">
  263. <script type="javascript" ev:event="xforms-value-changed">
  264. <![CDATA[
  265. var recv_list = "emplno,emplnm,dutplceinstnm" ;
  266. rpbfValidationCheck("EMPLNO", recv_list);
  267. model.setValue("/root/send/req/dutinstnm", model.getValue("/root/send/req/dutplceinstnm"));
  268. model.refresh();
  269. // rszfValidationCheck("TRRPZ00102", "empllist", "emplnm,emplno,rregno,unitcd,dutplceinst", "," + ipt_emplno.value + ",,,", "", "emplno,emplnm,rregno,instcd,prfshipflag,jobrespcd,deptcd,jobposcd,preststatcd",
  270. // ipt_emplno, "SPRPB00101", "emplno","ipt_emplno");
  271. submit("TRRTS01002");
  272. model.refresh();
  273. ]]>
  274. </script>
  275. <script type="javascript" ev:event="onkeyup">
  276. <![CDATA[
  277. inputEnterKey("ipt_emplno", "xforms-value-changed");
  278. ]]>
  279. </script>
  280. </input>
  281. <button id="btn_emplsearch" class="icon_search" disabled="true" style="left:160; top:14; width:16px; height:16px; ">
  282. <caption/>
  283. <script type="javascript" ev:event="DOMActivate">
  284. <![CDATA[
  285. var recv_list = "emplno,emplnm,dutplceinstnm" ;
  286. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","Y");
  287. model.setValue("/root/send/req/dutinstnm", model.getValue("/root/send/req/dutplceinstnm"));
  288. // model.setValue("/root/send/instcd", cmb_instcd.value);
  289. // ipt_rregno.refresh();
  290. submit("TRRTS01002");
  291. btn_search.dispatch("DOMActivate");
  292. model.refresh();
  293. ]]>
  294. </script>
  295. </button>
  296. <input id="input1" ref="/root/send/req/dutplceinstnm" visibility="hidden" style="left:805px; top:70px; width:45px; height:19px; "/>
  297. <datagrid id="grd_humnatrscorlist" nodeset="/root/main/humnatrsreq/humnatrscorlist" visibility="visible" caption="년도^사번^일련번호^임상과^년차^성명^성별^변경전^변경전^변경후^변경후^변경후^교실(주임교수권한)확정^교육근무기관^평가결과^온라인입력여부^출력여부^CMT|년도^사번^일련번호^임상과^년차^성명^성별^차수^교육일정^(구) 차수^차수^교육일정^교실(주임교수권한)확정^교육근무기관^평가결과^온라인입력여부^출력여부^CMT" colsep="^" colwidth="55, 100, 81, 142, 69, 100, 56, 74, 200, 100, 74, 200, 123, 112, 62, 68, 73, 100" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:280px; width:1195; height:350; ">
  298. <col ref="yy" style="text-align:center; "/>
  299. <col ref="emplno" style="text-align:center; "/>
  300. <col ref="seqno" visibility="hidden" style="text-align:center; "/>
  301. <col ref="orddeptnm" style="text-align:center; "/>
  302. <col ref="anual" style="text-align:center; "/>
  303. <col ref="name" style="text-align:center; "/>
  304. <col ref="gndr" style="text-align:center; "/>
  305. <col disabled="true" ref="dgno" type="combo" style="text-align:center; ">
  306. <choices>
  307. <itemset>
  308. <label/>
  309. <value/>
  310. </itemset>
  311. </choices>
  312. </col>
  313. <col ref="educdd" style="text-align:center; "/>
  314. <col disabled="true" ref="oldchdgno" type="combo" visibility="hidden" style="text-align:center; ">
  315. <choices>
  316. <itemset>
  317. <label/>
  318. <value/>
  319. </itemset>
  320. </choices>
  321. </col>
  322. <col ref="chdgno" type="combo" style="text-align:center; ">
  323. <choices>
  324. <itemset>
  325. <label/>
  326. <value/>
  327. </itemset>
  328. </choices>
  329. </col>
  330. <col ref="cheducdd" style="text-align:center; "/>
  331. <col disabled="true" ref="cnfmyn" type="combo" visibility="hidden">
  332. <choices>
  333. <itemset nodeset="/root/init/cnfmynlist">
  334. <label ref="label"/>
  335. <value ref="value"/>
  336. </itemset>
  337. </choices>
  338. </col>
  339. <col ref="eduinstnm" style="text-align:center; "/>
  340. <col disabled="true" ref="valuerslt" type="combo">
  341. <choices>
  342. <itemset>
  343. <label/>
  344. <value/>
  345. </itemset>
  346. </choices>
  347. </col>
  348. <col ref="onlineinptyn" style="text-align:center; "/>
  349. <col ref="prntyn" style="text-align:center; "/>
  350. <col ref="cmt" visibility="hidden"/>
  351. <script type="javascript" ev:event="onaftersort">
  352. <![CDATA[
  353. grd_humnatrscorlist.gridToInstance();
  354. ]]>
  355. </script>
  356. <script type="javascript" ev:event="xforms-value-changed">
  357. <![CDATA[
  358. var cur_row =grd_humnatrscorlist.row;
  359. if (grd_humnatrscorlist.col == grd_humnatrscorlist.colRef("chdgno")){
  360. var yy = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("yy"));
  361. var chdgno = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("chdgno"));
  362. var emplno = grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("emplno"));
  363. if(yy =="" || chdgno =="" || emplno ==""){
  364. messageBox("차수는 ","I003");
  365. fCheckData(cur_row);
  366. return;
  367. }else if(chdgno == ipt_dgno.value){
  368. messageBox("교육 차수가 ","E006");
  369. fCheckData(cur_row);
  370. return;
  371. }
  372. model.setValue("/root/send/chdgnolist/yy",yy);
  373. model.setValue("/root/send/chdgnolist/emplno",emplno);
  374. model.setValue("/root/send/chdgnolist/chdgno",chdgno);
  375. submit("TRRTS01801");
  376. var chemplno = model.getValue("/root/main/list/chdgnolist/chemplno");
  377. if(chemplno != ""){
  378. messageBox("교육 차수가 ","E006");
  379. return;
  380. }
  381. if(model.getValue("/root/main/list/chdgnolist/cheducdd").length > 0)
  382. {
  383. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cheducdd")) = model.getValue("/root/main/list/chdgnolist/cheducdd");
  384. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = model.getValue("/root/main/list/chdgnolist/eduinstnm");
  385. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = model.getValue("/root/main/list/chdgnolist/valuerslt");
  386. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = model.getValue("/root/main/list/chdgnolist/cnfmyn");
  387. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("ircnfmyn")) = model.getValue("/root/main/list/chdgnolist/cnfmyn");
  388. }
  389. model.setValue("/root/send/dgnoreq/yy", yy);
  390. model.setValue("/root/send/dgnoreq/dgno", chdgno);
  391. submit("TRRTS01804");
  392. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("psnnum")) = model.getValue("/root/main/dgnopsnnumlist/psnnum");
  393. grd_humnatrscorlist.refresh();
  394. }
  395. ]]>
  396. </script>
  397. </datagrid>
  398. </group>
  399. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  400. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:2px; width:56px; height:22px; ">
  401. <caption>저장</caption>
  402. <script type="javascript" ev:event="DOMActivate">
  403. <![CDATA[
  404. var updtdata = getGridUpdateData(grd_humnatrscorlist);
  405. if (updtdata == "" ) {
  406. messageBox("변경된 데이터가","I004");
  407. return;
  408. }
  409. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  410. if ( retMes != 6) {
  411. return;
  412. }
  413. var cmt= model.getValue("/root/main/item/cmt");
  414. if(cmt == ""){
  415. messageBox("변경사유는 ","I003");
  416. return;
  417. }
  418. for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
  419. var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
  420. var ifcnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("ifcnfmyn"));
  421. var chdgno = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("chdgno"));
  422. /*if(chdgno =='0' && grd_humnatrscorlist.rows != 1){
  423. messageBox("차기년도는 1건만","C001");
  424. return;
  425. }*/
  426. if(cnfmyn == 'Y'){
  427. messageBox("교육변경일정이 교실(주임교수권한)에 의해 확정되어 저장 ","E001");
  428. return;
  429. }
  430. if(ifcnfmyn =='Y'){
  431. messageBox("교육변경일정이 수련부에 의해 확정되어 저장 ","E001");
  432. return;
  433. }
  434. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cmt")) = cmt;
  435. }
  436. model.setValue("/root/send/chdgnolist/yy", grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.fixedRows, grd_humnatrscorlist.colRef("yy")));
  437. model.setValue("/root/send/chdgnolist/chdgno", grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.fixedRows, grd_humnatrscorlist.colRef("chdgno")));
  438. model.removeNodeset("/root/main/capayn/capayn/capayn");
  439. submit("TRRTS01806");
  440. var capayn = model.getValue("/root/main/capayn/capayn/capayn");
  441. var chdgno = model.getValue("root/main/humnatrsreq/humnatrscorlist/chdgno");
  442. var deptcd = model.getValue("root/main/humnatrsreq/humnatrscorlist/deptcd");
  443. var anual = model.getValue("root/main/humnatrsreq/humnatrscorlist/anual");
  444. if (chdgno == "0"){
  445. // 2009-04-14일 김영진 선생님의 요청으로 한시적으로 로직 변경, 차후 원복 요함.
  446. //if ((deptcd == "2230000000" && anual == "3" && chdgno == "0") || anual == "4" && chdgno == "0"){
  447. //messageBox("마지막 연차이므로 차기년월로 변경할 수 ","I004");
  448. //의료원 실무자, 수련교육 관리자일때 변경가능
  449. if (authflag1 == "Y" || authflag2 == "Y") {
  450. misfSave("TXRTS01802");
  451. if (model.getValue(gvErrorMsgPath + "/type") != "error") misfMsterDetailRetrieve();
  452. } else {
  453. messageBox("차기년월로 변경할 ","I004");
  454. }
  455. } else {
  456. if (capayn == "Y") {
  457. misfSave("TXRTS01802");
  458. if (model.getValue(gvErrorMsgPath + "/type") != "error") misfMsterDetailRetrieve();
  459. } else {
  460. messageBox("해당 차수의 정원을 ","E003");
  461. }
  462. }
  463. btn_search.dispatch("DOMActivate");
  464. model.refresh();
  465. ]]>
  466. </script>
  467. </button>
  468. <button id="button2" class="btn4_letter5" style="left:1037px; top:2px; width:92px; height:22px; ">
  469. <caption>신청서출력</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. model.setValue("/root/send/req/deptcd","");
  473. model.setValue("/root/send/req/dgno","");
  474. model.setValue("/root/send/req/valuerslt","");
  475. model.removeNodeset("/root/send/reportlist/humnatrsreq");
  476. model.makeNode("/root/send/reportlist/humnatrsreq");
  477. model.copyNode("/root/send/reportlist/humnatrsreq", "/root/main/humnatrsreq");
  478. exeReportPreview("RPRTS01901", "XMLSTR", "/root/main/send");
  479. grd_humnatrscorlist.valueMatrix(grd_humnatrscorlist.row, grd_humnatrscorlist.colRef("prntyn")) = 'Y';
  480. if (authflag==""){ // 그외... (전공의)
  481. for(var i = grd_humnatrscorlist.fixedRows ; i < grd_humnatrscorlist.rows ; i++ )
  482. {
  483. grd_humnatrscorlist.rowStatus(i) = "2";
  484. }
  485. submit("TXRTS01803");
  486. }
  487. ]]>
  488. </script>
  489. </button>
  490. </group>
  491. </xhtml:body>
  492. </xhtml:html>