SMMNH05000.xjs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[function fInit()
  3. {
  4. ds_cond.setColumn(0, "dd", utlf_getCurrentDate());
  5. var oParam = {};
  6. oParam.id = "TRMNH05001";
  7. oParam.service = "hospiceapp.HospicePatMngt";
  8. oParam.method = "reqGetWardDeptList";
  9. oParam.inds = "req=ds_cond";
  10. oParam.outds = "ds_init_lists_ward=ward ds_init_lists_dept=dept";
  11. oParam.async = false;
  12. oParam.callback = "cf_TRMNH05001";
  13. tranf_submit(oParam);
  14. }
  15. function fClickSearchBtn()
  16. {
  17. var oParam = {};
  18. oParam.id = "TRMNH05003";
  19. oParam.service = "hospiceapp.HospicePatMngt";
  20. oParam.method = "reqGetCancerPatientLists";
  21. oParam.inds = "req=ds_cond";
  22. oParam.outds = "ds_main_cancerpatlists=cancerpatlists";
  23. oParam.async = false;
  24. oParam.callback = "cf_TRMNH05003";
  25. tranf_submit(oParam);
  26. }
  27. function cf_TRMNH05003(sSvcId, nErrorCode, sErrorMsg)
  28. {
  29. if(nErrorCode < 0)
  30. {
  31. alert("주치의 및 담당의 조회 도중 서버오류가 발생되었습니다.");
  32. return false;
  33. }
  34. }
  35. function fOnClickExcelBtn()
  36. {
  37. if(ds_main_cancerpatlists.rowcount == 0)
  38. {
  39. sysf_messageBox("엑셀저장할 내역이", "I004");
  40. }
  41. else
  42. {
  43. grdf_exportExcel(grd_codelist, "암환자재원환자리스트__", "see");
  44. }
  45. }
  46. ]]></Script>