HBM.GeneralManagement.Department.SelectAllDataset C# (CSharp) Method

SelectAllDataset() public method

public SelectAllDataset ( ) : DataSet
return System.Data.DataSet
        public DataSet SelectAllDataset()
        {
            return (new DepartmentsDAO()).SelectAll(this);
        }

Usage Example

Example #1
0
 protected void LoadDepartments()
 {
     try
     {
         departments.CompanyId = SessionHandler.CurrentCompanyId;
         dsData = departments.SelectAllDataset();
         gvDepartment.DataSource = dsData.Tables[0];
         gvDepartment.DataBind();
     }
     catch (System.Exception)
     {
     }
 }