SMMMR08100.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. 의료정보 - 입퇴원요약지 ( SMMMR08100_입퇴원요약지.xrw - JScript )
  4. - Version :
  5. 1) : Ver.1.00.00
  6. - Author : 이환석
  7. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  8. **/
  9. function fInitialize(){
  10. var rgstfromdd = ((getCurrentDate()).toDate()).getAddDate(-7, "D");
  11. model.setValue("/root/main/search/fromdd", rgstfromdd.getDateFormat());
  12. model.setValue("/root/main/search/todd", getCurrentDate());
  13. fGetDeptList();
  14. model.refresh();
  15. }
  16. function fPatPopUp()
  17. {
  18. if(ipt_pid.currentText.length > 0) {
  19. model.setValue("/root/temp/autoflag", "Y");
  20. model.setValue("root/temp/srchcond", 1);
  21. }
  22. model.setValue("/root/temp/pid", model.getValue("/root/main/search/pid"));
  23. modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
  24. model.setValue("/root/main/search/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
  25. model.setValue("/root/main/search/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  26. model.refresh();
  27. }
  28. function fGetDeptList() {
  29. var instcd = getUserInfo("dutplceinstcd");
  30. var standard_yn = "rcptuseyn";
  31. var ord_deptflag = 'D';
  32. var rslt_ref = "/root/init/dept";
  33. var sort_method = "depthngnm";
  34. sort_field = "depthngnm"
  35. var base_dd = model.getValue("/root/main/search/todd");
  36. zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method, base_dd);
  37. // 진료과
  38. addComboItem("cmb_orddeptcd", "", "", "above");
  39. }
  40. function fGetiohsHist() {
  41. model.removeNodeset("root/main/iohslist");
  42. model.removeNodeset("/root/send/reqdata");
  43. if(model.getValue("/root/main/search/pid") != "") {
  44. model.makeValue("/root/send/reqdata/fromdd" , "");
  45. model.makeValue("/root/send/reqdata/todd" , "");
  46. model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/search/pid"));
  47. model.makeValue("/root/send/reqdata/offset", "0");
  48. model.makeValue("/root/send/reqdata/pagesize", model.getValue("/root/main/search/pagesize"));
  49. } else {
  50. model.makeValue("/root/send/reqdata/fromdd" , model.getValue("/root/main/search/fromdd"));
  51. model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/main/search/todd"));
  52. model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/search/pid"));
  53. model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/search/orddeptcd"));
  54. model.makeValue("/root/send/reqdata/offset", "0");
  55. model.makeValue("/root/send/reqdata/pagesize", model.getValue("/root/main/search/pagesize"));
  56. }
  57. submit("TRMMR08101");
  58. model.refresh();
  59. }