SMCVA00100_VOC접수등록.xrw 58 KB

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