private void BindBasicData() { var mode = new BLL.Mode(); mode.LoadAll(); lkMode.Properties.DataSource = mode.DefaultView; lkRegion.Properties.DataSource = BLL.Region.GetAllRegions().DefaultView; deStartDate.EditValue = BLL.FiscalYear.Current.StartDate; deEndDate.EditValue = BLL.FiscalYear.Current.EndDate; //gridFacilityReport.DataSource = BLL.Institution.GetItemFacilityDistribution( }
public static List <StoreType> GetUpdatesAfter(long?lastVersion, DateTime?lastUpdateTime) { BLL.Mode v = new BLL.Mode(); if (lastVersion.HasValue && lastVersion.Value != 0) { v.LoadUpdatesAfter(lastVersion.Value); } else if (lastUpdateTime.HasValue) { v.LoadUpdatesAfterByTime(lastUpdateTime.Value); } else { v.LoadAll(); } return(ToList(v)); }
public static List<StoreType> GetAll() { BLL.Mode v = new BLL.Mode(); v.LoadAll(); return ToList(v); }
public static List<StoreType> GetUpdatesAfter(long? lastVersion,DateTime? lastUpdateTime) { BLL.Mode v = new BLL.Mode(); if(lastVersion.HasValue && lastVersion.Value != 0) { v.LoadUpdatesAfter( lastVersion.Value ); }else if(lastUpdateTime.HasValue) { v.LoadUpdatesAfterByTime(lastUpdateTime.Value); }else { v.LoadAll(); } return ToList(v); }
public static List <StoreType> GetAll() { BLL.Mode v = new BLL.Mode(); v.LoadAll(); return(ToList(v)); }