SMMND04200.xjs 1.7 KB

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