SMRTH00600_제증명신청.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  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. <crtfctkind>
  11. <crtfctkindlist/>
  12. <crtfctkindlist_1/>
  13. </crtfctkind>
  14. <crtfctkindtmp>
  15. <crtfctkindlist>
  16. <crtfctkind/>
  17. <issinstcd/>
  18. <frmrmert/>
  19. <trngflag/>
  20. <issresn/>
  21. <isscnt/>
  22. <amt/>
  23. <acptmthd>1</acptmthd>
  24. <zipcd1/>
  25. <zipcd2/>
  26. <addr/>
  27. <emailid/>
  28. <emailaddr/>
  29. <etcemailaddr/>
  30. <telno/>
  31. <emplno/>
  32. </crtfctkindlist>
  33. </crtfctkindtmp>
  34. <tmplist/>
  35. <statuslist>
  36. <cheflag/>
  37. </statuslist>
  38. </main>
  39. <send>
  40. <search>
  41. <emplno/>
  42. <num/>
  43. <flag/>
  44. </search>
  45. <save>
  46. <crtfctkind_mst/>
  47. </save>
  48. <crtfctkindlist/>
  49. <req>
  50. <emplno/>
  51. </req>
  52. </send>
  53. <init>
  54. <appflag>
  55. <label>신청</label>
  56. <value>1</value>
  57. <label>확인</label>
  58. <value>2</value>
  59. <label>출력</label>
  60. <value>3</value>
  61. </appflag>
  62. <deptcond/>
  63. </init>
  64. <hidden>
  65. <crtfctkind_search>
  66. <cdnm/>
  67. <cdid/>
  68. </crtfctkind_search>
  69. </hidden>
  70. <temp>
  71. </temp>
  72. </root>
  73. </instance>
  74. <submission id="TRRTH00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/crtfctkind/crtfctkindlist"/>
  75. <submission id="TRRTH00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/hidden"/>
  76. <submission id="TRRTH00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/tmplist"/>
  77. <submission id="TXRTH00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/crtfctkindlist" resultref="/root/temp"/>
  78. <submission id="TRRTC00302" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/deptcond"/>
  79. <submission id="TRRTH00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/statuslist"/>
  80. <submission id="TRRTH00611" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/crtfctkind/crtfctkindlist_1"/>
  81. </model>
  82. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  87. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  88. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  89. <script type="javascript" ev:event="xforms-ready">
  90. <![CDATA[
  91. // fCheckAuth();
  92. misfGridInit(grd_crtfctkindlist);
  93. misfMsterDetailSet(grd_crtfctkindlist, null, "TRRTH00601", "Y");
  94. // submit("TRRTC00302");
  95. model.setValue("/root/send/search/flag", "S");
  96. submit("TRRTH00604");
  97. model.setValue("/root/send/search/flag", "");
  98. var node = instance1.selectSingleNode("/root/hidden/crtfctkind_search").length;
  99. for(var i=1 ; i<=node ; i++)
  100. {
  101. model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdnm", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdnm"));
  102. model.makeValue("/root/main/crtfctkindlist[" + i + "]/cdid", model.getValue("/root/hidden/crtfctkind_search[" + i + "]/cdid"));
  103. }
  104. // misfComboComCdListMulti 보다 먼저 사용해야함 아니면 노드가 사라짐
  105. misfGridComboComCdList("Z0007",grd_crtfctkindlist,"dutplceinst");
  106. misfGridComboComCdList("Z0007",grd_crtfctkindlist,"orginstcd");
  107. misfGridComboComCdList("R0305",grd_crtfctkindlist,"issinstcd");
  108. misfGridComboComCdList("R0234",grd_crtfctkindlist,"frmrmert");
  109. misfGridComboComCdList("R0062",grd_crtfctkindlist,"trngflag");
  110. misfGridComboComCdList("R0062",grd_crtfctkindlist,"jobposnm");
  111. rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","전체","", "above" );
  112. rszfComboComCdListMultiS("grd_crtfctkindlist.issinstcd","가톨릭중앙의료원","001", "above" );
  113. misfComboComCdListMulti("R0131,R0305,R0062,R0234", "cmb_emailaddr,cmb_issinstcd,cmb_trngflag,cmb_frmrmert");
  114. addComboItem( "cmb_issinstcd", "가톨릭중앙의료원", "001", "above");
  115. // 로그인 한 사람의 근무기관을 발급기관으로 기초 세팅하기로 함..
  116. //var dutplceinstcd = getUserInfo("dutplceinstcd");
  117. //model.setValue("/root/send/search/issinstcd", dutplceinstcd);
  118. var userid = getUserInfo("userid");
  119. model.setValue("/root/send/search/emplno", userid);
  120. model.setValue("/root/send/req/emplno", model.getValue("/root/send/search/emplno"));
  121. submit("TRRTH00611");
  122. rdo_acptmthd.select(0);
  123. btn_search.dispatch("DOMActivate");
  124. model.refresh();
  125. ]]>
  126. </script>
  127. <script type="javascript">
  128. <![CDATA[
  129. //========================================================================================
  130. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  131. //========================================================================================
  132. function fCheckAuth() {
  133. btn_search.disabled =!checkAuth("R");
  134. btn_save.disabled = !checkAuth("X");
  135. }
  136. // 수령 방법의 값이 바뀔때 주소컨트롤의 disabled을 세팅
  137. function fAddrDisabled(check){
  138. ipt_zipcd1.disabled = check;
  139. ipt_zipcd2.disabled = check;
  140. ipt_addr.disabled = check;
  141. btn_domizipcd.disabled = check;
  142. }
  143. // 사용자에 맞게 증명서를 선택한지 체크
  144. function fCheckCrtfctKind(){
  145. var sCrtfKind = cmb_crtfctkind.value;
  146. model.setValue("/root/send/req/emplno", model.getValue("/root/main/crtfctkindtmp/crtfctkindlist/emplno"));
  147. // 수료(예정)증명서
  148. if(sCrtfKind == '01'){
  149. model.setValue("/root/send/search/num", "1");
  150. submit("TRRTH00606");
  151. if(ipt_cheflag.value == 'Y')
  152. return false;
  153. else
  154. {
  155. model.setValue("/root/send/search/num", "7");
  156. submit("TRRTH00606");
  157. if(ipt_cheflag.value == 'Y')
  158. return false;
  159. else
  160. return true;
  161. }
  162. }
  163. // 인턴 수료 증명서, 레지던트 수료 증명서,
  164. // 인턴 수료 예정 증명서, 레지던트 수료 예정 증명서
  165. else if((sCrtfKind == '17') ||
  166. (sCrtfKind == '18') ||
  167. (sCrtfKind == '19') ||
  168. (sCrtfKind == '20')){
  169. model.setValue("/root/send/search/num", "1_2");
  170. submit("TRRTH00606");
  171. if(ipt_cheflag.value == 'Y')
  172. return false;
  173. else
  174. return true;
  175. }
  176. // 수련중단 증면서, 수련중단 증명서(영문)
  177. else if(sCrtfKind == '02' || sCrtfKind == '12'){
  178. model.setValue("/root/send/search/num", "2_1");
  179. submit("TRRTH00606");
  180. if(ipt_cheflag.value == 'Y')
  181. return false;
  182. else
  183. {
  184. model.setValue("/root/send/search/num", "2_2");
  185. submit("TRRTH00606");
  186. if(ipt_cheflag.value == 'Y')
  187. return false;
  188. else
  189. return true;
  190. }
  191. }
  192. // 수련과정이수(예정)증명서
  193. else if(sCrtfKind == '03'){
  194. model.setValue("/root/send/search/num", "3");
  195. submit("TRRTH00606");
  196. if(ipt_cheflag.value == 'Y')
  197. return false;
  198. else
  199. {
  200. model.setValue("/root/send/search/num", "5_1");
  201. submit("TRRTH00606");
  202. if(ipt_cheflag.value == 'Y')
  203. return false;
  204. else
  205. return true;
  206. }
  207. }
  208. // 인턴 근무 평가표
  209. else if(sCrtfKind == '04' || sCrtfKind == '13'){
  210. model.setValue("/root/send/search/num", "4_1");
  211. submit("TRRTH00606");
  212. if(ipt_cheflag.value == 'Y')
  213. return false;
  214. else
  215. {
  216. model.setValue("/root/send/search/num", "4_2");
  217. submit("TRRTH00606");
  218. if(ipt_cheflag.value == 'Y')
  219. return false;
  220. else
  221. return true;
  222. }
  223. }
  224. // 레지던트 근무평가표
  225. else if(sCrtfKind == '05' || sCrtfKind == '14'){
  226. model.setValue("/root/send/search/num", "5_1");
  227. submit("TRRTH00606");
  228. if(ipt_cheflag.value == 'Y')
  229. return false;
  230. else
  231. {
  232. model.setValue("/root/send/search/num", "5_2");
  233. submit("TRRTH00606");
  234. if(ipt_cheflag.value == 'Y')
  235. return false;
  236. else
  237. return true;
  238. }
  239. }
  240. // 재직증명서
  241. else if(sCrtfKind == '06' || sCrtfKind == '15'){
  242. model.setValue("/root/send/search/num", "6");
  243. submit("TRRTH00606");
  244. if(ipt_cheflag.value == 'Y')
  245. return false;
  246. else
  247. return true;
  248. }
  249. // 수료증명서(영문)-인턴
  250. else if(sCrtfKind == '07'){
  251. model.setValue("/root/send/search/num", "8");
  252. submit("TRRTH00606");
  253. if(ipt_cheflag.value == 'Y')
  254. return false;
  255. else
  256. return true;
  257. }
  258. // 수료증명서(영문)-레지던트
  259. else if(sCrtfKind == '08'){
  260. model.setValue("/root/send/search/num", "9");
  261. submit("TRRTH00606");
  262. if(ipt_cheflag.value == 'Y')
  263. return false;
  264. else
  265. return true;
  266. }
  267. // 수료증명서(영문)-인턴&레지던트
  268. else if(sCrtfKind == '09'){
  269. model.setValue("/root/send/search/num", "9");
  270. submit("TRRTH00606");
  271. if(ipt_cheflag.value == 'Y')
  272. return false;
  273. else
  274. return true;
  275. }
  276. // 수료(예정)증명서(영문)-인턴
  277. else if(sCrtfKind == '10'){
  278. model.setValue("/root/send/search/num", "10");
  279. submit("TRRTH00606");
  280. if(ipt_cheflag.value == 'Y')
  281. return false;
  282. else
  283. return true;
  284. }
  285. // 수료(예정)증명서(영문)-레지던트
  286. else if(sCrtfKind == '11'){
  287. model.setValue("/root/send/search/num", "11");
  288. submit("TRRTH00606");
  289. if(ipt_cheflag.value == 'Y')
  290. return false;
  291. else
  292. return true;
  293. }
  294. // 근무(레지던트,인턴) 예정 증명서
  295. else if(sCrtfKind == '16'){
  296. return !checkAuth("P");
  297. }
  298. }
  299. ]]>
  300. </script>
  301. </xhtml:head>
  302. <xhtml:body>
  303. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  304. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">재증명신청</caption>
  305. </group>
  306. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  307. <button id="button16" class="btn3_letter4" visibility="hidden" style="left:0px; top:3; width:80px; height:22px; ">
  308. <caption>화면이동</caption>
  309. </button>
  310. <line id="line1" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  311. </group>
  312. <group id="group3" scroll="auto" style="left:0; top:38; width:1195px; height:744px; ">
  313. <line id="line12" class="line_1" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  314. <datagrid id="grd_crtfctkindlist" nodeset="/root/main/crtfctkind/crtfctkindlist" caption="사번^신청년월^신청번호^신청일자^발급기관^전공과목^I/R^현직위^소속병원^근무병원^증명서종류^신청상태^통수^금액^확인내용^발급사유^수령방법^전화번호^E-mail^우편번호1^우편번호2^주소^caption1^caption2^caption3" colsep="^" colwidth="100, 100, 100, 100, 130, 100, 90, 100, 120, 130, 130, 75, 50, 79, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30; width:1195px; height:710; ">
  315. <col ref="emplno" visibility="hidden"/>
  316. <col ref="appym" visibility="hidden"/>
  317. <col ref="seqno" visibility="hidden"/>
  318. <col ref="appdd" format="yyyy-mm-dd" style="text-align:center; "/>
  319. <col ref="issinstcd" type="combo" visibility="visible" style="text-align:center; ">
  320. <choices>
  321. <itemset>
  322. <label/>
  323. <value/>
  324. </itemset>
  325. </choices>
  326. </col>
  327. <col ref="frmrmert" type="combo" visibility="visible" style="text-align:center; ">
  328. <choices>
  329. <itemset>
  330. <label/>
  331. <value/>
  332. </itemset>
  333. </choices>
  334. </col>
  335. <col ref="trngflag" type="combo" visibility="visible" style="text-align:center; ">
  336. <choices>
  337. <itemset>
  338. <label/>
  339. <value/>
  340. </itemset>
  341. </choices>
  342. </col>
  343. <col ref="jobposnm" type="combo" visibility="hidden" style="text-align:center; ">
  344. <choices>
  345. <itemset>
  346. <label/>
  347. <value/>
  348. </itemset>
  349. </choices>
  350. </col>
  351. <col ref="orginstcd" type="combo" visibility="hidden">
  352. <choices>
  353. <itemset>
  354. <label/>
  355. <value/>
  356. </itemset>
  357. </choices>
  358. </col>
  359. <col ref="dutplceinst" type="combo" visibility="hidden">
  360. <choices>
  361. <itemset>
  362. <label/>
  363. <value/>
  364. </itemset>
  365. </choices>
  366. </col>
  367. <col ref="crtfctkind" type="combo" style="text-align:center; ">
  368. <choices>
  369. <itemset nodeset="/root/hidden/crtfctkind_search">
  370. <label ref="cdnm"/>
  371. <value ref="cdid"/>
  372. </itemset>
  373. </choices>
  374. </col>
  375. <col ref="appflag" type="combo" style="text-align:center; ">
  376. <choices>
  377. <itemset nodeset="/root/init/appflag">
  378. <label ref="label"/>
  379. <value ref="value"/>
  380. </itemset>
  381. </choices>
  382. </col>
  383. <col ref="isscnt" visibility="visible" style="text-align:right; padding-right:10; "/>
  384. <col ref="amt" visibility="hidden" format="#,###" style="text-align:right; padding-right:10; "/>
  385. <col ref="cnfmcnts"/>
  386. <col ref="issresn" visibility="hidden"/>
  387. <col ref="acptmthd" type="combo" visibility="visible" style="text-align:center; ">
  388. <choices>
  389. <item>
  390. <label>직접수령</label>
  391. <value>1</value>
  392. </item>
  393. <item>
  394. <label>우편수령</label>
  395. <value>2</value>
  396. </item>
  397. </choices>
  398. </col>
  399. <col ref="telno" visibility="hidden"/>
  400. <col ref="email" visibility="hidden"/>
  401. <col ref="zipcd1" visibility="hidden"/>
  402. <col ref="zipcd2" visibility="hidden"/>
  403. <col ref="addr" visibility="hidden"/>
  404. <col ref="emailid" visibility="hidden"/>
  405. <col ref="emailaddr" visibility="hidden"/>
  406. <col ref="etcemailaddr" visibility="hidden"/>
  407. <script type="javascript" ev:event="onaftersort">
  408. <![CDATA[
  409. grd_crtfctkindlist.gridToInstance();
  410. ]]>
  411. </script>
  412. <script type="javascript" ev:event="onrowchanged">
  413. <![CDATA[
  414. grd_crtfctkindlist.rebuildStyle();
  415. grd_crtfctkindlist.rowstyle(grd_crtfctkindlist.row, "data", "background-color") = "#ffeebb";
  416. btn_save2.visible = false;
  417. btn_save.visible = true;
  418. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  419. rdo_acptmthd.select(0);
  420. model.refresh();
  421. ]]>
  422. </script>
  423. </datagrid>
  424. <button id="button2" class="btn2_letter4" style="left:1128px; top:3; width:64px; height:19px; ">
  425. <caption>신청취소</caption>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. group4.visible = false;
  429. if(messageBox("신청하신 데이터가 삭제 됩니다. ","Q003") != 6)
  430. return;
  431. if(grd_crtfctkindlist.valueMatrix(grd_crtfctkindlist.row, grd_crtfctkindlist.colRef("issyn")) == 'Y'){
  432. messageBox("이미 발급된 신청서는 취소 ", "E001");
  433. }
  434. else if(grd_crtfctkindlist.valueMatrix(grd_crtfctkindlist.row, grd_crtfctkindlist.colRef("appflag")) > 1){
  435. messageBox("신청상태가 신청인 데이터만 취소 ", "I006");
  436. }
  437. else
  438. {
  439. misfGridIUD(grd_crtfctkindlist, "D");
  440. misfSave("TXRTH00601");
  441. // model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  442. }
  443. model.refresh();
  444. ]]>
  445. </script>
  446. </button>
  447. <button id="button5" class="btn2_letter4" style="left:1060px; top:3; width:64px; height:19px; ">
  448. <caption>신청수정</caption>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. group4.visible = false;
  452. if(grd_crtfctkindlist.valueMatrix(grd_crtfctkindlist.row, grd_crtfctkindlist.colRef("issyn")) == 'Y'){
  453. messageBox("이미 발급된 신청서는 수정 ", "E001");
  454. }
  455. else if(grd_crtfctkindlist.valueMatrix(grd_crtfctkindlist.row, grd_crtfctkindlist.colRef("appflag")) > 1){
  456. messageBox("신청상태가 신청인 데이터만 수정 ", "I006");
  457. }
  458. else
  459. {
  460. group3.disabled = true;
  461. group4.visible = true;
  462. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  463. model.copyNode("/root/main/crtfctkindtmp/crtfctkindlist","/root/main/crtfctkind/crtfctkindlist[" + grd_crtfctkindlist.row + "]");
  464. if(rdo_acptmthd.value == "1")
  465. {
  466. fAddrDisabled(true);
  467. ipt_zipcd1.value = '';
  468. ipt_zipcd2.value = '';
  469. ipt_addr.value = '';
  470. }
  471. else if(rdo_acptmthd.value == "2")
  472. {
  473. fAddrDisabled(false);
  474. }
  475. btn_save2.visible = true;
  476. btn_save.visible = false;
  477. }
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </button>
  482. <caption id="cap_search" class="tit_2" style="left:5px; top:5; width:200px; height:13px; ">총 0건이 등록되어있습니다.</caption>
  483. <caption id="cap_emplno_search" class="search_name" visibility="hidden" style="left:464px; top:5; width:87px; height:17px; ">사 번 :</caption>
  484. <input id="ipt_emplno_search" ref="/root/send/search/emplno" class="input_search" disabled="false" visibility="hidden" style="left:550px; top:5; width:65px; height:19px; "/>
  485. <button id="btn_search" class="btn1_letter2" navindex="8" visibility="hidden" style="left:920px; top:3; width:56px; height:22px; text-align:left; ">
  486. <caption>조회</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. misfMsterDetailRetrieve();
  490. misfSetReadOnlyCol(grd_crtfctkindlist,"issinstcd,frmrmert,trngflag,orginstcd,dutplceinst,crtfctkind,preststatcd,appcnfm,issyn,emailaddr,appflag,jobposnm",true);
  491. grd_crtfctkindlist.rebuildStyle();
  492. //var sNodeLength = instance1.selectSingleNode("/root/main/crtfctkind/crtfctkindlist").length;
  493. var sNodeLength = grd_crtfctkindlist.rows - grd_crtfctkindlist.fixedRows;
  494. for(var i=1 ; i <= sNodeLength ; i++)
  495. {
  496. var sAppflag = grd_crtfctkindlist.valueMatrix(i, grd_crtfctkindlist.colRef("appflag"));
  497. if(sAppflag == "3")
  498. {
  499. grd_crtfctkindlist.rowstyle(i, "data", "background-color") = "#ffff00";
  500. }
  501. }
  502. var sSearchData = grd_crtfctkindlist.rows - grd_crtfctkindlist.fixedRows;
  503. cap_search.value = "총 " + sSearchData + "건이 등록되어있습니다.";
  504. model.refresh();
  505. ]]>
  506. </script>
  507. </button>
  508. <input id="ipt_cheflag" ref="/root/main/statuslist/cheflag" visibility="hidden" style="left:265px; top:5; width:55px; height:19px; "/>
  509. <input id="ipt_num" ref="/root/send/search/num" visibility="hidden" style="left:210px; top:5; width:45px; height:19px; "/>
  510. <button id="button1" class="btn2_letter2" style="left:1015; top:3; width:64px; height:19px; ">
  511. <caption>신청</caption>
  512. <script type="javascript" ev:event="DOMActivate">
  513. <![CDATA[
  514. group3.disabled = true;
  515. group4.visible = false;
  516. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  517. model.setValue("/root/main/crtfctkindtmp/crtfctkindlist/issinstcd",getUserInfo("dutplceinstcd"));
  518. rdo_acptmthd.select(0);
  519. // fAddrDisabled(true);
  520. group4.visible = true;
  521. ipt_telno.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("mpphonno"));
  522. ipt_emailid.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("emailid"));
  523. cmb_emailaddr.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("emailaddr"));
  524. ipt_etcemailaddr.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("etcemailaddr"));
  525. model.refresh();
  526. ]]>
  527. </script>
  528. </button>
  529. <datagrid id="grd_crtfctkindlist_1" nodeset="/root/main/crtfctkind/crtfctkindlist_1" visibility="hidden" caption="caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:285px; width:720px; height:150px; ">
  530. <col ref="residnczipcd1"/>
  531. <col ref="residnczipcd2"/>
  532. <col ref="residncaddr"/>
  533. <col ref="mpphonno"/>
  534. <col ref="emailid"/>
  535. <col ref="emailaddr"/>
  536. <col ref="etcemailaddr"/>
  537. <col ref="dutplceinst"/>
  538. </datagrid>
  539. </group>
  540. <group id="group4" visibility="hidden" style="left:730px; top:150px; width:415; height:275px; ">
  541. <shape id="roundrect1" visibility="visible" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:415; height:275px; "/>
  542. <line id="line9" class="line_2" style="x1:5px; y1:241px; x2:415px; y2:241px; "/>
  543. <input id="ipt_amt" ref="/root/main//crtfctkindtmp/crtfctkindlist/amt" disabled="false" visibility="hidden" maxlength="9" format="999999999" style="left:280px; top:80px; width:105px; height:19px; "/>
  544. <input id="ipt_etcemailaddr" ref="/root/main/crtfctkindtmp/crtfctkindlist/etcemailaddr" disabled="false" style="left:279px; top:224; width:131px; height:19px; "/>
  545. <select1 id="cmb_frmrmert" ref="/root/main/crtfctkindtmp/crtfctkindlist/frmrmert" visibility="hidden" appearance="minimal" style="left:305px; top:126px; width:100px; height:19px; ">
  546. <choices>
  547. <itemset>
  548. <label/>
  549. <value/>
  550. </itemset>
  551. </choices>
  552. </select1>
  553. <select1 id="rdo_acptmthd" ref="/root/main//crtfctkindtmp/crtfctkindlist/acptmthd" disabled="false" appearance="full" cols="2" overflow="visible" style="left:92px; top:127; width:110px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
  554. <choices>
  555. <item>
  556. <label>1.직접</label>
  557. <value>1</value>
  558. </item>
  559. <item>
  560. <label>2.우편</label>
  561. <value>2</value>
  562. </item>
  563. </choices>
  564. <script type="javascript" ev:event="xforms-value-changed">
  565. <![CDATA[
  566. if(rdo_acptmthd.value == "1")
  567. {
  568. fAddrDisabled(true);
  569. ipt_zipcd1.value = '';
  570. ipt_zipcd2.value = '';
  571. ipt_addr.value = '';
  572. }
  573. else if(rdo_acptmthd.value == "2")
  574. {
  575. fAddrDisabled(false);
  576. /*
  577. ipt_zipcd1.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("residnczipcd1"));
  578. ipt_zipcd2.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("residnczipcd2"));
  579. ipt_addr.value = grd_crtfctkindlist_1.valueMatrix(1, grd_crtfctkindlist_1.colRef("residncaddr"));
  580. */
  581. model.refresh();
  582. }
  583. ]]>
  584. </script>
  585. </select1>
  586. <input id="ipt_telno" ref="/root/main/crtfctkindtmp/crtfctkindlist/telno" disabled="false" style="left:92px; top:199; width:123px; height:19px; "/>
  587. <caption id="caption30" class="cell_1" style="left:5; top:78; width:85px; height:23px; vertical-align:middle; ">통 수</caption>
  588. <line id="line23" class="line_2" style="x1:5px; y1:53px; x2:410; y2:53px; "/>
  589. <caption id="caption31" class="cell_1" style="left:5px; top:126; width:85px; height:23px; vertical-align:middle; ">수령 방법</caption>
  590. <caption id="caption1" class="cell_1" visibility="hidden" style="left:192px; top:79px; width:85px; height:23px; vertical-align:middle; ">금액</caption>
  591. <caption id="caption32" class="cell_1" style="left:5px; top:150; width:85px; height:23px; vertical-align:middle; ">우편 번호</caption>
  592. <input id="ipt_isscnt" ref="/root/main/crtfctkindtmp/crtfctkindlist/isscnt" disabled="false" maxlength="2" format="99" style="left:92; top:80px; width:100px; height:19px; "/>
  593. <input id="ipt_issresn" ref="/root/main/crtfctkindtmp/crtfctkindlist/issresn" disabled="false" style="left:92px; top:104; width:317px; height:19px; "/>
  594. <line id="line195" class="line_3" style="x1:5px; y1:245; x2:410; y2:245; "/>
  595. <caption id="caption2" class="cell_1" visibility="hidden" style="left:220px; top:125px; width:85px; height:23px; vertical-align:middle; ">전공</caption>
  596. <input id="ipt_emailid" ref="/root/main/crtfctkindtmp/crtfctkindlist/emailid" disabled="false" style="left:92px; top:224; width:83px; height:19px; "/>
  597. <caption id="caption33" style="left:154px; top:152; width:20px; height:20px; text-align:center; ">~</caption>
  598. <line id="line14" class="line_1" style="x1:5px; y1:25px; x2:410; y2:25px; "/>
  599. <select1 id="cmb_trngflag" ref="/root/main/crtfctkindtmp/crtfctkindlist/trngflag" visibility="hidden" appearance="minimal" style="left:315px; top:151px; width:100px; height:19px; ">
  600. <choices>
  601. <itemset>
  602. <label/>
  603. <value/>
  604. </itemset>
  605. </choices>
  606. </select1>
  607. <caption id="caption34" class="cell_1" style="left:5px; top:174; width:85px; height:23px; vertical-align:middle; ">주소</caption>
  608. <caption id="caption4" visibility="hidden" style="left:387px; top:80px; width:20px; height:20px; font-weight:bold; ">원</caption>
  609. <caption id="caption35" class="cell_1" style="left:5px; top:222; width:85px; height:23px; vertical-align:middle; ">E-Mail</caption>
  610. <caption id="caption5" class="cell_1" visibility="hidden" style="left:225px; top:150px; width:85px; height:23px; vertical-align:middle; ">현직위</caption>
  611. <select1 id="cmb_emailaddr" ref="/root/main/crtfctkindtmp/crtfctkindlist/emailaddr" disabled="false" appearance="minimal" style="left:178px; top:224; width:100px; height:19px; ">
  612. <choices>
  613. <itemset>
  614. <label/>
  615. <value/>
  616. </itemset>
  617. </choices>
  618. </select1>
  619. <input id="ipt_zipcd1" ref="/root/main/crtfctkindtmp/crtfctkindlist/zipcd1" disabled="false" maxlength="3" format="999" style="left:92px; top:151; width:60px; height:19px; "/>
  620. <select1 id="cmb_crtfctkind" ref="/root/main/crtfctkindtmp/crtfctkindlist/crtfctkind" class="combo_essential" disabled="false" appearance="minimal" style="left:92px; top:55px; width:200; height:19px; ">
  621. <choices>
  622. <itemset nodeset="/root/hidden/crtfctkind_search">
  623. <label ref="cdnm"/>
  624. <value ref="cdid"/>
  625. </itemset>
  626. </choices>
  627. </select1>
  628. <caption id="cap_crtfctkind" class="cell_1" style="left:5; top:54; width:85px; height:23px; vertical-align:middle; ">증명서종류</caption>
  629. <caption id="caption15" class="cell_1" style="left:5px; top:198; width:85px; height:23px; vertical-align:middle; ">전화번호</caption>
  630. <input id="ipt_zipcd2" ref="/root/main/crtfctkindtmp/crtfctkindlist/zipcd2" disabled="false" maxlength="3" format="999" style="left:175px; top:151; width:60px; height:19px; "/>
  631. <caption id="caption16" class="tit_2" style="left:5px; top:10px; width:144px; height:13px; ">증명서 신청 메뉴</caption>
  632. <line id="line3" class="line_2" style="x1:5px; y1:77px; x2:410; y2:77px; "/>
  633. <line id="line4" class="line_2" style="x1:5px; y1:101px; x2:410; y2:101px; "/>
  634. <caption id="caption28" class="cell_1" style="left:5px; top:30; width:85px; height:23px; vertical-align:middle; ">발급기관</caption>
  635. <line id="line5" class="line_2" style="x1:5px; y1:125px; x2:410; y2:125px; "/>
  636. <caption id="caption29" class="cell_1" style="left:5px; top:102; width:85px; height:23px; vertical-align:middle; ">발급사유</caption>
  637. <input id="ipt_addr" ref="/root/main/crtfctkindtmp/crtfctkindlist/addr" disabled="false" style="left:92px; top:175; width:318px; height:19px; "/>
  638. <select1 id="cmb_issinstcd" ref="/root/main/crtfctkindtmp/crtfctkindlist/issinstcd" class="combo_essential" disabled="false" appearance="minimal" style="left:92px; top:31; width:200; height:19px; ">
  639. <choices>
  640. <itemset>
  641. <label/>
  642. <value/>
  643. </itemset>
  644. </choices>
  645. </select1>
  646. <input id="ipt_emplno" ref="/root/main/crtfctkindtmp/crtfctkindlist/emplno" visibility="hidden" style="left:125px; top:5px; width:80; height:19px; "/>
  647. <input id="ipt_appflag" ref="/root/main/crtfctkindtmp/crtfctkindlist/appflag" visibility="hidden" style="left:225px; top:5px; width:80; height:19px; "/>
  648. <input id="ipt_cnfmcnts" ref="/root/main/crtfctkindtmp/crtfctkindlist/cnfmcnts" visibility="hidden" style="left:325px; top:5px; width:80; height:19px; "/>
  649. <button id="btn_save2" class="btn4_letter2" visibility="hidden" style="left:295; top:250px; width:56px; height:22px; ">
  650. <caption>수정</caption>
  651. <script type="javascript" ev:event="DOMActivate">
  652. <![CDATA[
  653. if(!isRequiredControls("cmb_crtfctkind"))return;
  654. if(cmb_issinstcd.value == "" || cmb_issinstcd.value == null)
  655. {
  656. var sFlag = messageBox("발급기관을 현 소속기관으로 하겠습니다.","Q003");
  657. if(sFlag == 6)
  658. {
  659. model.setValue("/root/main/crtfctkindtmp/crtfctkindlist/issinstcd",getUserInfo("dutplceinstcd"));
  660. }
  661. else if(sFlag == 7)
  662. {
  663. messageBox("발급기관을 ","C002");
  664. return;
  665. }
  666. }
  667. if(fCheckCrtfctKind())
  668. {
  669. var sCrtfLabel = cmb_crtfctkind.label;
  670. messageBox(sCrtfLabel + "을 신청","E001");
  671. return;
  672. }
  673. // model.copyNode("/root/main/crtfctkind/crtfctkindlist[" + grd_crtfctkindlist.row + "]", "/root/main/crtfctkindtmp/crtfctkindlist");
  674. misfGridRowStatusChange(grd_crtfctkindlist, "/root/main/crtfctkind" , "/root/main/crtfctkindtmp");
  675. grd_crtfctkindlist.refresh();
  676. misfSave("TXRTH00601");
  677. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  678. // btn_search.dispatch("DOMActivate");
  679. btn_save2.visible = false;
  680. btn_save.visible = true;
  681. group4.visible = false;
  682. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  683. btn_search.dispatch("DOMActivate");
  684. group3.disabled = false;
  685. ]]>
  686. </script>
  687. </button>
  688. <button id="btn_save" class="btn4_letter2" style="left:295px; top:250px; width:56px; height:22px; ">
  689. <caption>등록</caption>
  690. <script type="javascript" ev:event="DOMActivate">
  691. <![CDATA[
  692. if(!isRequiredControls("ipt_emplno_search")) return;
  693. if(!isRequiredControls("cmb_crtfctkind"))return;
  694. // 전공의들의 전공과 현 직위를 가지고 온다
  695. model.setValue("/root/send/req/emplno", model.getValue("/root/send/search/emplno"));
  696. model.makeValue("/root/send/req/crtfctkind", cmb_crtfctkind.value);
  697. submit("TRRTH00602");
  698. var sFrmemert = model.getValue("/root/main/tmplist/frmrmert");
  699. var sTrngflag = model.getValue("/root/main/tmplist/trngflag");
  700. model.setValue("/root/main/crtfctkindtmp/crtfctkindlist/frmrmert", sFrmemert);
  701. model.setValue("/root/main/crtfctkindtmp/crtfctkindlist/trngflag", sTrngflag);
  702. model.setValue("/root/main/crtfctkindtmp/crtfctkindlist/emplno", ipt_emplno_search.value);
  703. cmb_frmrmert.refresh();
  704. cmb_trngflag.refresh();
  705. ipt_emplno.refresh();
  706. if(fCheckCrtfctKind())
  707. {
  708. var sCrtfLabel = cmb_crtfctkind.label;
  709. messageBox(sCrtfLabel + "을 신청","E001");
  710. return;
  711. }
  712. misfGridIUD(grd_crtfctkindlist, "A");
  713. model.copyNode("/root/main/crtfctkind/crtfctkindlist[" + grd_crtfctkindlist.row + "]", "/root/main/crtfctkindtmp/crtfctkindlist");
  714. // ipt_emplno.value = ipt_emplno_search.value;
  715. // misfGridRowStatusChange(grd_crtfctkindlist, "/root/main/crtfctkind" , "/root/main/crtfctkindtmp");
  716. grd_crtfctkindlist.refresh();
  717. misfSave("TXRTH00601");
  718. group4.visible = false;
  719. model.resetInstanceNode("/root/main/crtfctkindtmp/crtfctkindlist");
  720. btn_search.dispatch("DOMActivate");
  721. group3.disabled = false;
  722. ]]>
  723. </script>
  724. </button>
  725. <line id="line2" class="line_2" style="x1:5; y1:149; x2:410; y2:149; "/>
  726. <line id="line6" class="line_2" style="x1:5; y1:173; x2:410; y2:173; "/>
  727. <line id="line7" class="line_2" style="x1:5; y1:197; x2:410; y2:197; "/>
  728. <line id="line8" class="line_2" style="x1:5; y1:221; x2:410; y2:221; "/>
  729. <button id="btn_domizipcd" class="icon_search" disabled="true" style="left:240px; top:153; width:16px; height:16px; ">
  730. <caption/>
  731. <script type="javascript" ev:event="DOMActivate">
  732. <![CDATA[
  733. /* 우편번호 Help화면 Popup */
  734. var sZipcd1 = ipt_zipcd1.value;
  735. var sZipcd2 = ipt_zipcd2.value;
  736. var recv_list = "zipcd1,zipcd2,addr";
  737. rpbfOpenZipCdHelp(ipt_zipcd1, recv_list);
  738. model.refresh();
  739. ]]>
  740. </script>
  741. </button>
  742. <button id="btn_cancel" class="btn4_letter2" visibility="visible" style="left:355px; top:250px; width:56px; height:22px; ">
  743. <caption>취소</caption>
  744. <script type="javascript" ev:event="DOMActivate">
  745. <![CDATA[
  746. group4.visible = false;
  747. group3.disabled = false;
  748. ]]>
  749. </script>
  750. </button>
  751. </group>
  752. </xhtml:body>
  753. </xhtml:html>