private void FillRepCategories() { string from = String.Empty; switch ((CRMTables)int.Parse(TableImport.SelectedValue)) { case CRMTables.Base_Companies: from = "CRM_ContactCategories"; break; case CRMTables.Base_Contacts: case CRMTables.CRM_Leads: from = "CRM_ReferrerCategories"; break; case CRMTables.CRM_WorkActivity: tablecat.Visible = false; return; } DataTable dt; dt = DatabaseConnection.CreateDataset("SELECT ID,DESCRIPTION,'0' AS TOCHECK FROM " + from + " WHERE (FLAGPERSONAL=0 OR (FLAGPERSONAL=1 AND CREATEDBYID=" + UC.UserId + ")) ORDER BY FLAGPERSONAL DESC").Tables[0]; if (dt.Rows.Count > 0) { RepCategories.DataSource = new DataView(dt, "", "tocheck desc", DataViewRowState.CurrentRows); RepCategories.DataBind(); } else { tablecat.Visible = false; } }
public ProductsController(ProductModel model, RepProducts rep, ETicaretContext db, RepGallery repglr, RepCategories repCat) { _rep = rep; _model = model; _db = db; _repglr = repglr; _repcat = repCat; }
public GalleryController(RepProducts reppro, RepGallery rep, ETicaretContext db, ProductModel model, RepCategories repcat, GalleryModel modelglr) { _rep = rep; _db = db; _model = model; _repcat = repcat; _reppro = reppro; _modelglr = modelglr; }
public CategoriesController(RepCategories repCat) { _repCat = repCat; }
public CategoriesController(RepCategories rep) { _rep = rep; }
public CategoriesController(RepCategories rep, CategoriesModel model) { _rep = rep; _model = model; }