Esempio n. 1
0
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ProductPropertyCrudController>();
     searchBar.StandardSetupFor <ProductPropertyCrudController>("Name/Remark");
     searchBar.Conditions.Add(new FormField(new CheckBoxFieldAttribute("IsSalesProperty")));
 }
Esempio n. 2
0
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <PaymentTransactionCrudController>();
     searchBar.StandardSetupFor <PaymentTransactionCrudController>(
         "Serial/Payer/Payee/Description/Remark");
 }
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <BuyerOrderCrudController>();
     table.Template = "/static/shopping.order.tmpl/orderTable.tmpl";
     searchBar.StandardSetupFor <BuyerOrderCrudController>("Serial/Remark");
     searchBar.BeforeItems.AddOrderFilterBar();
     searchBar.Conditions.Add(new FormField(new TextBoxFieldAttribute("Seller")));
     searchBar.Conditions.Add(new FormField(new DropdownListFieldAttribute(
                                                "RemarkFlags", typeof(ListItemsWithOptional <ListItemFromEnum <OrderRemarkFlags> >))));
 }
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ProductCrudController>();
     searchBar.StandardSetupFor <ProductCrudController>("Name/Remark");
     searchBar.Conditions.Add(new FormField(new DropdownListFieldAttribute(
                                                "ProductType", typeof(ListItemsWithOptional <ProductTypeListItemProvider>))));
     searchBar.Conditions.Add(new FormField(new DropdownListFieldAttribute(
                                                "ProductState", typeof(ListItemsWithOptional <ProductStateListItemProvider>))));
     searchBar.Conditions.Add(new FormField(new DropdownListFieldAttribute(
                                                "ProductClass", typeof(ListItemsWithOptional <GenericClassListItemProvider <ProductClassController> >))));
     searchBar.Conditions.Add(new FormField(new DropdownListFieldAttribute(
                                                "ProductTag", typeof(ListItemsWithOptional <GenericTagListItemProvider <ProductTagController> >))));
 }
Esempio n. 5
0
 /// <summary>
 /// 构建表格时的处理
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <UserRoleCrudController>();
     searchBar.StandardSetupFor <UserRoleCrudController>("Name/Remark");
 }
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ArticleCrudController>();
     searchBar.StandardSetupFor <ArticleCrudController>("Title/Summary/Author");
 }
 /// <summary>
 /// 构建表格时的处理
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <UserCrudController>();
     searchBar.StandardSetupFor <UserCrudController>("Username");
 }
Esempio n. 8
0
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ShippingAddressCrudController>();
     searchBar.StandardSetupFor <ShippingAddressCrudController>("Address/Name/Tel");
 }
Esempio n. 9
0
 public override void BuildTable(AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ExampleCrudController>();                // 设置表格
     searchBar.StandardSetupFor <ExampleCrudController>("Name");      // 设置搜索栏
 }
Esempio n. 10
0
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <ProductBookmarkCrudController>();
     searchBar.StandardSetupFor <ProductBookmarkCrudController>("Name/Seller");
 }
 /// <summary>
 /// 构建表格
 /// </summary>
 public override void BuildTable(
     AjaxTableBuilder table, AjaxTableSearchBarBuilder searchBar)
 {
     table.StandardSetupFor <PaymentApiCrudController>();
     searchBar.StandardSetupFor <PaymentApiCrudController>("Name/Owner/Remark");
 }