Exemple #1
0
        public override bool MapData(DataRow row)
        {
            try
            {
                int managerid = GetInt(row, "ManagerId");
                this.ManagerId    = managerid;
                this.FirstName    = GetString(row, "FirstName");
                this.LastName     = GetString(row, "LastName");
                this.Email        = GetString(row, "Email");
                this.PhoneCell    = GetString(row, "PhoneCell");
                this.PhoneWork    = GetString(row, "PhoneWork");
                this.Address      = GetString(row, "Address");
                this.City         = GetString(row, "City");
                this.State        = GetString(row, "State");
                this.Zipcode      = GetString(row, "Zipcode");
                this.Title        = GetString(row, "Title");
                this.Organization = GetString(row, "Organization");
                this.Department   = GetString(row, "Department");
                this._positions   = PositionCollection.Load(managerid);

                return(true);
            } catch
            {
                throw;
            }
        }
 private void LoadPositionsToGrid(int ManagerId)
 {
     //Loads all positions to the datagrid whenever called
     PositionGridView.DataSource = PositionCollection.Load(ManagerId);
     PositionGridView.DataBind();
 }