SMCVO00100_VOC등록.xrw 68 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCVO00100_VOC 등록
  4. * Summary : VOC 등록
  5. * Programmer : 김준규
  6. * Date Written : 2007.01.22
  7. * History : 2007.11.29
  8. * Remark : .
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>VOC 등록</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <vocdata>
  19. <customer>
  20. <clntnm/>
  21. <resdnrgstno1/>
  22. <resdnrgstno2/>
  23. <pid/>
  24. <patnm/>
  25. <patrela/>
  26. <patphonno/>
  27. <patresdnrgstno1/>
  28. <patresdnrgstno2/>
  29. <zipcd1/>
  30. <zipcd2/>
  31. <zipcdseq/>
  32. <zipcdaddr/>
  33. <detladdr/>
  34. <hometelno/>
  35. <mpphonno/>
  36. <etctelno/>
  37. <emailaddr/>
  38. <gndr>M</gndr>
  39. </customer>
  40. <accept>
  41. <acptdd/>
  42. <genrdd/>
  43. <acpttype/>
  44. <acptkindlrg/>
  45. <acptkindmdl/>
  46. <acptkindsml/>
  47. <deptview>
  48. <grid>
  49. <deptnm/>
  50. <deptcd/>
  51. <empnm/>
  52. <empid/>
  53. </grid>
  54. <area>
  55. <reqdeptcd/>
  56. <reqdeptnm/>
  57. <reqempid/>
  58. <reqempnm/>
  59. </area>
  60. </deptview>
  61. <acpttitl/>
  62. <acptcnts/>
  63. <selfcnts/>
  64. <acpviewdd/>
  65. <openallyn/>
  66. <deptpidopenyn/>
  67. <selfyn/>
  68. <selfdeptnotiyn/>
  69. <selfnoticnts/>
  70. </accept>
  71. <endbase>
  72. <reqacptdd/>
  73. <reqacptseq/>
  74. </endbase>
  75. <preself>
  76. <sndacptdd/>
  77. <sndacptseq/>
  78. </preself>
  79. <hmpgvoc>
  80. <hmpgsqno/>
  81. </hmpgvoc>
  82. </vocdata>
  83. <vocpopup>
  84. <title/>
  85. <contents/>
  86. <inputmode/>
  87. <receive_path/>
  88. </vocpopup>
  89. <search>
  90. <srchpid/>
  91. <srchpatnm/>
  92. <srchcintnm/>
  93. </search>
  94. <temp>
  95. <key>
  96. <sndacptdd/>
  97. <sndacptseq/>
  98. <sndrgstseq/>
  99. </key>
  100. </temp>
  101. </main>
  102. <send>
  103. <data>
  104. <srchacptdd1/>
  105. <srchacptdd2/>
  106. <srchacpttypecd/>
  107. <srchprcsstatcd/>
  108. <srchdeptcd/>
  109. <srchdeptnm/>
  110. <srchpatnm/>
  111. <srchpid/>
  112. <srchfstrgstrnm/>
  113. </data>
  114. <key>
  115. <sndacptdd/>
  116. <sndacptseq/>
  117. <sndrgstseq/>
  118. </key>
  119. </send>
  120. <temp>
  121. <piddata>
  122. <pid/>
  123. <hngnm/>
  124. <rrgstno/>
  125. <mpphontel/>
  126. <hometel/>
  127. <email/>
  128. <lastchosdt/>
  129. <rrgstno1/>
  130. <rrgstno2/>
  131. <sex/>
  132. <zipcd1/>
  133. <zipcd2/>
  134. <zipcdseq/>
  135. <zipcdaddr/>
  136. <detladdr/>
  137. <etctelno1/>
  138. </piddata>
  139. </temp>
  140. <init>
  141. <C0001list>
  142. <cdid/>
  143. <cdnm/>
  144. </C0001list>
  145. <C0003list>
  146. <cdid/>
  147. <cdnm/>
  148. </C0003list>
  149. <C0004list>
  150. <cdid/>
  151. <cdnm/>
  152. </C0004list>
  153. <C0005list>
  154. <cdid/>
  155. <cdnm/>
  156. </C0005list>
  157. <C0006list>
  158. <cdid/>
  159. <cdnm/>
  160. </C0006list>
  161. <C0007list>
  162. <cdid/>
  163. <cdnm/>
  164. </C0007list>
  165. <C0008list>
  166. <cdid/>
  167. <cdnm/>
  168. </C0008list>
  169. <C0009list>
  170. <cdid/>
  171. <cdnm/>
  172. </C0009list>
  173. <C0011list>
  174. <C0011>
  175. <cdid/>
  176. <cdnm/>
  177. </C0011>
  178. </C0011list>
  179. </init>
  180. </root>
  181. </instance>
  182. <submission id="TXCVO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vocdata"/>
  183. <submission id="TXCVO00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vocdata"/>
  184. <submission id="TXCVO00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vocdata"/>
  185. <submission id="TRCVO00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/vocdata/customer" replace="instance" resultref="/root/temp/piddata"/>
  186. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  187. </model>
  188. <script type="javascript" ev:event="xforms-ready">
  189. <![CDATA[
  190. model.setValue("/root/main/vocdata/accept/acptdd",getCurrentDate());
  191. model.setValue("/root/main/vocdata/accept/acpviewdd",getCurrentDate());
  192. zbcfGetCodeList( new Array("C0001", "C0003", "C0011"), new Array("/root/init/C0001list", "/root/init/C0003list", "/root/init/C0011list"), true );
  193. model.removeNodeset("/root/main/vocdata/accept/deptview/grid");
  194. fCheckAuth();
  195. model.refresh();
  196. ]]>
  197. </script>
  198. <script type="javascript">
  199. <![CDATA[
  200. function fGetGoodInfo(getdata) {
  201. // var params = getdata.split("▩");
  202. //
  203. // var acptdd = params[0].split("▦")[1];
  204. // var clntnm = params[0].split("▦")[2];
  205. // var resdnrgstno1 = params[0].split("▦")[3];
  206. // var acpttype = params[0].split("▦")[4];
  207. // var acpttitl = params[0].split("▦")[5];
  208. // var acptcnts = params[0].split("▦")[6];
  209. // var replcnts = params[0].split("▦")[7];
  210. // var stateflag = params[0].split("▦")[8];
  211. // var deptnm = params[0].split("▦")[9];
  212. // var etctelno = params[0].split("▦")[10];
  213. // var emailaddr = params[0].split("▦")[11];
  214. // var hmpgsqno = params[0].split("▦")[12];
  215. // var acptseq = params[0].split("▦")[13];
  216. // var hmpgid = params[0].split("▦")[14];
  217. }
  218. function fCheckAuth() {
  219. // 권한체크
  220. if (!checkAuth("r")) {
  221. btnicon_search2.disabled = true;
  222. btnicon_search3.disabled = true;
  223. btnicon_search4.disabled = true;
  224. btnicon_search5.disabled = true;
  225. btnicon_search6.disabled = true;
  226. btnicon_search7.disabled = true;
  227. btn_search.disabled = true;
  228. }
  229. if (!checkAuth("x")) {
  230. btn_save.disabled = true;
  231. }
  232. if (!checkAuth("p")) {
  233. }
  234. }
  235. // 컨트롤을 초기화한다.
  236. function fInitControl(){
  237. model.setValue("/root/main/vocdata/customer/clntnm", "");
  238. model.setValue("/root/main/vocdata/customer/resdnrgstno1", "");
  239. model.setValue("/root/main/vocdata/customer/resdnrgstno2", "");
  240. model.setValue("/root/main/vocdata/customer/gndr", "M");
  241. model.setValue("/root/main/vocdata/customer/pid", "");
  242. model.setValue("/root/main/vocdata/customer/patnm", "");
  243. model.setValue("/root/main/vocdata/customer/patrela", "");
  244. model.setValue("/root/main/vocdata/customer/zipcd1", "");
  245. model.setValue("/root/main/vocdata/customer/zipcd2", "");
  246. model.setValue("/root/main/vocdata/customer/zipcdaddr", "");
  247. model.setValue("/root/main/vocdata/customer/detladdr", "");
  248. model.setValue("/root/main/vocdata/customer/hometelno", "");
  249. model.setValue("/root/main/vocdata/customer/mpphonno", "");
  250. model.setValue("/root/main/vocdata/customer/etctelno", "");
  251. model.setValue("/root/main/vocdata/customer/emailaddr", "");
  252. model.setValue("/root/main/vocdata/customer/patresdnrgstno1", "");
  253. model.setValue("/root/main/vocdata/customer/patresdnrgstno2", "");
  254. model.setValue("/root/main/vocdata/customer/patphonno", "");
  255. model.setValue("/root/main/vocdata/accept/openallyn", "");
  256. model.setValue("/root/main/vocdata/accept/deptpidopenyn", "");
  257. model.setValue("/root/main/vocdata/accept/selfdeptnotiyn", "");
  258. model.setValue("/root/main/vocdata/accept/selfnoticnts", "");
  259. model.setValue("/root/main/vocdata/accept/acptdd",getCurrentDate());
  260. model.setValue("/root/main/vocdata/accept/acpviewdd",getCurrentDate());
  261. model.setValue("/root/main/vocdata/accept/genrdd", "");
  262. model.setValue("/root/main/vocdata/accept/acpttype", "");
  263. model.setValue("/root/main/vocdata/accept/acptkindlrg", "");
  264. model.setValue("/root/main/vocdata/accept/acptkindmdl", "");
  265. model.setValue("/root/main/vocdata/accept/acptkindsml", "");
  266. model.removeNodeset("/root/main/vocdata/accept/deptview/grid");
  267. model.setValue("/root/main/vocdata/accept/deptview/area/reqdeptcd", "");
  268. model.setValue("/root/main/vocdata/accept/deptview/area/reqdeptnm", "");
  269. model.setValue("/root/main/vocdata/accept/deptview/area/reqempid", "");
  270. model.setValue("/root/main/vocdata/accept/deptview/area/reqempnm", "");
  271. model.setValue("/root/main/vocdata/accept/acpttitl", "");
  272. model.setValue("/root/main/vocdata/accept/acptcnts", "");
  273. model.setValue("/root/main/vocdata/accept/selfcnts", "");
  274. model.setValue("/root/main/vocdata/accept/selfyn", "");
  275. tar_SelfCnts.disabled = "true";
  276. tar_SelfNotiCnts.disabled = "true";
  277. model.refresh();
  278. }
  279. ]]>
  280. </script>
  281. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  282. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  283. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  284. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  285. </xhtml:head>
  286. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  287. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  288. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">VOC 등록</caption>
  289. </group>
  290. <group id="grp_customer" style="left:225px; top:23px; width:970px; height:197px; ">
  291. <caption id="caption9" class="tit_2" style="left:5px; top:0px; width:126px; height:14px; ">접수고객정보 등록</caption>
  292. <line id="line2" class="line_1" style="x1:0px; y1:15px; x2:970px; y2:15px; "/>
  293. <line id="line3" class="line_3" style="x1:0px; y1:42px; x2:970px; y2:42px; "/>
  294. <caption id="caption10" class="cell_1" style="left:0px; top:20px; width:105px; height:23px; text-align:center; vertical-align:middle; ">접수번호</caption>
  295. <output id="opt_AcptNo" class="output_fix" appearance="input" style="left:108px; top:21px; width:130px; height:19px; "/>
  296. <caption id="caption2" style="left:240px; top:20px; width:175px; height:23px; text-align:center; vertical-align:middle; ">(접수번호는 자동 생성 됩니다.)</caption>
  297. <line id="line4" class="line_2" style="x1:0px; y1:71px; x2:970px; y2:71px; "/>
  298. <caption id="caption22" class="cell_1" style="left:0px; top:49px; width:105px; height:23px; text-align:center; vertical-align:middle; ">등록번호</caption>
  299. <input id="ipt_PID" ref="/root/main/vocdata/customer/pid" class="input_default" maxlength="10" format="9999999999" appearance="input" style="left:108px; top:50px; width:112px; height:19px; ">
  300. <script type="javascript" ev:event="onkeyup">
  301. <![CDATA[
  302. if (event.keyCode == '13') {
  303. model.setValue("/root/main/vocdata/customer/pid", ipt_PID.currentText);
  304. //환자등록번호 체크
  305. if(ipt_PID.currentText.length >= 1 ){
  306. if(submit("TRCVO00101")){
  307. if( getNodesetCount("/root/temp/piddata") > 0 ){
  308. var pid_pid = model.getValue("/root/temp/piddata/pid");
  309. var pid_hngnm = model.getValue("/root/temp/piddata/hngnm");
  310. var pid_rrgstno1 = model.getValue("/root/temp/piddata/rrgstno1");
  311. var pid_rrgstno2 = model.getValue("/root/temp/piddata/rrgstno2");
  312. var pid_mpphontel = model.getValue("/root/temp/piddata/mpphontel");
  313. model.setValue("/root/main/vocdata/customer/patnm", pid_hngnm);
  314. // model.setValue("/root/main/vocdata/customer/pid", pid_pid);
  315. model.setValue("/root/main/vocdata/customer/patresdnrgstno1", pid_rrgstno1);
  316. model.setValue("/root/main/vocdata/customer/patresdnrgstno2", pid_rrgstno2);
  317. model.setValue("/root/main/vocdata/customer/patphonno", pid_mpphontel);
  318. model.setFocus("cmb_PatRela");
  319. model.refresh();
  320. }else{
  321. messageBox("존재하지 않는 환자 등록번호 ", "E008");
  322. model.makeNode("/root/temp/piddata");
  323. model.setFocus("ipt_PID");
  324. }
  325. }
  326. }else{
  327. messageBox("환자 등록번호를 정확히", "C001");
  328. }
  329. }
  330. ]]>
  331. </script>
  332. </input>
  333. <button id="btnicon_search3" class="icon_search" style="left:223px; top:50px; width:16px; height:16px; ">
  334. <caption/>
  335. <script type="javascript" ev:event="DOMActivate">
  336. <![CDATA[
  337. var search_condition = "pid";
  338. var search_term = model.getValue("/root/main/vocdata/customer/pid");
  339. var receive_pid_path = "/root/main/vocdata/customer/pid";
  340. var receive_patnm_path = "/root/main/vocdata/customer/patnm";
  341. var receive_resdnrgstno1_path = "/root/main/vocdata/customer/patresdnrgstno1";
  342. var receive_resdnrgstno2_path = "/root/main/vocdata/customer/patresdnrgstno2";
  343. var receive_mpphontel_path = "/root/main/vocdata/customer/patphonno";
  344. var receive_path = "voc";
  345. setParameter("search_condition", search_condition);
  346. setParameter("search_term", search_term);
  347. setParameter("receive_pid_path", receive_pid_path);
  348. setParameter("receive_patnm_path", receive_patnm_path);
  349. setParameter("receive_resdnrgstno1_path", receive_resdnrgstno1_path);
  350. setParameter("receive_resdnrgstno2_path", receive_resdnrgstno2_path);
  351. setParameter("receive_mpphontel_path", receive_mpphontel_path);
  352. setParameter("receive_path", receive_path);
  353. modal("SPCCM00100")
  354. clearParameter("search_condition");
  355. clearParameter("search_term");
  356. clearParameter("receive_pid_path");
  357. clearParameter("receive_patnm_path");
  358. clearParameter("receive_resdnrgstno1_path");
  359. clearParameter("receive_resdnrgstno2_path");
  360. clearParameter("receive_mpphontel_path");
  361. clearParameter("receive_path");
  362. ]]>
  363. </script>
  364. </button>
  365. <caption id="caption21" class="cell_1" style="left:241px; top:49px; width:105px; height:23px; text-align:center; vertical-align:middle; ">환자명</caption>
  366. <input id="ipt_PatNm" ref="/root/main/vocdata/customer/patnm" class="input_default" navindex="5" imemode="hangul" maxlength="40" appearance="input" style="left:349px; top:50px; width:112px; height:19px; ">
  367. <script type="javascript" ev:event="onkeyup">
  368. <![CDATA[
  369. inputEnterKey("btnicon_search4", "DOMActivate");
  370. ]]>
  371. </script>
  372. </input>
  373. <button id="btnicon_search4" class="icon_search" style="left:464px; top:50px; width:16px; height:16px; ">
  374. <caption/>
  375. <script type="javascript" ev:event="DOMActivate">
  376. <![CDATA[
  377. var search_condition = "patnm";
  378. var search_term = model.getValue("/root/main/vocdata/customer/patnm");
  379. var receive_pid_path = "/root/main/vocdata/customer/pid";
  380. var receive_patnm_path = "/root/main/vocdata/customer/patnm";
  381. var receive_resdnrgstno1_path = "/root/main/vocdata/customer/patresdnrgstno1";
  382. var receive_resdnrgstno2_path = "/root/main/vocdata/customer/patresdnrgstno2";
  383. var receive_mpphontel_path = "/root/main/vocdata/customer/patphonno";
  384. var receive_path = "voc";
  385. setParameter("search_condition", search_condition);
  386. setParameter("search_term", search_term);
  387. setParameter("receive_pid_path", receive_pid_path);
  388. setParameter("receive_patnm_path", receive_patnm_path);
  389. setParameter("receive_resdnrgstno1_path", receive_resdnrgstno1_path);
  390. setParameter("receive_resdnrgstno2_path", receive_resdnrgstno2_path);
  391. setParameter("receive_mpphontel_path", receive_mpphontel_path);
  392. setParameter("receive_path", receive_path);
  393. modal("SPCCM00100")
  394. clearParameter("search_condition");
  395. clearParameter("search_term");
  396. clearParameter("receive_pid_path");
  397. clearParameter("receive_patnm_path");
  398. clearParameter("receive_resdnrgstno1_path");
  399. clearParameter("receive_resdnrgstno2_path");
  400. clearParameter("receive_mpphontel_path");
  401. clearParameter("receive_path");
  402. ]]>
  403. </script>
  404. </button>
  405. <caption id="caption4" class="cell_1" style="left:483px; top:49px; width:107px; height:23px; text-align:center; vertical-align:middle; ">환자 주민번호</caption>
  406. <input id="input2" ref="/root/main/vocdata/customer/patresdnrgstno1" class="input_default" maxlength="6" format="999999" style="left:591px; top:50px; width:59px; height:19px; "/>
  407. <input id="input3" ref="/root/main/vocdata/customer/patresdnrgstno2" class="input_default" maxlength="7" format="9999999" style="left:652px; top:50px; width:69px; height:19px; "/>
  408. <caption id="caption3" class="cell_1" style="left:723px; top:49px; width:105px; height:23px; text-align:center; vertical-align:middle; ">환자 연락처</caption>
  409. <input id="input1" ref="/root/main/vocdata/customer/patphonno" class="input_default" appearance="input" style="left:832px; top:50px; width:138px; height:19px; "/>
  410. <line id="line8" class="line_3" style="x1:0px; y1:95px; x2:970px; y2:95px; "/>
  411. <caption id="caption20" class="cell_1" style="left:0px; top:73px; width:105px; height:23px; text-align:center; vertical-align:middle; ">환자와의 관계</caption>
  412. <select1 id="cmb_PatRela" ref="/root/main/vocdata/customer/patrela" class="combo_default" navindex="6" appearance="minimal" style="left:108px; top:74px; width:130px; height:19px; ">
  413. <choices>
  414. <itemset nodeset="/root/init/C0011list/C0011">
  415. <label ref="cdnm"/>
  416. <value ref="cdid"/>
  417. </itemset>
  418. </choices>
  419. <script type="javascript" ev:event="xforms-select">
  420. <![CDATA[
  421. var change_rela = model.getValue("/root/main/vocdata/customer/patrela");
  422. var rela_patnm = model.getValue("/root/main/vocdata/customer/patnm");
  423. var rela_pid = model.getValue("/root/main/vocdata/customer/pid");
  424. var rela_clntnm = model.getValue("/root/main/vocdata/customer/clntnm");
  425. var pid_pid = model.getValue("/root/temp/piddata/pid");
  426. var pid_hngnm = model.getValue("/root/temp/piddata/hngnm");
  427. var pid_rrgstno1 = model.getValue("/root/temp/piddata/rrgstno1");
  428. var pid_rrgstno2 = model.getValue("/root/temp/piddata/rrgstno2");
  429. var pid_sex = model.getValue("/root/temp/piddata/sex");
  430. var pid_zipcd1 = model.getValue("/root/temp/piddata/zipcd1");
  431. var pid_zipcd2 = model.getValue("/root/temp/piddata/zipcd2");
  432. var pid_zipcdaddr = model.getValue("/root/temp/piddata/zipcdaddr");
  433. var pid_detladdr = model.getValue("/root/temp/piddata/detladdr");
  434. var pid_hometel = model.getValue("/root/temp/piddata/hometel");
  435. var pid_mpphontel = model.getValue("/root/temp/piddata/mpphontel");
  436. var pid_etctelno1 = model.getValue("/root/temp/piddata/etctelno1");
  437. var pid_email = model.getValue("/root/temp/piddata/email");
  438. if ( change_rela == "") {
  439. } else {
  440. if ( pid_pid == "" ) {
  441. if ( ( change_rela =! "" ) && ( rela_pid == "" ) ) {
  442. messageBox("환자의 등록번호를 입력하지 않고 환자와의 관계를 선택하셨습니다. ","I099");
  443. model.setValue("/root/main/vocdata/customer/patrela", "");
  444. model.setFocus("ipt_PID");
  445. model.refresh();
  446. } else if ( ( change_rela =! "" ) && ( rela_patnm == "" ) && ( pid_pid == "" ) ) {
  447. messageBox("환자의 이름을 입력하지 않고 환자와의 관계를 선택하셨습니다. ","I099");
  448. model.setValue("/root/main/vocdata/customer/patrela", "");
  449. model.setFocus("ipt_PatNm");
  450. model.refresh();
  451. } else if ( ( change_rela =! "" ) && ( pid_pid == "" ) ) {
  452. messageBox("환자의 정보는 검색을 통해 입력하시는 것이 좋습니다. ","I099");
  453. model.setValue("/root/main/vocdata/customer/patrela", "");
  454. model.setFocus("ipt_PID");
  455. model.refresh();
  456. }
  457. } else {
  458. if ( change_rela == "A") {
  459. model.setValue("/root/main/vocdata/customer/clntnm", pid_hngnm);
  460. model.setValue("/root/main/vocdata/customer/resdnrgstno1", pid_rrgstno1);
  461. model.setValue("/root/main/vocdata/customer/resdnrgstno2", pid_rrgstno2);
  462. model.setValue("/root/main/vocdata/customer/gndr", pid_sex);
  463. model.setValue("/root/main/vocdata/customer/zipcd1", pid_zipcd1);
  464. model.setValue("/root/main/vocdata/customer/zipcd2", pid_zipcd2);
  465. model.setValue("/root/main/vocdata/customer/zipcdaddr", pid_zipcdaddr);
  466. model.setValue("/root/main/vocdata/customer/detladdr", pid_detladdr);
  467. model.setValue("/root/main/vocdata/customer/hometelno", pid_hometel);
  468. model.setValue("/root/main/vocdata/customer/mpphonno", pid_mpphontel);
  469. model.setValue("/root/main/vocdata/customer/etctelno", pid_etctelno1);
  470. model.setValue("/root/main/vocdata/customer/emailaddr", pid_email);
  471. model.refresh()
  472. } else {
  473. if ( rela_patnm != rela_clntnm ) {
  474. model.setValue("/root/main/vocdata/customer/clntnm", "");
  475. model.setValue("/root/main/vocdata/customer/resdnrgstno1", "");
  476. model.setValue("/root/main/vocdata/customer/resdnrgstno2", "");
  477. model.setValue("/root/main/vocdata/customer/gndr", "M");
  478. model.setValue("/root/main/vocdata/customer/zipcd1", "");
  479. model.setValue("/root/main/vocdata/customer/zipcd2", "");
  480. model.setValue("/root/main/vocdata/customer/zipcdaddr", "");
  481. model.setValue("/root/main/vocdata/customer/detladdr", "");
  482. model.setValue("/root/main/vocdata/customer/hometelno", "");
  483. model.setValue("/root/main/vocdata/customer/mpphonno", "");
  484. model.setValue("/root/main/vocdata/customer/etctelno", "");
  485. model.setValue("/root/main/vocdata/customer/emailaddr", "");
  486. model.refresh()
  487. }
  488. }
  489. }
  490. }
  491. ]]>
  492. </script>
  493. </select1>
  494. <caption id="caption5" style="left:242px; top:73px; width:361px; height:23px; text-align:justify; vertical-align:middle; ">(환자가 익명인 경우 환자정보, 관계를 입력하지 않으시면 됩니다.)</caption>
  495. <line id="line1" class="line_2" style="x1:0px; y1:124px; x2:970px; y2:124px; "/>
  496. <caption id="caption11" class="cell_1" style="left:0px; top:102px; width:105px; height:23px; text-align:center; vertical-align:middle; ">민원인</caption>
  497. <input id="ipt_CintNm" ref="/root/main/vocdata/customer/clntnm" class="input_essential" navindex="7" imemode="hangul" maxlength="40" appearance="input" style="left:108px; top:103px; width:112px; height:19px; ">
  498. <script type="javascript" ev:event="onkeyup">
  499. <![CDATA[
  500. inputEnterKey("btnicon_search2", "DOMActivate");
  501. ]]>
  502. </script>
  503. </input>
  504. <button id="btnicon_search2" class="icon_search" style="left:223px; top:103px; width:16px; height:16px; ">
  505. <caption/>
  506. <script type="javascript" ev:event="DOMActivate">
  507. <![CDATA[
  508. var search_condition = "clntnm";
  509. var search_term = model.getValue("/root/main/vocdata/customer/clntnm");
  510. var receive_clntnm_path = "/root/main/vocdata/customer/clntnm";
  511. var receive_resdnrgstno1_path = "/root/main/vocdata/customer/resdnrgstno1";
  512. var receive_resdnrgstno2_path = "/root/main/vocdata/customer/resdnrgstno2";
  513. var receive_gndr_path = "/root/main/vocdata/customer/gndr";
  514. var receive_zipcd1_path = "/root/main/vocdata/customer/zipcd1";
  515. var receive_zipcd2_path = "/root/main/vocdata/customer/zipcd2";
  516. var receive_zipcdaddr_path = "/root/main/vocdata/customer/zipcdaddr";
  517. var receive_detladdr_path = "/root/main/vocdata/customer/detladdr";
  518. var receive_hometelno_path = "/root/main/vocdata/customer/hometelno";
  519. var receive_mpphonno_path = "/root/main/vocdata/customer/mpphonno";
  520. var receive_etctelno_path = "/root/main/vocdata/customer/etctelno";
  521. var receive_emailaddr_path = "/root/main/vocdata/customer/emailaddr";
  522. setParameter("search_condition", search_condition);
  523. setParameter("search_term", search_term);
  524. setParameter("receive_clntnm_path", receive_clntnm_path);
  525. setParameter("receive_resdnrgstno1_path", receive_resdnrgstno1_path);
  526. setParameter("receive_resdnrgstno2_path", receive_resdnrgstno2_path);
  527. setParameter("receive_gndr_path", receive_gndr_path);
  528. setParameter("receive_zipcd1_path", receive_zipcd1_path);
  529. setParameter("receive_zipcd2_path", receive_zipcd2_path);
  530. setParameter("receive_zipcdaddr_path", receive_zipcdaddr_path);
  531. setParameter("receive_detladdr_path", receive_detladdr_path);
  532. setParameter("receive_hometelno_path", receive_hometelno_path);
  533. setParameter("receive_mpphonno_path", receive_mpphonno_path);
  534. setParameter("receive_etctelno_path", receive_etctelno_path);
  535. setParameter("receive_emailaddr_path", receive_emailaddr_path);
  536. modal("SPCVO00400");
  537. clearParameter("search_condition");
  538. clearParameter("search_term");
  539. clearParameter("receive_clntnm_path");
  540. clearParameter("receive_resdnrgstno1_path");
  541. clearParameter("receive_resdnrgstno2_path");
  542. clearParameter("receive_gndr_path");
  543. clearParameter("receive_zipcd1_path");
  544. clearParameter("receive_zipcd2_path");
  545. clearParameter("receive_zipcdaddr_path");
  546. clearParameter("receive_detladdr_path");
  547. clearParameter("receive_hometelno_path");
  548. clearParameter("receive_mpphonno_path");
  549. clearParameter("receive_etctelno_path");
  550. clearParameter("receive_emailaddr_path");
  551. ]]>
  552. </script>
  553. </button>
  554. <caption id="caption12" class="cell_1" style="left:242px; top:102px; width:105px; height:23px; text-align:center; vertical-align:middle; ">주민등록번호</caption>
  555. <input id="ipt_ResdnRgstNo1" ref="/root/main/vocdata/customer/resdnrgstno1" class="input_default" maxlength="6" style="left:350px; top:103px; width:59px; height:19px; "/>
  556. <input id="ipt_ResdnRgstNo2" ref="/root/main/vocdata/customer/resdnrgstno2" class="input_default" maxlength="7" style="left:411px; top:103px; width:69px; height:19px; "/>
  557. <caption id="caption13" class="cell_1" style="left:482px; top:102px; width:105px; height:23px; text-align:center; vertical-align:middle; ">성 별</caption>
  558. <select1 id="rdo_Gndr" ref="/root/main/vocdata/customer/gndr" appearance="full" overflow="visible" style="left:591px; top:104px; width:40px; height:19px; background-color:transparent; border-style:none; ">
  559. <choices>
  560. <item>
  561. <label>남</label>
  562. <value>M</value>
  563. </item>
  564. </choices>
  565. </select1>
  566. <select1 id="radio1" ref="/root/main/vocdata/customer/gndr" appearance="full" overflow="visible" style="left:632px; top:104px; width:40px; height:19px; background-color:transparent; border-style:none; ">
  567. <choices>
  568. <item>
  569. <label>여</label>
  570. <value>F</value>
  571. </item>
  572. </choices>
  573. </select1>
  574. <line id="line5" class="line_2" style="x1:0px; y1:148px; x2:970px; y2:148px; "/>
  575. <caption id="caption14" class="cell_1" style="left:0px; top:126px; width:105px; height:23px; text-align:center; vertical-align:middle; ">주소</caption>
  576. <output id="ipt_ZipCd1" ref="/root/main/vocdata/customer/zipcd1" class="output_fix" style="left:108px; top:127px; width:45px; height:19px; "/>
  577. <output id="ipt_ZipCd2" ref="/root/main/vocdata/customer/zipcd2" class="output_fix" style="left:155px; top:127px; width:45px; height:19px; "/>
  578. <button id="btnicon_search5" class="icon_search" style="left:203px; top:129px; width:16px; height:16px; ">
  579. <caption/>
  580. <script type="javascript" ev:event="DOMActivate">
  581. <![CDATA[
  582. var search_term1 = model.getValue("/root/main/vocdata/customer/zipcd1");
  583. var search_term2 = model.getValue("/root/main/vocdata/customer/zipcd2");
  584. var search_term = search_term1 + "-" + search_term2;
  585. if ( search_term1 != "") {
  586. var search_condition = "srchzipcd";
  587. } else {
  588. var search_condition = "srchcombination";
  589. }
  590. var receive_zipcd1_path = "/root/main/vocdata/customer/zipcd1";
  591. var receive_zipcd2_path = "/root/main/vocdata/customer/zipcd2";
  592. var receive_zipcdseq_path = "/root/main/vocdata/customer/zipcdseq";
  593. var receive_zipcdaddr_path = "/root/main/vocdata/customer/zipcdaddr";
  594. setParameter("search_condition", search_condition);
  595. setParameter("search_term", search_term);
  596. setParameter("receive_zipcd1_path", receive_zipcd1_path);
  597. setParameter("receive_zipcd2_path", receive_zipcd2_path);
  598. setParameter("receive_zipcdseq_path", receive_zipcdseq_path);
  599. setParameter("receive_zipcdaddr_path", receive_zipcdaddr_path);
  600. modal("SPCCM00200")
  601. clearParameter("search_condition");
  602. clearParameter("search_term");
  603. clearParameter("receive_zipcd1_path");
  604. clearParameter("receive_zipcd2_path");
  605. clearParameter("receive_zipcdseq_path");
  606. clearParameter("receive_zipcdaddr_path");
  607. ]]>
  608. </script>
  609. </button>
  610. <output id="ipt_ZipCdAddr" ref="/root/main/vocdata/customer/zipcdaddr" class="output_fix" style="left:222px; top:127px; width:320px; height:19px; "/>
  611. <input id="ipt_detladdr" ref="/root/main/vocdata/customer/detladdr" class="input_default" style="left:544px; top:127px; width:426px; height:19px; "/>
  612. <line id="line6" class="line_2" style="x1:0px; y1:172px; x2:970px; y2:172px; "/>
  613. <caption id="caption16" class="cell_1" style="left:0px; top:150px; width:105px; height:23px; text-align:center; vertical-align:middle; ">전화[자택]</caption>
  614. <input id="ipt_HomeTelNo" ref="/root/main/vocdata/customer/hometelno" class="input_default" appearance="input" style="left:108px; top:151px; width:130px; height:19px; "/>
  615. <caption id="caption17" class="cell_1" style="left:241px; top:150px; width:105px; height:23px; text-align:center; vertical-align:middle; ">전화[휴대]</caption>
  616. <input id="ipt_MPphonNo" ref="/root/main/vocdata/customer/mpphonno" class="input_default" navindex="8" appearance="input" style="left:349px; top:151px; width:130px; height:19px; "/>
  617. <caption id="caption18" class="cell_1" style="left:483px; top:150px; width:105px; height:23px; text-align:center; vertical-align:middle; ">전화[기타]</caption>
  618. <input id="ipt_EtcTelNo" ref="/root/main/vocdata/customer/etctelno" class="input_default" appearance="input" style="left:591px; top:151px; width:130px; height:19px; "/>
  619. <line id="line7" class="line_3" style="x1:0px; y1:196px; x2:970px; y2:196px; "/>
  620. <caption id="caption19" class="cell_1" style="left:0px; top:174px; width:105px; height:23px; text-align:center; vertical-align:middle; ">메일주소</caption>
  621. <input id="ipt_EmailAddr" ref="/root/main/vocdata/customer/emailaddr" class="input_default" style="left:108px; top:175px; width:371px; height:19px; "/>
  622. </group>
  623. <group id="group2" style="left:225px; top:5px; width:969px; height:30px; vertical-align:top; ">
  624. <shape id="roundrect1" appearance="roundrect" style="left:210px; top:0px; width:759px; height:30px; "/>
  625. <caption id="caption6" class="search_name" style="left:225px; top:7px; width:77px; height:17px; ">환자명 :</caption>
  626. <input id="ipt_srchpatnm" ref="/root/main/search/srchpatnm" class="input_search" navindex="1" imemode="hangul" maxlength="40" style="left:305px; top:6px; width:90px; height:19px; ">
  627. <script type="javascript" ev:event="onkeyup">
  628. <![CDATA[
  629. inputEnterKey("btn_search", "DOMActivate");
  630. ]]>
  631. </script>
  632. </input>
  633. <caption id="caption7" class="search_name" style="left:407px; top:7px; width:86px; height:17px; ">등록번호 :</caption>
  634. <input id="ipt_srchpid" ref="/root/main/search/srchpid" class="input_search" navindex="2" maxlength="10" format="9999999999" style="left:497px; top:6px; width:90px; height:19px; ">
  635. <script type="javascript" ev:event="onkeyup">
  636. <![CDATA[
  637. inputEnterKey("btn_search", "DOMActivate");
  638. ]]>
  639. </script>
  640. </input>
  641. <caption id="caption8" class="search_name" style="left:598px; top:7px; width:77px; height:17px; ">민원인 :</caption>
  642. <input id="ipt_srchcintnm" ref="/root/main/search/srchcintnm" class="input_search" navindex="3" imemode="hangul" maxlength="40" style="left:678px; top:6px; width:90px; height:19px; ">
  643. <script type="javascript" ev:event="onkeyup">
  644. <![CDATA[
  645. inputEnterKey("btn_search", "DOMActivate");
  646. ]]>
  647. </script>
  648. </input>
  649. <line id="line9" style="x1:782px; y1:7px; x2:782px; y2:26px; border-color:#ffe4bb; border-left-style:solid; "/>
  650. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:792px; top:5px; width:56px; height:22px; ">
  651. <caption>조회</caption>
  652. <script type="javascript" ev:event="DOMActivate">
  653. <![CDATA[
  654. if ( ( ipt_srchpatnm.value.length == 0 ) && (ipt_srchpid.value.length == 0) && (ipt_srchcintnm.value.length == 0) ){
  655. messageBox("환자 이름, 등록번호, 민원인 중에 적어도 하나는 ", "C001");
  656. model.setFocus("ipt_srchpatnm");
  657. } else if ( ( ipt_srchpatnm.value.length > 0 ) && (ipt_srchpatnm.value.length < 2) ){
  658. messageBox("환자 이름 검색은 최소 2글자 이상 ", "C001");
  659. model.setFocus("ipt_srchpatnm");
  660. } else if ( ( ipt_srchcintnm.value.length > 0 ) && (ipt_srchcintnm.value.length < 2) ){
  661. messageBox("민원인 검색은 최소 2글자 이상 ", "C001");
  662. model.setFocus("ipt_srchcintnm");
  663. } else {
  664. model.copyNode("/root/main/temp", "/root/send");
  665. open("SPCVO00300", "", "460", "120", "SPCVO00300", "/root/main/search", "/root/main/search");
  666. }
  667. ]]>
  668. </script>
  669. </button>
  670. <button id="button1" class="btn1_letter6" style="left:851px; top:5px; width:104px; height:22px; ">
  671. <caption>민원정보조회</caption>
  672. <script type="javascript" ev:event="DOMActivate">
  673. <![CDATA[
  674. var clntnm = "/root/main/vocdata/customer/clntnm";
  675. var resdnrgstno1 = "/root/main/vocdata/customer/resdnrgstno1";
  676. var mpphonno = "/root/main/vocdata/customer/mpphonno";
  677. var emailaddr = "/root/main/vocdata/customer/emailaddr";
  678. var acpviewdd = "/root/main/vocdata/accept/acpviewdd";
  679. var acpttitl = "/root/main/vocdata/accept/acpttitl";
  680. var acptcnts = "/root/main/vocdata/accept/acptcnts";
  681. var hmpgsqno = "/root/main/vocdata/hmpgvoc/hmpgsqno";
  682. setParameter("clntnm", clntnm);
  683. setParameter("resdnrgstno1", resdnrgstno1);
  684. setParameter("mpphonno", mpphonno);
  685. setParameter("emailaddr", emailaddr);
  686. setParameter("acpviewdd", acpviewdd);
  687. setParameter("acpttitl", acpttitl);
  688. setParameter("acptcnts", acptcnts);
  689. setParameter("hmpgsqno", hmpgsqno);
  690. modal("SPCVO03000")
  691. clearParameter("clntnm");
  692. clearParameter("resdnrgstno1");
  693. clearParameter("mpphonno");
  694. clearParameter("emailaddr");
  695. clearParameter("acpviewdd");
  696. clearParameter("acpttitl");
  697. clearParameter("acptcnts");
  698. clearParameter("hmpgsqno");
  699. model.setValue("/root/main/vocdata/accept/genrdd", model.getValue("/root/main/vocdata/accept/acpviewdd")); // 발생일자
  700. model.setValue("/root/main/vocdata/accept/acpttype", "HE");
  701. model.refresh();
  702. ]]>
  703. </script>
  704. </button>
  705. </group>
  706. <group id="grp_Accept" style="left:225px; top:221px; width:970px; height:530px; ">
  707. <caption id="caption23" class="tit_2" style="left:5px; top:10px; width:111px; height:13px; ">접수내역 등록</caption>
  708. <select id="chk_deptpidopen" ref="/root/main/vocdata/accept/deptpidopenyn" visibility="hidden" overflow="visible" appearance="full" style="left:659px; top:7px; width:151px; height:19px; font-weight:bold; border-style:none; ">
  709. <choices>
  710. <item>
  711. <label>부서에 환자정보 공개</label>
  712. <value>Y</value>
  713. </item>
  714. </choices>
  715. <script type="javascript" ev:event="xforms-select">
  716. <![CDATA[
  717. var r_pid = model.getValue("/root/main/vocdata/customer/pid");
  718. var r_patnm = model.getValue("/root/main/vocdata/customer/patnm");
  719. if ((r_pid == "") && (r_patnm == "")){
  720. messageBox("등록번호와 환자명이 없는 경우에는 부서에 환자정보를 공개해도 보여지는 정보가 없습니다.\n부서에 환자공개를 하시려면 등록번호와 환자명을 먼저 ", "C001");
  721. model.setValue("/root/main/vocdata/accept/deptpidopenyn", "");
  722. model.refresh();
  723. }
  724. ]]>
  725. </script>
  726. <script type="javascript" ev:event="xforms-deselect">
  727. <![CDATA[
  728. ]]>
  729. </script>
  730. </select>
  731. <select id="chk_allopen" ref="/root/main/vocdata/accept/openallyn" visibility="hidden" overflow="visible" appearance="full" style="left:814px; top:7px; width:156px; height:19px; font-weight:bold; border-style:none; ">
  732. <choices>
  733. <item>
  734. <label>모든 부서에 내용 공개</label>
  735. <value>Y</value>
  736. </item>
  737. </choices>
  738. </select>
  739. <line id="line10" class="line_1" style="x1:0px; y1:25px; x2:970px; y2:25px; "/>
  740. <line id="line11" class="line_2" style="x1:0px; y1:52px; x2:970px; y2:52px; "/>
  741. <caption id="caption24" class="cell_1" style="left:0px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">접수일자</caption>
  742. <output id="ipt_AcptDD" ref="/root/main/vocdata/accept/acptdd" class="output_fix" style="left:832px; top:31px; width:70px; height:19px; "/>
  743. <input id="ipt_AcptViewDD" ref="/root/main/vocdata/accept/acpviewdd" class="input_essential" navindex="9" inputtype="date" style="left:108px; top:31px; width:130px; height:19px; "/>
  744. <caption id="caption25" class="cell_1" style="left:241px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">발생일자</caption>
  745. <input id="ipt_GenrDD" ref="/root/main/vocdata/accept/genrdd" class="input_default" inputtype="date" style="left:349px; top:31px; width:130px; height:19px; "/>
  746. <caption id="caption26" class="cell_1" style="left:483px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">접수구분</caption>
  747. <select1 id="cmb_AcptType" ref="/root/main/vocdata/accept/acpttype" class="combo_essential" navindex="10" appearance="minimal" style="left:591px; top:31px; width:130px; height:19px; ">
  748. <choices>
  749. <itemset nodeset="/root/init/C0001list/C0001">
  750. <label ref="cdnm"/>
  751. <value ref="cdid"/>
  752. </itemset>
  753. </choices>
  754. </select1>
  755. <caption id="caption90" class="cell_1" style="left:723px; top:30px; width:105px; height:23px; text-align:center; vertical-align:middle; ">등록일</caption>
  756. <line id="line12" class="line_2" style="x1:0px; y1:76px; x2:970px; y2:76px; "/>
  757. <caption id="caption28" class="cell_1" style="left:0px; top:54px; width:105px; height:23px; text-align:center; vertical-align:middle; ">접수유형</caption>
  758. <select1 id="cmb_AcptKindLrg" ref="/root/main/vocdata/accept/acptkindlrg" class="combo_essential" navindex="11" appearance="minimal" style="left:108px; top:55px; width:130px; height:19px; ">
  759. <choices>
  760. <itemset nodeset="/root/init/C0003list/C0003">
  761. <label ref="cdnm"/>
  762. <value ref="cdid"/>
  763. </itemset>
  764. </choices>
  765. <script type="javascript" ev:event="xforms-value-changed">
  766. <![CDATA[
  767. model.resetInstanceNode("/root/main/vocdata/accept/acptkindmdl");
  768. model.resetInstanceNode("/root/main/vocdata/accept/acptkindsml");
  769. if(cmb_AcptKindLrg.value == 'C') {
  770. model.removeNodeset("/root/init/C0004list/C0004");
  771. model.removeNodeset("/root/init/C0005list/C0005");
  772. model.removeNodeset("/root/init/C0006list/C0006");
  773. model.removeNodeset("/root/init/C0007list/C0007");
  774. model.removeNodeset("/root/init/C0008list/C0008");
  775. model.removeNodeset("/root/init/C0009list/C0009");
  776. zbcfGetCodeList( new Array("C0004"), new Array("/root/init/C0004list"), true );
  777. }else{
  778. model.removeNodeset("/root/init/C0004list/C0004");
  779. model.removeNodeset("/root/init/C0005list/C0005");
  780. model.removeNodeset("/root/init/C0006list/C0006");
  781. model.removeNodeset("/root/init/C0007list/C0007");
  782. model.removeNodeset("/root/init/C0008list/C0008");
  783. model.removeNodeset("/root/init/C0009list/C0009");
  784. }
  785. model.refresh();
  786. ]]>
  787. </script>
  788. </select1>
  789. <select1 id="cmb_AcptKindMdl" ref="/root/main/vocdata/accept/acptkindmdl" class="combo_default" appearance="minimal" style="left:240px; top:55px; width:130px; height:19px; ">
  790. <choices>
  791. <itemset nodeset="/root/init/C0004list/C0004">
  792. <label ref="cdnm"/>
  793. <value ref="cdid"/>
  794. </itemset>
  795. </choices>
  796. <script type="javascript" ev:event="xforms-value-changed">
  797. <![CDATA[
  798. model.resetInstanceNode("/root/main/vocdata/accept/acptkindsml");
  799. if(cmb_AcptKindMdl.value == 'ES') {
  800. model.removeNodeset("/root/init/C0005list/C0005");
  801. model.removeNodeset("/root/init/C0006list/C0006");
  802. model.removeNodeset("/root/init/C0007list/C0007");
  803. model.removeNodeset("/root/init/C0008list/C0008");
  804. model.removeNodeset("/root/init/C0009list/C0009");
  805. cmb_AcptKindSml.choices.itemset.attribute("nodeset") = "/root/init/C0005list/C0005";
  806. zbcfGetCodeList( new Array("C0005"), new Array("/root/init/C0005list"), true );
  807. }else if(cmb_AcptKindMdl.value == 'PS') {
  808. model.removeNodeset("/root/init/C0005list/C0005");
  809. model.removeNodeset("/root/init/C0006list/C0006");
  810. model.removeNodeset("/root/init/C0007list/C0007");
  811. model.removeNodeset("/root/init/C0008list/C0008");
  812. model.removeNodeset("/root/init/C0009list/C0009");
  813. cmb_AcptKindSml.choices.itemset.attribute("nodeset") = "/root/init/C0006list/C0006";
  814. zbcfGetCodeList( new Array("C0006"), new Array("/root/init/C0006list"), true );
  815. }else if(cmb_AcptKindMdl.value == 'OS') {
  816. model.removeNodeset("/root/init/C0005list/C0005");
  817. model.removeNodeset("/root/init/C0006list/C0006");
  818. model.removeNodeset("/root/init/C0007list/C0007");
  819. model.removeNodeset("/root/init/C0008list/C0008");
  820. model.removeNodeset("/root/init/C0009list/C0009");
  821. cmb_AcptKindSml.choices.itemset.attribute("nodeset") = "/root/init/C0007list/C0007";
  822. zbcfGetCodeList( new Array("C0007"), new Array("/root/init/C0007list"), true );
  823. }else if(cmb_AcptKindMdl.value == 'NS') {
  824. model.removeNodeset("/root/init/C0005list/C0005");
  825. model.removeNodeset("/root/init/C0006list/C0006");
  826. model.removeNodeset("/root/init/C0007list/C0007");
  827. model.removeNodeset("/root/init/C0008list/C0008");
  828. model.removeNodeset("/root/init/C0009list/C0009");
  829. cmb_AcptKindSml.choices.itemset.attribute("nodeset") = "/root/init/C0008list/C0008";
  830. zbcfGetCodeList( new Array("C0008"), new Array("/root/init/C0008list"), true );
  831. }else if(cmb_AcptKindMdl.value == 'TS') {
  832. model.removeNodeset("/root/init/C0005list/C0005");
  833. model.removeNodeset("/root/init/C0006list/C0006");
  834. model.removeNodeset("/root/init/C0007list/C0007");
  835. model.removeNodeset("/root/init/C0008list/C0008");
  836. model.removeNodeset("/root/init/C0009list/C0009");
  837. cmb_AcptKindSml.choices.itemset.attribute("nodeset") = "/root/init/C0009list/C0009";
  838. zbcfGetCodeList( new Array("C0009"), new Array("/root/init/C0009list"), true );
  839. }else{
  840. model.removeNodeset("/root/init/C0005list/C0005");
  841. model.removeNodeset("/root/init/C0006list/C0006");
  842. model.removeNodeset("/root/init/C0007list/C0007");
  843. model.removeNodeset("/root/init/C0008list/C0008");
  844. model.removeNodeset("/root/init/C0009list/C0009");
  845. }
  846. model.refresh();
  847. ]]>
  848. </script>
  849. </select1>
  850. <select1 id="cmb_AcptKindSml" ref="/root/main/vocdata/accept/acptkindsml" class="combo_default" appearance="minimal" style="left:372px; top:55px; width:130px; height:19px; ">
  851. <choices>
  852. <itemset nodeset="/root/init/C0005list/C0005">
  853. <label ref="cdnm"/>
  854. <value ref="cdid"/>
  855. </itemset>
  856. </choices>
  857. </select1>
  858. <line id="line13" class="line_2" style="x1:0px; y1:195px; x2:970px; y2:195px; "/>
  859. <caption id="caption29" class="cell_1" style="left:0px; top:78px; width:105px; height:118px; text-align:center; vertical-align:middle; ">
  860. <![CDATA[민원이 제기된
  861. 부서 및 직원]]>
  862. </caption>
  863. <datagrid id="grd_dept" nodeset="/root/main/vocdata/accept/deptview/grid" caption="해당부서^부서코드^해당직원^직원ID" colwidth="225, 40, 100, 50" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:108px; top:79px; width:450px; height:116px; ">
  864. <col class="text_center" ref="deptnm" _key="true"/>
  865. <col class="text_center" ref="deptcd" visibility="hidden" _key="true"/>
  866. <col class="text_center" ref="empnm"/>
  867. <col class="text_center" ref="empid" visibility="hidden"/>
  868. </datagrid>
  869. <output id="ipt_DeptCd" ref="/root/main/vocdata/accept/deptview/area/reqdeptcd" class="output_fix" visibility="hidden" style="left:757px; top:126px; width:100px; height:19px; "/>
  870. <button id="btnicon_search6" class="icon_search" style="left:738px; top:128px; width:16px; height:16px; ">
  871. <caption/>
  872. <script type="javascript" ev:event="DOMActivate">
  873. <![CDATA[
  874. var search_term = model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptnm");
  875. var search_condition = "deptnm";
  876. var receive_deptcd_path = "/root/main/vocdata/accept/deptview/area/reqdeptcd";
  877. var receive_deptnm_path = "/root/main/vocdata/accept/deptview/area/reqdeptnm";
  878. var mode = "A";
  879. setParameter("search_condition", search_condition);
  880. setParameter("search_term", search_term);
  881. setParameter("receive_deptcd_path", receive_deptcd_path);
  882. setParameter("receive_deptnm_path", receive_deptnm_path);
  883. setParameter("mode", mode);
  884. modal("SPCVO00600")
  885. clearParameter("search_condition");
  886. clearParameter("search_term");
  887. clearParameter("receive_deptcd_path");
  888. clearParameter("receive_deptnm_path");
  889. clearParameter("mode");
  890. // zbcfOpenInstDeptCodeList(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
  891. ]]>
  892. </script>
  893. </button>
  894. <input id="ipt_DeptNm" ref="/root/main/vocdata/accept/deptview/area/reqdeptnm" class="input_default" imemode="hangul" style="left:604px; top:127px; width:130px; height:19px; ">
  895. <script type="javascript" ev:event="onkeyup">
  896. <![CDATA[
  897. inputEnterKey("btnicon_search6", "DOMActivate");
  898. ]]>
  899. </script>
  900. </input>
  901. <output id="ipt_EmpCD" ref="/root/main/vocdata/accept/deptview/area/reqempid" class="output_fix" visibility="hidden" style="left:757px; top:104px; width:100px; height:19px; "/>
  902. <button id="btnicon_search7" class="icon_search" style="left:738px; top:105px; width:16px; height:16px; ">
  903. <caption/>
  904. <script type="javascript" ev:event="DOMActivate">
  905. <![CDATA[
  906. var search_term1 = model.getValue("/root/main/vocdata/accept/deptview/area/reqempid");
  907. var search_term2 = model.getValue("/root/main/vocdata/accept/deptview/area/reqempnm");
  908. var search_term3 = model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptcd");
  909. if ( search_term1 != "") {
  910. var search_condition = "empid";
  911. var search_term = search_term1;
  912. } else if ((search_term1 == "") && (search_term2 == "") && (search_term3 != "")) {
  913. var search_condition = "deptcd";
  914. var search_term = search_term3;
  915. } else {
  916. var search_condition = "empnm";
  917. var search_term = search_term2;
  918. }
  919. // var search_condition = "empid";
  920. // var search_term = model.getValue("/root/main/VOCData/accept/DeptView/area/EmpID");
  921. var receive_empid_path = "/root/main/vocdata/accept/deptview/area/reqempid";
  922. var receive_empnm_path = "/root/main/vocdata/accept/deptview/area/reqempnm";
  923. var receive_deptcd_path = "/root/main/vocdata/accept/deptview/area/reqdeptcd";
  924. var receive_deptnm_path = "/root/main/vocdata/accept/deptview/area/reqdeptnm";
  925. setParameter("search_condition", search_condition);
  926. setParameter("search_term", search_term);
  927. setParameter("receive_empid_path", receive_empid_path);
  928. setParameter("receive_empnm_path", receive_empnm_path);
  929. setParameter("receive_deptcd_path", receive_deptcd_path);
  930. setParameter("receive_deptnm_path", receive_deptnm_path);
  931. modal("SPCVO00700")
  932. clearParameter("search_condition");
  933. clearParameter("search_term");
  934. clearParameter("receive_empid_path");
  935. clearParameter("receive_empnm_path");
  936. clearParameter("receive_deptcd_path");
  937. clearParameter("receive_deptnm_path");
  938. ]]>
  939. </script>
  940. </button>
  941. <input id="ipt_EmpNm" ref="/root/main/vocdata/accept/deptview/area/reqempnm" class="input_default" imemode="hangul" style="left:604px; top:104px; width:130px; height:19px; ">
  942. <script type="javascript" ev:event="onkeyup">
  943. <![CDATA[
  944. inputEnterKey("btnicon_search7", "DOMActivate");
  945. ]]>
  946. </script>
  947. </input>
  948. <caption id="caption15" class="search_no_b" style="left:563px; top:104px; width:38px; height:17px; ">직원 :</caption>
  949. <button id="btn_insertDept" class="btn2_letter8" style="left:562px; top:150px; width:108px; height:19px; ">
  950. <caption>부서 및 직원 추가</caption>
  951. <script type="javascript" ev:event="DOMActivate">
  952. <![CDATA[
  953. if (( model.getValue("/root/main/vocdata/accept/deptview/area/reqempid") != "" ) && ( model.getValue("/root/main/vocdata/accept/deptview/area/reqempnm") == "" )){
  954. var rtn = messageBox("직원 선택을 하셨으나 임의로 직원 이름을 지웠습니다. \n직원 없이 부서만 등록 ", "S001");
  955. if(rtn == 6){
  956. model.setValue("/root/main/vocdata/accept/deptview/area/reqempid", "");
  957. } else {
  958. model.setFocus("ipt_EmpNm");
  959. return false;
  960. }
  961. }
  962. if (( model.getValue("/root/main/vocdata/accept/deptview/area/reqempid") == "" ) && ( model.getValue("/root/main/vocdata/accept/deptview/area/reqempnm") != "" )){
  963. var rtn = messageBox("직원 선택은 검색을 통해서 입력하셔야 합니다. \n직원 없이 부서만 등록 ", "S001");
  964. if(rtn == 6){
  965. model.setValue("/root/main/vocdata/accept/deptview/area/reqempnm", "");
  966. model.refresh();
  967. } else {
  968. model.setFocus("ipt_EmpNm");
  969. return false;
  970. }
  971. }
  972. var check_reqdeptcd = model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptcd") ;
  973. if (( check_reqdeptcd == "" ) && ( model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptnm") != "" )){
  974. messageBox("부서 선택은 검색을 통해서 입력하셔야 합니다.", "C099");
  975. model.setFocus("ipt_DeptNm");
  976. return false;
  977. }
  978. if ( check_reqdeptcd != "" ){
  979. for ( i = 1; i < grd_dept.rows; i++) {
  980. if (grd_dept.valueMatrix(i, grd_dept.colRef("deptcd")) == check_reqdeptcd) {
  981. messageBox(i+" 번째 부서와 같은 부서에 대하여 부서 추가를 다시 ","E001");
  982. model.setValue("/root/main/vocdata/accept/deptview/area/reqempnm", "");
  983. model.setValue("/root/main/vocdata/accept/deptview/area/reqempid", "");
  984. model.setValue("/root/main/vocdata/accept/deptview/area/reqdeptnm", "");
  985. model.setValue("/root/main/vocdata/accept/deptview/area/reqdeptcd", "");
  986. model.SetFocus("ipt_DeptNm");
  987. model.refresh();
  988. return false;
  989. }
  990. }
  991. grd_dept.additem();
  992. var receive_empid = model.getValue("/root/main/vocdata/accept/deptview/area/reqempid");
  993. var receive_empnm = model.getValue("/root/main/vocdata/accept/deptview/area/reqempnm");
  994. var receive_deptcd = model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptcd");
  995. var receive_deptnm = model.getValue("/root/main/vocdata/accept/deptview/area/reqdeptnm");
  996. model.setValue("/root/main/vocdata/accept/deptview/grid[" + grd_dept.row + " ]/deptcd", receive_deptcd);
  997. model.setValue("/root/main/vocdata/accept/deptview/grid[" + grd_dept.row + " ]/deptnm", receive_deptnm);
  998. model.setValue("/root/main/vocdata/accept/deptview/grid[" + grd_dept.row + " ]/empid", receive_empid);
  999. model.setValue("/root/main/vocdata/accept/deptview/grid[" + grd_dept.row + " ]/empnm", receive_empnm);
  1000. model.resetInstanceNode("/root/main/vocdata/accept/deptview/area");
  1001. model.refresh();
  1002. } else {
  1003. messageBox("부서를 검색하여 ","C002");
  1004. model.setFocus("ipt_DeptNm");
  1005. }
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <caption id="caption27" class="hand" style="left:560px; top:84px; width:207px; height:17px; ">부서 선택은 필수 사항입니다.</caption>
  1010. <button id="btn_delDept" class="btn2_letter3" style="left:562px; top:173px; width:53px; height:19px; ">
  1011. <caption>행 삭제</caption>
  1012. <script type="javascript" ev:event="DOMActivate">
  1013. <![CDATA[
  1014. if ((grd_dept.row > 0) && (grd_dept.col > 0)){
  1015. grd_dept.deleteRow(grd_dept.row);
  1016. grd_dept.refresh();
  1017. } else if (grd_dept.col == 0) {
  1018. messageBox("번호를 선택하지 말고 내용을 ","C002");
  1019. } else {
  1020. messageBox("삭제할 행이 없거나 삭제할 행을 선택하지 ","E007");
  1021. }
  1022. ]]>
  1023. </script>
  1024. </button>
  1025. <line id="line14" class="line_2" style="x1:0px; y1:219px; x2:970px; y2:219px; "/>
  1026. <caption id="caption33" class="cell_1" style="left:0px; top:197px; width:105px; height:23px; text-align:center; vertical-align:middle; ">제 목</caption>
  1027. <input id="ipt_AcptTitl" ref="/root/main/vocdata/accept/acpttitl" class="input_essential" style="left:108px; top:198px; width:862px; height:19px; "/>
  1028. <line id="line15" class="line_2" style="x1:0px; y1:432px; x2:970px; y2:432px; "/>
  1029. <line id="line16" class="line_3" style="x1:0px; y1:528px; x2:970px; y2:528px; "/>
  1030. <caption id="caption34" class="cell_1" style="left:0px; top:221px; width:105px; height:212px; text-align:center; vertical-align:middle; ">
  1031. <![CDATA[민원 내용]]>
  1032. <script type="javascript" ev:event="ondblclick">
  1033. <![CDATA[
  1034. var s_contents = model.getValue("/root/main/vocdata/accept/acptcnts");
  1035. var receive_path = "/root/main/vocdata/accept/acptcnts";
  1036. model.setValue("/root/main/vocpopup/title", "민원 내용");
  1037. model.setValue("/root/main/vocpopup/contents", s_contents);
  1038. model.makeValue("/root/main/vocpopup/inputmode", "i");
  1039. model.makeValue("/root/main/vocpopup/receive_path", receive_path);
  1040. open("SPCVO01000", "", "", "", "SPCVO01000", "/root/main/vocpopup", "/root/main/vocpopup");
  1041. model.setValue("/root/main/vocpopup/title", "");
  1042. model.setValue("/root/main/vocpopup/contents", "");
  1043. model.setValue("/root/main/vocpopup/inputmode", "");
  1044. model.setValue("/root/main/vocpopup/receive_path", "");
  1045. model.refresh();
  1046. ]]>
  1047. </script>
  1048. </caption>
  1049. <caption id="caption30" class="search_no_b" style="left:563px; top:127px; width:38px; height:17px; ">부서 :</caption>
  1050. <caption id="caption31" style="left:757px; top:127px; width:208px; height:17px; ">(해당 직원 없이 부서만 있는 경우)</caption>
  1051. <textarea id="tar_AcptCnts" ref="/root/main/vocdata/accept/acptcnts" class="input_essential" scroll="vertical" style="left:108px; top:222px; width:862px; height:208px; "/>
  1052. <line id="line17" style="x1:590px; y1:222px; x2:590px; y2:430px; border-color:#c0c0c0; border-style:dotted; "/>
  1053. <caption id="caption32" class="cell_1" visibility="visible" style="left:0px; top:434px; width:105px; height:23px; text-align:center; vertical-align:middle; ">
  1054. <![CDATA[자체 처리 사유]]>
  1055. <script type="javascript" ev:event="ondblclick">
  1056. <![CDATA[
  1057. var s_contents = model.getValue("/root/main/vocdata/accept/selfcnts");
  1058. var receive_path = "/root/main/vocdata/accept/selfcnts";
  1059. model.setValue("/root/main/vocpopup/title", "자체 처리 사유");
  1060. model.setValue("/root/main/vocpopup/contents", s_contents);
  1061. model.makeValue("/root/main/vocpopup/inputmode", "i");
  1062. model.makeValue("/root/main/vocpopup/receive_path", receive_path);
  1063. open("SPCVO01000", "", "", "", "SPCVO01000", "/root/main/vocpopup", "/root/main/vocpopup");
  1064. model.setValue("/root/main/vocpopup/title", "");
  1065. model.setValue("/root/main/vocpopup/contents", "");
  1066. model.setValue("/root/main/vocpopup/inputmode", "");
  1067. model.setValue("/root/main/vocpopup/receive_path", "");
  1068. model.refresh();
  1069. ]]>
  1070. </script>
  1071. </caption>
  1072. <select id="chk_selfyn" ref="/root/main/vocdata/accept/selfyn" visibility="visible" overflow="visible" appearance="full" style="left:110px; top:438px; width:365px; height:19px; font-weight:bold; border-style:none; ">
  1073. <choices>
  1074. <item>
  1075. <label>제증명 또는 진단서 발생시 사용</label>
  1076. <value>Y</value>
  1077. </item>
  1078. </choices>
  1079. <script type="javascript" ev:event="xforms-select">
  1080. <![CDATA[
  1081. tar_SelfCnts.disabled = "false";
  1082. ]]>
  1083. </script>
  1084. <script type="javascript" ev:event="xforms-deselect">
  1085. <![CDATA[
  1086. tar_SelfCnts.disabled = "true";
  1087. model.setValue("/root/main/vocdata/accept/selfcnts", "");
  1088. var r_selfdeptnotiyn = model.getValue("/root/main/vocdata/accept/selfdeptnotiyn");
  1089. if (r_selfdeptnotiyn == "Y"){
  1090. model.setValue("/root/main/vocdata/accept/selfdeptnotiyn", "");
  1091. tar_SelfNotiCnts.disabled = "true";
  1092. model.setValue("/root/main/vocdata/accept/selfnoticnts", "");
  1093. }
  1094. model.refresh();
  1095. ]]>
  1096. </script>
  1097. </select>
  1098. <textarea id="tar_SelfCnts" ref="/root/main/vocdata/accept/selfcnts" disabled="true" visibility="visible" scroll="vertical" style="left:0px; top:458px; width:477px; height:68px; "/>
  1099. <caption id="caption35" class="cell_1" visibility="visible" style="left:481px; top:434px; width:105px; height:23px; text-align:center; vertical-align:middle; ">
  1100. <![CDATA[부서 알림 내용]]>
  1101. <script type="javascript" ev:event="ondblclick">
  1102. <![CDATA[
  1103. var s_contents = model.getValue("/root/main/vocdata/accept/selfnoticnts");
  1104. var receive_path = "/root/main/vocdata/accept/selfnoticnts";
  1105. model.setValue("/root/main/vocpopup/title", "부서 알림 내용");
  1106. model.setValue("/root/main/vocpopup/contents", s_contents);
  1107. model.makeValue("/root/main/vocpopup/inputmode", "i");
  1108. model.makeValue("/root/main/vocpopup/receive_path", receive_path);
  1109. open("SPCVO01000", "", "", "", "SPCVO01000", "/root/main/vocpopup", "/root/main/vocpopup");
  1110. model.setValue("/root/main/vocpopup/title", "");
  1111. model.setValue("/root/main/vocpopup/contents", "");
  1112. model.setValue("/root/main/vocpopup/inputmode", "");
  1113. model.setValue("/root/main/vocpopup/receive_path", "");
  1114. model.refresh();
  1115. ]]>
  1116. </script>
  1117. </caption>
  1118. <select id="checkbox1" ref="/root/main/vocdata/accept/selfdeptnotiyn" disabled="true" visibility="visible" overflow="visible" appearance="full" style="left:591px; top:438px; width:176px; height:19px; font-weight:bold; border-style:none; ">
  1119. <choices>
  1120. <item>
  1121. <label>자체 처리 내용 부서 알림</label>
  1122. <value>Y</value>
  1123. </item>
  1124. </choices>
  1125. <script type="javascript" ev:event="xforms-select">
  1126. <![CDATA[
  1127. if (grd_dept.rows < 2){
  1128. messageBox("해당부서가 없어 자체 처리 내용 부서 알림을 선택할 수 없습니다.\n부서 알림을 선택하시려면 해당부서를 먼저 ", "C002");
  1129. model.setValue("/root/main/vocdata/accept/selfdeptnotiyn", "");
  1130. model.refresh();
  1131. } else {
  1132. tar_SelfNotiCnts.disabled = "false";
  1133. var r_selfyn = model.getValue("/root/main/vocdata/accept/selfyn");
  1134. if (r_selfyn == ""){
  1135. model.setValue("/root/main/vocdata/accept/selfyn", "Y");
  1136. tar_SelfCnts.disabled = "false";
  1137. model.refresh();
  1138. }
  1139. }
  1140. ]]>
  1141. </script>
  1142. <script type="javascript" ev:event="xforms-deselect">
  1143. <![CDATA[
  1144. tar_SelfNotiCnts.disabled = "true";
  1145. model.setValue("/root/main/vocdata/accept/selfnoticnts", "");
  1146. model.refresh();
  1147. ]]>
  1148. </script>
  1149. </select>
  1150. <textarea id="tar_SelfNotiCnts" ref="/root/main/vocdata/accept/selfnoticnts" disabled="true" visibility="visible" scroll="vertical" style="left:481px; top:458px; width:489px; height:68px; "/>
  1151. </group>
  1152. <group id="grp_btn" scroll="auto" style="left:225px; top:751px; width:970px; height:27px; ">
  1153. <caption id="caption36" class="hand" style="left:100px; top:7px; width:520px; height:17px; ">내용 가운데 있는 점선(- - -)은 보고서 출력시 다음 줄로 넘어가는 기준선입니다.</caption>
  1154. <button id="btn_save" class="btn4_letter2" style="left:843px; top:5px; width:56px; height:22px; ">
  1155. <caption>저장</caption>
  1156. <script type="javascript" ev:event="DOMActivate">
  1157. <![CDATA[
  1158. var check_deptcd = grd_dept.valueMatrix(1, grd_dept.colRef("deptcd"));
  1159. var check_deptnm = grd_dept.valueMatrix(1, grd_dept.colRef("deptnm"));
  1160. var s_acptkindlrg = model.getValue("/root/main/vocdata/accept/acptkindlrg");
  1161. var s_acptkindmdl = model.getValue("/root/main/vocdata/accept/acptkindmdl");
  1162. var s_acptkindsml = model.getValue("/root/main/vocdata/accept/acptkindsml");
  1163. var s_pid = model.getValue("/root/main/vocdata/customer/pid");
  1164. var s_patrela = model.getValue("/root/main/vocdata/customer/patrela");
  1165. var s_clntnm = model.getValue("/root/main/vocdata/customer/clntnm");
  1166. var s_patnm = model.getValue("/root/main/vocdata/customer/patnm");
  1167. var s_genrdd = model.getValue("/root/main/vocdata/accept/genrdd");
  1168. var s_acptdd = model.getValue("/root/main/vocdata/accept/acptdd");
  1169. if (s_pid != ""){
  1170. if (s_patrela == ""){
  1171. messageBox("환자와의 관계를 ", "C002");
  1172. model.setFocus("cmb_PatRela");
  1173. return false;
  1174. }
  1175. } else if (s_pid == ""){
  1176. if (s_patrela != ""){
  1177. messageBox("환자 등록번호를 ", "C001");
  1178. model.setFocus("ipt_PID");
  1179. return false;
  1180. }
  1181. }
  1182. if (s_patrela == "A"){
  1183. if (s_patnm != s_clntnm){
  1184. messageBox("환자와의 관계가 본인이면서 환자 이름과 민원인 이름이 ", "E004");
  1185. model.setFocus("ipt_CintNm");
  1186. return false;
  1187. }
  1188. }
  1189. if (s_patrela != ""){
  1190. if ((s_patrela != "A") && (s_clntnm == s_patnm)){
  1191. messageBox("환자와의 관계가 본인이 아니면서 환자 이름과 민원인 이름이 일치 ", "E001");
  1192. model.setFocus("ipt_CintNm");
  1193. return false;
  1194. }
  1195. }
  1196. if (s_genrdd != ""){
  1197. if (s_genrdd > s_acptdd){
  1198. messageBox("발생일자는 오늘 또는 접수일자 이후의 일자를 입력 ", "E001");
  1199. model.setFocus("ipt_GenrDD");
  1200. return false;
  1201. }
  1202. }
  1203. if (s_acptkindlrg == "C"){
  1204. if (s_acptkindmdl == "") {
  1205. messageBox("불만 유형을 ", "C002");
  1206. model.setFocus("cmb_AcptKindMdl");
  1207. return false;
  1208. } else if (s_acptkindsml == "") {
  1209. messageBox("불만 상세 유형을 ", "C002");
  1210. model.setFocus("cmb_AcptKindSml");
  1211. return false;
  1212. }
  1213. }
  1214. if (isRequiredControls("ipt_CintNm", "ipt_AcptViewDD", "cmb_AcptType", "cmb_AcptKindLrg", "ipt_AcptTitl", "tar_AcptCnts") ){
  1215. if (model.getValue("/root/main/vocdata/accept/selfyn") == "Y"){
  1216. if (model.getValue("/root/main/vocdata/accept/selfcnts") == "") {
  1217. messageBox("자체 처리 사유를 ", "C001");
  1218. model.setFocus("tar_SelfCnts");
  1219. } else if ( (model.getValue("/root/main/vocdata/accept/selfdeptnotiyn") == "Y") && (model.getValue("/root/main/vocdata/accept/selfnoticnts") == "") ) {
  1220. messageBox("자체 처리 부서 알림 내용을 ", "C001");
  1221. model.setFocus("tar_SelfNotiCnts");
  1222. } else {
  1223. if (grd_dept.rows < 2){
  1224. if(submit("TXCVO00103")){
  1225. var rtn = messageBox("VOC 등록과 자체 처리가 완료되었습니다. \n 새로운 VOC 등록을 ", "Q003");
  1226. if(rtn == 6){
  1227. fInitControl();
  1228. } else {
  1229. navigate("SMCVO00200");
  1230. }
  1231. }
  1232. } else {
  1233. if(submit("TXCVO00102")){
  1234. var rtn = messageBox("VOC 등록과 자체 처리가 완료되었습니다. \n 새로운 VOC 등록을 ", "Q003");
  1235. if(rtn == 6){
  1236. fInitControl();
  1237. } else {
  1238. navigate("SMCVO00200");
  1239. }
  1240. }
  1241. }
  1242. }
  1243. } else {
  1244. model.setValue("/root/main/vocdata/accept/selfcnts", "");
  1245. if (grd_dept.rows < 2){
  1246. messageBox("적어도 해당부서 1개 이상을 ", "C001");
  1247. model.setFocus("btnicon_search6");
  1248. } else if (check_deptnm == "") {
  1249. messageBox("해당부서 이름을 ", "C001");
  1250. model.setFocus("btnicon_search6");
  1251. } else if (check_deptcd == "") {
  1252. messageBox("해당부서 코드를 ", "C001");
  1253. model.setFocus("btnicon_search6");
  1254. } else if(submit("TXCVO00101")){
  1255. var rtn = messageBox("VOC 등록이 완료되었습니다. \n 새로운 VOC 등록을 ", "Q003");
  1256. if(rtn == 6){
  1257. fInitControl();
  1258. } else {
  1259. navigate("SMCVO00200");
  1260. }
  1261. }
  1262. }
  1263. }
  1264. ]]>
  1265. </script>
  1266. </button>
  1267. <button id="btn_clear" class="btn4_letter3" style="left:902px; top:5px; width:68px; height:22px; ">
  1268. <caption>초기화</caption>
  1269. <script type="javascript" ev:event="DOMActivate">
  1270. <![CDATA[
  1271. fInitControl();
  1272. ]]>
  1273. </script>
  1274. </button>
  1275. </group>
  1276. <import id="import1" overflow="hidden" instancetype="merge" src="./SSCVO00100_LeftTree.xrw" style="left:0px; top:23px; width:215px; height:744px; "/>
  1277. <shape id="rndrctlgnd" class="roundrect_legend" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:24px; top:515px; width:167px; height:220px; background-color:#f2f6ff; border-color:#c8c0fd; "/>
  1278. <caption id="caption50" class="hand" style="left:35px; top:525px; width:144px; height:20px; ">VOC 진행 프로세스</caption>
  1279. <caption id="caption51" style="left:55px; top:549px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1280. <![CDATA[(1) 접수]]>
  1281. <hint>
  1282. <![CDATA[
  1283. 민원담당부서에서 여러 경로를 통해 접수된 VOC를 민원인
  1284. 정보와 함께 접수 등록을 하게 되면【접수】상태가 된다.
  1285. ]]>
  1286. </hint>
  1287. </caption>
  1288. <caption id="caption52" style="left:55px; top:565px; width:115px; height:15px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1289. <![CDATA[(2) 회신요청]]>
  1290. <hint>
  1291. <![CDATA[
  1292. 민원담당부서 담당자가 "접수"된 VOC를 선택하여 처리 요청을
  1293. 하게 되면【회신요청】상태가 된다. 이 때 담당부서가 2개 이상인
  1294. 경우에 미리 입력한 담당부서에 대하여 처리 요청을 할 수 있다.
  1295. ]]>
  1296. </hint>
  1297. </caption>
  1298. <caption id="caption53" style="left:55px; top:581px; width:115px; height:15px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1299. <![CDATA[(3) 부서처리중]]>
  1300. <hint>
  1301. <![CDATA[
  1302. 각 부서 담당자가 "회신요청"된 VOC를 선택하여 그 내용을 읽고 『부서 접수 확인』
  1303. 버튼을 눌러 해당 VOC 처리를 시작했음을 알리게 되면【부서처리중】상태가 된다.
  1304. ]]>
  1305. </hint>
  1306. </caption>
  1307. <caption id="caption54" style="left:55px; top:597px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1308. <![CDATA[(4) 부서회신]]>
  1309. <hint>
  1310. <![CDATA[
  1311. 각 부서 담당자가 "부서처리중"인 VOC에 대하여 실제 업무처리를 하고
  1312. 부서장에게 결재 요청을 하고 난 뒤 부서장의 결재를 받아 부서 담당자가
  1313. 민원담당부서 담당자에게 회신하게 되면【부서회신】상태가 된다.
  1314. ]]>
  1315. </hint>
  1316. </caption>
  1317. <caption id="caption55" style="left:55px; top:613px; width:125px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1318. <![CDATA[(5) 종결 / 임의종결]]>
  1319. <hint>
  1320. <![CDATA[
  1321. 민원담당부서 담당자가 "부서장승인"인 VOC에 대하여 종결 확인
  1322. 버튼을 눌러 부서에 대하여 종결처리를 하면【종결】상태가 된다.
  1323. 해당 부서에 "회신요청"을 했음에도 불구하고 그 부서에서 답변이
  1324. 없을 때 업무 진행의 효율을 위해서 임의종결 처리를 하여 종결
  1325. 처리한 효과와 같은 효과를 줄 수 있다.
  1326. ]]>
  1327. </hint>
  1328. </caption>
  1329. <caption id="caption56" style="left:55px; top:629px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1330. <![CDATA[(6) 승인요청]]>
  1331. <hint>
  1332. <![CDATA[
  1333. 민원담당부서 담당자가 모든 해당 부서에 대하여 "종결" 또는
  1334. "임의종결"인 VOC에 대하여 민원담당부서장에게 고객 회신을
  1335. 위한 부서장 승인 요청을 하면【승인요청】상태가 된다.
  1336. ]]>
  1337. </hint>
  1338. </caption>
  1339. <caption id="caption57" style="left:55px; top:645px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1340. <![CDATA[(7) 부서장승인]]>
  1341. <hint>
  1342. <![CDATA[
  1343. 민원담당부서장은 "승인요청"인 VOC에 대하여 고객 회신을
  1344. 위한 부서장 승인을 하면【부서장승인】상태가 된다.
  1345. ]]>
  1346. </hint>
  1347. </caption>
  1348. <caption id="caption58" style="left:55px; top:661px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1349. <![CDATA[(8) 고객회신]]>
  1350. <hint>
  1351. <![CDATA[
  1352. 민원담당부서 담당자가 부서장 승인을 받은 VOC에 대하여
  1353. 민원인에게 그 결과를 알려주고 경과 내용을 입력하고
  1354. 고객회신 완료 버튼을 누르게 되면【고객회신】상태가 된다.
  1355. ]]>
  1356. </hint>
  1357. </caption>
  1358. <caption id="caption59" style="left:55px; top:677px; width:115px; height:16px; font-weight:bold; vertical-align:top; line-spacing:7; ">
  1359. <![CDATA[(9) 처리완료]]>
  1360. <hint>
  1361. <![CDATA[
  1362. 민원담당부서 담당자가 "고객회신"인 VOC에 대하여 처리 경과 등 처리내용을
  1363. 적은 후 원인분석 및 개선활동을 적고 이후에도 지속적으로 관리하여야 하는지
  1364. 여부를 체크하고 완료처리 버튼을 누르게 되면【처리완료】상태가 된다.
  1365. ]]>
  1366. </hint>
  1367. </caption>
  1368. <caption id="caption60" style="left:60px; top:697px; width:115px; height:15px; vertical-align:top; line-spacing:7; ">
  1369. <![CDATA[ * 접수취소]]>
  1370. <hint>
  1371. <![CDATA[
  1372. "접수"된 VOC는 "회신 요청"을 하기 전에 "접수 취소"를 할 수 있다. 하지만 이미
  1373. 프로세스가 진행되어 담당부서로 요청한 경우에는 접수 취소를 할 수 없게 된다.
  1374. ]]>
  1375. </hint>
  1376. </caption>
  1377. <caption id="caption61" style="left:60px; top:713px; width:115px; height:15px; vertical-align:top; line-spacing:7; ">
  1378. <![CDATA[ * 자체처리]]>
  1379. <hint>
  1380. <![CDATA[
  1381. "접수"된 VOC는 "회신 요청"을 하기 전에 민원담당부서에서 자체적으로 완료처리를 할 수 있다.
  1382. 하지만 이미 프로세스가 진행되어 담당부서로 요청한 경우에는 자체처리를 할 수 없게 된다.
  1383. ]]>
  1384. </hint>
  1385. </caption>
  1386. </xhtml:body>
  1387. </xhtml:html>