예제 #1
0
        private void initConfig()
        {
            ldtrO       = new List <DoctorOld>();
            dtrOld      = new DoctorOld();
            dtrOld.ID   = "ID";
            dtrOld.Name = "Name";
            dtrOld.TVS  = "TVS";

            dtrOld.table   = "Doctor";
            dtrOld.pkField = "ID";
        }
예제 #2
0
        public void getlDtr()
        {
            //lDept = new List<Position>();
            ldtrO.Clear();
            DataTable dt = new DataTable();

            dt = selectAll();
            foreach (DataRow row in dt.Rows)
            {
                DoctorOld itm1 = new DoctorOld();
                itm1.ID   = row[oPkg.PCKID].ToString();
                itm1.Name = row[oPkg.PackageName].ToString();
                ldtrO.Add(itm1);
            }
        }