public List <TreatmentFundus> GetList()
        {
            FundusMaster        f    = new FundusMaster();
            List <FundusMaster> fmst = f.GetAllFundus();

            List <TreatmentFundus> fundus = new List <TreatmentFundus>();

            for (int i = 0; i <= fmst.Count - 1; i++)
            {
                TreatmentFundus tf = new TreatmentFundus();
                tf.fundusid   = fmst[i].fundusid;
                tf.fundusname = fmst[i].fundusname;
                fundus.Add(tf);
            }
            return(fundus);
        }
        public List <FundusMaster> GetAllFundus()
        {
            this.CMD = "View";
            this.hid = Convert.ToInt32(HttpContext.Current.Session["hospital"].ToString());
            string       xml = Common.ToXML(this);
            DBConnection con = new DBConnection();
            DataSet      ds  = con.ExecuteProcedure("SP_Fundus", xml);

            List <FundusMaster> Funduslist = new List <FundusMaster>();

            if (ds != null)
            {
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    FundusMaster f = new FundusMaster();
                    f.fundusid   = Convert.ToInt32(ds.Tables[0].Rows[i]["fundusid"].ToString());
                    f.fundusname = ds.Tables[0].Rows[i]["fundusname"].ToString();
                    Funduslist.Add(f);
                }
            }
            return(Funduslist);
        }