public DataTable NewRetrieve(SearchOption SearchOption) { Int32 searchOption; switch (SearchOption) { case SearchOption.StartsWith: searchOption = 2; break; case SearchOption.Contains: searchOption = 3; break; case SearchOption.EndsWith: searchOption = 4; break; default: searchOption = 1; break; } return(WarehouseDac.NewRetrieve(this, searchOption).Tables[0]); }
public static DataTable Retrieve(String Warehouse, String Description, SearchOption SearchOption) { Int32 searchOption; switch (SearchOption) { case SearchOption.StartsWith: searchOption = 2; break; case SearchOption.Contains: searchOption = 3; break; case SearchOption.EndsWith: searchOption = 4; break; default: searchOption = 1; break; } return(WarehouseDac.Retrieve(Warehouse, Description, searchOption).Tables[0]); }
public Warehouse(String WhseCode) { _Items = WarehouseDac.RetrieveItems(WhseCode).Tables[0]; _Locations = WarehouseDac.RetrieveLocations(WhseCode).Tables[0]; }
public static DataTable Retrieve() { return(WarehouseDac.Retrieve().Tables[0]); }