示例#1
0
 public void GetPRRescueInfo(string taskCode, int patientOrder, string rescueRecordCode, int disposeOrder
                             , out M_PatientRecordRescue prrInfo)
 {
     m_DAL.GetPRRescueInfo(taskCode, patientOrder, rescueRecordCode, disposeOrder, out prrInfo);
 }
示例#2
0
 public bool InsertPRRescue(M_PatientRecordRescue info, List <M_PatientRecordMeasure> measureSCO
                            , List <M_PatientRecordDrug> drugSCO, List <M_PatientRecordSanitation> sanitationSCO
                            , List <M_PatientRecordLossDrug> lossDrugSCO, List <M_PatientRecordLossSanitation> lossSanitationSCO)
 {
     return(m_DAL.InsertPRRescue(info, measureSCO, drugSCO, sanitationSCO, lossDrugSCO, lossSanitationSCO));
 }
示例#3
0
 public bool UpdatePRRescue(M_PatientRecordRescue prrInfo, List <M_PatientRecordMeasure> measureSCO
                            , List <M_PatientRecordDrug> drugSCO, List <M_PatientRecordSanitation> sanitationSCO
                            , List <M_PatientRecordLossDrug> lossDrugSCO, List <M_PatientRecordLossSanitation> lossSanitationSCO)
 {
     return(m_DAL.UpdatePRRescue(prrInfo, measureSCO, drugSCO, sanitationSCO, lossDrugSCO, lossSanitationSCO));
 }
示例#4
0
        public bool SavePRRescue()
        {
            string                               state            = "";
            M_PatientRecordBLL                   bll              = new M_PatientRecordBLL();
            M_PatientRecordRescue                prRescue         = null; //救治记录主表信息
            List <M_PatientRecordMeasure>        prMeasure        = null; //救治记录--救治措施
            List <M_PatientRecordDrug>           prDrug           = null; //救治记录--药品
            List <M_PatientRecordSanitation>     prSanitation     = null; //救治记录--耗材
            List <M_PatientRecordLossDrug>       prLossDrug       = null; //救治记录--损耗药品
            List <M_PatientRecordLossSanitation> prLossSanitation = null; //救治记录--损耗耗材

            string PRRescue = Request.Form["PRRescue"].ToString();
            M_AddPatientRecordRescue add = new M_AddPatientRecordRescue();

            add = JsonHelper.GetJsonInfoBy <M_AddPatientRecordRescue>(PRRescue);
            if (add != null)
            {
                string TaskCode     = add.TaskCode;
                int    PatientOrder = add.PatientOrder;
                state    = add.state;
                prRescue = add.prRescue;//救治记录主表信息

                if (add.prMeasure.Count > 0)
                {
                    prMeasure = add.prMeasure;//救治记录--救治措施
                }
                else
                {
                    prMeasure = null;
                }
                if (add.prDrug.Count > 0)
                {
                    prDrug = add.prDrug;//救治记录--药品
                }
                else
                {
                    prDrug = null;
                }

                if (add.prSanitation.Count > 0)
                {
                    prSanitation = add.prSanitation;//救治记录--耗材
                }
                else
                {
                    prSanitation = null;
                }

                if (add.prLossDrug.Count > 0)
                {
                    prLossDrug = add.prLossDrug;//救治记录--损耗药品
                }
                else
                {
                    prLossDrug = null;
                }

                if (add.prLossSanitation.Count > 0)
                {
                    prLossSanitation = add.prLossSanitation;//救治记录--损耗耗材
                }
                else
                {
                    prLossSanitation = null;
                }
            }

            bool save = false;

            if (prRescue != null)
            {
                try
                {
                    if (state == "new")
                    {
                        save = bll.InsertPRRescue(prRescue, prMeasure, prDrug, prSanitation, prLossDrug, prLossSanitation);//新增救治记录主表、子表
                    }
                    else if (state == "edit")
                    {
                        save = bll.UpdatePRRescue(prRescue, prMeasure, prDrug, prSanitation, prLossDrug, prLossSanitation);//修改救治记录主表、子表
                    }
                }
                catch
                {
                    save = false;
                }
            }
            return(save);
        }