コード例 #1
0
        public ActionResult InPatient()
        {
            List <InPatient> CategoryList = new List <InPatient>();
            Property         p            = new Property();
            DataSet          ds           = new DataSet();

            p.OnTable = "FetchPatient";

            ds = dl.FetchInPatient_sp(p);

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

            //        m.PatientId = item["PatientId"].ToString();
            //        m.PatientName = item["PatientName"].ToString();
            //        m.Code = item["Code"].ToString();
            //        m.Phone = item["Phone"].ToString();
            //        m.Address = item["Address"].ToString();
            //        m.ContactPersonName = item["ContactPersonName"].ToString();
            //        m.ContactPersonPhone = item["ContactPersonPhone"].ToString();
            //        m.IsActive = item["IsActive"].ToString();
            //        CategoryList.Add(m);
            //    }
            //    ViewBag.CategoryList = CategoryList;
            //}
            //catch (Exception e)
            //{

            //}
            return(View());
        }