MRD01300.xjs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Script type="xscript4.0"><![CDATA[function finitialize()
  3. {
  4. lf_mmbfGetDeptCodeComboList(ds_init_orddept_dept,"D");
  5. var vNowDD = utlf_getCurrentDate();
  6. ds_main_condition.setColumn(0, "dethfromdd", vNowDD.substr(0,6)+ "01");
  7. ds_main_condition.setColumn(0, "dethtodd" , vNowDD);
  8. ds_main_deathptnlist.clearData();
  9. dsf_makeValue(ds_send_reqdata, "deptcd", "string", ds_main_condition.getColumn(0, "atdoctid"));
  10. var oParam = {};
  11. oParam.id = "TRMRD00598";
  12. oParam.service = "dschanalyapp.DschAnaly";
  13. oParam.method = "reqGetDethPatListBaseCD";
  14. oParam.inds = "req=ds_send_reqdata";
  15. oParam.outds = "ds_=dethkind ds_init_basecd_dethflag=dethflag ds_init_basecd_dethresn=dethresn ds_init_basecd_dethplce=dethplce ds_init_orddept_dept=dept";
  16. oParam.async = false;
  17. //oParam.callback = "cf_TRMRD00598";
  18. tranf_submit(oParam);
  19. var sProp="col=5,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  20. grp_sea.chk_dethkindcd.setInitComp(sProp, ds_chk_dethkindcd,"value","label","fn_cmpEvent");
  21. frmf_addComboItem("grp_sea.cmb_dethflagcd", "전체", "00", "above");
  22. grp_sea.cmb_dethflagcd.value = "00";
  23. frmf_addComboItem("grp_sea.cmb_dethresncd", "전체", "00", "above");
  24. grp_sea.cmb_dethresncd.value = "00";
  25. frmf_addComboItem("grp_sea.cmb_dethplcecd", "전체", "00", "above");
  26. grp_sea.cmb_dethplcecd.value = "00";
  27. frmf_addComboItem("grp_sea.cmb_orddept" , "전체", "00", "above");
  28. grp_sea.cmb_orddept.value="00";
  29. frmf_addComboItem("grp_sea.cbo_doc" , "전체", "00", "above");
  30. grp_sea.cbo_doc.value = "00";
  31. }
  32. function fFirstwhy()
  33. {
  34. ds_temp_selectdiaglist.clearData();
  35. frmf_setParameter("SPMMO03200_DIAGONESELECT", "Y");
  36. var search = ds_main_condition.getColumn(0, "basedethcascd");
  37. frmf_setParameter("SPMMO03200_SEARCHDATA", search);
  38. frmf_modal("SPMMO03200", "SPMMO03200", null, null, 1, 0, 0, null, null, null, null, null, "M");
  39. var dispdiagcd = ds_temp_selectdiaglist.getColumn(0, "dispdiagcd");
  40. var diagcd = ds_temp_selectdiaglist.getColumn(0, "diagcd");
  41. if (String(diagcd).length > 0 || !utlf_isNull(diagcd))
  42. {
  43. ds_main_condition.setColumn(0, "basedethcascd", dispdiagcd);
  44. ds_main_condition.setColumn(0, "basedethdiagcd", diagcd);
  45. }
  46. }
  47. function fSecondwhy()
  48. {
  49. ds_temp_selectdiaglist.clearData();
  50. frmf_setParameter("SPMMO03200_DIAGONESELECT", "Y");
  51. var search = ds_main_condition.getColumn(0, "mdldethcascd");
  52. frmf_setParameter("SPMMO03200_SEARCHDATA", search);
  53. frmf_modal("SPMMO03200", "SPMMO03200", null, null, 1, 0, 0, null, null, null, null, null, "M");
  54. var dispdiagcd = ds_temp_selectdiaglist.getColumn(0, "dispdiagcd");
  55. var diagcd = ds_temp_selectdiaglist.getColumn(0, "diagcd");
  56. if (String(diagcd).length > 0 || !utlf_isNull(diagcd))
  57. {
  58. ds_main_condition.setColumn(0, "mdldethcascd", dispdiagcd);
  59. ds_main_condition.setColumn(0, "mdldethdiagcd", diagcd);
  60. }
  61. }
  62. function fThirdwhy()
  63. {
  64. ds_temp_selectdiaglist.clearData();
  65. frmf_setParameter("SPMMO03200_DIAGONESELECT", "Y");
  66. var search = ds_main_condition.getColumn(0, "direcdethcascd");
  67. frmf_setParameter("SPMMO03200_SEARCHDATA", search);
  68. frmf_modal("SPMMO03200", "SPMMO03200", null, null, 1, 0, 0, null, null, null, null, null, "M");
  69. var dispdiagcd = ds_temp_selectdiaglist.getColumn(0, "dispdiagcd");
  70. var diagcd = ds_temp_selectdiaglist.getColumn(0, "diagcd");
  71. if (String(diagcd).length > 0 || !utlf_isNull(diagcd))
  72. {
  73. ds_main_condition.setColumn(0, "direcdethcascd" , dispdiagcd);
  74. ds_main_condition.setColumn(0, "direcdethdiagcd" , diagcd);
  75. }
  76. }
  77. function fSlectdethkindcd()
  78. {
  79. var check = ds_hidden.getColumn(0, "tmp");
  80. if(check=="00")
  81. {
  82. ds_main_condition.setColumn(0, "dethkindcd", " 01 02 03 04 09");
  83. grp_sea.chk_dethkindcd.setCheckAll(true);
  84. }
  85. else
  86. {
  87. ds_main_condition.setColumn(0, "dethkindcd", "");
  88. grp_sea.chk_dethkindcd.setCheckAll(false);
  89. }
  90. }
  91. function fdethinfoseach()
  92. {
  93. var oParam = {};
  94. oParam.id = "TRMRD01300";
  95. oParam.service = "dschanalyapp.DschAnaly";
  96. oParam.method = "reqGetDeathptnList";
  97. oParam.inds = "condition=ds_main_condition";
  98. oParam.outds = "ds_main_deathptnlist=deathptnlist";
  99. oParam.async = false;
  100. //oParam.callback = "cf_TRMRD01300";
  101. tranf_submit(oParam);
  102. }
  103. ]]></Script>