public static void Load(this skCategory Object) { ObjectMessenger OM = new ObjectMessenger(); OM.Send("CATEGORYOBJ", Object); UI.Enviroment.LoadNewTab("CategoryDetailsView", Object.Name); }
public StockContract GetCategoryList(skCategory CategoryFilterObject) { StockContract retunobject = new StockContract(); retunobject.CategoryList = CatergoryRepo.GetCategoryList(CategoryFilterObject).ToList(); return(retunobject); }
public void UpdateCategory(skCategory CategoryObj) { dtCategory category = DB.dtCategories.Single(x => x.CatID == CategoryObj.StockTypeID); category.Description = CategoryObj.Description; category.Title = CategoryObj.Name; DB.SubmitChanges(); }
public CategoryDetailsViewModel() { if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject())) { return; } CategoryOBJ = ObjectMessenger.FindObject("CATEGORYOBJ"); _SaveChanges = new Command(Submit); }
public void AddNewCategory(skCategory categoryobj) { dtCategory newcat = new dtCategory { Description = categoryobj.Description, Title = categoryobj.Name }; DB.dtCategories.InsertOnSubmit(newcat); DB.SubmitChanges(); }
public IEnumerable <skCategory> GetCategoryList(skCategory CategoryOBJ) { var query = from STL in DB.dtCategories where STL.Title.IndexOf(CategoryOBJ.SearchFilter.ObjectName == null ? STL.Title : CategoryOBJ.SearchFilter.ObjectName) >= 0 && STL.Description.IndexOf(CategoryOBJ.SearchFilter.ObjectDescription == null ? STL.Description : CategoryOBJ.SearchFilter.ObjectDescription) >= 0 && STL.CatID.ToString().Equals(CategoryOBJ.SearchFilter.ObjectID == null ? STL.CatID.ToString() : CategoryOBJ.SearchFilter.ObjectID) select new skCategory { StockTypeID = STL.CatID, Name = STL.Title, Description = STL.Description }; return(query); }
public NewCategoryVeiwModel() { if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject())) { return; } try { _Catobj = new skCategory(); _SubmitNewCategory = new Command(Submit); } catch (Exception E) { ExepionLogger.Logger.LogException(E); ExepionLogger.Logger.Show(E); } }
public CategoryManagerViewModel() { try { if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject())) { return; } SearchFileter = new skCategory(); _GetRecordsCommand = new AsynchronousCommand(SearchMethod); LoadToolBar(); } catch (Exception E) { ExepionLogger.Logger.LogException(E); ExepionLogger.Logger.Show(E); } }
public void UpdateCategory(skCategory CategoryObject) { CatergoryRepo.UpdateCategory(CategoryObject); }
public void AddNewCategory(skCategory CategoryObject) { CatergoryRepo.AddNewCategory(CategoryObject); }
public StockContract GetCategoryList(skCategory CategoryFilterObject) { return(base.Channel.GetCategoryList(CategoryFilterObject)); }
public void UpdateCategory(skCategory CategoryObject) { base.Channel.UpdateCategory(CategoryObject); }
public void AddNewCategory(skCategory CategoryObject) { base.Channel.AddNewCategory(CategoryObject); }