Exemple #1
0
        private string GetAllergyByHN(String HN)
        {
            try
            {
                Service.WS_TrakcareCls ws = new Service.WS_TrakcareCls();
                DataTable dt = ws.GetAllAllergyByHN(HN);

                List <string> allery = dt.AsEnumerable().Select(x => x.Field <string>("Allergy")).ToList();
                if (allery != null && allery.Count() > 0)
                {
                    return(string.Join(Environment.NewLine, allery));
                }
                return("No Know Allergy");
            }
            catch (Exception ex)
            {
                Program.MessageError("RetrieveArrivedCls", "GetAllergyByHN", ex, false);
                return("");
            }
        }