SMMND04200.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. 신장환자조회 ( SMMND04200_신장환자조회.xrw - JScript )
  4. - Version :
  5. 1) : Ver.1.00.01
  6. - Author : 최원돈
  7. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  8. */
  9. /**
  10. * creat : 20101012
  11. * author : 최원돈
  12. * desc : 초기화
  13. */
  14. function fInitialize(){
  15. //조회조건 default 세팅
  16. model.removenode('/root/main/cond');
  17. model.makeValue('/root/main/cond/fromprcpdd' , getCurrentDate().toDate().getAddDate(-1, "M").getDateFormat()); //처방시작일
  18. model.makeValue('/root/main/cond/toprcpdd' , getCurrentDate()); //처방종료일
  19. //그리드 노드 초기화
  20. model.removenode('/root/main/bdHtPatinfo');
  21. model.makenode('/root/main/bdHtPatinfo');
  22. model.refresh();
  23. }
  24. /**
  25. * creat : 20101012
  26. * author : 최원돈
  27. * desc : 신장실 환장명단조회
  28. */
  29. function fGetBdHtPatList(){
  30. //조건변수
  31. var fromdd = model.getValue('/root/main/cond/fromprcpdd'); //처방시작일자
  32. var todd = model.getValue('/root/main/cond/toprcpdd'); //처방종료일자
  33. //null 처리
  34. if(fromdd == null)
  35. {
  36. fromdd = '';
  37. }
  38. if(todd == null)
  39. {
  40. todd = '';
  41. }
  42. //send parameter 설정
  43. model.removenode('/root/send');
  44. model.makeValue('/root/send/fromprcpdd', fromdd);
  45. model.makeValue('/root/send/toprcpdd', todd);
  46. //submit 호출
  47. if(!submit('TRMND04201')){
  48. messageBox('조회를 실패하였습니다.', 'E999');
  49. return;
  50. }
  51. model.refresh();
  52. }