Esempio n. 1
0
 public EmployeeGridView(GridViewFilter filter) :
     base(Descriptor <ProductController> .ControllerName, Descriptor <ProductController> .ActionName(x => x.GridBind(null)), "Employee Grid")
 {
     this.IsEditable = true;
     this.EditView   = new GridViewEditView
                           ("Employee Edit", Descriptor <ProductController> .ControllerName,
                           Descriptor <ProductController> .ActionName(x => x.EditEmployee(0)), Descriptor <ProductController> .ActionName(x => x.SaveEmployee(0))
                           , Descriptor <ProductController> .ActionName(x => x.DeleteEmployee(0)),
                           Descriptor <EmployeeVM> .Name(x => x.EmpID));
     this.SetGridFilters(filter);
     this._MaxRows = 15;
 }
Esempio n. 2
0
 public ProductSearchVM()
 {
     ProductName = new AutoCompleteTextBoxModel(Descriptor <ProductController> .ControllerName, Descriptor <ProductController> .ActionName(x => x.SearchProducts("")));
 }