SMMNP00730.xjs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[function fInit()
  3. {
  4. ds_send_reqdata.clearData();
  5. ds_send_reqdata.addRow();
  6. ds_main_patinfo_patlist.clearData();
  7. //model.removenode('/root/hidden');
  8. ds_cond.clearData();
  9. ds_cond.addRow();
  10. dsf_createDsRow("ds_send_reqdata", [{col:"cdgrupid", type:"STRING", size:256 , val : "094"}
  11. , {col:"cdid", type:"STRING", size:256 , val : ""}
  12. , {col:"supcdid", type:"STRING", size:256 , val : ""}
  13. , {col:"cdnm", type:"STRING", size:256 , val : ""}]);
  14. var oParam = {};
  15. oParam.id = "TRMNP04903";
  16. oParam.service = "opanstapp.OpAnstRef";
  17. oParam.method = "reqGetOpCommonCd";
  18. oParam.inds = "reqdata=ds_send_reqdata";
  19. oParam.outds = "ds_init_hardcodeinfo=hardcodeinfo";
  20. oParam.async = false;
  21. //oParam.callback = "cf_TRMNP04903";
  22. tranf_submit(oParam);
  23. frmf_addComboItem("grp_sea.cmb_spcl","전 체","","above");
  24. grp_sea.cmb_spcl.index = 0;
  25. ds_cond.setColumn(0, "fromdd", utlf_getCurrentDate());
  26. ds_cond.setColumn(0, "todd", utlf_getCurrentDate());
  27. ds_cond.setColumn(0, "rdocond", "1");
  28. }
  29. function fSaveExcel()
  30. {
  31. grdf_exportExcel(grd_patlist, "", "", false, "", "", false);
  32. }
  33. function fSearch()
  34. {
  35. var wardcd = ds_cond.getColumn(0, "wardcd");
  36. var fromdd = ds_cond.getColumn(0, "fromdd");
  37. var todd = ds_cond.getColumn(0, "todd");
  38. var rdocond = ds_cond.getColumn(0, "rdocond");
  39. if(utlf_isNull(fromdd) || fromdd == "")
  40. {
  41. fromdd = utlf_getCurrentDate();
  42. }
  43. if(utlf_isNull(todd) || todd == "")
  44. {
  45. todd = utlf_getCurrentDate();
  46. }
  47. ds_cond.setColumn(0, "fromdd", fromdd);
  48. ds_cond.setColumn(0, "todd", todd);
  49. ds_send_reqdata.clearData();
  50. ds_send_reqdata.addRow();
  51. dsf_createDsRow("ds_send_reqdata", [{col:"wardcd", type:"STRING", size:256 , val : wardcd}
  52. , {col:"fromdd", type:"STRING", size:256 , val : fromdd}
  53. , {col:"todd", type:"STRING", size:256 , val : todd}
  54. , {col:"rdocond", type:"STRING", size:256 , val : rdocond}]);
  55. var oParam = {};
  56. oParam.id = "TRMNP00731";
  57. oParam.service = "opanstapp.OpAnstStocRef";
  58. oParam.method = "reqGetIcuInOutPatList";
  59. oParam.inds = "reqdata=ds_send_reqdata";
  60. oParam.outds = "ds_main_patinfo_patlist=patList";
  61. oParam.async = false;
  62. oParam.callback = "cf_TRMNP00731";
  63. tranf_submit(oParam);
  64. }
  65. function cf_TRMNP00731(sSvcId, nErrorCode, sErrorMsg)
  66. {
  67. if(nErrorCode < 0)
  68. {
  69. sysf_messageBox('회복환자조회를', 'E009');
  70. return;
  71. }
  72. else
  73. {
  74. }
  75. }
  76. ]]></Script>