Exemplo n.º 1
0
 private void GetChanDoan(string ICD_chinh, string IDC_Phu, ref string ICD_Name, ref string ICD_Code)
 {
     try
     {
         List<string> lstICD = ICD_chinh.Split(',').ToList();
         DmucBenhCollection _list =
             new DmucBenhController().FetchByQuery(
                 DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, lstICD));
         foreach (DmucBenh _item in _list)
         {
             ICD_Name += _item.TenBenh + ";";
             ICD_Code += _item.MaBenh + ";";
         }
         lstICD = IDC_Phu.Split(',').ToList();
         _list =
             new DmucBenhController().FetchByQuery(
                 DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, lstICD));
         foreach (DmucBenh _item in _list)
         {
             ICD_Name += _item.TenBenh + ";";
             ICD_Code += _item.MaBenh + ";";
         }
         if (ICD_Name.Trim() != "") ICD_Name = ICD_Name.Substring(0, ICD_Name.Length - 1);
         if (ICD_Code.Trim() != "") ICD_Code = ICD_Code.Substring(0, ICD_Code.Length - 1);
     }
     catch
     {
     }
 }
 private void GetChanDoan(string ICD_chinh, string IDC_Phu, ref string ICD_Name, ref string ICD_Code)
 {
     try
     {
         List<string> paramValue = ICD_chinh.Split(new char[] { ',' }).ToList<string>();
         DmucBenhCollection benhs = new DmucBenhController().FetchByQuery(DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, paramValue));
         foreach (DmucBenh benh in benhs)
         {
             ICD_Name = ICD_Name + benh.TenBenh + ";";
             ICD_Code = ICD_Code + benh.MaBenh + ";";
         }
         paramValue = IDC_Phu.Split(new char[] { ',' }).ToList<string>();
         benhs = new DmucBenhController().FetchByQuery(DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, paramValue));
         foreach (DmucBenh benh in benhs)
         {
             ICD_Name = ICD_Name + benh.TenBenh + ";";
             ICD_Code = ICD_Code + benh.MaBenh + ";";
         }
         if (ICD_Name.Trim() != "")
         {
             ICD_Name = ICD_Name.Substring(0, ICD_Name.Length - 1);
         }
         if (ICD_Code.Trim() != "")
         {
             ICD_Code = ICD_Code.Substring(0, ICD_Code.Length - 1);
         }
     }
     catch
     {
     }
 }
 private void GetChanDoanChinhPhu(string ICD_chinh, string IDC_Phu, ref string ICD_chinh_Name,
                                  ref string ICD_chinh_Code, ref string ICD_Phu_Name, ref string ICD_Phu_Code)
 {
     try
     {
         List<string> lstICD = ICD_chinh.Split(',').ToList();
         DmucBenhCollection _list =
             new DmucBenhController().FetchByQuery(
                 DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, lstICD));
         foreach (DmucBenh _item in _list)
         {
             ICD_chinh_Name += _item.TenBenh + ";";
             ICD_chinh_Code += _item.MaBenh + ";";
         }
         lstICD = IDC_Phu.Split(',').ToList();
         _list =
             new DmucBenhController().FetchByQuery(
                 DmucBenh.CreateQuery().AddWhere(DmucBenh.MaBenhColumn.ColumnName, Comparison.In, lstICD));
         foreach (DmucBenh _item in _list)
         {
             ICD_Phu_Name += _item.TenBenh + ";";
             ICD_Phu_Code += _item.MaBenh + ";";
         }
     }
     catch
     {
     }
 }