SMMND00100.js 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. /*
  2. 인공신장실메인 (SMMND00100.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. /**
  7. * @group :
  8. * @ver : 2007.05.09
  9. * @by : 김진아
  10. * @---------------------------------------------------
  11. * @type : function
  12. * @access : public
  13. * @desc : 화면 초기화
  14. * @param :
  15. * @return :
  16. * @---------------------------------------------------
  17. */
  18. function fDone(){
  19. //**상단정보 초기화**//
  20. delPatientInfos(); //화면상단정보 삭제
  21. setGlobalVariable("paminfo", ""); //원무정보 reset
  22. if(getNodesetCount("/root/main/paminfo") > 0) {
  23. model.removeNodeset("/root/main/paminfo/list");
  24. }
  25. var sRtn = getCurrentDate(); //현재일자 리턴
  26. ipt_rsrvfromdd.value = sRtn;
  27. ipt_rsrvtodd.value = sRtn;
  28. rdo_shift.value = "A";
  29. }
  30. /**
  31. * @group :
  32. * @ver : 2007.05.09
  33. * @by : 김진아
  34. * @---------------------------------------------------
  35. * @type : function
  36. * @access : public
  37. * @desc : 혈액투석 스케줄 조회
  38. * @param :
  39. * @return :
  40. * @---------------------------------------------------
  41. */
  42. function fSrchHDList(){
  43. // 조회기간 체크
  44. if(model.getValue("/root/main/condition/rsrvfromdd") > model.getValue("/root/main/condition/rsrvtodd")) {
  45. messageBox("예약일자 기간이 올바르지 않습니다.", "E");
  46. var currentDate = getCurrentDate(); // 현재일자
  47. model.makeValue("/root/main/condition/rsrvfromdd", currentDate);
  48. model.makeValue("/root/main/condition/rsrvtodd" , currentDate);
  49. ipt_rsrvfromdd.refresh();
  50. ipt_rsrvtodd.refresh();
  51. }
  52. if(model.getValue("/root/main/condition/rsrvfromdd")=="" || model.getValue("/root/main/condition/rsrvtodd")=="") {
  53. messageBox("예약일자는", "I003", "");
  54. return;
  55. }
  56. model.removenode("/root/send");
  57. model.makeNode ("/root/send");
  58. model.makeValue("/root/send/reqdata/rsrvfromdd",model.getValue("/root/main/condition/rsrvfromdd"));
  59. model.makeValue("/root/send/reqdata/rsrvtodd",model.getValue("/root/main/condition/rsrvtodd"));
  60. model.makeValue("/root/send/reqdata/ioflag",model.getValue("/root/main/condition/ioflag"));
  61. model.makeValue("/root/send/reqdata/shift",model.getValue("/root/main/condition/shift"));
  62. //20090109 dhkim
  63. //내환자 추가
  64. model.makeValue("/root/send/reqdata/mypid",model.getValue("/root/main/condition/mypid"));
  65. model.removeNodeset("/root/main/hdschelist");
  66. //submit("TRMND00101", false);
  67. if (submit("TRMND00101")){
  68. if(grd_hdschelist.rows > 1){
  69. for (var i = 1; i < grd_hdschelist.rows; i ++){
  70. grd_hdschelist.tooltipText(i, 5) = grd_hdschelist.valueMatrix(i, 48);
  71. }
  72. }else{
  73. grd_hdschelist.addRow();
  74. }
  75. }
  76. grd_hdschelist.refresh();
  77. grd_hdschelist.allstyle("all", "background-color") = "white";
  78. //혈액준비환자리스트 조합
  79. var blodpreppatlist="";
  80. for(var i = 1; i <= getNodesetCount("/root/main/hdschelist/blodprep"); i++) {
  81. if (i == 1) {
  82. blodpreppatlist += model.getValue("/root/main/hdschelist/blodprep["+ i +"]/patnm");
  83. } else {
  84. blodpreppatlist += ", " + model.getValue("/root/main/hdschelist/blodprep["+ i +"]/patnm");
  85. }
  86. }
  87. model.makeValue("/root/main/hdschelist/precondlist/blodpreplist", blodpreppatlist);
  88. tar_blodprep.refresh();
  89. for(var i=1;i<=getNodesetCount("/root/main/hdschelist/hdscheinfo");i++){
  90. //간호테이블의 입원외래구분과 실제 환자의 입원외래구분이 다른경우 셀 색상표시
  91. var xIoflagPath = "/root/main/hdschelist/hdscheinfo[" + i + "]/ioflagvalue";
  92. var sIoflag = model.getValue(xIoflagPath); // 간호테이블의 입원외래 구분
  93. var sHistStat = model.getValue("/root/main/hdschelist/hdscheinfo[" + i + "]/histstat");
  94. var sMedamtpostyn = model.getValue("/root/main/hdschelist/hdscheinfo[" + i + "]/medamtpostyn"); //진료비후불제
  95. //응급실 환자일 경우 "E" --> "I" 로 변경
  96. if(sIoflag == "E"){
  97. sIoflag = "I";
  98. }
  99. if(sHistStat == "E"){
  100. sHistStat = "I";
  101. }
  102. if( sIoflag != sHistStat){
  103. grd_hdschelist.cellstyle("background-color", i, 0, i, 26) = "#e1ffe1";
  104. }
  105. //start
  106. //20120903 by kya 진료비후불표시
  107. if(sMedamtpostyn == "V"){
  108. grd_hdschelist.cellstyle("background-color", i, 0, i, 26) = "yellow";
  109. }
  110. //end
  111. //2012.07.13 by kya 감염정보표시
  112. var disp1 = model.getValue("/root/main/hdschelist/hdscheinfo[" + i + "]/disp1");
  113. var disp2 = model.getValue("/root/main/hdschelist/hdscheinfo[" + i + "]/disp2");
  114. var disp3 = model.getValue("/root/main/hdschelist/hdscheinfo[" + i + "]/disp3");
  115. if (disp1 == "Y") {
  116. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp1")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  117. }else{
  118. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp1")) = "";
  119. }
  120. if (disp2 == "Y") {
  121. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp2")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  122. }else{
  123. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp2")) = "";
  124. }
  125. if (disp3 == "Y") {
  126. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp3")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  127. }else{
  128. grd_hdschelist.cellstyle("background-image", i, grd_hdschelist.colRef("disp3")) = "";
  129. }
  130. }
  131. }
  132. /**
  133. * @group :
  134. * @ver : 2007.05.09
  135. * @by : 김진아
  136. * @---------------------------------------------------
  137. * @type : function
  138. * @access : public
  139. * @desc : 엑셀저장
  140. * @param :
  141. * @return :
  142. * @---------------------------------------------------
  143. */
  144. function fSaveExcel(grd){
  145. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  146. if (fileName != "")
  147. {
  148. grd.saveExcel(fileName, "SheetName", true, true, "", "", false);
  149. }
  150. }
  151. /**
  152. * @group :
  153. * @ver : 2007.05.10
  154. * @by : 김진아
  155. * @---------------------------------------------------
  156. * @type : function
  157. * @access : public
  158. * @desc : 복막투석 스케줄 조회
  159. * @param :
  160. * @return :
  161. * @---------------------------------------------------
  162. */
  163. function fSrchPDList(){
  164. // 조회기간 체크
  165. if(model.getValue("/root/main/condition/rsrvfromdd") > model.getValue("/root/main/condition/rsrvtodd")) {
  166. messageBox("예약일자 기간이 올바르지 않습니다.", "E", "다시 입력하십시오.");
  167. model.setValue("/root/main/condition/rsrvfromdd", "");
  168. model.setValue("/root/main/condition/rsrvtodd", "");
  169. model.refresh();
  170. return;
  171. }
  172. if(model.getValue("/root/main/condition/rsrvfromdd")=="" || model.getValue("/root/main/condition/rsrvtodd")=="") {
  173. messageBox("예약일자는", "I003", "");
  174. return;
  175. }
  176. model.removenode("/root/send");
  177. model.makeNode("/root/send");
  178. model.makeValue("/root/send/reqdata/rsrvfromdd",model.getValue("/root/main/condition/rsrvfromdd"));
  179. model.makeValue("/root/send/reqdata/rsrvtodd",model.getValue("/root/main/condition/rsrvtodd"));
  180. model.removeNodeset("/root/main/pdschelist");
  181. submit("TRMND00102");
  182. for(var i=1;i<=getNodesetCount("/root/main/pdschelist/pdscheinfo");i++){
  183. //간호테이블의 입원외래구분과 실제 환자의 입원외래구분이 다른경우 셀 색상표시
  184. var xIoflagPath = "/root/main/pdschelist/pdscheinfo[" + i + "]/ioflagvalue";
  185. var sIoflag = model.getValue(xIoflagPath); // 간호테이블의 입원외래 구분
  186. var sHistStat = model.getValue("/root/main/pdschelist/pdscheinfo[" + i + "]/histstat");
  187. var sMedamtpostyn = model.getValue("/root/main/pdschelist/pdscheinfo[" + i + "]/medamtpostyn"); //진료비후불제
  188. //응급실 환자일 경우 "E" --> "I" 로 변경
  189. if(sIoflag == "E"){
  190. sIoflag = "I";
  191. }
  192. if(sHistStat == "E"){
  193. sHistStat = "I";
  194. }
  195. if( sIoflag != sHistStat){
  196. grd_pdschelist.cellstyle("background-color", i, 0, i, 26) = "#e1ffe1";
  197. }
  198. //start
  199. //20120903 by kya 진료비후불표시 노란색표시
  200. if(sMedamtpostyn == "V"){
  201. grd_pdschelist.cellstyle("background-color", i, 0, i, 26) = "yellow";
  202. }
  203. //end
  204. //2012.07.13 by kya 감염정보표시
  205. var disp1 = model.getValue("/root/main/pdschelist/pdscheinfo[" + i + "]/disp1");
  206. var disp2 = model.getValue("/root/main/pdschelist/pdscheinfo[" + i + "]/disp2");
  207. var disp3 = model.getValue("/root/main/pdschelist/pdscheinfo[" + i + "]/disp3");
  208. if (disp1 == "Y") {
  209. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp1")) = "../../../com/hismainweb/images/btn_top_infection0.gif";
  210. }else{
  211. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp1")) = "";
  212. }
  213. if (disp2 == "Y") {
  214. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp2")) = "../../../com/hismainweb/images/btn_top_infection1.gif";
  215. }else{
  216. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp2")) = "";
  217. }
  218. if (disp3 == "Y") {
  219. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp3")) = "../../../com/hismainweb/images/btn_top_infection2.gif";
  220. }else{
  221. grd_pdschelist.cellstyle("background-image", i, grd_pdschelist.colRef("disp3")) = "";
  222. }
  223. }
  224. }
  225. /**
  226. * @group :
  227. * @ver : 2007.05.22
  228. * @by : 김진아
  229. * @---------------------------------------------------
  230. * @type : function
  231. * @access : public
  232. * @desc : 화면상단 정보설정
  233. * @param : 그리드 ID (pGrd), 투석구분(pFlag)
  234. * @return :
  235. * @---------------------------------------------------
  236. */
  237. function fsetHngBaseInfo(pGrd, pFlag){
  238. //**상단정보 초기화**//
  239. delPatientInfos(); //화면상단정보 삭제
  240. setGlobalVariable("paminfo", ""); //원무정보 reset
  241. if(getNodesetCount("/root/main/paminfo/list") > 0) {
  242. model.removeNodeset("/root/main/paminfo/list");
  243. }
  244. var sIoflag = "";
  245. var sPid = "";
  246. var sCretno = "";
  247. var sSeqno = "";
  248. var sInstcd = "";
  249. var sIndd = "";
  250. var sOrddd = "";
  251. var sAcptseqno = "";
  252. var sOrgorddd = "";
  253. var sOrddd = "";
  254. var sRsrvdd = "";
  255. var iRow = pGrd.row;
  256. if(pFlag == "H"){ /*혈액투석*/
  257. // 상단 환자정보 parameter
  258. sIoflag = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/histstat" ); //원무 입원외래구분(histstat)
  259. sPid = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/pid " ); //등록번호
  260. sCretno = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/cretno" ); //생성번호
  261. sSeqno = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/seqno" ); //일련번호
  262. sInstcd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/instcd" ); //기관코드
  263. sIndd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/indd" ); //입원일자
  264. sOrddd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/orddd" ); //진료일자
  265. sAcptseqno = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/acptseqno" ); //등록일련번호
  266. sOrgorddd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/orgorddd" ); //원진료일자
  267. sOrddd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/orddd" ); //진료일자
  268. sRsrvdd = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/rsrvdd" ); //투석예약일자
  269. //--------(20110309) 경북대
  270. sRsrvdd = sRsrvdd.substring(0,10);
  271. sRsrvdd = sRsrvdd.replace("-","");
  272. sRsrvdd = sRsrvdd.replace("-","");
  273. //--------(20110309) 경북대
  274. var sIo = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/ioflagvalue");
  275. var sHist = model.getValue("/root/main/hdschelist/hdscheinfo[" + iRow + "]/histstat");
  276. }else if(pFlag == "P"){ /*복막투석*/
  277. // 상단 환자정보 parameter
  278. sIoflag = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/histstat" ); //원무 입원외래구분(histstat)
  279. sPid = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/pid " ); //등록번호
  280. sCretno = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/cretno" ); //생성번호
  281. sSeqno = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/seqno" ); //일련번호
  282. sInstcd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/instcd" ); //기관코드
  283. sIndd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/indd" ); //입원일자
  284. sOrddd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/orddd" ); //진료일자
  285. sAcptseqno = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/acptseqno" ); //등록일련번호
  286. sOrgorddd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/orgorddd" ); //원진료일자
  287. sOrddd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/orddd" ); //진료일자
  288. sRsrvdd = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/rsrvdd" ); //투석예약일자
  289. //--------(20110309) 경북대
  290. sRsrvdd = sRsrvdd.substring(0,10);
  291. sRsrvdd = sRsrvdd.replace("-","");
  292. sRsrvdd = sRsrvdd.replace("-","");
  293. //--------(20110309) 경북대
  294. var sIo = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/ioflagvalue");
  295. var sHist = model.getValue("/root/main/pdschelist/pdscheinfo[" + iRow + "]/histstat");
  296. }
  297. var sParam;
  298. if(sIo == "E"){
  299. sIo = "I";
  300. }
  301. if(sHist == "E"){
  302. sHist = "I";
  303. }
  304. //20140618 by kya 수정
  305. if(sHist == "D"){
  306. sHist = "I";
  307. sIoflag = "I" ;
  308. }
  309. if( sIo != sHist){
  310. if(sHist == "I") {
  311. messageBox("입원전환이 필요한 환자입니다. 투석외래예약건중 수납된것들은 수납취소후 수납 취소하십시오.", "I");
  312. } else {
  313. messageBox("외래전환이 필요한 환자입니다.", "I");
  314. }
  315. model.property("pid") = sPid;
  316. modal("SMMND01100", 1, "5", "5", "SMMND01100");
  317. model.property("pid") = "";
  318. }
  319. // alert(" sIoflag = " + sIoflag );
  320. if(sIoflag == "O") { //외래환자일 경우(histstat : "O")
  321. sParam = (sIoflag + "▦" + sPid + "▦" + sOrddd + "▦" + sCretno + "▦" + sInstcd + "▦" + sAcptseqno + "▦" + sOrgorddd );
  322. } else { //입원/응급환자일 경우(histstat : "I", "E")
  323. sParam = (sIoflag + "▦" + sPid + "▦" + sIndd + "▦" + sCretno + "▦" + sInstcd + "▦" + sRsrvdd );
  324. }
  325. //alert(" sParam = " + sParam );
  326. setParameter("condparam", sParam);
  327. modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
  328. var node = getGlobalVariable("paminfo");
  329. setCSVToNode("/root/main/paminfo", node);
  330. }
  331. /**
  332. * @group :
  333. * @ver : 2007.08.28
  334. * @by : 김진아
  335. * @---------------------------------------------------
  336. * @type : function
  337. * @access : public
  338. * @desc : 오른쪽 버튼 메뉴
  339. * @param : sDialFlag ("H":혈액투석, "P":복막투석)
  340. * @return :
  341. * @---------------------------------------------------
  342. */
  343. function fSubMenu(sDialFlag) {
  344. model.makeValue("/root/temp/dialflag", sDialFlag);
  345. if (event.button == 3) {
  346. if(sDialFlag == "H") {
  347. window.setPopupMenu(true, "/root/main/poplist/hdpopinfo/menu", "name", "func", false);
  348. } else if(sDialFlag == "P") {
  349. window.setPopupMenu(true, "/root/main/poplist/pdpopinfo/menu", "name", "func", false);
  350. } else {
  351. window.setPopupMenu(false);
  352. }
  353. }else {
  354. window.setPopupMenu(false);
  355. }
  356. }
  357. /**
  358. * @group :
  359. * @ver : 2007.08.28
  360. * @by : 김진아
  361. * @---------------------------------------------------
  362. * @type : function
  363. * @access : public
  364. * @desc : HDScheduling 열기
  365. * @param :
  366. * @return :
  367. * @---------------------------------------------------
  368. */
  369. function OpenHDScheduling() {
  370. var sDialFlag = model.getValue("/root/temp/dialflag");
  371. // 상단정보 설정
  372. fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  373. modal("SMMND01100", 1, "5", "5", "SMMND01100");
  374. fSrchHDList(); //혈액투석 스케줄 조회
  375. }
  376. /**
  377. * @group :
  378. * @ver : 2007.08.28
  379. * @by : 김진아
  380. * @---------------------------------------------------
  381. * @type : function
  382. * @access : public
  383. * @desc : 유지환자 관리 열기
  384. * @param :
  385. * @return :
  386. * @---------------------------------------------------
  387. */
  388. function OpenMatnPatMngt() {
  389. var sDialFlag = model.getValue("/root/temp/dialflag");
  390. // 상단정보 설정
  391. if(sDialFlag == "H") fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  392. else if(sDialFlag == "P") fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  393. modal("SMMND01200", 1, "5", "5", "SMMND01200");
  394. if(sDialFlag == "H") fSrchHDList(); //혈액투석 스케줄 조회
  395. else if(sDialFlag == "P") fSrchPDList(); //복막투석 스케줄 조회
  396. }
  397. /**
  398. * @group :
  399. * @ver : 2007.08.28
  400. * @by : 김진아
  401. * @---------------------------------------------------
  402. * @type : function
  403. * @access : public
  404. * @desc : 간호정보 조사 열기
  405. * @param :
  406. * @return :
  407. * @---------------------------------------------------
  408. */
  409. function OpenCareInfo() {
  410. var sDialFlag = model.getValue("/root/temp/dialflag");
  411. // 상단정보 설정
  412. if(sDialFlag == "H") fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  413. else if(sDialFlag == "P") fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  414. modal("SMMND00300", 1, "5", "5", "SMMND00300");
  415. if(sDialFlag == "H") fSrchHDList(); //혈액투석 스케줄 조회
  416. else if(sDialFlag == "P") fSrchPDList(); //복막투석 스케줄 조회
  417. }
  418. /**
  419. * @group :
  420. * @ver : 2007.08.28
  421. * @by : 김진아
  422. * @---------------------------------------------------
  423. * @type : function
  424. * @access : public
  425. * @desc : 혈액투석 간호기록 열기
  426. * @param :
  427. * @return :
  428. * @---------------------------------------------------
  429. */
  430. function OepnHDCareRec() {
  431. var iRow = grd_hdschelist.row;
  432. var sDialFlag = model.getValue("/root/temp/dialflag");
  433. // 상단정보 설정
  434. fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  435. modal("SMMND00700", 1, "5", "5", "SMMND00700", "/root/main/hdschelist/hdscheinfo["+iRow+"]/rsrvdd", "/root/main/condition/rsrvdd");
  436. fSrchHDList(); //혈액투석 스케줄 조회
  437. }
  438. /**
  439. * @group :
  440. * @ver : 2007.08.28
  441. * @by : 김진아
  442. * @---------------------------------------------------
  443. * @type : function
  444. * @access : public
  445. * @desc : 혈액투석 도관기록 열기
  446. * @param :
  447. * @return :
  448. * @---------------------------------------------------
  449. */
  450. function OepnHDPipeRec() {
  451. var sDialFlag = model.getValue("/root/temp/dialflag");
  452. // 상단정보 설정
  453. fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  454. modal("SMMND01300", 1, "5", "5", "SMMND01300");
  455. fSrchHDList(); //혈액투석 스케줄 조회
  456. }
  457. /**
  458. * @group :
  459. * @ver : 2007.08.28
  460. * @by : 김진아
  461. * @---------------------------------------------------
  462. * @type : function
  463. * @access : public
  464. * @desc : 상담기록 열기
  465. * @param :
  466. * @return :
  467. * @---------------------------------------------------
  468. */
  469. function OepnCnstRec() {
  470. var sDialFlag = model.getValue("/root/temp/dialflag");
  471. // 상단정보 설정
  472. if(sDialFlag == "H") fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  473. else if(sDialFlag == "P") fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  474. modal("SMMND01900", 1, "5", "5", "SMMND01900");
  475. }
  476. /**
  477. * @group :
  478. * @ver : 2007.08.28
  479. * @by : 김진아
  480. * @---------------------------------------------------
  481. * @type : function
  482. * @access : public
  483. * @desc : 복막투석 실시관리 열기
  484. * @param :
  485. * @return :
  486. * @---------------------------------------------------
  487. */
  488. function OepnPDExecRec() {
  489. var sDialFlag = model.getValue("/root/temp/dialflag");
  490. // 상단정보 설정
  491. fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  492. modal("SMMND00800", 1, "5", "5", "SMMND00800");
  493. fSrchPDList(); //복막투석 스케줄 조회
  494. }
  495. /**
  496. * @group :
  497. * @ver : 2007.08.28
  498. * @by : 김진아
  499. * @---------------------------------------------------
  500. * @type : function
  501. * @access : public
  502. * @desc : 복막투석 도관기록 열기
  503. * @param :
  504. * @return :
  505. * @---------------------------------------------------
  506. */
  507. function OepnPDPipeRec() {
  508. var sDialFlag = model.getValue("/root/temp/dialflag");
  509. // 상단정보 설정
  510. fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  511. modal("SMMND01400", 1, "5", "5", "SMMND01400");
  512. fSrchPDList(); //복막투석 스케줄 조회
  513. }
  514. /**
  515. * @group :
  516. * @ver : 2007.09.27
  517. * @by : 김진아
  518. * @---------------------------------------------------
  519. * @type : function
  520. * @access : public
  521. * @desc : 처방확인(환자진료정보조회) 열기
  522. * @param :
  523. * @return :
  524. * @---------------------------------------------------
  525. */
  526. function OepnSrchOrdInfo() {
  527. var sDialFlag = model.getValue("/root/temp/dialflag");
  528. // 상단정보 설정
  529. if(sDialFlag == "H") fsetHngBaseInfo(grd_hdschelist, sDialFlag);
  530. else if(sDialFlag == "P") fsetHngBaseInfo(grd_pdschelist, sDialFlag);
  531. modal("SMMMO02500", 1, "5", "5", "SMMMO02500");
  532. if(sDialFlag == "H") fSrchHDList(); //혈액투석 스케줄 조회
  533. else if(sDialFlag == "P") fSrchPDList(); //복막투석 스케줄 조회
  534. }
  535. /**
  536. * creat : 20090108
  537. * author : dhkim
  538. * desc : 내환자세팅된 간호사 load
  539. */
  540. function fLoadMyPatSetting(){
  541. model.removenode('/root/send');
  542. model.makeValue('/root/send/wardcd', getUserInfo('dutplcecd'));
  543. //model.refresh();
  544. //submit 호출
  545. if(!submit('TRMND03402')){
  546. messageBox('조회를 실패하였습니다.', 'E999');
  547. return;
  548. }
  549. if(getNodesetCount("/root/init/settingrn/settingrnlist") < 2){
  550. cmb_mypid.value = "";
  551. }
  552. }
  553. /**
  554. * @group :
  555. * @ver : 20009.10.08
  556. * @by : 김양수
  557. * @---------------------------------------------------
  558. * @type : function
  559. * @access : public
  560. * @desc : 환자라벨출력
  561. * @param :
  562. * @return :
  563. * @---------------------------------------------------
  564. */
  565. function fOpenLabelPrint(){
  566. model.setValue("/root/main/printcnt","1");
  567. group6.attribute("left") = event.ScreenX-window.screenleft-10;
  568. group6.attribute("top") = event.ScreenY-window.screenTop-150;
  569. model.setFocus("ipt_patcntctel");
  570. model.refresh();
  571. group6.visible = true;
  572. }
  573. /**
  574. * @group :
  575. * @ver : 2011.09.16
  576. * @by : 권영애
  577. * @---------------------------------------------------
  578. * @type : function
  579. * @access : public
  580. * @desc : 환자이름표출력
  581. * @param :
  582. * @return :
  583. * @---------------------------------------------------
  584. */
  585. function fOpenNamePrint_old() {
  586. var row = grd_hdschelist.row;
  587. if (row >= 1) {
  588. model.removeNodeset("/root/send");
  589. model.makeNode("/root/send/hdscheinfo");
  590. var spid = model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/pid" );
  591. model.makevalue("/root/send/hdscheinfo/pid", spid );
  592. model.makevalue("/root/send/hdscheinfo/hngnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/hngnm" ));
  593. model.makevalue("/root/send/hdscheinfo/sexage", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/sexage" ));
  594. model.makevalue("/root/send/hdscheinfo/ioflag", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/ioflag" ));
  595. model.makevalue("/root/send/hdscheinfo/drnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/drnm" ));
  596. model.makevalue("/root/send/hdscheinfo/orddeptnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/orddeptnm"));
  597. model.makevalue("/root/send/hdscheinfo/method", model.getValue("/root/main/hdschelist/hdscheinfo[" + row + "]/dialseatflag"));
  598. //20150325 소방정보 추가
  599. model.makevalue("/root/send/hdscheinfo/dialseatflag", model.getValue("/root/main/condition/method"));
  600. exeReportPreview("RPMND00100", "XMLSTR" ); //미리보기출력
  601. //exeReportPreview("RPMND00100", "XMLSTR", "/root/main/prtinfo", "", "true", "", "", "", "", "", "", "grp_report"); //미리보기 없이 출력
  602. }
  603. }
  604. function fOpenNamePrint() {
  605. if(btn_hdlist.selected == true) { // 혈액투석 스케줄 에서 호출
  606. group7.visible = true;
  607. }else{
  608. group8.visible = true;
  609. }
  610. }
  611. /**
  612. * @group :
  613. * @ver : 2015.03.25
  614. * @by : 권영애
  615. * @---------------------------------------------------
  616. * @type : function
  617. * @access : public
  618. * @desc : 환자이름표출력에서 소방관련 정보 포함
  619. * @param :
  620. * @return :
  621. * @---------------------------------------------------
  622. */
  623. //정보호출
  624. function fGetPatName() {
  625. if(btn_hdlist.selected == true) { // 혈액투석 스케줄 에서 호출
  626. var row_om = grd_hdschelist.row;
  627. if (row_om >= 1) {
  628. model.removeNodeset("/root/send");
  629. model.makeNode("/root/send/hdscheinfo");
  630. var spid = model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/pid" );
  631. model.makevalue("/root/send/hdscheinfo/pid", spid );
  632. model.makevalue("/root/send/hdscheinfo/hngnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/hngnm" ));
  633. model.makevalue("/root/send/hdscheinfo/sexage", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/sexage" ));
  634. model.makevalue("/root/send/hdscheinfo/ioflag", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/ioflag" ));
  635. model.makevalue("/root/send/hdscheinfo/drnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/drnm" ));
  636. model.makevalue("/root/send/hdscheinfo/orddeptnm", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/orddeptnm"));
  637. model.makevalue("/root/send/hdscheinfo/dialseatflag", model.getValue("/root/main/hdschelist/hdscheinfo[" + row_om + "]/dialseatflag"));
  638. //20150325 소방정보 추가
  639. model.makevalue("/root/send/hdscheinfo/method", model.getValue("/root/main/condition/method"));
  640. exeReportPreview("RPMND00100", "XMLSTR" ); //미리보기출력
  641. //exeReportPreview("RPMND00100", "XMLSTR", "/root/main/prtinfo", "", "true", "", "", "", "", "", "", "grp_report"); //미리보기 없이 출력
  642. }
  643. }else { // 복막투석에서 호출
  644. var row_nr = grd_pdschelist.row;
  645. if (row_nr >= 1) {
  646. model.removeNodeset("/root/send");
  647. model.makeNode("/root/send/hdscheinfo");
  648. var spid = model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/pid" );
  649. model.makevalue("/root/send/hdscheinfo/pid", spid );
  650. model.makevalue("/root/send/hdscheinfo/hngnm", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/hngnm" ));
  651. model.makevalue("/root/send/hdscheinfo/sexage", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/sexage" ));
  652. model.makevalue("/root/send/hdscheinfo/ioflag", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/ioflag" ));
  653. model.makevalue("/root/send/hdscheinfo/drnm", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/drnm" ));
  654. model.makevalue("/root/send/hdscheinfo/orddeptnm", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/orddeptnm"));
  655. model.makevalue("/root/send/hdscheinfo/dialseatflag", model.getValue("/root/main/pdschelist/pdscheinfo[" + row_nr + "]/dialseatflag"));
  656. //20150325 소방정보 추가
  657. model.makevalue("/root/send/hdscheinfo/method", model.getValue("/root/main/condition/method"));
  658. exeReportPreview("RPMND00100", "XMLSTR" ); //미리보기출력
  659. //exeReportPreview("RPMND00100", "XMLSTR", "/root/main/prtinfo", "", "true", "", "", "", "", "", "", "grp_report"); //미리보기 없이 출력
  660. }
  661. }
  662. }
  663. /**
  664. * @group :
  665. * @ver : 2012.10.15
  666. * @by : 권영애
  667. * @---------------------------------------------------
  668. * @type : function
  669. * @access : public
  670. * @desc : SMS 전송
  671. * @param :
  672. * @return :
  673. * @---------------------------------------------------
  674. */
  675. function fSendSMS() {
  676. open("SPZMS00100", "", "100", "100", "SPZMS00100", "", "");
  677. }