SMMND02300.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. 회사 별 환자리스트(SMMND02300.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. */
  6. //**전역변수**//
  7. /**
  8. * @group :
  9. * @ver : 2007.06.22
  10. * @by : 김진아
  11. * @---------------------------------------------------
  12. * @type : function
  13. * @access : public
  14. * @desc : 화면 초기화
  15. * @param :
  16. * @return :
  17. * @---------------------------------------------------
  18. */
  19. function fDone(){
  20. //**상단정보 초기화**//
  21. delPatientInfos(); //화면상단정보 삭제
  22. setGlobalVariable("paminfo", ""); //원무정보 reset
  23. //**그리드 초기화**//
  24. model.removeNodeset("/root/main/cmpypatlist"); // 회사별 환자리스트
  25. // 조회일자 설정
  26. var sCurrentDate = getCurrentDate(); // 현재일자
  27. model.setValue("/root/main/condition/srchtodd", sCurrentDate);
  28. model.setValue("/root/main/condition/srchfromdd", sCurrentDate);
  29. model.refresh();
  30. }
  31. /**
  32. * @group :
  33. * @ver : 2007.06.22
  34. * @by : 김진아
  35. * @---------------------------------------------------
  36. * @type : function
  37. * @access : public
  38. * @desc : 회사별 환자리스트 조회
  39. * @param :
  40. * @return :
  41. * @---------------------------------------------------
  42. */
  43. function fSrchCmpyPatList(){
  44. // 조회기간 체크
  45. if(model.getValue("/root/main/condition/srchfromdd") > model.getValue("/root/main/condition/srchtodd")) {
  46. messageBox("예약일자 기간이 올바르지 않습니다.", "E");
  47. var sCurrentDate = getCurrentDate(); // 현재일자
  48. model.setValue("/root/main/condition/srchfromdd", sCurrentDate);
  49. model.setValue("/root/main/condition/srchtodd" , sCurrentDate);
  50. model.refresh();
  51. }
  52. model.removenode("/root/send");
  53. model.makeNode("/root/send");
  54. model.makeValue("/root/send/reqdata/srchfromdd", model.getValue("/root/main/condition/srchfromdd"));
  55. model.makeValue("/root/send/reqdata/srchtodd", model.getValue("/root/main/condition/srchtodd"));
  56. model.removeNodeset("/root/main/cmpypatlist"); // 회사별 환자리스트 초기화
  57. submit("TRMND02301");
  58. // 회사별 환자 수 설정
  59. model.setValue("/root/main/countlist/totalcount" , model.getValue("/root/main/cmpypatlist/cmpypatinfo/totalcount" ));
  60. model.setValue("/root/main/countlist/baxtercount" , model.getValue("/root/main/cmpypatlist/cmpypatinfo/baxtercount" ));
  61. model.setValue("/root/main/countlist/gambrocount" , model.getValue("/root/main/cmpypatlist/cmpypatinfo/gambrocount" ));
  62. model.setValue("/root/main/countlist/boryungcount", model.getValue("/root/main/cmpypatlist/cmpypatinfo/boryungcount"));
  63. model.setValue("/root/main/countlist/fmccount" , model.getValue("/root/main/cmpypatlist/cmpypatinfo/fmccount" ));
  64. model.refresh();
  65. }
  66. /**
  67. * @group
  68. * @ver : 2007.09.20
  69. * @by : 김진아
  70. * @---------------------------------------------------
  71. * @type : function
  72. * @access : public
  73. * @desc : 출력기능
  74. * @param :
  75. * @return :
  76. * @---------------------------------------------------
  77. */
  78. function fExecPrint(){
  79. model.removenode("/root/send");
  80. model.makeNode ("/root/send/printdata");
  81. model.copynode ("/root/send/printdata", "/root/main");
  82. exeReportPreview("RPMND02301", "XMLSTR");
  83. }