SMRTH00700_개별신청내역조회.xrw 38 KB

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