SMMNH01600_호스피스가족상담.xrw 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>호스피스 환자 가족상담지</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <hospiceinfo>
  11. <hospicedetl>
  12. <cnstkind/>
  13. <cnstdd/>
  14. <cnstfromtm/>
  15. <cnsttotm/>
  16. <cnst/>
  17. <cnstrecnm/>
  18. <lastupdtrnm/>
  19. <seqno/>
  20. <staiud/>
  21. <chk/>
  22. <cnstkindnm/>
  23. <cnstrecnmcode/>
  24. <indd/>
  25. <cretno/>
  26. <cretdd/>
  27. <pid/>
  28. <pname/>
  29. <age/>
  30. </hospicedetl>
  31. </hospiceinfo>
  32. <patinfo>
  33. <patinfolist>
  34. <pid/>
  35. <hngnm/>
  36. <indd/>
  37. <cretno/>
  38. <cretdd/>
  39. <roomcd/>
  40. <sexage/>
  41. </patinfolist>
  42. </patinfo>
  43. <paminfo>
  44. <pamlist/>
  45. </paminfo>
  46. <hospice>
  47. <hospicelist>
  48. <pid/>
  49. <hngnm/>
  50. <sexage/>
  51. <indd/>
  52. <cretno/>
  53. <cretdd/>
  54. <instcd/>
  55. <roomcd/>
  56. </hospicelist>
  57. </hospice>
  58. </main>
  59. <send>
  60. <cnstdd/>
  61. <pid/>
  62. <hngnm/>
  63. <sex/>
  64. <age/>
  65. <jobkind/>
  66. <cnstkind1/>
  67. <cnstkind2/>
  68. <indd/>
  69. <cretno/>
  70. <atdoctid/>
  71. <fbrthdd/>
  72. <lbrthdd/>
  73. <pamcgubun/>
  74. <cretdd/>
  75. <flag/>
  76. </send>
  77. <temp>
  78. <pidinfo/>
  79. </temp>
  80. <send2/>
  81. <hidden>
  82. <hospiceinfo>
  83. <pid/>
  84. <cnstdd/>
  85. </hospiceinfo>
  86. </hidden>
  87. </root>
  88. </instance>
  89. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  90. <submission id="TRMNH01600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospiceinfo"/>
  91. <submission id="TRMNH01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/hospicelist"/>
  92. <submission id="TXMNH01600" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/hospiceinfo"/>
  93. <submission id="TXMNH01601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/hospiceinfo"/>
  94. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  95. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  96. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  100. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  101. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  102. <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
  103. <script type="javascript" src="../../../emr/jcimngtweb/js/SMMRJ00100.js"/>
  104. <script type="javascript" src="../../../emr/agonalcareweb/js/SMMNH02900.js"/>
  105. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  106. <script type="javascript" ev:event="xforms-ready">
  107. <![CDATA[
  108. /*
  109. if(sPamInfo != ""){
  110. ipt_pid.value = model.getValue("/root/main/paminfo/pamlist/pid");
  111. opt_hngnm.value = model.getValue("/root/main/paminfo/pamlist/hngnm");
  112. if( model.getValue("/root/main/paminfo/pamlist/sex") == "F" ){
  113. opt_sex.value = "여성";
  114. model.setValue("/root/send/sex", "여성");
  115. }else{
  116. opt_sex.value = "남성";
  117. model.setValue("/root/send/sex", "남성");
  118. }
  119. opt_age.value = model.getValue("/root/main/paminfo/pamlist/age");
  120. }else{
  121. if(sexage != ""){
  122. if( sexage.substr(0,1) == "F" ){
  123. opt_sex.value = "여성";
  124. model.setValue("/root/send/sex", "여성");
  125. }else{
  126. opt_sex.value = "남성";
  127. model.setValue("/root/send/sex", "남성");
  128. }
  129. opt_age.value = sexage.substr(2,3);
  130. }
  131. }
  132. */
  133. ipt_pid.value = pid;
  134. opt_hngnm.value = hngnm;
  135. rdo_pamcgubun.value = 'W'; //대기
  136. if(sexage != ""){
  137. if( sexage.substr(0,1) == "F" ){
  138. opt_sex.value = "여성";
  139. model.setValue("/root/send/sex", "여성");
  140. }else{
  141. opt_sex.value = "남성";
  142. model.setValue("/root/send/sex", "남성");
  143. }
  144. opt_age.value = sexage.substr(2,3);
  145. }
  146. submit("TRMNW00001",false); // wardcareweb
  147. /*
  148. if(pid !=""){
  149. fSetHosPatTopInfo();
  150. }
  151. */
  152. model.makeValue("/root/send/srchdd" , ""); // 조회기준일자 초기화
  153. ipt_prcpdd.value = model.getValue("/root/send/srchdd");
  154. fSearchIn();
  155. fsearchDetail();
  156. ]]>
  157. </script>
  158. <script type="javascript">
  159. <![CDATA[
  160. /*
  161. var sPamInfo = getGlobalVariable("paminfo");
  162. setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist");
  163. var sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
  164. var sOrdDrId = model.getValue("/root/main/paminfo/pamlist/medispclid"); // 진료의사ID
  165. var sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
  166. var spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
  167. var sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
  168. var sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
  169. var sexage ="";
  170. if(sIOFlag == "I" || sIOFlag == "E" || sIOFlag == "D"){
  171. sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 입원일자
  172. sOrddd = "-"; // 진료일자
  173. }else{
  174. sIndd = "-"; // 입원일자
  175. sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 진료일자
  176. }
  177. */
  178. var pid, indd, hngnm, sexage, cretno ,cretdd, crettm, wardcd, atdoctid;
  179. var vcnstdd;
  180. if(checkOpener()) {
  181. pid = opener.javascript.getParameter("pid");
  182. indd = opener.javascript.getParameter("indd");
  183. hngnm = opener.javascript.getParameter("hngnm");
  184. sexage = opener.javascript.getParameter("sexage");
  185. cretdd = opener.javascript.getParameter("cretdd");
  186. crettm = opener.javascript.getParameter("crettm");
  187. cretno = opener.javascript.getParameter("cretno");
  188. wardcd = opener.javascript.getParameter("wardcd");
  189. atdoctid = opener.javascript.getParameter("atdoctid");
  190. //model.setValue("/root/send/flag", "Y");
  191. //확인
  192. //fSetHosPatTopInfo();
  193. }
  194. // alert("pid : "+pid);
  195. // alert("indd : "+indd);
  196. // alert("hngnm : "+hngnm);
  197. // alert("sexage : "+sexage);
  198. // alert("cretdd : "+cretdd);
  199. // alert("crettm : "+crettm);
  200. // alert("cretno : "+cretno);
  201. // alert("wardcd : "+wardcd);
  202. // alert("atdoctid : "+atdoctid);
  203. if(sexage != ""){
  204. if( sexage.substr(0,1) == "F" ){
  205. opt_sex.value = "여성";
  206. model.setValue("/root/send/sex", "여성");
  207. }else{
  208. opt_sex.value = "남성";
  209. model.setValue("/root/send/sex", "남성");
  210. }
  211. opt_age.value = sexage.substr(2,3);
  212. }
  213. var sOrdDeptCd = getUserInfo("posdeptcd");
  214. var dutplcecd = getUserInfo("dutplcecd");
  215. var usernm = getUserInfo("usernm");
  216. var dt = getCurrentDate();
  217. var fdt = getAddDay(15);
  218. var pCode = "'T75'"; // 조회할 CdGrupID 코드정보 (기관코드찾기)
  219. ipt_prcpdd.value = dt;
  220. //fGetNursHardCdInfo("'690'", getCurrentDate());
  221. fGetHardCDList("N", 690,0,"/root/hidden/cnstkindnode");
  222. model.makeNode("/root/code");
  223. model.makeValue("/root/send/cdgrupid", pCode); // 조회할 CdGrupID 코드정보
  224. model.makeValue("/root/send/srchdd" , dt); // 조회기준일자
  225. model.makeValue("/root/send/jobkind" , '0'); // 초기직종 전체
  226. model.makeValue("/root/send/pid" , ipt_pid.value); // 환자번호
  227. model.makeValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
  228. model.makeValue("/root/send/hngage" , opt_age.value); // 환자나이
  229. model.makeValue("/root/send/hngsex" , opt_sex.value); // 환자성별
  230. model.makeValue("/root/send/indd" , indd); // 입원일자
  231. model.makeValue("/root/send/cretdd" , cretdd); // 생성일자
  232. model.makeValue("/root/send/cretno" , cretno); // 생성일자
  233. //var sPamInfo = getGlobalVariable("paminfo");
  234. //setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
  235. //상단정보를 만듬
  236. model.removenode("/root/main/paminfo/pamlist");
  237. model.makeNode("/root/main/paminfo/pamlist");
  238. model.makeValue("/root/main/paminfo/pamlist/pid", pid);
  239. model.makeValue("/root/main/paminfo/pamlist/indd", indd);
  240. model.makeValue("/root/main/paminfo/pamlist/hngnm", hngnm);
  241. model.makeValue("/root/main/paminfo/pamlist/sex", model.getValue("/root/send/sex"));
  242. model.makeValue("/root/main/paminfo/pamlist/age", model.getValue("/root/send/age"));
  243. model.makeValue("/root/main/paminfo/pamlist/cretdd", cretdd);
  244. model.makeValue("/root/main/paminfo/pamlist/crettm", crettm);
  245. model.makeValue("/root/main/paminfo/pamlist/cretno", cretno);
  246. model.makeValue("/root/main/paminfo/pamlist/wardcd", wardcd);
  247. model.makeValue("/root/main/paminfo/pamlist/atdoctid", atdoctid);
  248. function fSetHosPatTopInfo(){
  249. var pid, indd, cretno, cretdd, instcd, roomcd, sexage, orddd, ordtype;
  250. ordtype = "";
  251. orddd = "";
  252. if(model.getValue("/root/send/flag") =="N"){
  253. var xWardPatListPath = "/root/main/hospice/hospicelist";
  254. //var xPatInfoPath = "/root/main/patinfo/patinfolist";
  255. //model.makeNode(xPatInfoPath);
  256. //model.removeNodeSet(xPatInfoPath);
  257. pid = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/pid");
  258. indd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/indd");
  259. cretno = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/cretno");
  260. cretdd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/cretdd");
  261. instcd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/instcd");
  262. //var ordtype = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/ordtype");
  263. //var orddd = model.getValue("/root/main/cond/orddd");
  264. roomcd = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/roomcd");
  265. //var patnm = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/patnm");
  266. sexage = model.getValue(xWardPatListPath + "[" + grd_hospicelist.row + "]/sexage");
  267. }else{
  268. pid = model.getValue("/root/send/pid");
  269. indd = model.getValue("/root/send/indd");
  270. cretdd = model.getValue("/root/send/cretdd");
  271. cretno = model.getValue("/root/send/cretno");
  272. }
  273. fSetPatInfo(pid,indd,cretno,instcd,orddd,ordtype);
  274. var sPamInfo = getGlobalVariable("paminfo");
  275. setCSVToNode("/root/main/paminfo",sPamInfo,"pamlist"); //환자정보내리기
  276. sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
  277. sOrdDrId = model.getValue("/root/main/paminfo/pamlist/medispclid"); // 진료의사ID
  278. sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
  279. spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
  280. sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
  281. sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
  282. if(sIOFlag == "I" || sIOFlag == "E" || sIOFlag == "D"){
  283. sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 입원일자
  284. sOrddd = "-"; // 진료일자
  285. }else{
  286. sIndd = "-"; // 입원일자
  287. sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 진료일자
  288. }
  289. model.setValue("/root/send/indd" , indd); // 입원일자
  290. model.setValue("/root/send/cretdd" , cretdd); // 생성일자
  291. model.setValue("/root/send/cretno" , cretno); // 생성번호
  292. if(model.getValue("/root/send/flag") =="Y"){
  293. fsearchDetail();
  294. }
  295. }
  296. function checkGridUpdate(grid)
  297. {
  298. var iData = grid.getUpdateDataXml("insert");
  299. var uData = grid.getUpdateDataXml("update");
  300. var dData = grid.getUpdateDataXml("delete");
  301. if (iData=="" && uData=="" && dData=="") return false;
  302. else return true;
  303. }
  304. function fSearchIn(){
  305. ipt_fbrthdd.value = fdt;
  306. ipt_lbrthdd.value = dt;
  307. model.makeValue("/root/send/hospicegubun", "3");
  308. model.setValue("/root/send/fbrthdd", ipt_fbrthdd.value);
  309. model.setValue("/root/send/lbrthdd", ipt_lbrthdd.value);
  310. model.setValue("/root/send/pamcgubun", rdo_pamcgubun.value);
  311. model.removenodeset("/root/main/hospice/hospicelist");
  312. //model.removenodeset("/root/main/hospiceinfo/hospicedetl");
  313. if(submit("TRMNH01601")){
  314. }else{
  315. messageBox('조회를', 'E009');
  316. return false;
  317. }
  318. //grd_hospicelist.dispatch("ondblclick");
  319. /////////////////////////////////////////////
  320. model.refresh();
  321. }
  322. function fsearchDetail(){
  323. if(ipt_pid.value ==""){
  324. messageBox("환자를","C002");
  325. return;
  326. }
  327. model.setValue("/root/send/pid", ipt_pid.value); // 환자번호
  328. model.setValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
  329. model.setValue("/root/send/hngage" , opt_age.value); // 환자나이
  330. model.setValue("/root/send/hngsex" , opt_sex.value); // 환자성별
  331. /*
  332. if( model.getValue("/root/send/srchdd") == "" ){
  333. messageBox("상담일자는","I003");
  334. return;
  335. }
  336. */
  337. /*
  338. if( model.getValue("/root/send/pid") == "" ){
  339. messageBox("환자정보는","I003");
  340. return;
  341. }
  342. */
  343. //model.removenodeset("/root/main/hospiceinfo/hospicedetl");
  344. submit("TRMNH01600");
  345. if(grd_famycnst.rows > 1){
  346. for(var i=1; i<grd_famycnst.rows; i++) {
  347. model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/indd", model.getValue("/root/send/indd"));
  348. model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cretno", model.getValue("/root/send/cretno"));
  349. model.setValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cretdd", model.getValue("/root/send/cretdd"));
  350. }
  351. }
  352. model.refresh();
  353. }
  354. function fMake_SignData(){
  355. Sign.addnode("/root/hidden/hospiceinfo");
  356. var xRecinfoPath = Sign.XPATH_SIGNINFO+"/hospiceinfo/hospicedetl";
  357. }
  358. function fSign(){
  359. Sign.certreload = true ; // 전자서명 호출시 인증저장 버튼을 누를때마다 인증서가 뜨도록 처리
  360. /*
  361. if( vsettime == "") {
  362. Sign.certchkflag = "Y";
  363. //alert("인증저장");
  364. } else {
  365. var res2 = getTimeInterval(vsettime, getCurrentTime(), 'hhmmss');
  366. //var res2 = getTimeInterval(vsettime, getCurrentTime());
  367. alert(res2);
  368. if(res2 > signtime* 60 || res2 < 0) {
  369. Sign.certchkflag = "Y";
  370. //alert("인증저장");
  371. } else {
  372. Sign.certchkflag = "N";
  373. }
  374. }
  375. */
  376. sOrdDrId = model.getValue("/root/main/paminfo/pamlist/atdoctid"); // 진료의사ID
  377. sCretNo = model.getValue("/root/main/paminfo/pamlist/cretno"); // 환자 일자별 일련번호
  378. spid = model.getValue("/root/main/paminfo/pamlist/pid"); // 환자 등록번호
  379. //sIOFlag = model.getValue("/root/main/paminfo/pamlist/ioflag"); // 입원/외래 구분
  380. sIndd = model.getValue("/root/main/paminfo/pamlist/indd"); // 환자 입원일자
  381. //sOrddd = model.getValue("/root/main/paminfo/pamlist/orddd"); // 환자 외래일자
  382. var sPid = model.getValue("/root/send/pid");
  383. var signtime = ""; //인증저장 안뜨는 허용시간( EX) 10이면 10분동안
  384. var vsettime = ""; //인증저장시간.
  385. var delcnt = 0;
  386. var xSignPath = "/root/hidden/hospiceinfo";//인증저장관련노드
  387. model.removeNode("/root/hidden/hospiceinfo");
  388. model.makeNode("/root/hidden/hospiceinfo");
  389. for(var i=1; i<grd_famycnst.rows; i++) {
  390. //alert(grd_famycnst.rowStatus(i));
  391. if(grd_famycnst.rowStatus(i) != "4" ) { //삭제가 아닐경우
  392. copyNodeListType("/root/hidden/hospiceinfo", "/root/main/hospiceinfo/hospicedetl["+i+"]", "after");
  393. }else{
  394. delcnt++;
  395. }
  396. }
  397. var status = ""; //삭제여부
  398. if(getNodesetCount("/root/hidden/hospiceinfo/hospicedetl") < 1) status = "d";
  399. model.refresh();
  400. /*
  401. alert("hidden 크기 : " + grd_hiddenfamycnst.rows);
  402. for(var i=1; i<grd_hiddenfamycnst.rows; i++) {
  403. alert("상담일자 첫째행 : " + model.getValue("/root/hidden/hospiceinfo/hospicedetl["+1+"]/cnstdd"));
  404. alert("상담일자 : " + model.getValue("/root/hidden/hospiceinfo/hospicedetl["+i+"]/cnstdd"));
  405. }
  406. return;
  407. */
  408. if(Sign.signprocess() == true){
  409. // 전자인증 관련 환자 인적 정보를 보내줌.
  410. var vsettime = getCurrentTime();
  411. model.makeValue("/root/send2/signdata/pid", sPid ); //등록번호
  412. model.makeValue("/root/send2/signdata/status", status ); //상태값(그리드 전체 삭제)
  413. /*
  414. if( sIOFlag =="O" ){
  415. model.makeValue("/root/send2/signdata/orddd", sOrddd); //입원일자(입원,응급)/진료일자(외래)
  416. }else{
  417. model.makeValue("/root/send2/signdata/orddd", sIndd); //입원일자(입원,응급)/진료일자(외래)
  418. }
  419. */
  420. model.makeValue("/root/send2/signdata/orddd", sIndd); //입원일자로 수정
  421. model.makeValue("/root/send2/signdata/signno", ""); //서명번호
  422. model.makeValue("/root/send2/signdata/cretno", sCretNo); //생성번호
  423. //model.makeValue("/root/send2/signdata/recdd", getCurrentDate()); // 실제 기록이 이루어진 기록일자
  424. model.makeValue("/root/send2/signdata/recdd", model.getValue("/root/send/srchdd")); // 실제(상담) 기록이 이루어진 기록일자
  425. model.makeValue("/root/send2/signdata/rectm", getCurrentTime()); //실제 기록이 이루어진 기록시간
  426. model.makeValue("/root/send2/signdata/recsaveflag", "Y"); //전자서명 인적정보 변경여부(기록일시 변경되는 경우 : Y, 그외 : N)
  427. model.makeValue("/root/send2/signdata/signflag", "02" ); //서명자료구분 (01 : 진료, 02 : 간호, 03 : LIS, 04 : 진료지원)
  428. model.makeValue("/root/send2/signdata/signgenrflag", "I" ); //외래/입원구분(코드정의서 M0010 참조)
  429. model.makeValue("/root/send2/signdata/formcd", "1500017050" ); //각 기록지별 서식코드
  430. model.makeValue("/root/send2/signdata/orddeptcd", sOrdDeptCd); //진료부서코드
  431. model.makeValue("/root/send2/signdata/orddrid", sOrdDrId ); //진료의사ID
  432. model.makeValue("/root/send2/signdata/dispyn", "Y"); //기록뷰어에는 조회안되도록
  433. // 인증할 데이터 정보(미기록 노드 제거된 정보)
  434. // 미기록 노드 제거전 원본 노드 정보 : Sign.signedInfos[3]
  435. model.makeValue("/root/send2/signdata/signbfcnts", Sign.signedInfos[1]);
  436. // 공인인증 처리후 데이터
  437. model.makeValue("/root/send2/signdata/signaftcnts", Sign.signedInfos[2]);
  438. model.makeValue("/root/send2/signdata/cnstdd", model.getValue("/root/send/srchdd")); //상담시간
  439. model.makeValue("/root/send2/signdata/pid", model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/pid")); //등록번호
  440. model.makeValue("/root/send2/signdata/pname", model.getValue("/root/send/hngnm")); //환자명
  441. model.makeValue("/root/send2/signdata/age", model.getValue("/root/send/hngsex") + "/" + model.getValue("/root/send/hngage")); //상담시간
  442. //alert(model.getValue("/root/send2/signdata/cnstdd"));
  443. }else{
  444. return false;
  445. }
  446. model.makeValue("/root/send2/signdata/screenid", getScreenID());
  447. return true;
  448. }
  449. ]]>
  450. </script>
  451. </model>
  452. </xhtml:head>
  453. <xhtml:body overflow="visible" scroll="autovscroll" pagewidth="1195" pageheight="760" guideline="1,1195;1,1185;1,1210;2,686;2,748;" style="font-family:굴림; color:#999999; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  454. <group id="group1" style="left:0px; top:0px; width:1195px; height:15px; ">
  455. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:296px; height:14px; font-family:돋움체; ">호스피스 환자 가족상담지</caption>
  456. </group>
  457. <group id="group2" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  458. <line id="line97" class="line_1" style="x1:200px; y1:100px; x2:1184px; y2:100px; "/>
  459. <button id="btn_del" class="btn2_letter3" style="left:1065px; top:79px; width:53px; height:19px; ">
  460. <caption>행삭제</caption>
  461. <script type="javascript" ev:event="DOMActivate">
  462. <![CDATA[
  463. grd_famycnst.rowStatus(grd_famycnst.row) = 4;
  464. ]]>
  465. </script>
  466. </button>
  467. <button id="btn_save" class="btn5_letter4" style="left:1120px; top:79px; width:64px; height:19px; ">
  468. <caption>인증저장</caption>
  469. <script type="javascript" ev:event="DOMActivate">
  470. <![CDATA[
  471. if( model.getValue("/root/send/pid") == "" ){
  472. messageBox("환자정보는","I003");
  473. return;
  474. }
  475. if(!checkGridUpdate(grd_famycnst))
  476. {
  477. messageBox("저장할 자료가","I004");
  478. return;
  479. }
  480. if( model.getValue("/root/send/srchdd") == "" ){
  481. messageBox("상담일자는","I003");
  482. return;
  483. }
  484. var vlastupdtrnm;
  485. var vuserid = getUserId();
  486. var usernm = getUserInfo("usernm");
  487. for(var i = 1; i < grd_famycnst.rows; i++ ){
  488. if(grd_famycnst.rowStatus(i) == "1" || grd_famycnst.rowStatus(i) == "2" || grd_famycnst.rowStatus(i) == "4"){
  489. vlastupdtrnm = (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/lastupdtrid"));
  490. if(vlastupdtrnm != vuserid && vlastupdtrnm != "")
  491. {
  492. if(messageBox("다른상담자의 상담 내용 입니다. 계속 진행 하시겠습니까?","S001") != "6"){
  493. return;
  494. }
  495. }
  496. }
  497. }
  498. var cnstdd;
  499. var vcnstfromtm;
  500. var vcnsttotm;
  501. var vcnstfromtmLen;
  502. var vcnsttotmLen;
  503. for(var i = 1; i < grd_famycnst.rows; i++ ){
  504. vcnstfromtm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cnstfromtm"));
  505. vcnsttotm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + i + "]/cnsttotm"));
  506. vcnstfromtmLen = getStringLength(vcnstfromtm);
  507. vcnsttotmLen = getStringLength(vcnsttotm);
  508. if(cnstdd == ""){
  509. messageBox("상담일자를 다시 ", "C001");
  510. return;
  511. }
  512. if(vcnstfromtmLen < 4){
  513. messageBox("상담시작시간을 다시 ", "C001");
  514. return;
  515. }
  516. if(vcnsttotmLen < 4){
  517. messageBox("상담종료시간을 다시 ", "C001");
  518. return;
  519. }
  520. if(vcnstfromtm > vcnsttotm){
  521. messageBox("상담시작시간이 상담종료시간보다 클 수 ","I004");
  522. return;
  523. }
  524. if(vcnstfromtmLen == "" && vcnsttotm == ""){
  525. messageBox("시간을 확인 바랍니다.","I");
  526. return;
  527. }
  528. }
  529. /*
  530. if(messageBox("","Q002") != 6) {
  531. return;
  532. }
  533. */
  534. var sData = grd_famycnst.getUpdateData();
  535. model.removenode("/root/send2");
  536. model.makeNode("/root/send2");
  537. model.makeValue("/root/send2/sData", sData );
  538. model.makeValue("/root/send2/pid", model.getValue("/root/send/pid") );
  539. model.makeValue("/root/send2/cnstdd", model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstdd") );
  540. model.makeValue("/root/send2/jobkind", model.getValue("/root/send/jobkind") );
  541. model.makeValue("/root/send2/cnstkind1", model.getValue("/root/send/cnstkind1") );
  542. model.makeValue("/root/send2/cnstkind2", model.getValue("/root/send/cnstkind2") );
  543. var msg = messageBox( '[ ' + usernm + ' ] 님의 가족 상담내역의 인증저장을', 'Q004'); //실행 하시겠습니까? yes=6, no=7
  544. if(Number(msg) == 6){//예
  545. //임시저장 직종컬럼추가로 인증저장 분리
  546. if (!fSign()) return;
  547. if(!submit("TXMNH01600")){
  548. return;
  549. }
  550. // 인증저장
  551. if (!fSign()) return;
  552. if(!submit("TXMNH01601")){
  553. return;
  554. }
  555. fsearchDetail();
  556. }
  557. model.refresh();
  558. ]]>
  559. </script>
  560. </button>
  561. <caption id="caption76" class="tit_2" style="left:200px; top:85px; width:113px; height:13px; font-family:돋움체; ">가족상담</caption>
  562. <button id="btn_add" class="btn2_letter3" style="left:1010px; top:79px; width:53px; height:19px; ">
  563. <caption>행추가</caption>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. if(ipt_pid.value ==""){
  567. messageBox("환자를 ","C002");
  568. return;
  569. }
  570. grd_famycnst.addRow();
  571. grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstkind")) = '01';
  572. //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstdd")) = getCurrentDate();
  573. grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstdd")) = ipt_prcpdd.value;
  574. grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstfromtm")) = getCurrentTime().substring(0,4);
  575. grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstrecnm")) = '01';
  576. //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("lastupdtrnm")) = getUserInfo("userid");
  577. grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("lastupdtrnm")) = getUserInfo("usernm");
  578. var vcnstkind = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkind");
  579. var hardcdnm= model.getValue("/root/hidden/cnstkindnode/hardcd[hardcd = '" + vcnstkind + "']/hardcdnm");
  580. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkindnm", hardcdnm);
  581. //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstkindnm")) = hardcdnm;
  582. var vcnstrecnm = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnm");
  583. var cdnm= model.getValue("/root/code/codeinfo/codelist[cdid = '" + vcnstrecnm + "']/cdnm");
  584. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnmcode", cdnm);
  585. //grd_famycnst.valueMatrix(grd_famycnst.row, grd_famycnst.colRef("cnstrecnmcode")) = cdnm;
  586. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/indd", model.getValue("/root/send/indd"));
  587. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cretno", model.getValue("/root/send/cretno"));
  588. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cretdd", model.getValue("/root/send/cretdd"));
  589. ]]>
  590. </script>
  591. </button>
  592. <datagrid id="grd_famycnst" nodeset="/root/main/hospiceinfo/hospicedetl" class="datagrid1" autoresize="true" caption="구분^상담일자^상담시간^상담시간^상담시간^상담내용^상담대상자^상담자^직종^seqno^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8" colsep="^" colwidth="50, 100, 50, 50, 50, 363, 100, 100, 100, 45, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:200px; top:105px; width:985px; height:630px; ">
  593. <col class="gridcombo" ref="cnstkind" type="combo">
  594. <choices>
  595. <itemset nodeset="/root/hidden/cnstkindnode/hardcd">
  596. <label ref="hardcdnm"/>
  597. <value ref="hardcd"/>
  598. </itemset>
  599. </choices>
  600. </col>
  601. <col disabled="true" ref="cnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
  602. <col ref="cnstfromtm" type="input" format="hh:nn" style="text-align:center; "/>
  603. <col ref="cnsttotm" type="input" format="hh:nn" style="text-align:center; "/>
  604. <col ref="cnsttm" style="text-align:center; "/>
  605. <col ref="cnst" type="input" maxbyte="3900"/>
  606. <col class="gridcombo" ref="cnstrecnm" type="combo">
  607. <choices>
  608. <itemset nodeset="/root/code/codeinfo/codelist">
  609. <label ref="cdnm"/>
  610. <value ref="cdid"/>
  611. </itemset>
  612. </choices>
  613. </col>
  614. <col ref="lastupdtrnm" style="text-align:center; "/>
  615. <col ref="jobkindnm" style="text-align:center; "/>
  616. <col ref="seqno" visibility="hidden"/>
  617. <col ref="staiud" visibility="hidden"/>
  618. <col ref="lastupdtrid" visibility="hidden"/>
  619. <col ref="cnstkindnm" visibility="hidden"/>
  620. <col ref="cnstrecnmcode" visibility="hidden"/>
  621. <col ref="indd" visibility="hidden"/>
  622. <col ref="cretno" visibility="hidden"/>
  623. <col ref="cretdd" visibility="hidden"/>
  624. <col ref="pid" visibility="hidden"/>
  625. <script type="javascript" ev:event="xforms-value-changed">
  626. <![CDATA[
  627. if(grd_famycnst.col == grd_famycnst.colRef("cnsttotm") || grd_famycnst.col == grd_famycnst.colRef("cnstfromtm")) {
  628. var vcnstfromtm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstfromtm"));
  629. var vcnsttotm= (model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnsttotm"));
  630. var vcnstfromtmLen = getStringLength(vcnstfromtm);
  631. var vcnsttotmLen = getStringLength(vcnsttotm);
  632. if(vcnstfromtmLen < 4){
  633. messageBox("상담시작시간을 다시 ", "C001");
  634. return;
  635. }
  636. if(vcnsttotmLen < 4){
  637. messageBox("상담종료시간을 다시 ", "C001");
  638. return;
  639. }
  640. if(vcnstfromtm > vcnsttotm){
  641. messageBox("상담시작시간이 종 상담료시간보다 클 수 ","I004");
  642. return;
  643. }
  644. if(vcnstfromtmLen == "" && vcnsttotm == ""){
  645. messageBox("시간을 확인 바랍니다.","I");
  646. return;
  647. }
  648. var vcnsttm = getTimeInterval(vcnstfromtm, vcnsttotm)
  649. var vcnsttm = vcnsttm / 60 + "분";
  650. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnsttm", vcnsttm);
  651. }
  652. if(grd_famycnst.col == grd_famycnst.colRef("cnstkind")) {
  653. var vcnstkind = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkind");
  654. var hardcdnm= model.getValue("/root/hidden/cnstkindnode/hardcd[hardcd = '" + vcnstkind + "']/hardcdnm");
  655. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstkindnm", hardcdnm);
  656. }
  657. if(grd_famycnst.col == grd_famycnst.colRef("cnstrecnm")) {
  658. var vcnstrecnm = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnm");
  659. var cdnm= model.getValue("/root/code/codeinfo/codelist[cdid = '" + vcnstrecnm + "']/cdnm");
  660. model.setValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstrecnmcode", cdnm);
  661. }
  662. ]]>
  663. </script>
  664. <script type="javascript" ev:event="ondblclick">
  665. <![CDATA[
  666. if(grd_famycnst.col == grd_famycnst.colRef("cnstdd")) {
  667. ipt_prcpdd.value = model.getValue("/root/main/hospiceinfo/hospicedetl[" + grd_famycnst.row + "]/cnstdd");
  668. model.setValue("/root/send/srchdd", ipt_prcpdd.value);
  669. model.refresh();
  670. fsearchDetail();
  671. }
  672. ]]>
  673. </script>
  674. </datagrid>
  675. <button id="button25" class="btn2_letter4" visibility="visible" style="left:943px; top:79px; width:64px; height:19px; ">
  676. <caption>구문관리</caption>
  677. <script type="javascript" ev:event="DOMActivate">
  678. <![CDATA[
  679. modal("SPMNH08000");
  680. var currentRow= model.getValue("/root/main/hospiceinfo/hospicedetl["+grd_famycnst.row+"]/cnstdd");
  681. if(getParameter("cnst2") == ""){
  682. return;
  683. }
  684. if(currentRow == ""){
  685. messageBox("가족상담 리스트(상담일자)를 ", "C002");
  686. return;
  687. }
  688. var cnst2 = getParameter("cnst2");
  689. model.setValue("/root/main/hospiceinfo/hospicedetl["+grd_famycnst.row+"]/cnst",cnst2);
  690. grd_famycnst.addStatus(grd_famycnst.row, "update");
  691. //grd_famycnst.refresh();
  692. //model.refresh();
  693. grd_famycnst.resizeCells();
  694. //grd_famycnst.dispatch("onclick");
  695. ]]>
  696. </script>
  697. </button>
  698. <caption id="caption12" class="tit_2" style="left:0px; top:87px; width:105px; height:13px; font-family:굴림; ">재원환자 목록</caption>
  699. <line id="line5" class="line_1" style="x1:0px; y1:100px; x2:195px; y2:100px; "/>
  700. <datagrid id="grd_hospicelist" nodeset="/root/main/hospice/hospicelist" class="datagrid1" allowbigselection="false" allowselection="false" autoresize="true" backcoloralternate="#ffffff" caption="등록번호^환자명^S/A^caption1^caption2^caption3^caption4" colsep="^" colwidth="60, 75, 55, 100, 100, 100, 100" defaultrows="0" frozencols="0" rowsep="|" style="left:0px; top:105px; width:195px; height:630px; ">
  701. <col ref="pid" style="text-align:center; "/>
  702. <col ref="hngnm" style="text-align:center; "/>
  703. <col ref="sexage" style="text-align:center; "/>
  704. <col ref="indd" visibility="hidden"/>
  705. <col ref="cretno" visibility="hidden"/>
  706. <col ref="cretdd" visibility="hidden"/>
  707. <col ref="instcd" visibility="hidden"/>
  708. <col ref="roomcd" visibility="hidden"/>
  709. <script type="javascript" ev:event="onaftersort">
  710. <![CDATA[
  711. grd_hospicelist.gridToInstance();
  712. ]]>
  713. </script>
  714. <script type="javascript" ev:event="onclick">
  715. <![CDATA[
  716. //fSetPatTopInfo();
  717. ]]>
  718. </script>
  719. <script type="javascript" ev:event="ondblclick">
  720. <![CDATA[
  721. var pid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/pid");
  722. var hngnm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/hngnm");
  723. var sexage = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/sexage");
  724. ipt_pid.value = pid;
  725. opt_hngnm.value = hngnm;
  726. opt_age.value = sexage.substr(2,3);
  727. if( sexage.substr(0,1) == "F" ){
  728. opt_sex.value = "여성";
  729. model.setValue("/root/send/sex", "여성");
  730. }else{
  731. opt_sex.value = "남성";
  732. model.setValue("/root/send/sex", "남성");
  733. }
  734. opt_age.value = sexage.substr(2,3);
  735. model.setValue("/root/send/pid", ipt_pid.value); // 환자번호
  736. model.makeValue("/root/send/hngnm" , opt_hngnm.value); // 환자이름
  737. model.makeValue("/root/send/hngage" , opt_age.value); // 환자나이
  738. model.makeValue("/root/send/hngsex" , opt_sex.value); // 환자성별
  739. model.setValue("/root/send/flag", "N");
  740. //상단정보 UP/Down
  741. //fSetHosPatTopInfo();
  742. var pid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/pid");
  743. var indd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/indd");
  744. var hngnm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/hngnm");
  745. var sexage = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/sexage");
  746. var cretdd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/cretdd");
  747. var crettm = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/crettm");
  748. var cretno = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/cretno");
  749. var wardcd = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/wardcd");
  750. var atdoctid = model.getValue("/root/main/hospice/hospicelist["+grd_hospicelist.row+"]/atdoctid");
  751. if(sexage != ""){
  752. if( sexage.substr(0,1) == "F" ){
  753. opt_sex.value = "여성";
  754. var sex = "여성";
  755. }else{
  756. opt_sex.value = "남성";
  757. var sex = "남성";
  758. }
  759. opt_age.value = sexage.substr(2,3);
  760. var age = sexage.substr(2,3);
  761. }
  762. model.makeValue("/root/send/indd" , indd); // 입원일자
  763. model.makeValue("/root/send/cretdd" , cretdd); // 생성일자
  764. model.makeValue("/root/send/cretno" , cretno); // 생성번호
  765. model.removenode("/root/main/paminfo/pamlist");
  766. model.makeNode("/root/main/paminfo/pamlist");
  767. model.makeValue("/root/main/paminfo/pamlist/pid", pid);
  768. model.makeValue("/root/main/paminfo/pamlist/indd", indd);
  769. model.makeValue("/root/main/paminfo/pamlist/hngnm", hngnm);
  770. model.makeValue("/root/main/paminfo/pamlist/sex", sex);
  771. model.makeValue("/root/main/paminfo/pamlist/age", age);
  772. model.makeValue("/root/main/paminfo/pamlist/cretdd", cretdd);
  773. model.makeValue("/root/main/paminfo/pamlist/crettm", crettm);
  774. model.makeValue("/root/main/paminfo/pamlist/cretno", cretno);
  775. model.makeValue("/root/main/paminfo/pamlist/wardcd", wardcd);
  776. model.makeValue("/root/main/paminfo/pamlist/atdoctid", atdoctid);
  777. fsearchDetail();
  778. ]]>
  779. </script>
  780. </datagrid>
  781. <group id="group3" style="left:0px; top:0px; width:195px; height:56px; font-family:굴림; vertical-align:top; ">
  782. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:195px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  783. <script type="javascript" ev:event="xforms-value-changed">
  784. <![CDATA[
  785. model.setValue("/root/send/srchdd", ipt_prcpdd.value);
  786. //fSearch();
  787. ]]>
  788. </script>
  789. <select1 id="rdo_pamcgubun" ref="/root/send/pamcgubun" class="radio_search" navindex="4" appearance="full" cols="3" overflow="visible" style="left:61px; top:8px; width:130px; height:38px; background-color:transparent; border-style:none; ">
  790. <choices>
  791. <item>
  792. <label>의뢰</label>
  793. <value>R</value>
  794. </item>
  795. <item>
  796. <label>대기</label>
  797. <value>W</value>
  798. </item>
  799. <item>
  800. <label>자문</label>
  801. <value>D</value>
  802. </item>
  803. <item>
  804. <label>입실</label>
  805. <value>I</value>
  806. </item>
  807. <item>
  808. <label>퇴실</label>
  809. <value>L</value>
  810. </item>
  811. <!--
  812. <item>
  813. <label>서비스종료</label>
  814. <value>O</value>
  815. </item>
  816. <item>
  817. <label>대기종료</label>
  818. <value>P</value>
  819. </item>
  820. -->
  821. </choices>
  822. <script type="javascript" ev:event="xforms-select">
  823. <![CDATA[
  824. //fPamcChange();
  825. fSearchIn();
  826. //20091009 dhkim 종료버튼 상태값 초기화
  827. //fInitEndBtn();
  828. ]]>
  829. </script>
  830. </select1>
  831. <caption id="caption13" class="search_name" style="left:0px; top:7px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  832. </group>
  833. <datagrid id="grd_hiddenfamycnst" nodeset="/root/hidden/hospiceinfo/hospicedetl" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:390px; top:485px; width:320px; height:145px; ">
  834. <col ref="cnstdd"/>
  835. <col ref="pid"/>
  836. <col/>
  837. </datagrid>
  838. </group>
  839. <group id="grp_sea" style="left:200px; top:15px; width:995px; height:56px; font-family:굴림; vertical-align:top; ">
  840. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:985px; height:55px; background-color:#fffbf2; border-color:#ffd799; "/>
  841. <input id="ipt_prcpdd" ref="/root/send/cnstdd" class="input_search" inputtype="date" style="left:95px; top:7px; width:110px; height:19px; font-family:굴림; "/>
  842. <script type="javascript" ev:event="xforms-value-changed">
  843. <![CDATA[
  844. model.setValue("/root/send/srchdd", ipt_prcpdd.value);
  845. //fSearch();
  846. fsearchDetail();
  847. ]]>
  848. </script>
  849. <line id="line1" class="line_4" style="x1:839px; y1:8px; x2:839px; y2:48px; "/>
  850. <caption id="caption7" class="search_name" style="left:5px; top:7px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">상담일자 :</caption>
  851. <button id="btn_serch" class="btn1_letter2" navindex="59" style="left:850px; top:15px; width:56px; height:22px; ">
  852. <caption>조회</caption>
  853. <script type="javascript" ev:event="DOMActivate">
  854. <![CDATA[
  855. //fSearchIn();
  856. fsearchDetail();
  857. ]]>
  858. </script>
  859. </button>
  860. <button id="btn_prt" class="btn1_letter2" navindex="59" style="left:915px; top:15px; width:56px; height:22px; ">
  861. <caption>출력</caption>
  862. <script type="javascript" ev:event="DOMActivate">
  863. <![CDATA[
  864. exeReportPreview("RPMNH01600", "XMLSTR");
  865. ]]>
  866. </script>
  867. </button>
  868. <select1 id="radio4" ref="/root/send/jobkind" class="radio_search" appearance="full" cols="4" overflow="visible" style="left:291px; top:11px; width:229px; height:15px; border-style:none; ">
  869. <choices>
  870. <item>
  871. <label>전체</label>
  872. <value>0</value>
  873. </item>
  874. <item>
  875. <label>사회복지사</label>
  876. <value>1</value>
  877. </item>
  878. <item>
  879. <label>간호사</label>
  880. <value>2</value>
  881. </item>
  882. <item>
  883. <label>의사</label>
  884. <value>3</value>
  885. </item>
  886. </choices>
  887. </select1>
  888. <caption id="caption28" class="search_name" style="left:219px; top:8px; width:90px; height:17px; ">직 종 :</caption>
  889. <caption id="caption4" class="search_name" style="left:5px; top:32px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  890. <button id="btn_pid" class="icon_search" navindex="6" visibility="hidden" style="left:173px; top:33px; width:16px; height:16px; ">
  891. <caption/>
  892. <script type="javascript" ev:event="DOMActivate">
  893. <![CDATA[
  894. //alert("환자 확인");
  895. model.removenode("/root/temp/pidinfo");
  896. model.makeNode("/root/temp/pidinfo");
  897. if( ipt_pid.currentText != "" ){
  898. model.makeValue("/root/temp/pidinfo/pid", ipt_pid.currentText);
  899. model.makeValue("/root/temp/pidinfo/srchcond","1");
  900. }else{
  901. model.makeValue("/root/temp/pidinfo/pid", ipt_pid.currentText);
  902. model.makeValue("/root/temp/pidinfo/srchcond","2");
  903. }
  904. modal("SPPMC02500", "","150", "150", "SPPMC02500", "/root/temp/pidinfo","/root/send");
  905. if(model.getValue("/root/main/patinfo/patinfolist/pid") == ""){
  906. return;
  907. }
  908. var sex = "";
  909. model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  910. model.setValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  911. model.setValue("/root/send/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  912. if( model.getValue("/root/main/patinfo/patinfolist/sex") == "F" ){
  913. model.setValue("/root/send/sex", "여성");
  914. }else{
  915. model.setValue("/root/send/sex", "남성");
  916. }
  917. ipt_pid.refresh();
  918. opt_hngnm.refresh();
  919. opt_sex.refresh();
  920. opt_age.refresh();
  921. btn_serch.dispatch("DOMActivate");
  922. //alert(model.getValue("/root/send/pid"));
  923. ]]>
  924. </script>
  925. </button>
  926. <caption id="caption5" class="search_name" style="left:220px; top:31px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">환자명 :</caption>
  927. <output id="opt_hngnm" ref="/root/send/hngnm" class="output_fix" style="left:295px; top:32px; width:71px; height:19px; "/>
  928. <caption id="caption8" class="search_name" style="left:375px; top:30px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">성별 :</caption>
  929. <output id="opt_sex" ref="/root/send/sex" class="output_fix" style="left:440px; top:32px; width:66px; height:19px; text-align:center; "/>
  930. <caption id="caption9" class="search_name" style="left:515px; top:31px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">나이 :</caption>
  931. <caption id="caption3" style="left:621px; top:32px; width:25px; height:20px; ">세</caption>
  932. <output id="opt_age" ref="/root/send/age" class="output_fix" style="left:580px; top:32px; width:41px; height:19px; text-align:center; "/>
  933. <caption id="caption1" class="search_name" style="left:529px; top:8px; width:87px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">구분 :</caption>
  934. <select id="checkbox1" ref="/root/send/cnstkind1" overflow="visible" appearance="full" cols="7" style="left:593px; top:11px; width:57px; height:15px; font-family:돋움체; border-style:none; ">
  935. <choices>
  936. <item>
  937. <label>돌봄</label>
  938. <value>01</value>
  939. </item>
  940. </choices>
  941. </select>
  942. <select id="checkbox2" ref="/root/send/cnstkind2" overflow="visible" appearance="full" cols="7" style="left:649px; top:11px; width:57px; height:15px; font-family:돋움체; border-style:none; ">
  943. <choices>
  944. <item>
  945. <label>임종</label>
  946. <value>02</value>
  947. </item>
  948. </choices>
  949. </select>
  950. <input id="ipt_pid1" visibility="hidden" style="left:95px; top:28px; width:75px; height:19px; ">
  951. <script type="javascript" ev:event="onkeypress">
  952. <![CDATA[
  953. if(event.keyCode == "13") {
  954. btn_pid.dispatch("DOMActivate");
  955. }
  956. ]]>
  957. </script>
  958. </input>
  959. <output id="ipt_pid" ref="/root/send/pid" class="output_fix" style="left:94px; top:32px; width:71px; height:19px; "/>
  960. <caption id="caption2" class="search_name" visibility="hidden" style="left:715px; top:35px; width:86px; height:17px; ">조회기간 :</caption>
  961. <input id="ipt_fbrthdd" ref="/root/send/fbrthdd" class="input_default" navindex="1" visibility="hidden" inputtype="date" style="left:800px; top:33px; width:85px; height:19px; "/>
  962. <caption id="caption10" class="search_no_b" visibility="hidden" style="left:885px; top:33px; width:12px; height:17px; ">~</caption>
  963. <input id="ipt_lbrthdd" ref="/root/send/lbrthdd" class="input_default" navindex="2" visibility="hidden" inputtype="date" style="left:895px; top:33px; width:85px; height:19px; "/>
  964. </group>
  965. </xhtml:body>
  966. </xhtml:html>