示例#1
0
 //加载药物治疗信息
 public DrugInfoProfileViewModel GetDrugInfoList(ref DrugInfoProfileViewModel model, string DoctorId)
 {
     string UserId = model.UserId;
     string VisitId = model.VisitId;
     DataSet DrugRecordListds = _ServicesSoapClient.GetDrugRecordList(UserId, VisitId);
     if (DrugRecordListds != null)
     {
         if (DrugRecordListds.Tables.Count != 0)
         {
             DataTable DrugRecordListdt = DrugRecordListds.Tables[0];
             List<DrugInfo> list = new List<DrugInfo>();
             int max = 0;
             foreach (DataRow dr in DrugRecordListdt.Rows)
             {
                 DrugInfo item = new DrugInfo();
                 item.OrderNo = Convert.ToInt32(dr["OrderNo"]);
                 item.OrderSubNo = Convert.ToInt32(dr["OrderSubNo"]);
                 item.RepeatIndicatorCode = Convert.ToInt32(dr["RepeatIndicatorCode"]);
                 item.RepeatIndicator = dr["RepeatIndicator"].ToString();
                 item.OrderClassCode = dr["OrderClassCode"].ToString();
                 item.OrderClass = dr["OrderClass"].ToString();
                 item.OrderCode = dr["OrderCode"].ToString();
                 item.OrderContent = dr["OrderContent"].ToString();
                 item.Dosage = dr["Dosage"].ToString();
                 item.DosageUnitsCode = dr["DosageUnitsCode"].ToString();
                 item.DosageUnits = dr["DosageUnits"].ToString();
                 item.AdministrationCode = dr["AdministrationCode"].ToString();
                 item.Administration = dr["Administration"].ToString();
                 item.StartDateTime = dr["StartDateTime"].ToString();
                 item.StopDateTime = dr["StopDateTime"].ToString();
                 item.Frequency = dr["Frequency"].ToString();
                 item.FreqCounter = Convert.ToInt32(dr["FreqCounter"]);
                 item.FreqInteval = Convert.ToInt32(dr["FreqInteval"]);
                 item.FreqIntevalUnitCode = dr["FreqIntevalUnitCode"].ToString();
                 item.FreqIntevalUnit = dr["FreqIntevalUnit"].ToString();
                 item.DeptCode = dr["DeptCode"].ToString();
                 item.Creator = dr["Creator"].ToString();
                 if (item.Creator == DoctorId)
                 {
                     item.IsAllowed = true;
                 }
                 else
                 {
                     item.IsAllowed = false;
                 }
                 list.Add(item);
                 max = Convert.ToInt32(dr["OrderNo"]);
             }
             model.DrugRecordList = list;
             model.MaxSortNo = max;
         }
     }
     return model;
 }
示例#2
0
文件: Clinic.cs 项目: wfguanhan/CDMIS
 public DrugInfoProfileViewModel()
 {
     DrugRecordList = new List<DrugInfo>();
     DrugInfo = new DrugInfo();
 }