SMMNH05000.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. 재원중인 암상병 환자 조회(SMMNH05000.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. function fInit(){
  7. model.setValue("/root/cond/dd", getCurrentDate());
  8. model.removenode("/root/send");
  9. model.makeValue("/root/send/dd", getCurrentDate());
  10. //병동 및 진료과 조회
  11. if(submit("TRMNH05001")){
  12. }else{
  13. model.alert("병동 및 진료과 조회 도중 서버오류가 발생되었습니다.");
  14. return false;
  15. }
  16. model.refresh();
  17. }
  18. /**
  19. * @group :
  20. * @ver : 2009-06-16 오후 8:26:46
  21. * @by : 김태범
  22. * @---------------------------------------------------
  23. * @type : function
  24. * @access : public
  25. * @desc : 부서코드 변경시 의사 리스트 조회
  26. * @param :
  27. * @param :
  28. * @return :
  29. * @---------------------------------------------------
  30. */
  31. function fValueChangedDeptCombo(){
  32. model.removenode("/root/send");
  33. model.makeValue("/root/send/orddd", model.getValue("/root/cond/dd"));
  34. model.makeValue("/root/send/orddeptcd", model.getValue("/root/cond/orddeptcd"));
  35. if(submit("TRMNH05002")){
  36. }else{
  37. model.alert("주치의 및 담당의 조회 도중 서버오류가 발생되었습니다.");
  38. return false;
  39. }
  40. }
  41. /**
  42. * @group :
  43. * @ver : 2009-06-16 오후 8:26:46
  44. * @by : 김태범
  45. * @---------------------------------------------------
  46. * @type : function
  47. * @access : public
  48. * @desc : 재원중인 암상병 환자 조회
  49. * @param :
  50. * @param :
  51. * @return :
  52. * @---------------------------------------------------
  53. */
  54. function fClickSearchBtn(){
  55. model.removenode("/root/send");
  56. model.makeValue("/root/send/dd", model.getValue("/root/cond/dd"));
  57. model.makeValue("/root/send/wardcd", model.getValue("/root/cond/wardcd"));
  58. model.makeValue("/root/send/orddeptcd", model.getValue("/root/cond/orddeptcd"));
  59. model.makeValue("/root/send/medispclid", model.getValue("/root/cond/medispclid"));
  60. model.makeValue("/root/send/atdoctid", model.getValue("/root/cond/atdoctid"));
  61. if(submit("TRMNH05003")){
  62. }else{
  63. model.alert("주치의 및 담당의 조회 도중 서버오류가 발생되었습니다.");
  64. return false;
  65. }
  66. }
  67. function fOnClickExcelBtn(){
  68. var fileName = window.fileDialog("save", ",", false, "암환자재원환자리스트__"+getCurrentDate(), "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  69. if (fileName != "") {
  70. grd_codelist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  71. }
  72. }