Exemplo n.º 1
0
        public ActionResult TestReport()
        {
            List <PathologyTestReport> CategoryList = new List <PathologyTestReport>();
            Property p  = new Property();
            DataSet  ds = new DataSet();

            p.OnTable = "FetchPathologyReport";

            ds = dl.FetchPathologyReport_sp(p);

            try
            {
                foreach (DataRow item in ds.Tables[0].Rows)
                {
                    PathologyTestReport m = new PathologyTestReport();

                    m.BillId        = item["BillId"].ToString();
                    m.PatientId     = item["PatientId"].ToString();
                    m.Name          = item["Name"].ToString();
                    m.EmployeeId    = item["EmployeeId"].ToString();
                    m.FullName      = item["FullName"].ToString();
                    m.ReportingDate = item["ReportingDate"].ToString();
                    m.Description   = item["Description"].ToString();
                    m.Attachment    = item["Attachment"].ToString();
                    m.AppliedCharge = item["AppliedCharge"].ToString();
                    CategoryList.Add(m);
                }
                ViewBag.CategoryList = CategoryList;
            }
            catch (Exception ex)
            {
            }
            return(View());
        }