SMMND01900.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. /*
  2. 상담기록(SMMND01900.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. //**전역변수**//
  7. /**
  8. * @group :
  9. * @ver : 2007.07.11
  10. * @by : 김진아
  11. * @---------------------------------------------------
  12. * @type : function
  13. * @access : public
  14. * @desc : 화면 초기화
  15. * @param :
  16. * @return :
  17. * @---------------------------------------------------
  18. */
  19. function fDone(){
  20. //**그리드 초기화**//
  21. model.removeNodeset("/root/main/hdmatnpatlist");
  22. model.removeNodeset("/root/main/pdmatnpatlist");
  23. model.removeNodeset("/root/main/cnstcntshistlist");
  24. model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
  25. model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
  26. model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
  27. //**공통코드 가져오기**//
  28. zbcfGetCodeList( new Array ( "M0133" // 도관관리 부위
  29. , "M0134" // 도관관리 종류1
  30. , "M0135" // 도관관리 종류2
  31. , "M0136" // 혈액투석도관 제거이유
  32. , "M0137" // 동정맥루 관리 종류
  33. , "M0138" // 동정맥루 관리 부위
  34. , "M0139" // 동정맥루 사용혈관
  35. , "M0140" // 시술종류
  36. , "M0141" // 시술원인
  37. , "M0142" // Cath종류
  38. , "M0133" // 부위
  39. , "M0144" // 복막투석도관 제거이유
  40. , "M0145" // 감염종류
  41. , "M0146" // 원인균
  42. , "M0147" // 예후
  43. )
  44. , new Array ( "/root/init/M0133list" // 도관관리 부위
  45. , "/root/init/M0134list" // 도관관리 종류1
  46. , "/root/init/M0135list" // 도관관리 종류2
  47. , "/root/init/M0136list" // 혈액투석도관 제거이유
  48. , "/root/init/M0137list" // 도관관리 종류1
  49. , "/root/init/M0138list" // 도관관리 종류2
  50. , "/root/init/M0139list" // 혈액투석도관 제거이유
  51. , "/root/init/M0140list" // 시술종류
  52. , "/root/init/M0141list" // 시술원인
  53. , "/root/init/M0142list" // Cath종류
  54. , "/root/init/M0133list" // 부위
  55. , "/root/init/M0144list" // 복막투석도관 제거이유
  56. , "/root/init/M0145list" // 감염종류
  57. , "/root/init/M0146list" // 원인균
  58. , "/root/init/M0147list" // 예후
  59. )
  60. );
  61. //** 유지환자리스트 설정 **//
  62. // fSrchHDMatnPatList(); // 혈액투석 유지환자 리스트 조회
  63. // grd_hdmatnpatinfo.visible = true;
  64. // grd_pdmatnpatinfo.visible = false;
  65. grd_hdmatnpatinfo.allstyle("all", "background-color") = "white";
  66. grd_pdmatnpatinfo.allstyle("all", "background-color") = "white";
  67. //** 상단환자 화면설정 **//
  68. var node = getGlobalVariable("paminfo");
  69. setCSVToNode("/root/temp/paminfo", node);
  70. if(getNodesetCount("/root/temp/paminfo/list") > 0) {
  71. var sSelPid = model.getValue("/root/temp/paminfo/list/pid"); // 등록번호
  72. model.setValue("/root/main/condition/pid", sSelPid);
  73. }
  74. fSrchHDMatnPatList(); // 혈액투석 유지환자 리스트 조회
  75. // fSrchPDMatnPatList(); // 복막투석 유지환자 리스트 조회
  76. //
  77. // var sSelPid = grd_pdmatnpatinfo.textmatrix(1, 1); // 등록번호
  78. // var sMaintePatRgstDD = grd_pdmatnpatinfo.textmatrix(1, 4); // 유지환자 등록일자
  79. //
  80. // fInit(); // 초기화
  81. // fGetPatInfo(sSelPid, sMaintePatRgstDD); // 환자정보 설정
  82. //
  83. // if(grd_hdmatnpatinfo.rows > 1) {
  84. // model.setValue("/root/main/condition/dialflag", "H");
  85. // grd_hdmatnpatinfo.visible = true;
  86. // grd_pdmatnpatinfo.visible = false;
  87. // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white";
  88. //
  89. // grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // 선택 행 셀 색상 지정
  90. // grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff";
  91. // model.toggle("case1");
  92. // btn_hdreccase.selected = true;
  93. //
  94. // fPatBaseHDPipeInfo(); // 혈액투석 환자 기본정보 및 최종 도관기록 정보 조회
  95. // } else if(grd_pdmatnpatinfo.rows > 1){
  96. // model.setValue("/root/main/condition/dialflag", "P");
  97. // grd_hdmatnpatinfo.visible = false;
  98. // grd_pdmatnpatinfo.visible = true;
  99. // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white";
  100. //
  101. // grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // 선택 행 셀 색상 지정
  102. // grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 4) = "#ffd9ff";
  103. // model.toggle("case2");
  104. // btn_pdreccase.selected = true;
  105. //
  106. // fPatBasePDPipeInfo(); // 복막투석 환자 기본정보 및 최종 도관기록 정보 조회
  107. // }
  108. //
  109. // btn_crt.disabled = false; // 신규등록버튼 활성화
  110. // txt_hdcnstcnts.disabled = true; // 상담내용 텍스트박스 비활성화
  111. // txt_pdcnstcnts.disabled = true;
  112. // btn_savehdcnstcnts.disabled = true; // 저장버튼 비활성화
  113. // btn_savepdcnstcnts.disabled = true;
  114. // btn_pop.disabled = false;
  115. //
  116. // grd_rechistinfo.allstyle("all", "background-color") = "white";
  117. //
  118. // fSrchCnstcntsHist (); // 상담기록 리스트 조회
  119. }
  120. /**
  121. * @group :
  122. * @ver : 2007.06.12
  123. * @by : 김진아
  124. * @---------------------------------------------------
  125. * @type : function
  126. * @access : public
  127. * @desc : 혈액투석 유지환자 리스트 조회
  128. * @param :
  129. * @return :
  130. * @---------------------------------------------------
  131. */
  132. function fSrchHDMatnPatList(){
  133. fInit(); // 초기화
  134. model.removenode ("/root/send");
  135. model.makeNode ("/root/send");
  136. model.makeValue ("/root/send/reqdata/pid ", model.getValue("/root/main/condition/pid"));
  137. model.makeValue ("/root/send/reqdata/dialflag", model.getValue("/root/main/condition/dialflag")); // 투석구분 (H:혈액)
  138. model.removeNodeset("/root/main/hdmatnpatlist");
  139. submit("TRMND01301");
  140. if(model.getValue("/root/main/condition/pid") != "") {
  141. grd_hdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // 혈액투석 유지환자리스트 셀 색상 지정
  142. fGetPatInfo(model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/pid"), model.getValue("/root/main/hdmatnpatlist/hdmatnpatinfo[1]/maintepatrgstdd")); // 복막투석 유지환자 정보 설정 // 환자별 도관기록 리스트 조회
  143. }
  144. }
  145. /**
  146. * @group :
  147. * @ver : 2007.06.13
  148. * @by : 김진아
  149. * @---------------------------------------------------
  150. * @type : function
  151. * @access : public
  152. * @desc : 복막투석 유지환자 리스트 조회
  153. * @param :
  154. * @return :
  155. * @---------------------------------------------------
  156. */
  157. function fSrchPDMatnPatList(){
  158. fInit(); // 초기화
  159. model.removenode("/root/send");
  160. model.makeNode ("/root/send");
  161. model.makeValue ("/root/send/reqdata/pid", model.getValue("/root/main/condition/pid"));
  162. model.makeValue ("/root/send/reqdata/dialflag", "P"); // 투석구분 (P:복막)
  163. model.removeNodeset("/root/main/pdmatnpatlist");
  164. // model.removeNodeset("/root/main/pdmatnpatlist");
  165. submit("TRMND01401");
  166. if(model.getValue("/root/main/condition/pid") != "") {
  167. grd_pdmatnpatinfo.cellstyle("background-color", 1, 1, 1, 3) = "#ffd9ff"; // 복막투석 유지환자리스트 셀 색상 지정
  168. fGetPatInfo(model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/pid"), model.getValue("/root/main/pdmatnpatlist/pdmatnpatinfo[1]/maintepatrgstdd")); // 복막투석 유지환자 정보 설정 // 환자별 도관기록 리스트 조회
  169. }
  170. }
  171. /**
  172. * @group :
  173. * @ver : 2007.06.12
  174. * @by : 김진아
  175. * @---------------------------------------------------
  176. * @type : function
  177. * @access : public
  178. * @desc : 혈액투석 유지환자 정보 설정
  179. * (혈액투석 유지환자 리스트 더블 클릭 시)
  180. * @param :
  181. * @return :
  182. * @---------------------------------------------------
  183. */
  184. function fGetPatInfo(sSelPid, sMaintePatRgstDD) {
  185. //기록자 정보 설정
  186. model.makeValue("/root/main/reclist/recinfo/recid", getUserId()); // 현재 로그인한 사용자 ID
  187. model.makeValue("/root/main/reclist/recinfo/recnm", getUserName()); // 현재 로그인한 사용자명
  188. // 기록일시 설정
  189. model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
  190. model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
  191. // 환자 정보 설정
  192. model.makeValue("/root/main/reclist/recinfo/pid" , sSelPid); // 등록번호
  193. model.makeValue("/root/main/reclist/recinfo/maintepatrgstdd", sMaintePatRgstDD); // 유지환자등록일자
  194. model.makeValue("/root/main/reclist/recinfo/dialflag" , model.getValue("/root/main/condition/dialflag")); // 투석구분
  195. model.makeValue("/root/main/reclist/recinfo/cnstrecflag" , model.getValue("/root/main/condition/dialflag")); // 상담기록구분
  196. model.refresh();
  197. }
  198. /**
  199. * @group :
  200. * @ver : 2007.07.19
  201. * @by : 김진아
  202. * @---------------------------------------------------
  203. * @type : function
  204. * @access : public
  205. * @desc : 유지환자리스트 조회시 초기화
  206. * @param :
  207. * @return :
  208. * @---------------------------------------------------
  209. */
  210. function fInit(){
  211. grd_hdmatnpatinfo.allstyle("all", "background-color") = "white"; // 혈액투석유지환자 리스트 색상 초기화
  212. grd_pdmatnpatinfo.allstyle("all", "background-color") = "white"; // 복막투석유지환자 리스트 색상 초기화
  213. // 기록정보 초기화
  214. fClearChildNode("/root/main/reclist/recinfo");
  215. fClearChildNode("/root/main/getbaselist/getbaseinfo");
  216. //model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
  217. model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
  218. model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
  219. model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
  220. model.removeNodeset("/root/main/peritcoduitlist"); // 복막투석 도관관리
  221. model.removeNodeset("/root/main/t_setlist"); // T-Set
  222. model.removeNodeset("/root/main/infclist"); // 감염관리
  223. model.removeNodeset("/root/main/cnstcntshistlist"); // 상담기록 리스트
  224. model.refresh();
  225. }
  226. /**
  227. * @group :
  228. * @ver : 2007.07.21
  229. * @by : 김진아
  230. * @---------------------------------------------------
  231. * @type : function
  232. * @access : public
  233. * @desc : 상담내용 저장 (저장버튼 클릭 시)
  234. * @param :
  235. * @return :
  236. * @---------------------------------------------------
  237. */
  238. function fCnstInfo(recdd, rectm) {
  239. //** 신규등록일 경우 동일기록일자 도관기록 존재 확인 **//
  240. if(model.getValue("/root/main/reclist/recinfo/status") == "i") {
  241. model.removenode("/root/send");
  242. model.makeNode ("/root/send");
  243. model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid") );
  244. model.makeValue ("/root/send/reqdata/recdd", model.getValue("/root/main/reclist/recinfo/recdd"));
  245. model.makeValue ("/root/send/reqdata/rectm", model.getValue("/root/main/reclist/recinfo/rectm"));
  246. model.removeNodeset("/root/main/chklist");
  247. submit("TRMND01904");
  248. // 동일기록일자에 도관기록 존재 할 경우
  249. if(model.getValue("/root/main/chklist/chkinfo/pid") != "") {
  250. messageBox("동일일자에 상담기록이 존재합니다.", "E");
  251. // 기록일시 설정
  252. model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
  253. model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
  254. model.refresh();
  255. return;
  256. }
  257. }
  258. //** 상담내용 저장실행 **//
  259. model.removenode("/root/send");
  260. model.makeNode ("/root/send/savedata");
  261. copyNodeType ("/root/send/savedata", "/root/main/reclist/recinfo");
  262. submit("TXMND01901");
  263. }
  264. /**
  265. * @group :
  266. * @ver : 2007.07.23
  267. * @by : 김진아
  268. * @---------------------------------------------------
  269. * @type : function
  270. * @access : public
  271. * @desc : 상담기록 리스트 조회 (유지환자 리스트 더블 클릭 시)
  272. * @param :
  273. * @return :
  274. * @---------------------------------------------------
  275. */
  276. function fSrchCnstcntsHist() {
  277. model.removenode("/root/send");
  278. model.makeNode ("/root/send");
  279. model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
  280. model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // 상담기록구분
  281. model.removeNodeset("/root/main/cnstcntshistlist");
  282. submit("TRMND01901");
  283. }
  284. /**
  285. * @group :
  286. * @ver : 2007.07.23
  287. * @by : 김진아
  288. * @---------------------------------------------------
  289. * @type : function
  290. * @access : public
  291. * @desc : 혈액투석 환자 기본정보 및 최종 도관기록 정보 조회
  292. (유지환자 리스트 더블 클릭 시)
  293. * @param :
  294. * @return :
  295. * @---------------------------------------------------
  296. */
  297. function fPatBaseHDPipeInfo() {
  298. model.removenode("/root/send");
  299. model.makeNode ("/root/send");
  300. model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
  301. model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // 유지등록일자
  302. model.removeNodeset("/root/main/hmdlspipeinfolist"); // 혈액투석 도관관리
  303. model.removeNodeset("/root/main/avfinfolist"); // 동정맥루 관리
  304. model.removeNodeset("/root/main/oprtinfolist"); // 시술과 중재
  305. model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
  306. submit("TRMND01902");
  307. }
  308. /**
  309. * @group :
  310. * @ver : 2007.07.31
  311. * @by : 김진아
  312. * @---------------------------------------------------
  313. * @type : function
  314. * @access : public
  315. * @desc : 복막투석 환자 기본정보 및 최종 도관기록 정보 조회
  316. (유지환자 리스트 더블 클릭 시)
  317. * @param :
  318. * @return :
  319. * @---------------------------------------------------
  320. */
  321. function fPatBasePDPipeInfo() {
  322. model.removenode("/root/send");
  323. model.makeNode ("/root/send");
  324. model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
  325. model.makeValue ("/root/send/reqdata/maintepatrgstdd", model.getValue("/root/main/reclist/recinfo/maintepatrgstdd")); // 유지환자등록일자
  326. model.removeNodeset("/root/main/peritcoduitlist"); // 복막투석 도관관리
  327. model.removeNodeset("/root/main/t_setlist"); // T-Set 관리
  328. model.removeNodeset("/root/main/infclist/infcinfo"); // 감염관리
  329. model.removeNodeset("/root/main/getbaselist"); // 환자기본정보
  330. submit("TRMND01905");
  331. }
  332. /**
  333. * @group :
  334. * @ver : 2007.07.30
  335. * @by : 김진아
  336. * @---------------------------------------------------
  337. * @type : function
  338. * @access : public
  339. * @desc : 상담내용 조회 (상담기록리스트 더블 클릭 시)
  340. * @param :
  341. * @return :
  342. * @---------------------------------------------------
  343. */
  344. function fSrchCnstcntsInfo(iRow) {
  345. model.removenode("/root/send");
  346. model.makeNode ("/root/send");
  347. model.makeValue ("/root/send/reqdata/pid" , model.getValue("/root/main/reclist/recinfo/pid")); // 등록번호
  348. model.makeValue ("/root/send/reqdata/cnstrecflag", model.getValue("/root/main/reclist/recinfo/cnstrecflag")); // 상담기록구분
  349. model.makeValue ("/root/send/reqdata/recdd" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/recdd")); // 기록일자
  350. model.makeValue ("/root/send/reqdata/rectm" , model.getValue("/root/main/cnstcntshistlist/cnstcntshistinfo["+iRow+"]/rectm")); // 기록시간
  351. model.removenode("/root/temp/getcnstcntsinfo");
  352. submit("TRMND01903");
  353. model.setValue("/root/main/reclist/recinfo/status" , "u"); // 상태값 설정 (update)
  354. model.setValue("/root/main/reclist/recinfo/cnstcnts", model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/cnstcnts"));
  355. model.setValue("/root/main/reclist/recinfo/recdd" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recdd"));
  356. model.setValue("/root/main/reclist/recinfo/rectm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/rectm"));
  357. model.setValue("/root/main/reclist/recinfo/recid" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recid"));
  358. model.setValue("/root/main/reclist/recinfo/recnm" , model.getValue("/root/temp/getcnstcntsinfo/getcnstcnts/recnm"));
  359. grd_rechistinfo.allstyle("all", "background-color") = "white";
  360. grd_rechistinfo.cellstyle("background-color", iRow, 1, iRow, 4) = "#ffd9ff";
  361. if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") {
  362. txt_hdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
  363. btn_savehdcnstcnts.disabled = false; // 저장버튼 활성화
  364. ipt_recdd.disabled = true; // 기록일시 비활성화
  365. ipt_rectm.disabled = true;
  366. btn_clock.disabled = true;
  367. } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") {
  368. txt_pdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
  369. btn_savepdcnstcnts.disabled = false; // 저장버튼 활성화
  370. ipt_recdd2.disabled = true; // 기록일시 비활성화
  371. ipt_rectm2.disabled = true;
  372. btn_clock2.disabled = true;
  373. }
  374. model.refresh();
  375. }
  376. /**
  377. * @group :
  378. * @ver : 2007.07.30
  379. * @by : 김진아
  380. * @---------------------------------------------------
  381. * @type : function
  382. * @access : public
  383. * @desc : 신규등록버튼 클릭 시
  384. * @param :
  385. * @return :
  386. * @---------------------------------------------------
  387. */
  388. function fSetNewRecInfo(){
  389. fSrchCnstcntsHist(); // 상담기록 리스트 조회
  390. if(model.getValue("/root/main/reclist/recinfo/pid") == "") {
  391. messageBox("혈액투석 유지환자를 선택한 후", "I", "신규등록을 할 수 있습니다.");
  392. return;
  393. }
  394. if( model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "H") {
  395. txt_hdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
  396. btn_savehdcnstcnts.disabled = false; // 저장버튼 활성화
  397. ipt_recdd.disabled = false; // 기록일시 활성화
  398. ipt_rectm.disabled = false;
  399. btn_clock.disabled = false;
  400. } else if (model.getValue("/root/main/reclist/recinfo/cnstrecflag") == "P") {
  401. txt_pdcnstcnts.disabled = false; // 상담내용 텍스트박스 활성화
  402. btn_savepdcnstcnts.disabled = false; // 저장버튼 활성화
  403. ipt_recdd2.disabled = false; // 기록일시 활성화
  404. ipt_rectm2.disabled = false;
  405. btn_clock2.disabled = false;
  406. }
  407. model.setValue("/root/main/reclist/recinfo/status", "i"); // 상태값 설정 (insert)
  408. // 기록일시 설정
  409. model.makeValue("/root/main/reclist/recinfo/recdd", getCurrentDate()); // 기록일자
  410. model.makeValue("/root/main/reclist/recinfo/rectm", getCurrentTime().substr(0,4)); // 기록시간
  411. model.refresh();
  412. // 환자별 도관기록 리스트 행 추가
  413. grd_rechistinfo.addItem(); // 행 추가
  414. var iRow = grd_rechistinfo.rows - 1;
  415. // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recdd", model.getValue("/root/main/reclist/recinfo/recdd"));
  416. // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/rectm", model.getValue("/root/main/reclist/recinfo/rectm"));
  417. // model.setValue("/root/main/cnstcntshistlist/cnstcntshistinfo[" + iRow +"]/recnm", model.getValue("/root/main/reclist/recinfo/recnm"));
  418. grd_rechistinfo.textmatrix(iRow, 1) = model.getValue("/root/main/reclist/recinfo/recdd");
  419. grd_rechistinfo.textmatrix(iRow, 2) = model.getValue("/root/main/reclist/recinfo/rectm");
  420. grd_rechistinfo.textmatrix(iRow, 3) = model.getValue("/root/main/reclist/recinfo/recnm");
  421. // 초기화
  422. for(var i=1; i<=grd_rechistinfo.rows; i++) {
  423. grd_rechistinfo.cellstyle("background-color", i, 1, i, 3) = "white"; // 환자별 상담기록 리스트 셀 색상 초기화 (white)
  424. }
  425. model.setValue("/root/main/reclist/recinfo/cnstcnts", "");
  426. model.refresh();
  427. }
  428. /**
  429. * @group :
  430. * @ver : 2007.08.07
  431. * @by : 김진아
  432. * @---------------------------------------------------
  433. * @type : function
  434. * @access : public
  435. * @desc : 화면상단 정보설정
  436. * @param : 그리드 ID (pGrd), 투석구분(pFlag)
  437. * @return :
  438. * @---------------------------------------------------
  439. */
  440. function fsetHngBaseInfo(pGrd, pPath){
  441. //**상단정보 초기화**//
  442. delPatientInfos(); //화면상단정보 삭제
  443. setGlobalVariable("paminfo", ""); //원무정보 reset
  444. if(getNodesetCount("/root/main/paminfo") > 0) {
  445. model.removeNodeset("/root/main/paminfo/list");
  446. }
  447. var iRow = pGrd.row;
  448. // 상단 환자정보 parameter
  449. // var sIoflag = model.getValue(pPath + "[" + iRow + "]/histstat" ); //원무 입원외래구분(histstat)
  450. var sPid = model.getValue(pPath + "[" + iRow + "]/pid " ); //등록번호
  451. model.removenode ("/root/send/reqdata");
  452. model.makeNode ("/root/send/reqdata");
  453. model.makeValue ("/root/send/reqdata/pid" , sPid );
  454. model.makeValue ("/root/send/reqdata/histstat", sIoflag);
  455. model.removeNodeset("/root/temp/gettoplist");
  456. submit("TRMND00103");
  457. var sCretno = model.getValue("/root/temp/gettoplist/gettopinfo/cretno" ); //생성번호
  458. var sSeqno = model.getValue("/root/temp/gettoplist/gettopinfo/seqno" ); //일련번호
  459. var sInstcd = model.getValue("/root/temp/gettoplist/gettopinfo/instcd" ); //기관코드
  460. var sIndd = model.getValue("/root/temp/gettoplist/gettopinfo/indd" ); //입원일자
  461. var sOrddd = model.getValue("/root/temp/gettoplist/gettopinfo/orddd" ); //진료일자
  462. var sAcptseqno = model.getValue("/root/temp/gettoplist/gettopinfo/acptseqno" ); //등록일련번호
  463. var sOrgorddd = model.getValue("/root/temp/gettoplist/gettopinfo/orgorddd" ); //원진료일자
  464. var sIoflag = model.getValue("/root/temp/gettoplist/gettopinfo/ioflag" ); //입원외래구분
  465. var sParam;
  466. if(sIoflag == "O") { //외래환자일 경우(histstat : "O")
  467. sParam = (sIoflag + "▦" + sPid + "▦" + sOrddd + "▦" + sCretno + "▦" + sInstcd + "▦" + sAcptseqno + "▦" + sOrgorddd );
  468. } else { //입원/응급환자일 경우(histstat : "I", "E")
  469. sParam = (sIoflag + "▦" + sPid + "▦" + sIndd + "▦" + sCretno + "▦" + sInstcd + "▦" );
  470. }
  471. setParameter("condparam", sParam);
  472. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  473. var node = getGlobalVariable("paminfo");
  474. setCSVToNode("/root/main/paminfo", node);
  475. }