SMPMC00400_급여제한환자관리.xrw 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <send>
  10. <data1>
  11. <refflag>4</refflag>
  12. <pid/>
  13. <hngnm/>
  14. <appfromdd/>
  15. <apptodd/>
  16. <aprvyn>1</aprvyn>
  17. </data1>
  18. <data2>
  19. <sess_posinstcd/>
  20. </data2>
  21. <data3>
  22. <pid/>
  23. <appdd/>
  24. </data3>
  25. <data4>
  26. <srchcond/>
  27. <pid/>
  28. <hngnm/>
  29. <rrgstno1/>
  30. <rrgstno2/>
  31. <autoflag/>
  32. </data4>
  33. <data5>
  34. <s_plpm>
  35. <plpm/>
  36. </s_plpm>
  37. </data5>
  38. <data6>
  39. <grdpaylimlist/>
  40. </data6>
  41. </send>
  42. <main>
  43. <ptbs>
  44. <ptbs_status/>
  45. <ptbs_pid/>
  46. <ptbs_hngnm/>
  47. <ptbs_engnm/>
  48. <ptbs_rrgstno1/>
  49. <ptbs_rrgstno2/>
  50. <ptbs_brthdd/>
  51. <ptbs_sex/>
  52. <ptbs_age/>
  53. <ptbs_hometel/>
  54. <ptbs_mpphontel/>
  55. <ptbs_zipcd1/>
  56. <ptbs_zipcd2/>
  57. <ptbs_zipcdseq/>
  58. <ptbs_zipnm/>
  59. <ptbs_detladdr/>
  60. <ptbs_forgeryn/>
  61. <ptbs_recmyn/>
  62. <ptbs_recmerid/>
  63. <ptbs_vipyn/>
  64. <ptbs_religncd/>
  65. <ptbs_remfact/>
  66. <ptbs_inhospyn/>
  67. </ptbs>
  68. <ptin>
  69. <ptin_status/>
  70. <ptin_pid/>
  71. <ptin_insukind/>
  72. <ptin_todd/>
  73. <ptin_seqno/>
  74. <ptin_histstat/>
  75. <ptin_fromdd/>
  76. <ptin_insucd/>
  77. <ptin_insucdnm/>
  78. <ptin_insuno/>
  79. <ptin_insdnm/>
  80. <ptin_insdrrgstno1/>
  81. <ptin_insdrrgstno2/>
  82. <ptin_insdrela/>
  83. </ptin>
  84. <plpm>
  85. <plpm_status/>
  86. <plpm_pid/>
  87. <plpm_appdd/>
  88. <plpm_instcd/>
  89. <plpm_ordtype/>
  90. <plpm_ordfromdd/>
  91. <plpm_ordtodd/>
  92. <plpm_aprvyn/>
  93. <plpm_attdocucd1/>
  94. <plpm_attdocucd2/>
  95. <plpm_attdocucd3/>
  96. <plpm_attdocucd4/>
  97. <plpm_attdocucd5/>
  98. <plpm_insuinstcd/>
  99. <plpm_refresn/>
  100. <plpm_fstrgstid/>
  101. <plpm_rstrgstdt/>
  102. <plpm_lastupdtrid/>
  103. <plpm_lastupdtdt/>
  104. <plpm_diagcd/>
  105. <plpm_diaghngnm/>
  106. <plpm_injrresncd/>
  107. </plpm>
  108. <plpmlist>
  109. <grd_paylimlist/>
  110. </plpmlist>
  111. <patinfo>
  112. <patinfolist/>
  113. </patinfo>
  114. </main>
  115. <hidden>
  116. <original>
  117. <plpm/>
  118. </original>
  119. <rcv>
  120. </rcv>
  121. <init>
  122. <disccd>
  123. <cd/>
  124. <nm/>
  125. </disccd>
  126. <insukind>
  127. <cd/>
  128. <nm/>
  129. </insukind>
  130. <suppkind>
  131. <cd/>
  132. <nm/>
  133. <up/>
  134. <io/>
  135. </suppkind>
  136. <orddeptcd>
  137. <cd/>
  138. <nm/>
  139. </orddeptcd>
  140. <orddrid>
  141. <cd/>
  142. <nm/>
  143. <dp/>
  144. <sp/>
  145. </orddrid>
  146. <flag>
  147. <prestdd/>
  148. <mskindflag/>
  149. </flag>
  150. <wardcd>
  151. <cd/>
  152. <nm/>
  153. <of/>
  154. </wardcd>
  155. <roomcd>
  156. <cd/>
  157. <nm/>
  158. <wd/>
  159. </roomcd>
  160. </init>
  161. <session/>
  162. <rcvflag>
  163. <flag>
  164. <chkcount/>
  165. </flag>
  166. </rcvflag>
  167. <popup>
  168. <snw>
  169. <basedd/>
  170. <diagcd/>
  171. <diagnm/>
  172. <selectedrdodiagkind/>
  173. <flag/>
  174. </snw>
  175. </popup>
  176. <sppiz00400>
  177. <rslt>
  178. <diaghngnm/>
  179. <diagcd/>
  180. <diagengnm/>
  181. <termcd/>
  182. </rslt>
  183. </sppiz00400>
  184. <flag>
  185. <rcv_flag>
  186. <plpm_count/>
  187. </rcv_flag>
  188. <aprv_flag>
  189. <aprv_count/>
  190. </aprv_flag>
  191. </flag>
  192. <etc>
  193. <ordfromdd/>
  194. <ordtodd/>
  195. <refcheck/>
  196. </etc>
  197. <para>
  198. <pid/>
  199. <srchcond/>
  200. </para>
  201. </hidden>
  202. <init>
  203. <P0002list>
  204. <P0002>
  205. <cdnm/>
  206. <cdid/>
  207. </P0002>
  208. </P0002list>
  209. <A0001list>
  210. <A0001>
  211. <cdnm/>
  212. <cdid/>
  213. </A0001>
  214. </A0001list>
  215. </init>
  216. </root>
  217. </instance>
  218. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  219. <submission id="TRPMI00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/hidden/init"/>
  220. <submission id="TRPMC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/plpmlist"/>
  221. <submission id="TRPMC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcv"/>
  222. <submission id="TRPMC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/rcvflag"/>
  223. <submission id="TXPMC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/hidden/flag/rcv_flag"/>
  224. <submission id="TXPMC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5"/>
  225. <submission id="TRPMC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/hidden/h_plpmprint"/>
  226. <submission id="TXPMC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/flag/aprv_flag"/>
  227. <submission id="TXPMC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data6" resultref="/root/hidden/flag/aprv_flag"/>
  228. </model>
  229. <script type="javascript">
  230. <![CDATA[
  231. function fInitialize()
  232. {
  233. model.resetInstanceNode("/root/send/data1");
  234. model.resetInstanceNode("/root/send/data3");
  235. model.resetInstanceNode("/root/send/data4");
  236. model.resetInstanceNode("/root/send/data5");
  237. model.resetInstanceNode("/root/main/ptbs");
  238. model.resetInstanceNode("/root/main/plpm");
  239. model.resetInstanceNode("/root/main/ptin");
  240. model.resetInstanceNode("/root/main/plpmlist/grd_paylimlist");
  241. model.setValue("/root/send/data1/refflag", "4");
  242. model.setValue("/root/send/data1/aprvyn", "1");
  243. model.refresh();
  244. }
  245. function fGetUserInfosSampling()
  246. {
  247. var sUserInfosS = getUserInfos();
  248. sUserInfosS = sUserInfosS + "|";
  249. var UserInfosS_Array = sUserInfosS.split("|");
  250. var userid = UserInfosS_Array[0]; //사용자번호
  251. var usernm = UserInfosS_Array[1]; //사용자이름
  252. var posinstcd = UserInfosS_Array[2]; //소속기관코드
  253. var posinstnm = UserInfosS_Array[3]; //소속기관명
  254. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  255. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  256. model.makeNode("/root/hidden/session/" + "userid");
  257. model.makeNode("/root/hidden/session/" + "usernm");
  258. model.makeNode("/root/hidden/session/" + "posinstcd");
  259. model.makeNode("/root/hidden/session/" + "posinstnm");
  260. model.makeNode("/root/hidden/session/" + "posdeptcd");
  261. model.makeNode("/root/hidden/session/" + "posdeptnm")
  262. if (userid == null || userid == "" || userid == " " || userid == "-") userid = "pam";
  263. if (posinstcd == null || posinstcd == "" || posinstcd == " " || posinstcd == "-") posinstcd = "012";
  264. model.setValue("/root/hidden/session/userid",userid);
  265. model.setValue("/root/hidden/session/usernm",usernm);
  266. model.setValue("/root/hidden/session/posinstcd",posinstcd);
  267. model.setValue("/root/hidden/session/posinstnm",posinstnm);
  268. model.setValue("/root/hidden/session/posdeptcd",posdeptcd);
  269. model.setValue("/root/hidden/session/posdeptnm",posdeptnm);
  270. model.refresh();
  271. }
  272. function fRefFlagSelect(s_refflag)
  273. {
  274. if (s_refflag == "1") {
  275. ipt_pid.visible = true;
  276. ipt_hngnm.visible = false;
  277. ipt_appfromdd.visible = false;
  278. ipt_apptodd.visible = false;
  279. model.setFocus("ipt_pid");
  280. } else if (s_refflag == "2") {
  281. ipt_hngnm.attribute("top") = "8px";
  282. ipt_hngnm.attribute("left") = "226px";
  283. ipt_pid.visible = false;
  284. ipt_hngnm.visible = true;
  285. ipt_appfromdd.visible = false;
  286. ipt_apptodd.visible = false;
  287. model.setFocus("ipt_hngnm");
  288. } else if (s_refflag == "3") {
  289. ipt_appfromdd.attribute("top") = "8px";
  290. ipt_appfromdd.attribute("left") = "226px";
  291. caption.attribute("top") = "8px";
  292. caption.attribute("left") = "354px";
  293. ipt_apptodd.attribute("top") = "8px";
  294. ipt_apptodd.attribute("left") = "369px";
  295. ipt_pid.visible = false;
  296. ipt_hngnm.visible = false;
  297. caption.visible = true;
  298. ipt_appfromdd.visible = true;
  299. ipt_apptodd.visible = true;
  300. model.setValue("/root/send/data1/appfromdd",getCurrentDate());
  301. model.setValue("/root/send/data1/apptodd",getCurrentDate());
  302. } else if (s_refflag == "4") {
  303. ipt_pid.visible = false;
  304. ipt_hngnm.visible = false;
  305. ipt_appfromdd.visible = false;
  306. ipt_apptodd.visible = false;
  307. caption.visible = false;
  308. }
  309. }
  310. //환자정보조회
  311. function fBaseInfoRef(ptbs_flag)
  312. {
  313. if (ptbs_flag == 2) {
  314. if ( model.getValue("/root/main/popupendflag") == "ok" ) {
  315. var ptbs_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
  316. // alert(ptbs_pid);
  317. if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
  318. return false;
  319. } else {
  320. // alert("ptbs_pid1" + ptbs_pid);
  321. model.setValue("/root/main/ptbs/ptbs_pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  322. model.setValue("/root/send/data1/refflag","2");
  323. model.setValue("/root/send/data1/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  324. combo1.dispatch("xforms-select");
  325. fQuery1("P");
  326. }
  327. } else {
  328. fInitialize();
  329. return false;
  330. }
  331. }
  332. if (submit("TRPMC00402") == true) {
  333. var ptbs_node = instance1.selectSingleNode("/root/hidden/rcv/ptbs");
  334. if (ptbs_node != null) {
  335. copyNodeType("/root/main/ptbs","/root/hidden/rcv/ptbs","replace");
  336. } else {
  337. model.resetInstanceNode("/root/main/ptbs");
  338. }
  339. var ptin_node = instance1.selectSingleNode("/root/hidden/rcv/ptin");
  340. if (ptin_node != null) {
  341. copyNodeType("/root/main/ptin","/root/hidden/rcv/ptin","replace");
  342. } else {
  343. model.resetInstanceNode("/root/main/ptin");
  344. }
  345. var plpm_node = instance1.selectSingleNode("/root/hidden/rcv/plpm");
  346. if (plpm_node != null) {
  347. copyNodeType("/root/main/plpm","/root/hidden/rcv/plpm","replace");
  348. copyNodeType("/root/hidden/original/plpm","/root/hidden/rcv/plpm","replace");
  349. } else {
  350. model.resetInstanceNode("/root/main/plpm");
  351. model.resetInstanceNode("/root/hidden/original/plpm");
  352. }
  353. }
  354. }
  355. function fChangeCheck()
  356. {
  357. var plpm_flag;
  358. var ins = document.models( 0 ).instances( 0 );
  359. var h_plpm = ins.selectSingleNode("/root/hidden/original/plpm");
  360. var o_plpm = ins.selectSingleNode("/root/main/plpm");
  361. if (h_plpm == null) {
  362. plpm_flag = null; // 데이터가 없으면 인스턴스 노드가 없다.
  363. // alert("11");
  364. } else if (o_plpm == null) {
  365. plpm_flag = null;
  366. // alert("12");
  367. } else if (h_plpm.xml == o_plpm.xml) {
  368. // alert("13");
  369. plpm_flag = null;
  370. messageBox("변경사항이","I004");
  371. return false;
  372. } else if (h_plpm.xml != o_plpm.xml){
  373. // alert("14");
  374. plpm_flag = 'u'
  375. model.setValue("/root/main/plpm/plpm_status",plpm_flag);
  376. copyNodeType("/root/send/data5/s_plpm","/root/main/plpm","replace");
  377. return true;
  378. }
  379. }
  380. function fHngNmVeri(gubn)
  381. {
  382. var ptbs_hngnm;
  383. if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  384. else if (gubn == "onkeypress" || gubn == "onkeyup")
  385. {
  386. ptbs_hngnm = (ipt_ptbs_hngnm.currentText).toString();
  387. }
  388. //한글 한글자를 그냥 길이1로 계산
  389. if (eval((ptbs_hngnm.length).toString()) < 2)
  390. {
  391. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  392. model.setFocus("ipt_hngnm");
  393. return false;
  394. }
  395. }
  396. function fQuery(flag) {
  397. model.resetInstanceNode("/root/send/data3");
  398. model.setValue("/root/send/data3/pid",model.getValue("/root/main/plpmlist/grd_paylimlist[ " + flag +"]/plpm_pid"));
  399. model.setValue("/root/send/data3/appdd",model.getValue("/root/main/plpmlist/grd_paylimlist[ " + flag +"]/plpm_appdd"));
  400. fBaseInfoRef("1");
  401. }
  402. function fQuery1(flag) {
  403. //2007.12.17 flag 가 "S"인경우 조회항목에서 조회..
  404. // "P"인경우 환자번호,성명,주민번호로 조회
  405. if (flag == "S") {
  406. if (submit("TRPMC00401")) {
  407. var plpm_node = instance1.selectSingleNode("/root/main/plpmlist/grd_paylimlist");
  408. if (plpm_node != null) {
  409. grd_paylimlist.isSelected(1) = true;
  410. fQuery(1);
  411. } else {
  412. fInitialize();
  413. }
  414. }
  415. } else if (flag == "P") {
  416. if (submit("TRPMC00401")) {
  417. var plpm_node = instance1.selectSingleNode("/root/main/plpmlist/grd_paylimlist");
  418. if (plpm_node != null) {
  419. grd_paylimlist.isSelected(1) = true;
  420. fQuery(1);
  421. } else {
  422. model.resetInstanceNode("/root/send/data3");
  423. model.setValue("/root/send/data3/pid",ipt_ptbs_pid.currentText);
  424. if (model.getValue("/root/send/data3/pid") != null && model.getValue("/root/send/data3/pid") != " " && model.getValue("/root/send/data3/pid") != "") {
  425. fBaseInfoRef("1");
  426. }
  427. }
  428. }
  429. }
  430. model.refresh();
  431. }
  432. function fPayLimPrint(vpid,vappdd)
  433. {
  434. model.resetInstanceNode("/root/send/data3");
  435. model.removeNodeset("/root/hidden/h_plpmprint/plpmprint");
  436. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insucd"); //조합기호
  437. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insucdnm"); //조합명칭
  438. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insuno"); //의료보험증번호
  439. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insdnm"); //피보험자성명
  440. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insdrrgstno"); //피보험자주민등록번호
  441. model.makeNode("/root/hidden/h_plpmprint/plpmprint/hngnm"); //수진자성명
  442. model.makeNode("/root/hidden/h_plpmprint/plpmprint/rrgstno"); //수진자주민등록번호
  443. model.makeNode("/root/hidden/h_plpmprint/plpmprint/zipnm"); //수진자주소
  444. model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordtype1"); //진료구분
  445. model.makeNode("/root/hidden/h_plpmprint/plpmprint/ ordtype2"); //진료구분
  446. model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordfromdd"); //진료기간FromDD
  447. model.makeNode("/root/hidden/h_plpmprint/plpmprint/ordtodd"); //진료기간ToDD
  448. model.makeNode("/root/hidden/h_plpmprint/plpmprint/refresn"); //조회사유
  449. model.makeNode("/root/hidden/h_plpmprint/plpmprint/diaghngnm");
  450. model.makeNode("/root/hidden/h_plpmprint/plpmprint/diagcd");
  451. model.makeNode("/root/hidden/h_plpmprint/plpmprint/insuinstcd"); //지사
  452. model.makeNode("/root/hidden/h_plpmprint/plpmprint/injrresncd");
  453. model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd1");
  454. model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd2");
  455. model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd3");
  456. model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd4");
  457. model.makeNode("/root/hidden/h_plpmprint/plpmprint/attdocucd5");
  458. model.makeNode("/root/hidden/h_plpmprint/plpmprint/proccorpcd"); //요양기관번호
  459. model.makeNode("/root/hidden/h_plpmprint/plpmprint/reprtel1"); //병원전화번호
  460. model.makeNode("/root/hidden/h_plpmprint/plpmprint/hospnm"); //병원명칭
  461. model.makeNode("/root/hidden/h_plpmprint/plpmprint/hoszipnm"); //병원주소
  462. model.setValue("/root/send/data3/pid",vpid);
  463. model.setValue("/root/send/data3/appdd",vappdd);
  464. if (submit("TRPMC00404") == true) {
  465. var plpm_node = instance1.selectSingleNode("/root/hidden/h_plpmprint/plpmprint");
  466. if (plpm_node != null) {
  467. var plpm_ordfromdd = model.getValue("/root/hidden/h_plpmprint/plpmprint/ordfromdd");
  468. var plpm_ordtodd = model.getValue("/root/hidden/h_plpmprint/plpmprint/ordtodd");
  469. var plpm_attdocucd1 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd1");
  470. var plpm_attdocucd2 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd2");
  471. var plpm_attdocucd3 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd3");
  472. var plpm_attdocucd4 = model.getValue("/root/hidden/h_plpmprint/plpmprint/attdocucd4"); // 상병발생경위서
  473. //2008.01.13 보험정보를 수정할지 문의..-----
  474. var ptin_insucd = model.getValue("/root/main/ptin/ptin_insucd");
  475. var ptin_insucdnm = model.getValue("/root/main/ptin/ptin_insucdnm");
  476. var ptin_insuno = model.getValue("/root/main/ptin/ptin_insuno");
  477. if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
  478. model.setValue("/root/hidden/h_plpmprint/plpmprint/insucd",ptin_insucd);
  479. }
  480. if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
  481. model.setValue("/root/hidden/h_plpmprint/plpmprint/insucdnm",ptin_insucdnm);
  482. }
  483. if (ptin_insucd != null && ptin_insucd != "" && ptin_insucd != " ") {
  484. model.setValue("/root/hidden/h_plpmprint/plpmprint/insuno",ptin_insuno);
  485. }
  486. model.setValue("/root/hidden/h_plpmprint/plpmprint/insuinstcd", cmb_insuinstcd.label);
  487. //------
  488. model.setValue("/root/hidden/h_plpmprint/plpmprint/ordfromdd",
  489. plpm_ordfromdd.substr(0,4) + ". " + plpm_ordfromdd.substr(4,2) +". " + plpm_ordfromdd.substr(6,2));
  490. model.setValue("/root/hidden/h_plpmprint/plpmprint/ordtodd",
  491. plpm_ordtodd.substr(0,4) + ". " + plpm_ordtodd.substr(4,2) +". " + plpm_ordtodd.substr(6,2));
  492. //공통코드.. 데이터값 어찌 넣을지..
  493. if (plpm_attdocucd1 == "Y") {
  494. model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd1","진료기록부 사본 1부");
  495. }
  496. if (plpm_attdocucd2 == "Y") {
  497. model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd2","구급 일지 1부");
  498. }
  499. if (plpm_attdocucd3 == "Y") {
  500. model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd3","보험카드 사본 1부");
  501. }
  502. if (plpm_attdocucd4 == "Y") {
  503. model.setValue("/root/hidden/h_plpmprint/plpmprint/attdocucd4","상병발생경위서 1부");
  504. }
  505. exeReportPreview("RPPMC00401", "XMLSTR" , "" , "" , "" , "", "", "", "", "", "", "");
  506. //exeReportPreview("RPPMC00401", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true", "", "");
  507. }
  508. }
  509. }
  510. ]]>
  511. </script>
  512. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  513. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  514. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  515. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  516. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  517. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  518. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  519. <script type="javascript" ev:event="xforms-ready">
  520. <![CDATA[
  521. //세션정보
  522. fGetUserInfosSampling();
  523. //공통코드조회
  524. zbcfGetCodeList(new Array("P0002","A0001"),new Array("/root/init/P0002list","/root/init/A0001list"));
  525. model.setValue("/root/send/data2/sess_posinstcd",model.getValue("/root/hidden/session/posinstcd"));
  526. submit("TRPMI00106");
  527. bol_check.selected = true;
  528. ]]>
  529. </script>
  530. </xhtml:head>
  531. <xhtml:body guideline="1,1197;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  532. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  533. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:300px; height:14px; ">급여제한환자관리</caption>
  534. </group>
  535. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  536. <group id="group4" style="left:0px; top:10px; width:600px; height:59px; ">
  537. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:600px; height:59px; "/>
  538. <line id="line40" class="line_4" style="x1:514px; y1:8px; x2:514px; y2:51px; "/>
  539. <caption id="caption32" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">조회조건 :</caption>
  540. <select1 id="radio12" ref="/root/send/data1/aprvyn" class="radio_search" appearance="full" cols="3" overflow="visible" style="left:108px; top:33px; width:162px; height:17px; background-color:#fffbf2; border-style:none; ">
  541. <choices>
  542. <item>
  543. <label>전체</label>
  544. <value>1</value>
  545. </item>
  546. <item>
  547. <label>승인</label>
  548. <value>2</value>
  549. </item>
  550. <item>
  551. <label>불승인</label>
  552. <value>3</value>
  553. </item>
  554. </choices>
  555. </select1>
  556. <caption id="caption33" class="search_name" style="left:15px; top:33px; width:90px; height:17px; ">승인여부 :</caption>
  557. <select1 id="combo1" ref="/root/send/data1/refflag" class="combo_search" appearance="minimal" style="left:108px; top:8px; width:115px; height:19px; ">
  558. <choices>
  559. <item>
  560. <label>환자번호</label>
  561. <value>1</value>
  562. </item>
  563. <item>
  564. <label>환자성명</label>
  565. <value>2</value>
  566. </item>
  567. <item>
  568. <label>신청기간</label>
  569. <value>3</value>
  570. </item>
  571. <item>
  572. <label>전체</label>
  573. <value>4</value>
  574. </item>
  575. </choices>
  576. <script type="javascript" ev:event="xforms-select">
  577. <![CDATA[
  578. var s_refflag = model.getValue("/root/send/data1/refflag");
  579. fRefFlagSelect(s_refflag);
  580. model.refresh();
  581. ]]>
  582. </script>
  583. </select1>
  584. <input id="ipt_pid" ref="/root/send/data1/pid" class="input_search" visibility="hidden" style="left:226px; top:8px; width:125px; height:19px; ">
  585. <script type="javascript" ev:event="onkeypress">
  586. <![CDATA[
  587. if (event.keyCode == "13") {
  588. inputEnterKey("btn_search", "DOMActivate");
  589. }
  590. ]]>
  591. </script>
  592. </input>
  593. <input id="ipt_hngnm" ref="/root/send/data1/hngnm" class="input_search" visibility="hidden" imemode="hangul" style="left:250px; top:8px; width:125px; height:19px; ">
  594. <script type="javascript" ev:event="onkeypress">
  595. <![CDATA[
  596. if (event.keyCode == "13") {
  597. inputEnterKey("btn_search", "DOMActivate");
  598. }
  599. ]]>
  600. </script>
  601. </input>
  602. <input id="ipt_appfromdd" ref="/root/send/data1/appfromdd" class="input_search" visibility="hidden" inputtype="date" style="left:265px; top:10px; width:125px; height:19px; "/>
  603. <input id="ipt_apptodd" ref="/root/send/data1/apptodd" class="input_search" visibility="hidden" inputtype="date" style="left:310px; top:35px; width:125px; height:19px; "/>
  604. <caption id="caption" visibility="hidden" style="left:400px; top:12px; width:12px; height:15px; ">~</caption>
  605. <button id="btn_search" class="btn1_letter2" style="left:529px; top:19px; width:56px; height:22px; ">
  606. <caption>조회</caption>
  607. <script type="javascript" ev:event="DOMActivate">
  608. <![CDATA[
  609. fQuery1("S");
  610. // 조회후 조회조건에 맞게 UI setting
  611. combo1.dispatch("xforms-select");
  612. ]]>
  613. </script>
  614. </button>
  615. </group>
  616. <line id="line48" class="line_1" style="x1:0px; y1:94px; x2:600px; y2:94px; "/>
  617. <caption id="caption38" class="tit_2" style="left:5px; top:79px; width:144px; height:13px; ">급여제한환자내역</caption>
  618. <line id="line1" class="line_1" style="x1:605px; y1:236px; x2:1194px; y2:236px; "/>
  619. <caption id="caption1" class="tit_2" style="left:610px; top:221px; width:144px; height:13px; ">급여제한내용</caption>
  620. <caption id="caption56" class="cell_1" style="left:605px; top:241px; width:115px; height:23px; vertical-align:middle; ">조합(기관)기호</caption>
  621. <caption id="caption7" class="cell_1" style="left:605px; top:289px; width:115px; height:23px; vertical-align:middle; ">피보험자(세대주)</caption>
  622. <caption id="caption8" class="cell_2" style="left:723px; top:289px; width:92px; height:23px; vertical-align:middle; ">성명</caption>
  623. <caption id="caption9" class="cell_2" style="left:921px; top:289px; width:90px; height:23px; vertical-align:middle; ">주민번호</caption>
  624. <caption id="caption10" class="cell_1" style="left:856px; top:241px; width:115px; height:23px; vertical-align:middle; ">조합(기관)명칭</caption>
  625. <caption id="caption2" class="cell_1" style="left:605px; top:337px; width:115px; height:23px; vertical-align:middle; ">진료기간</caption>
  626. <caption id="caption12" class="cell_1" style="left:605px; top:385px; width:115px; height:355px; vertical-align:middle; ">조회사유</caption>
  627. <caption id="caption13" class="cell_1" style="left:856px; top:265px; width:115px; height:23px; vertical-align:middle; ">의료보험증번호</caption>
  628. <output id="output3" ref="/root/main/ptin/ptin_insucdnm" class="output_fix" style="left:974px; top:242px; width:220px; height:19px; "/>
  629. <caption id="caption14" class="cell_1" style="left:605px; top:313px; width:115px; height:23px; vertical-align:middle; ">진료구분</caption>
  630. <caption id="caption15" class="cell_1" style="left:856px; top:313px; width:115px; height:23px; vertical-align:middle; ">지사</caption>
  631. <input id="input5" ref="/root/main/plpm/plpm_ordfromdd" class="input_default" inputtype="date" style="left:723px; top:338px; width:125px; height:19px; "/>
  632. <input id="input6" ref="/root/main/plpm/plpm_ordtodd" class="input_default" inputtype="date" style="left:865px; top:338px; width:125px; height:19px; "/>
  633. <textarea id="textarea1" ref="/root/main/plpm/plpm_refresn" style="left:723px; top:437px; width:471px; height:250px; padding-left:10; padding-top:10; "/>
  634. <output id="output4" ref="/root/main/ptin/ptin_insdrrgstno1" class="output_fix" style="left:1014px; top:290px; width:86px; height:19px; "/>
  635. <output id="output6" ref="/root/main/ptin/ptin_insdnm" class="output_fix" style="left:818px; top:290px; width:100px; height:19px; "/>
  636. <input id="ipt_ptbs_hngnm" ref="/root/main/ptbs/ptbs_hngnm" class="input_s_essential" navindex="2" style="left:733px; top:58px; width:180px; height:19px; ">
  637. <script type="javascript" ev:event="onkeypress">
  638. <![CDATA[
  639. if (event.keyCode=='13') {
  640. setInputNodeCurText();
  641. if (fHngNmVeri("onkeypress") == false) return;
  642. inputEnterKey("btn_ptbspid", "DOMActivate");
  643. }
  644. ]]>
  645. </script>
  646. </input>
  647. <output id="opt_ptbs_brthdd" ref="/root/main/ptbs/ptbs_brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1031px; top:82px; width:163px; height:19px; "/>
  648. <output id="opt_ptbs_zipcd1" ref="/root/main/ptbs/ptbs_zipcd1" class="output_fix" appearance="output" style="left:733px; top:130px; width:60px; height:19px; "/>
  649. <output id="opt_ptbs_detladdr" ref="/root/main/ptbs/ptbs_detladdr" class="output_fix" appearance="output" style="left:733px; top:154px; width:461px; height:19px; "/>
  650. <output id="opt_ptbs_engnm" ref="/root/main/ptbs/ptbs_engnm" class="output_fix" appearance="output" style="left:916px; top:58px; width:278px; height:19px; "/>
  651. <output id="opt_ptbs_zipcd2" ref="/root/main/ptbs/ptbs_zipcd2" class="output_fix" appearance="output" style="left:796px; top:130px; width:60px; height:19px; "/>
  652. <caption id="caption16" class="cell_1" style="left:605px; top:129px; width:125px; height:23px; vertical-align:middle; ">우편번호</caption>
  653. <output id="opt_ptbs_zipnm" ref="/root/main/ptbs/ptbs_zipnm" class="output_fix" appearance="output" style="left:892px; top:130px; width:302px; height:19px; "/>
  654. <caption id="caption17" class="cell_1" style="left:605px; top:57px; width:125px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
  655. <caption id="caption18" class="tit_2" style="left:610px; top:13px; width:170px; height:13px; font-family:돋움; vertical-align:middle; ">인적사항</caption>
  656. <caption id="caption34" class="cell_1" style="left:605px; top:105px; width:125px; height:23px; vertical-align:middle; ">연락처/휴대폰</caption>
  657. <output id="opt_ptbs_age" ref="/root/main/ptbs/ptbs_age" class="output_fix" appearance="output" style="left:1114px; top:34px; width:80px; height:19px; "/>
  658. <input id="ipt_ptbs_pid" ref="/root/main/ptbs/ptbs_pid" class="input_s_essential" navindex="1" maxlength="10" appearance="input" style="left:733px; top:34px; width:161px; height:19px; ">
  659. <script type="javascript" ev:event="onkeypress">
  660. <![CDATA[
  661. if (event.keyCode=='13')
  662. {
  663. model.setValue("/root/main/ptbs/ptbs_pid",ipt_ptbs_pid.currentText);
  664. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  665. if (ptbs_pid == null || ptbs_pid == "" || ptbs_pid == " ") {
  666. messageBox("환자번호가 입력되지","E007");
  667. return false;
  668. } else {
  669. model.setValue("/root/send/data1/refflag","1");
  670. model.setValue("/root/send/data1/pid",ipt_ptbs_pid.currentText);
  671. combo1.dispatch("xforms-select");
  672. fQuery1("P");
  673. }
  674. model.refresh();
  675. }
  676. ]]>
  677. </script>
  678. </input>
  679. <caption id="caption19" class="cell_1" style="left:605px; top:153px; width:125px; height:23px; vertical-align:middle; ">하위주소</caption>
  680. <output id="opt_ptbs_zipcdseq" ref="/root/main/ptbs/ptbs_zipcdseq" class="output_fix" appearance="output" style="left:859px; top:130px; width:30px; height:19px; "/>
  681. <caption id="caption20" class="cell_1" style="left:605px; top:81px; width:125px; height:23px; vertical-align:middle; ">주민번호</caption>
  682. <caption id="caption26" class="cell_1" style="left:916px; top:81px; width:112px; height:23px; vertical-align:middle; ">생년월일</caption>
  683. <output id="opt_ptbs_hometel" ref="/root/main/ptbs/ptbs_hometel" class="output_fix" appearance="output" style="left:733px; top:106px; width:200px; height:19px; "/>
  684. <caption id="caption21" class="cell_1" style="left:605px; top:33px; width:125px; height:23px; vertical-align:middle; ">환자번호</caption>
  685. <output id="opt_ptbs_mpphontel" ref="/root/main/ptbs/ptbs_mpphontel" class="output_fix" appearance="output" style="left:936px; top:106px; width:258px; height:19px; "/>
  686. <caption id="caption22" class="cell_1" style="left:605px; top:177px; width:125px; height:34px; vertical-align:middle; ">참고사항</caption>
  687. <line id="line4" class="line_1" style="x1:605px; y1:28px; x2:1194px; y2:28px; "/>
  688. <output id="opt_ptbs_sex" ref="/root/main/ptbs/ptbs_sex" class="output_fix" appearance="output" style="left:1031px; top:34px; width:80px; height:19px; "/>
  689. <caption id="caption23" class="cell_1" style="left:916px; top:33px; width:112px; height:23px; vertical-align:middle; ">성별/나이</caption>
  690. <textarea id="textarea3" ref="/root/main/ptbs/ptbs_remfact" scroll="vertical" maxlength="150" style="left:733px; top:178px; width:461px; height:30px; "/>
  691. <input id="ipt_ptbs_rrgstno1" ref="/root/main/ptbs/ptbs_rrgstno1" class="input_s_essential" navindex="3" style="left:733px; top:82px; width:88px; height:19px; ">
  692. <script type="javascript" ev:event="onkeypress">
  693. <![CDATA[
  694. if (event.keyCode=="13") {
  695. setInputNodeCurText();
  696. model.resetInstanceNode("/root/send/data4");
  697. model.setValue("/root/send/data4/autoflag","Y");
  698. var ptbs_rrgstno1 = model.getValue("/root/main/ptbs/ptbs_rrgstno1");
  699. if (ptbs_rrgstno1 != null && ptbs_rrgstno1 !=" " && ptbs_rrgstno1 != "") {
  700. model.setValue("/root/send/data4/rrgstno1", model.getValue("/root/main/ptbs/ptbs_rrgstno1"));
  701. model.setValue("/root/send/data4/rrgstno2", model.getValue("/root/main/ptbs/ptbs_rrgstno2"));
  702. model.setValue("/root/send/data4/srchcond", "3");
  703. }
  704. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  705. fBaseInfoRef("2");
  706. }
  707. ]]>
  708. </script>
  709. <script type="javascript" ev:event="xforms-next">
  710. <![CDATA[
  711. model.setFocus("ipt_ptbs_rrgstno2");
  712. ]]>
  713. </script>
  714. </input>
  715. <caption id="caption24" class="cell_1" style="left:605px; top:265px; width:115px; height:23px; vertical-align:middle; ">신청일자</caption>
  716. <input id="input8" ref="/root/main/plpm/plpm_appdd" class="input_default" inputtype="date" style="left:723px; top:266px; width:130px; height:19px; "/>
  717. <input id="input9" ref="/root/main/plpm/plpm_diagcd" class="input_default" _chartype="upper" style="left:723px; top:362px; width:130px; height:19px; ">
  718. <script type="javascript" ev:event="onkeypress">
  719. <![CDATA[
  720. model.setValue("/root/main/plpm/plpm_diagcd",input9.currentText);
  721. if (event.keyCode == "13") {
  722. var icd_diagcd = model.getValue("/root/main/plpm/plpm_diagcd");
  723. // alert(icd_diagcd);
  724. if (icd_diagcd != null && icd_diagcd != " " && icd_diagcd != "") {
  725. inputEnterKey("btn_icdsearch", "DOMActivate");
  726. }
  727. }
  728. ]]>
  729. </script>
  730. </input>
  731. <caption id="caption25" style="left:851px; top:341px; width:11px; height:15px; ">~</caption>
  732. <button id="button11" class="btn5_letter2" style="left:513px; top:74px; width:42px; height:19px; ">
  733. <caption>삭제</caption>
  734. <script type="javascript" ev:event="DOMActivate">
  735. <![CDATA[
  736. var sResult = messageBox("선택 항목을 삭제하시겠습니까?", "Q");
  737. if (sResult == "6") {
  738. var cur_row = grd_paylimlist.row;
  739. grd_paylimlist.addStatus(cur_row, "delete");
  740. if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
  741. var updtdata = getGridUpdateData(grd_paylimlist);
  742. if (updtdata != null && updtdata != "" && updtdata != " ") {
  743. model.setValue("/root/send/data6/grdpaylimlist",grd_paylimlist.getUpdateData());
  744. if (submit("TXPMC00404")) {
  745. if (model.getValue("/root/hidden/flag/aprv_flag/aprv_count") > 0) {
  746. btn_search.dispatch("DOMActivate");
  747. }
  748. }
  749. } else {
  750. messageBox("변경내역이 없습니다!","E999","");
  751. return false;
  752. }
  753. } else {
  754. messageBox("변경내역이 없습니다. 환자를 선택하신후 작업해 주세요!","E999","");
  755. return false;
  756. }
  757. model.refresh();
  758. }
  759. ]]>
  760. </script>
  761. </button>
  762. <button id="button10" class="btn2_letter2" style="left:558px; top:74px; width:42px; height:19px; ">
  763. <caption>출력</caption>
  764. <script type="javascript" ev:event="DOMActivate">
  765. <![CDATA[
  766. var cur_row = grd_paylimlist.row;
  767. if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
  768. fPayLimPrint(model.getValue("/root/main/plpmlist/grd_paylimlist[" + cur_row + "]/plpm_pid"),
  769. model.getValue("/root/main/plpmlist/grd_paylimlist[" + cur_row + "]/plpm_appdd"));
  770. } else {
  771. messageBox("환자를 선택해 주세요.!","E999","");
  772. return false;
  773. }
  774. ]]>
  775. </script>
  776. </button>
  777. <output id="output5" ref="/root/main/plpm/plpm_diaghngnm" class="output_fix" style="left:879px; top:362px; width:315px; height:19px; "/>
  778. <bool id="bool1" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd1" style="left:725px; top:691px; width:20px; height:20px; "/>
  779. <bool id="bool2" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd2" style="left:887px; top:691px; width:20px; height:20px; "/>
  780. <bool id="bool3" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd3" style="left:1035px; top:691px; width:20px; height:20px; "/>
  781. <caption id="caption3" style="left:745px; top:691px; width:116px; height:20px; ">진료 기록부 사본 1부</caption>
  782. <caption id="caption4" style="left:907px; top:691px; width:116px; height:20px; ">구급 일지 1부</caption>
  783. <caption id="caption5" style="left:1055px; top:691px; width:116px; height:20px; ">보험카드 사본 1부</caption>
  784. <input id="ipt_ptbs_rrgstno2" ref="/root/main/ptbs/ptbs_rrgstno2" style="left:825px; top:82px; width:85px; height:19px; ">
  785. <script type="javascript" ev:event="onkeypress">
  786. <![CDATA[
  787. if (event.keyCode=="13") {
  788. inputEnterKey("ipt_ptbs_rrgstno1", "onkeypress");
  789. }
  790. ]]>
  791. </script>
  792. </input>
  793. <output id="output7" ref="/root/main/ptin/ptin_insdrrgstno2" class="output_fix" style="left:1103px; top:290px; width:91px; height:19px; "/>
  794. <button id="btn_ptbspid" class="icon_search" style="left:897px; top:37px; width:16px; height:16px; ">
  795. <caption/>
  796. <script type="javascript" ev:event="DOMActivate">
  797. <![CDATA[
  798. model.resetInstanceNode("/root/send/data4");
  799. var ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  800. if (ptbs_hngnm != null && ptbs_hngnm !=" " && ptbs_hngnm != "") {
  801. model.setValue("/root/send/data4/hngnm",model.getValue("/root/main/ptbs/ptbs_hngnm"));
  802. model.setValue("/root/send/data4/srchcond","2");
  803. }
  804. modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/send/data4", "/root/send");
  805. fBaseInfoRef("2");
  806. ]]>
  807. </script>
  808. </button>
  809. <datagrid id="grd_paylimlist" nodeset="/root/main/plpmlist/grd_paylimlist" caption="환자번호^환자성명^신청일자^승인여부^진료구분^진료시작일^진료종료일" colsep="^" colwidth="80, 88, 86, 68, 61, 97, 96" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:100px; width:600px; height:640px; ">
  810. <col ref="plpm_pid"/>
  811. <col ref="plpm_hngnm"/>
  812. <col ref="plpm_appdd" format="yyyy-mm-dd"/>
  813. <col ref="plpm_aprvyn" type="combo">
  814. <choices>
  815. <item>
  816. <label>승인</label>
  817. <value>Y</value>
  818. </item>
  819. <item>
  820. <label>불승인</label>
  821. <value>N</value>
  822. </item>
  823. </choices>
  824. </col>
  825. <col disabled="true" ref="plpm_ordtype" type="combo">
  826. <choices>
  827. <itemset nodeset="/root/init/A0001list/A0001">
  828. <label ref="cdnm"/>
  829. <value ref="cdid"/>
  830. </itemset>
  831. </choices>
  832. </col>
  833. <col ref="plpm_ordfromdd" format="yyyy-mm-dd"/>
  834. <col ref="plpm_ordtodd" format="yyyy-mm-dd"/>
  835. <script type="javascript" ev:event="onclick">
  836. <![CDATA[
  837. if (isDataCell() == true) {
  838. var cur_row = grd_paylimlist.row;
  839. fQuery(cur_row);
  840. }
  841. model.refresh();
  842. ]]>
  843. </script>
  844. <script type="javascript" ev:event="onaftersort">
  845. <![CDATA[
  846. grd_paylimlist.gridToInstance();
  847. ]]>
  848. </script>
  849. </datagrid>
  850. <button id="btn_icdsearch" class="icon_search" style="left:858px; top:364px; width:16px; height:16px; ">
  851. <caption/>
  852. <script type="javascript" ev:event="DOMActivate">
  853. <![CDATA[
  854. model.setValue("/root/hidden/popup/snw/selectedrdodiagkind","1");
  855. model.setValue("/root/hidden/popup/snw/basedd",getCurrentDate());
  856. model.setValue("/root/hidden/popup/snw/diagcd",model.getValue("/root/main/plpm/plpm_diagcd"));
  857. model.setValue("/root/hidden/popup/snw/flag","D");
  858. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/hidden/popup/snw", "/root/init");
  859. model.setValue("/root/main/plpm/plpm_diagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  860. model.setValue("/root/main/plpm/plpm_diaghngnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  861. model.refresh();
  862. ]]>
  863. </script>
  864. </button>
  865. <caption id="caption11" style="left:725px; top:380px; width:260px; height:50px; text-align:left; ">
  866. <![CDATA[상기 환자는 상기질환으로
  867. ]]>
  868. </caption>
  869. <input id="input1" ref="/root/hidden/etc/ordfromdd" inputtype="date" style="left:876px; top:387px; width:100px; height:19px; "/>
  870. <caption id="caption27" style="left:725px; top:408px; width:240px; height:27px; text-align:left; vertical-align:top; ">퇴원한 환자임.</caption>
  871. <caption id="caption28" style="left:985px; top:380px; width:209px; height:35px; text-align:left; ">본원에서 진료 후</caption>
  872. <input id="input2" ref="/root/hidden/etc/ordtodd" inputtype="date" style="left:1088px; top:387px; width:100px; height:19px; "/>
  873. <input id="input3" ref="/root/main/ptin/ptin_insucd" style="left:723px; top:242px; width:130px; height:19px; "/>
  874. <input id="input4" ref="/root/main/ptin/ptin_insuno" style="left:974px; top:266px; width:195px; height:19px; "/>
  875. <button id="btn_insuno_search" class="icon_search" style="left:1172px; top:269px; width:16px; height:16px; ">
  876. <caption/>
  877. <script type="javascript" ev:event="DOMActivate">
  878. <![CDATA[
  879. //보험증번호 조회(보험자격조회)
  880. var parm = model.getValue("/root/main/ptbs/ptbs_rrgstno1") +
  881. model.getValue("/root/main/ptbs/ptbs_rrgstno2") + "▦" + //주민번호
  882. model.getValue("/root/main/ptbs/ptbs_hngnm") + "▦" ; //이름
  883. setParameter("SPPMC03700_PARM",parm);
  884. setParameter("SPPMC03700_RTN","");
  885. modal("../../../pam/pamcomnweb/xrw/SPPMC03700", "1","400", "400", "SPPMC03700", "", "");
  886. if (getParameter("SPPMC03700_RTN") == "N" || getParameter("SPPMC03700_RTN") == "") return;
  887. if (getParameter("SPPMC03700_RTN") == "Y") {
  888. //return 값이 있으면 보험유형,조합기호,조합기관명칭,의료보험증번호,피보험자성명,취득일자
  889. // model.setValue("/root/main/ptin/ptin_insukind", getParameter("SPPMC03700_insukind"));//보험유형
  890. model.setValue("/root/main/ptin/ptin_insuno" , getParameter("SPPMC03700_insuno"));//조합기호
  891. model.setValue("/root/main/ptin/ptin_insucdnm" , getParameter("SPPMC03700_choicorpnm1"));//조합기관명칭(지사로 디스플레이해달라함)
  892. model.setValue("/root/main/ptin/ptin_insucd" , getParameter("SPPMC03700_insucd"));//의료보험증번호
  893. model.setValue("/root/main/ptin/ptin_insdnm" , getParameter("SPPMC03700_insdnm")); //피보험자성명
  894. // model.setValue("/root/main/ptin/ptin_fromdd" , getParameter("SPPMC03700_insufromdd"));//취득일자
  895. model.refresh();
  896. }
  897. ]]>
  898. </script>
  899. </button>
  900. <bool id="bol_check" ref="/root/hidden/etc/refcheck" style="left:696px; top:389px; width:25px; height:15px; "/>
  901. <caption id="caption29" class="cell_1" style="left:605px; top:361px; width:115px; height:23px; vertical-align:middle; ">상병코드및 상병명</caption>
  902. <select1 id="cmb_insuinstcd" ref="/root/main/plpm/plpm_insuinstcd" appearance="minimal" style="left:974px; top:314px; width:220px; height:19px; ">
  903. <choices>
  904. <item>
  905. <label>서초남부지사</label>
  906. <value>01</value>
  907. </item>
  908. <item>
  909. <label>서초북부지사</label>
  910. <value>02</value>
  911. </item>
  912. <item>
  913. <label>부천남부지사</label>
  914. <value>03</value>
  915. </item>
  916. <item>
  917. <label>부천북부지사</label>
  918. <value>04</value>
  919. </item>
  920. <item>
  921. <label>서출지역본부</label>
  922. <value>05</value>
  923. </item>
  924. <item>
  925. <label>영등포남부지사</label>
  926. <value>06</value>
  927. </item>
  928. <item>
  929. <label>영등포북부지사</label>
  930. <value>07</value>
  931. </item>
  932. <item>
  933. <label>의정부지사</label>
  934. <value>08</value>
  935. </item>
  936. <item>
  937. <label>수원동부지사</label>
  938. <value>09</value>
  939. </item>
  940. <item>
  941. <label>경인지역본부</label>
  942. <value>10</value>
  943. </item>
  944. <item>
  945. <label>인천부평지사</label>
  946. <value>11</value>
  947. </item>
  948. <item>
  949. <label>동대분지사</label>
  950. <value>12</value>
  951. </item>
  952. </choices>
  953. </select1>
  954. <select1 id="combo2" ref="/root/main/plpm/plpm_ordtype" appearance="minimal" style="left:723px; top:314px; width:130px; height:19px; ">
  955. <choices>
  956. <item>
  957. <label>외래</label>
  958. <value>O</value>
  959. </item>
  960. <item>
  961. <label>입원</label>
  962. <value>I</value>
  963. </item>
  964. <item>
  965. <label>외래+입원</label>
  966. <value>A</value>
  967. </item>
  968. </choices>
  969. </select1>
  970. <bool id="bool4" checkvalue="Y,N" ref="/root/main/plpm/plpm_attdocucd4" style="left:725px; top:715px; width:20px; height:20px; "/>
  971. <caption id="caption30" style="left:745px; top:715px; width:136px; height:20px; ">상병발생경위서 1부</caption>
  972. <button id="button6" class="btn5_letter4" style="left:446px; top:74px; width:64px; height:19px; ">
  973. <caption>승인저장</caption>
  974. <script type="javascript" ev:event="DOMActivate">
  975. <![CDATA[
  976. var cur_row = grd_paylimlist.row;
  977. if (cur_row > 0 && grd_paylimlist.row >= grd_paylimlist.fixedRows) {
  978. var updtdata = getGridUpdateData(grd_paylimlist);
  979. if (updtdata != null && updtdata != "" && updtdata != " ") {
  980. model.setValue("/root/send/data6/grdpaylimlist",grd_paylimlist.getUpdateData());
  981. if (submit("TXPMC00403")) {
  982. if (model.getValue("/root/hidden/flag/aprv_flag/aprv_count") > 0) {
  983. btn_search.dispatch("DOMActivate");
  984. }
  985. }
  986. } else {
  987. messageBox("변경내역이 없습니다!","E999","");
  988. return false;
  989. }
  990. } else {
  991. messageBox("변경내역이 없습니다. 환자를 선택하신후 작업해 주세요!","E999","");
  992. return false;
  993. }
  994. model.refresh();
  995. ]]>
  996. </script>
  997. </button>
  998. </group>
  999. <group id="group2" style="left:0px; top:757px; width:1195px; height:27px; ">
  1000. <button id="button17" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  1001. <caption>초기화</caption>
  1002. <script type="javascript" ev:event="DOMActivate">
  1003. <![CDATA[
  1004. //초기화
  1005. fInitialize();
  1006. ]]>
  1007. </script>
  1008. </button>
  1009. <button id="button4" class="btn4_letter2" style="left:1067px; top:5px; width:56px; height:22px; ">
  1010. <caption>저장</caption>
  1011. <script type="javascript" ev:event="DOMActivate">
  1012. <![CDATA[
  1013. // 2008.06.30 필수항목 체크
  1014. // 환자번호
  1015. var sPid = model.getValue("/root/main/ptbs/ptbs_pid");
  1016. if (isNull(sPid)) {
  1017. messageBox("환자정보가 조회되지", "E007");
  1018. return false;
  1019. }
  1020. // 신청일자
  1021. var sAppDD = model.getValue("/root/main/plpm/plpm_appdd");
  1022. if (isNull(sAppDD)) {
  1023. messageBox("신청일자는", "I003");
  1024. return false;
  1025. }
  1026. // 진료구분
  1027. var sOrdType = model.getValue("/root/main/plpm/plpm_ordtype");
  1028. if (isNull(sOrdType)) {
  1029. messageBox("진료구분은", "I003");
  1030. return false;
  1031. }
  1032. //기존자료가 존재하는지를 체크한다.
  1033. model.resetInstanceNode("/root/send/data3");
  1034. model.resetInstanceNode("/root/hidden/rcvflag/flag/chkcount");
  1035. model.setValue("/root/send/data3/pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1036. model.setValue("/root/send/data3/appdd",model.getValue("/root/main/plpm/plpm_appdd"));
  1037. if (model.getValue("/root/send/data3/pid") == null || model.getValue("/root/send/data3/pid") == " " || model.getValue("/root/send/data3/pid") == "") {
  1038. messageBox("환자번호가 없습니다. 환자번호 입력후 다시 조회해 주세요.!!","E999","");
  1039. return false;
  1040. } else {
  1041. submit("TRPMC00403")
  1042. }
  1043. var ichkcount = model.getValue("/root/hidden/rcvflag/flag/chkcount");
  1044. //데이터 존재 - 컨트롤 값이 변경되었는지 체크하여 변경시 업데이트
  1045. if (ichkcount > 0) {
  1046. if (fChangeCheck() == true) {
  1047. submit("TXPMC00401");
  1048. var plpm_count = model.getValue("/root/hidden/flag/rcv_flag/plpm_count");
  1049. // alert("plpm_count : " + plpm_count);
  1050. if (model.getValue("/root/hidden/flag/rcv_flag/plpm_count") == '1'){
  1051. //2007.12.15 급여제한 여부 조회서 출력
  1052. fPayLimPrint(model.getValue("/root/main/plpm/plpm_pid"),model.getValue("/root/main/plpm/plpm_appdd"));
  1053. if (grd_paylimlist.row > 0) {
  1054. fQuery(grd_paylimlist.row);
  1055. }
  1056. }
  1057. }
  1058. // fInitialize("1");
  1059. //데이터 미존재 - 신규저장
  1060. } else {
  1061. var sordfromdd = model.getValue("/root/hidden/etc/ordfromdd");
  1062. var sordtodd = model.getValue("/root/hidden/etc/ordtodd");
  1063. var plpm_refresn = caption11.value + " " + sordfromdd.substr(0,4) + "-" + sordfromdd.substr(4,2) +"-" + sordfromdd.substr(6,2)
  1064. + " " + caption28.value + " " + sordtodd.substr(0,4) + "-" + sordtodd.substr(4,2) +"-" + sordtodd.substr(6,2) + " " +
  1065. caption27.value + " " + model.getValue("/root/main/plpm/plpm_refresn");
  1066. if (model.getValue("/root/hidden/etc/refcheck") == "true") {
  1067. model.setValue("/root/main/plpm/plpm_refresn",plpm_refresn);
  1068. }
  1069. model.setValue("/root/main/plpm/plpm_pid",model.getValue("/root/main/ptbs/ptbs_pid"));
  1070. model.setValue("/root/main/plpm/plpm_status","i");
  1071. copyNodeType("/root/send/data5/s_plpm","/root/main/plpm","replace");
  1072. if (submit("TXPMC00401")) {
  1073. if (model.getValue("/root/hidden/flag/rcv_flag/plpm_count") == '1'){
  1074. //2007.12.15 급여제한 여부 조회서 출력
  1075. fPayLimPrint(model.getValue("/root/main/plpm/plpm_pid"),model.getValue("/root/main/plpm/plpm_appdd"));
  1076. if (grd_paylimlist.row > 0) {
  1077. fQuery(grd_paylimlist.row);
  1078. }
  1079. }
  1080. // fInitialize("1");
  1081. }
  1082. }
  1083. ]]>
  1084. </script>
  1085. </button>
  1086. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1087. <button id="button1" class="btn3_letter4" style="left:0px; top:5px; width:110px; height:20px; ">
  1088. <caption>재원변경</caption>
  1089. <script type="javascript" ev:event="DOMActivate">
  1090. <![CDATA[
  1091. model.resetInstanceNode("/root/hidden/para");
  1092. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1093. if (ptbs_pid != null && ptbs_pid != " " && ptbs_pid != "" ) {
  1094. model.setValue("/root/hidden/para/pid",ptbs_pid);
  1095. // model.setValue("/root/hidden/para/srchcond","1");
  1096. modal("../../../pam/ipatmngtweb/xrw/SMPMI00400", "1","50", "50", "SMPMI00400", "/root/hidden/para", "/root/hidden/source");
  1097. }
  1098. ]]>
  1099. </script>
  1100. </button>
  1101. <button id="button2" class="btn3_letter8" style="left:83px; top:5px; width:128px; height:22px; ">
  1102. <caption>환자기본정보관리</caption>
  1103. <script type="javascript" ev:event="DOMActivate">
  1104. <![CDATA[
  1105. model.resetInstanceNode("/root/hidden/para");
  1106. var ptbs_pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1107. if (ptbs_pid != null && ptbs_pid != " " && ptbs_pid != "" ) {
  1108. model.setValue("/root/hidden/para/pid",ptbs_pid);
  1109. model.setValue("/root/hidden/para/srchcond","1");
  1110. modal("SMPMC01400", "1","100", "100", "SMPMC01400", "/root/hidden/para", "/root/hidden/source");
  1111. }
  1112. ]]>
  1113. </script>
  1114. </button>
  1115. <button id="button3" class="btn3_letter6" style="left:214px; top:5px; width:104px; height:22px; ">
  1116. <caption>외래수납조회</caption>
  1117. <script type="javascript" ev:event="DOMActivate">
  1118. <![CDATA[
  1119. var pid = model.getValue("/root/main/ptbs/ptbs_pid");
  1120. setParameter("SMPAO00300_PARM2", pid);
  1121. modal("SMPAO00300", "1", "200", "200", "SMPAO00300", "", "");
  1122. ]]>
  1123. </script>
  1124. </button>
  1125. <button id="button5" class="btn3_letter6" style="left:321px; top:5px; width:104px; height:22px; ">
  1126. <caption>환자상병조회</caption>
  1127. <script type="javascript" ev:event="DOMActivate">
  1128. <![CDATA[
  1129. modal("SMPIZ00100", "1","100","100", "SMPIZ00100", "/root/main/ptbs/ptbs_pid", "/root/send/pid");
  1130. var diagcd = model.getValue("/root/hidden/smpiz00100/rslt/diag/diagcd");
  1131. if(diagcd != null && diagcd != " " && diagcd != "") {
  1132. model.setValue("/root/main/plpm/plpm_diagcd",model.getValue("/root/hidden/smpiz00100/rslt/diag/diagcd"));
  1133. model.setValue("/root/main/plpm/plpm_diaghngnm",model.getValue("/root/hidden/smpiz00100/rslt/diag/diaghngnm"));
  1134. model.refresh();
  1135. }
  1136. ]]>
  1137. </script>
  1138. </button>
  1139. </group>
  1140. </xhtml:body>
  1141. </xhtml:html>