SMRTC00300_레지던트교육코드등록.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCOracle/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>레지던트 교육코드 등록</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <educcdrgst>
  12. <educcdrgstlist/>
  13. </educcdrgst>
  14. <list>
  15. <educcdrgst>
  16. <educcdrgstlist/>
  17. </educcdrgst>
  18. <educcdrgsttmp>
  19. <educcdrgstlist/>
  20. </educcdrgsttmp>
  21. </list>
  22. <tmpeducdlist>
  23. <educcd/>
  24. </tmpeducdlist>
  25. </main>
  26. <send>
  27. <yy/>
  28. <instcd/>
  29. <rownum/>
  30. <deptcd/>
  31. <anual/>
  32. <educcd/>
  33. <checkflag/>
  34. <req>
  35. <instcd/>
  36. <anual/>
  37. <deptcd/>
  38. </req>
  39. </send>
  40. <init>
  41. <deptcond/>
  42. </init>
  43. <temp>
  44. <checkflag/>
  45. </temp>
  46. </root>
  47. </instance>
  48. <submission id="TRRTC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/educcdrgst/educcdrgstlist"/>
  49. <submission id="TXRTC00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/educcdrgst/educcdrgstlist" resultref="/root/temp"/>
  50. <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
  51. <submission id="TXRTC00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  52. <submission id="TRRTC00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  53. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqint" resultref="/root/main/tisorddeptcdlist"/>
  54. <submission id="TRRTC00304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/tmpeducdlist"/>
  55. </model>
  56. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../mis/tistrngeducbaseinfomngtweb/js/RTC001.js"/>
  63. <script type="javascript" ev:event="xforms-ready">
  64. <![CDATA[
  65. //사용자 권한
  66. fCheckAuth();
  67. submit("TRRTS00602");
  68. misfGridInit(grd_educcdrgstlist);
  69. var today = getCurrentDate();
  70. var cur_mm = parseInt(today.substring(4, 6));
  71. var cur_yy = parseInt(today.substring(0, 4));
  72. if (cur_mm >= 11)
  73. cur_yy++;
  74. model.setValue("/root/send/yy", cur_yy);
  75. ipt_yy.refresh();
  76. misfComboComCdListMulti("R0305", "cmb_instcd");
  77. addComboItem( "cmb_instcd", "전체", "", "above");
  78. var sPosdeptcd = getUserInfo("posdeptcd");
  79. // 내과 세부분과이면 내과로 세팅
  80. if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  81. {
  82. model.setValue("/root/send/deptcd", "2010000000"); // 진료과 설정 ;
  83. }
  84. else
  85. {
  86. model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  87. }
  88. cmb_deptcd_search.refresh();
  89. misfMsterDetailSet(grd_educcdrgstlist, null, "TRRTC00301", "Y");
  90. model.refresh();
  91. ]]>
  92. </script>
  93. <script type="javascript">
  94. <![CDATA[
  95. //========================================================================================
  96. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  97. //========================================================================================
  98. function fCheckAuth() {
  99. btn_search.disabled =!checkAuth("R") ;
  100. btn_save.disabled = !checkAuth("X") ;
  101. }
  102. function fDisabledSetting(check){
  103. ipt_educnm.disabled = check;
  104. tar_educgoal.disabled = check;
  105. tar_therycnts.disabled = check;
  106. tar_praccnts.disabled = check;
  107. }
  108. function fDeptcdCheck()
  109. {
  110. var sNodeLength = instance1.selectSingleNode("/root/main/list/educcdrgst/educcdrgstlist").length;
  111. var sEduccd = model.getValue("/root/main/educcdrgst/educcdrgstlist/educcd");
  112. for(var i=1 ; i <= sNodeLength ; i++)
  113. {
  114. var node = instance1.selectSingleNode("/root/main/list/educcdrgst/educcdrgstlist[" + i + "]/educcd");
  115. if(node.text == sEduccd)
  116. {
  117. messageBox("코드값이 ","E006");
  118. return;
  119. }
  120. }
  121. }
  122. function fCreateDeptcd()
  123. {
  124. var node = instance1.selectSingleNode("/root/main/tisorddeptcdlist[deptcd=" + model.getValue("/root/main/educcdrgst/educcdrgstlist/deptcd") + "]/tisdeptcd");
  125. model.setValue("/root/send/req/deptcd", node.text);
  126. var sInstcd = model.getValue("/root/send/instcd").substr(2,1);
  127. model.setValue("/root/send/req/instcd", sInstcd);
  128. model.setValue("/root/send/req/anual", model.getValue("/root/main/educcdrgst/educcdrgstlist/anual"));
  129. submit("TRRTC00304");
  130. var sEduccd = node.text + sInstcd + model.getValue("/root/main/educcdrgst/educcdrgstlist/anual") + model.getValue("/root/main/tmpeducdlist/educcd");
  131. model.setValue("/root/main/educcdrgst/educcdrgstlist/educcd", sEduccd);
  132. model.refresh();
  133. }
  134. // 새로운 데이터를 입력시 중복데이터를 체크한다
  135. function fCheckData()
  136. {
  137. model.setValue("/root/send/deptcd", model.getValue("/root/main/educcdrgst/educcdrgstlist/deptcd"));
  138. model.setValue("/root/send/anual", model.getValue("/root/main/educcdrgst/educcdrgstlist/anual"));
  139. model.setValue("/root/send/educcd", model.getValue("/root/main/educcdrgst/educcdrgstlist/educcd"));
  140. submit("TRRTC00303");
  141. }
  142. function fDefaultDeptSetting(control)
  143. {
  144. var sPosdeptcd = getUserInfo("posdeptcd");
  145. var sDeptcd = control.value;
  146. // 주임교수이면서 핵의학과 교수일때
  147. if(sPosdeptcd == "2180000000" || sPosdeptcd == "2160000000")
  148. {
  149. if(sDeptcd == "2180000000" || sDeptcd == "2160000000")
  150. {}
  151. else
  152. {
  153. messageBox(control.label+ "을 선택", "E001");
  154. control.value = sPosdeptcd;
  155. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  156. }
  157. }
  158. // 주임교수이면서 치과 교수일때
  159. else if(sPosdeptcd == "2240000000")
  160. {
  161. if(sDeptcd == "2240000000" || sDeptcd == "2240500000" || sDeptcd == "2240200000" || sDeptcd == "2240400000")
  162. {}
  163. else
  164. {
  165. messageBox(control.label+ "을 선택", "E001");
  166. control.value = sPosdeptcd;
  167. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  168. }
  169. }
  170. else if(sPosdeptcd == "2010300000" || sPosdeptcd == "2010400000" || sPosdeptcd == "2010500000" || sPosdeptcd == "2010600000" || sPosdeptcd == "2010700000" || sPosdeptcd == "2010800000" || sPosdeptcd == "2010900000" || sPosdeptcd == "2011000000" || sPosdeptcd == "2011100000")
  171. {
  172. if(sDeptcd != "2010000000")
  173. {
  174. messageBox(control.label+ "을 선택", "E001");
  175. sPosdeptcd = "2010000000";
  176. control.value = sPosdeptcd;
  177. // model.setValue("/root/send/deptcd", sPosdeptcd); // 진료과 설정
  178. }
  179. }
  180. else
  181. {
  182. if(checkAuth("P"))
  183. {}
  184. else
  185. {
  186. if(sPosdeptcd != sDeptcd)
  187. {
  188. messageBox(control.label+ "을 선택", "E001");
  189. control.value = sPosdeptcd;
  190. }
  191. }
  192. }
  193. model.refresh();
  194. }
  195. ]]>
  196. </script>
  197. </xhtml:head>
  198. <xhtml:body style="margin-left:8; margin-right:8; ">
  199. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  200. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">레지던트 교육코드 등록</caption>
  201. </group>
  202. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  203. <line id="line6" class="line_3" style="x1:737; y1:733px; x2:1183; y2:733px; "/>
  204. <line id="line5" class="line_2" style="x1:737; y1:478; x2:1183; y2:478; "/>
  205. <line id="line4" class="line_2" style="x1:737; y1:228; x2:1183; y2:228; "/>
  206. <line id="line3" class="line_2" style="x1:737; y1:120px; x2:1183; y2:120px; "/>
  207. <line id="line2" class="line_2" style="x1:737; y1:96px; x2:1183; y2:96px; "/>
  208. <line id="line1" class="line_1" style="x1:737; y1:69px; x2:1183; y2:69px; "/>
  209. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  210. <caption id="cap_yy" class="search_name" style="left:15px; top:19px; width:86px; height:17px; ">년 도 :</caption>
  211. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  212. <caption>조회</caption>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. // if(!isRequiredControls("cmb_instcd"))return;
  216. if(!isRequiredControls("cmb_deptcd_search"))return;
  217. misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
  218. var updtdata = getGridUpdateData(grd_educcdrgsttmplist);
  219. if ( updtdata != "")
  220. {
  221. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  222. if (ret == 7) { // not OK
  223. return;
  224. }
  225. }
  226. model.resetInstanceNode("/root/main/educcdrgst/educcdrgstlist");
  227. model.resetInstanceNode("/root/main/list/educcdrgsttmp/educcdrgstlist");
  228. grd_educcdrgsttmplist.clearStatus();
  229. misfMsterDetailRetrieve();
  230. // grd_educcdrgsttmplist.gridToInstance();
  231. model.refresh();
  232. ]]>
  233. </script>
  234. </button>
  235. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  236. <line id="line207" class="line_1" style="x1:0; y1:69; x2:732; y2:69px; "/>
  237. <datagrid id="grd_educcdrgstlist" nodeset="/root/main/list/educcdrgst/educcdrgstlist" caption="기관명^진료과코드^진료과^년차^교육코드^과목명^교육목표^이론^술기^년도(히든)^기관코드(히든)" colsep="^" colwidth="100, 100, 100, 50, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:74px; width:732px; height:660px; ">
  238. <col ref="instnm"/>
  239. <col ref="deptcd" visibility="hidden"/>
  240. <col ref="depthngnm"/>
  241. <col ref="anual" style="text-align:center; "/>
  242. <col ref="educcd"/>
  243. <col ref="educnm" visibility="visible"/>
  244. <col ref="educgoal" visibility="visible"/>
  245. <col ref="therycnts"/>
  246. <col ref="praccnts"/>
  247. <col ref="yy" visibility="hidden"/>
  248. <col ref="instcd" visibility="hidden"/>
  249. <script type="javascript" ev:event="onrowchanged">
  250. <![CDATA[
  251. misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
  252. grd_educcdrgsttmplist.refresh();
  253. var updtdata = getGridUpdateData(grd_educcdrgsttmplist);
  254. if ( updtdata != "")
  255. {
  256. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  257. if (ret == 7) { // not OK
  258. grd_educcdrgstlist.row= model.getValue("/root/send/rownum");
  259. model.resetInstanceNode("/root/main/educcdrgst/educcdrgstlist");
  260. model.resetInstanceNode("/root/main/list/educcdrgsttmp/educcdrgstlist");
  261. return;
  262. }
  263. }
  264. ipt_anual.disabled = true;
  265. fDisabledSetting(false);
  266. var cur_row = grd_educcdrgstlist.row;
  267. model.setValue("/root/send/rownum", cur_row);
  268. // model.copyNode("/root/main/educcdrgst/educcdrgstlist", "/root/main/list/educcdrgst/educcdrgstlist["+ cur_row + "]");
  269. model.copyNode("/root/main/list/educcdrgsttmp/educcdrgstlist", "/root/main/list/educcdrgst/educcdrgstlist["+ cur_row + "]");
  270. model.copyNode("/root/main/educcdrgst/educcdrgstlist", "/root/main/list/educcdrgsttmp/educcdrgstlist");
  271. grd_educcdrgsttmplist.nodeset = "/root/main/list/educcdrgsttmp/educcdrgstlist";
  272. grd_educcdrgsttmplist.row = 1;
  273. // alert(model.getValue("/root/main/list/educcdrgsttmp/educcdrgstlist/educnm"));
  274. model.refresh();
  275. ]]>
  276. </script>
  277. </datagrid>
  278. <input id="ipt_yy" ref="/root/send/yy" class="input_s_essential" navindex="1" format="yyyy" appearance="input" style="left:100px; top:18px; width:100px; height:19px; "/>
  279. <button id="btn_copy" class="btn2_letter6" style="left:1009px; top:18px; width:86px; height:19px; ">
  280. <caption>전년도 copy</caption>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. if(messageBox("기존에 있는 데이터는 삭제 됩니다. ", "Q003") != 6)
  284. {
  285. return;
  286. }
  287. else
  288. {
  289. model.setValue("/root/send/checkflag","D");
  290. submit("TXRTC00302");
  291. model.setValue("/root/send/checkflag","I");
  292. submit("TXRTC00302");
  293. btn_search.dispatch("DOMActivate");
  294. model.refresh();
  295. }
  296. ]]>
  297. </script>
  298. </button>
  299. <caption id="cap_instcd" class="search_name" style="left:601px; top:19; width:99px; height:17px; ">기 관 :</caption>
  300. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:685px; top:18; width:100px; height:19px; ">
  301. <choices>
  302. <itemset>
  303. <label/>
  304. <value/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <caption id="cap_depthngnm" class="cell_1" style="left:737px; top:74px; width:100; height:23px; vertical-align:middle; ">진료과</caption>
  309. <caption id="cap_anual" class="cell_1" style="left:962px; top:74px; width:100px; height:23px; vertical-align:middle; ">년차</caption>
  310. <input id="ipt_anual" ref="/root/main/educcdrgst/educcdrgstlist/anual" disabled="true" navindex="4" format="9" style="left:1064px; top:76px; width:120px; height:19px; "/>
  311. <caption id="cap_educnm" class="cell_1" style="left:962px; top:98px; width:100px; height:23px; vertical-align:middle; ">과목명</caption>
  312. <caption id="cap_educcd" class="cell_1" style="left:737px; top:98px; width:100px; height:23px; vertical-align:middle; ">교육코드</caption>
  313. <caption id="cap_educgoal" class="cell_1" style="left:737px; top:122px; width:100px; height:107; vertical-align:middle; ">교육목표</caption>
  314. <caption id="cap_therycnts" class="cell_1" style="left:737px; top:230; width:100px; height:249; vertical-align:middle; ">이론</caption>
  315. <caption id="cap_praccnts" class="cell_1" style="left:737px; top:480; width:100px; height:254; vertical-align:middle; ">술기</caption>
  316. <textarea id="tar_therycnts" ref="/root/main/educcdrgst/educcdrgstlist/therycnts" disabled="true" navindex="8" style="left:839px; top:232; width:345px; height:245; padding-top:5; "/>
  317. <textarea id="tar_praccnts" ref="/root/main/educcdrgst/educcdrgstlist/praccnts" disabled="true" navindex="9" style="left:839px; top:482; width:345px; height:250; padding-top:5; "/>
  318. <input id="ipt_deptcd" ref="/root/main/educcdrgst/educcdrgstlist/deptcd" navindex="10" visibility="hidden" style="left:740px; top:50px; width:100px; height:19px; "/>
  319. <input id="ipt_educnm" ref="/root/main/educcdrgst/educcdrgstlist/educnm" disabled="true" navindex="6" style="left:1064px; top:100px; width:120; height:19px; "/>
  320. <textarea id="tar_educgoal" ref="/root/main/educcdrgst/educcdrgstlist/educgoal" disabled="true" navindex="7" style="left:839; top:124; width:345; height:100px; padding-top:5; "/>
  321. <input id="ipt_educcd" ref="/root/main/educcdrgst/educcdrgstlist/educcd" disabled="true" navindex="5" maxlength="10" style="left:839; top:100px; width:120; height:19; "/>
  322. <button id="button1" class="btn2_letter2" style="left:1095px; top:49px; width:42px; height:19px; ">
  323. <caption>추가</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. if(!isRequiredControls("ipt_yy"))return;
  327. if(!isRequiredControls("cmb_instcd"))return;
  328. misfGridIUD(grd_educcdrgstlist, "A");
  329. cmb_deptcd.value = cmb_deptcd_search.value;
  330. grd_educcdrgstlist.dispatch("onrowchanged");
  331. cmb_deptcd.disabled = false
  332. ipt_anual.disabled = false;
  333. ipt_educcd.disabled = false;
  334. fDisabledSetting(false);
  335. ]]>
  336. </script>
  337. </button>
  338. <datagrid id="grd_educcdrgsttmplist" nodeset="/root/main/list/educcdrgsttmp/educcdrgstlist" visibility="hidden" caption="진료과코드^진료과^년차^교육코드^과목명^교육목표^이론^술기^년도(히든)^기관코드(히든)" colsep="^" colwidth="100, 100, 50, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:330px; width:730px; height:245px; ">
  339. <col ref="deptcd" visibility="visible"/>
  340. <col ref="depthngnm"/>
  341. <col ref="anual" style="text-align:center; "/>
  342. <col ref="educcd"/>
  343. <col ref="educnm"/>
  344. <col ref="educgoal"/>
  345. <col ref="therycnts"/>
  346. <col ref="praccnts"/>
  347. <col ref="yy" visibility="hidden"/>
  348. <col ref="instcd" visibility="hidden"/>
  349. </datagrid>
  350. <select1 id="cmb_deptcd" ref="/root/main/educcdrgst/educcdrgstlist/deptcd" disabled="true" navindex="3" appearance="minimal" style="left:840px; top:75px; width:120px; height:19px; ">
  351. <choices>
  352. <itemset nodeset="/root/main/tisorddeptcdlist">
  353. <label ref="deptnm"/>
  354. <value ref="deptcd"/>
  355. </itemset>
  356. </choices>
  357. <script type="javascript" ev:event="xforms-value-changed">
  358. <![CDATA[
  359. fDefaultDeptSetting(cmb_deptcd);
  360. ]]>
  361. </script>
  362. </select1>
  363. <button id="btn_createeduccd" class="btn2_letter6" style="left:1005px; top:49px; width:86px; height:19px; ">
  364. <caption>교육코드생성</caption>
  365. <script type="javascript" ev:event="DOMActivate">
  366. <![CDATA[
  367. if(!isRequiredControls("cmb_instcd"))return;
  368. if(!isRequiredControls("cmb_deptcd"))return;
  369. if(!isRequiredControls("ipt_anual"))return;
  370. fCreateDeptcd();
  371. ]]>
  372. </script>
  373. </button>
  374. <caption id="caption1" class="search_name" style="left:300; top:19px; width:141px; height:17px; ">진 료 과 :</caption>
  375. <select1 id="cmb_deptcd_search" ref="/root/send/deptcd" appearance="minimal" style="left:405px; top:18px; width:120px; height:19px; ">
  376. <choices>
  377. <itemset nodeset="/root/main/tisorddeptcdlist">
  378. <label ref="deptnm"/>
  379. <value ref="deptcd"/>
  380. </itemset>
  381. </choices>
  382. <script type="javascript" ev:event="xforms-value-changed">
  383. <![CDATA[
  384. fDefaultDeptSetting(cmb_deptcd_search);
  385. ]]>
  386. </script>
  387. </select1>
  388. <input id="input1" ref="/root/send/req/instcd" visibility="hidden" style="left:845px; top:50px; width:50px; height:19px; "/>
  389. <input id="input2" ref="/root/send/req/deptcd" visibility="hidden" style="left:900px; top:50px; width:30px; height:19px; "/>
  390. <input id="input3" ref="/root/send/req/anual" visibility="hidden" style="left:935px; top:50px; width:30px; height:19px; "/>
  391. <input id="input4" ref="/root/main/tmpeducdlist/educcd" visibility="hidden" style="left:970px; top:50px; width:30px; height:19px; "/>
  392. <button id="button2" class="btn2_letter2" visibility="hidden" style="left:1140px; top:49px; width:42px; height:19px; ">
  393. <caption>삭제</caption>
  394. <script type="javascript" ev:event="DOMActivate">
  395. <![CDATA[
  396. misfGridIUD(grd_educcdrgstlist, "D");
  397. ]]>
  398. </script>
  399. </button>
  400. </group>
  401. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  402. <button id="button8" class="btn3_letter4" visibility="hidden" style="left:0px; top:3px; width:80px; height:22px; ">
  403. <caption>화면이동</caption>
  404. </button>
  405. <button id="btn_save" class="btn4_letter2" style="left:1124px; top:3px; width:56px; height:22px; ">
  406. <caption>저장</caption>
  407. <script type="javascript" ev:event="DOMActivate">
  408. <![CDATA[
  409. /* 새로운 데이터를 입력시 */
  410. if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 1)
  411. {
  412. // 교육코드 자동생성
  413. //btn_createeduccd.dispatch("DOMActivate");
  414. // 년차 확인
  415. var sAnual = model.getValue("/root/main/educcdrgst/educcdrgstlist/anual");
  416. if(parseInt(sAnual) > 4 || parseInt(sAnual) < 1){
  417. messageBox("년차를 ","I007");
  418. return;
  419. }
  420. fDeptcdCheck();
  421. if(!isRequiredControls("ipt_yy"))return;
  422. if(!isRequiredControls("cmb_instcd"))return;
  423. if(!isRequiredControls("cmb_deptcd"))return;
  424. if(!isRequiredControls("ipt_anual"))return;
  425. if(!isRequiredControls("ipt_educcd"))return;
  426. model.copyNode("/root/main/list/educcdrgsttmp/educcdrgstlist", "/root/main/educcdrgst/educcdrgstlist");
  427. model.copyNode("/root/main/list/educcdrgst/educcdrgstlist[" + model.getValue("/root/send/rownum") + "]", "/root/main/list/educcdrgsttmp/educcdrgstlist");
  428. grd_educcdrgstlist.refresh();
  429. // 새로운 데이터를 입력시 중복데이터를 체크한다
  430. fCheckData();
  431. var sCheckFlag = model.getValue("/root/temp/checkflag");
  432. if(sCheckFlag == "Y")
  433. {
  434. messageBox("이미 입력된 코드입니다. 새로운 코드를 ","C001");
  435. return;
  436. }
  437. var updtdata = getGridUpdateData(grd_educcdrgstlist);
  438. if (updtdata == "")
  439. {
  440. messageBox("변경된 데이터가","I004");
  441. return;
  442. }
  443. misfSave("TXRTC00301");
  444. grd_educcdrgsttmplist.clearStatus();
  445. }
  446. /* 조회된 데이터를 수정 할때 */
  447. else if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 0)
  448. {
  449. if(!isRequiredControls("ipt_yy"))return;
  450. if(!isRequiredControls("cmb_instcd"))return;
  451. misfGridRowStatusChange(grd_educcdrgsttmplist, "/root/main/list/educcdrgsttmp" , "/root/main/educcdrgst");
  452. misfGridRowStatusChange(grd_educcdrgstlist, "/root/main/list/educcdrgst" , "/root/main/list/educcdrgsttmp");
  453. grd_educcdrgstlist.refresh();
  454. var updtdata = getGridUpdateData(grd_educcdrgstlist);
  455. if (updtdata == "")
  456. {
  457. messageBox("변경된 데이터가","I004");
  458. return;
  459. }
  460. misfSave("TXRTC00301");
  461. grd_educcdrgsttmplist.clearStatus();
  462. }
  463. else if(grd_educcdrgstlist.rowStatus(grd_educcdrgstlist.row) == 4){
  464. misfSave("TXRTC00301");
  465. grd_educcdrgsttmplist.clearStatus();
  466. }
  467. btn_search.dispatch("DOMActivate");
  468. model.refresh();
  469. ]]>
  470. </script>
  471. </button>
  472. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  473. </group>
  474. </xhtml:body>
  475. </xhtml:html>