コード例 #1
0
ファイル: ViewUsers.cs プロジェクト: quintonn/QBic
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "UserName");
            columnConfig.AddStringColumn("Email", "Email");
            columnConfig.AddBooleanColumn("Email Confirmed", "EmailConfirmed", "Yes", "No");
            columnConfig.AddLinkColumn("", "Id", "Send Confirmation Email", EventNumber.SendConfirmationEmail,
                                       new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Hide,
                Conditions = new List <Condition>()
                {
                    new Condition("EmailConfirmed", Comparison.Equals, "true")
                }
            }
                                       );

            columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditUser);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete User?")
            {
                OnConfirmationUIAction = EventNumber.DeleteUser
            },
                                         new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("CanDelete", Comparison.Equals, "true")
                }
            }
                                         );
        }
コード例 #2
0
ファイル: ViewPatients.cs プロジェクト: quintonn/QBicSamples
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddStringColumn("Name", "Surname");
     columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditPatient);
     columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete patient?", MenuNumber.DeletePatient));
 }
コード例 #3
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Product Type", "ProductType.Name");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditProduct);
            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete product?", MenuNumber.DeleteProduct));
        }
コード例 #4
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Id", "Id");
     columnConfig.AddStringColumn("PostId", "PostId");
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddStringColumn("Email", "Email");
     columnConfig.AddStringColumn("Body", "Body");
 }
コード例 #5
0
ファイル: ViewStock.cs プロジェクト: quintonn/InventoryDemo
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Warehouse", "Warehouse.Name");
            columnConfig.AddStringColumn("Product", "Product.Name");
            columnConfig.AddStringColumn("Quantity", "StockQuantity");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditStock);
            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete warehouse stock?", MenuNumber.DeleteStock));
        }
コード例 #6
0
ファイル: ViewCountries.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Region", "Region.Name");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCountry);

            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?", MenuNumber.DeleteCountry));
        }
コード例 #7
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Address", "Address");
            columnConfig.AddStringColumn("Company", "Company.Name");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditWarehouse);
            columnConfig.AddLinkColumn("", "Id", "Stock", MenuNumber.ViewStocks);
            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete warehouse?", MenuNumber.DeleteWarehouse));
        }
コード例 #8
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Email", "Email");
            columnConfig.AddStringColumn("Region", "Region.Name");
            columnConfig.AddStringColumn("Gender", "Gender");
            columnConfig.AddStringColumn("Course Number", "CourseNumber");

            columnConfig.AddLinkColumn("Certificate", "Id", "Certificate", MenuNumber.AttendeeCertificate);
        }
コード例 #9
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Date", "Date");
            columnConfig.AddStringColumn("Task", "Task");
            columnConfig.AddStringColumn("Status", "Status", 3);
            columnConfig.AddHiddenColumn("Id");
            var json = new JsonHelper();

            json.Add("type", "status");
            columnConfig.AddLinkColumn("", "Id", "Detail", EventNumber.ViewBackgroundDetail, parametersToPass: json.ToString()); //parameters not passing
        }
コード例 #10
0
ファイル: MappingView.cs プロジェクト: quintonn/QBic
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Field", "Field");
            columnConfig.AddStringColumn("Column Number/s", "Columns");

            columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditCsvColumnMapping);

            //columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete selected item?")
            //{
            //    OnConfirmationUIAction = MobileMenuNumber.DeleteCsvColumnMapping
            //});
        }
コード例 #11
0
ファイル: ViewUserRoles.cs プロジェクト: quintonn/QBic
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Description", "Description");

            columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditUserRole);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete User Role?")
            {
                OnConfirmationUIAction = EventNumber.DeleteUserRole
            }
                                         );
        }
コード例 #12
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddStringColumn("Email", "Email");
            columnConfig.AddStringColumn("Gender", "GenderString");
            columnConfig.AddStringColumn("Region", "RegionString");
            columnConfig.AddStringColumn("Outcome", "OutcomeString");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCourseAttendee);
            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete selected item?")
            {
                OnConfirmationUIAction = MenuNumber.DeleteCourseAttendee
            });
        }
コード例 #13
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");
            columnConfig.AddHiddenColumn("Name");

            columnConfig.AddStringColumn("Event", "Event");

            columnConfig.AddButtonColumn("Sub Menus", "Id", "...", EventNumber.ViewMenus, new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("Event", Comparison.IsNull)
                }
            }, MenuId);

            columnConfig.AddHiddenColumn("Position");

            columnConfig.AddButtonColumn("", "Id", "Up", EventNumber.IncrementMenuOrder,
                                         new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("Position", Comparison.GreaterThan, "0")
                }
            });

            columnConfig.AddButtonColumn("", "Id", "Down", EventNumber.DecrementMenuOrder);
            //TODO: Would be good to hide the Down button for the last item.

            columnConfig.AddLinkColumn("", "Id", "Edit", EventNumber.EditMenu, null);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete Menu Item?")
            {
                OnConfirmationUIAction = EventNumber.DeleteMenu
            },
                                         columnSetting: new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("CanDelete", Comparison.Equals, "true")
                }
            }
                                         );
        }
コード例 #14
0
ファイル: SampleView.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("String Value", "StringValue");
            columnConfig.AddStringColumn("Number Value", "NumberValue");
            columnConfig.AddDateColumn("Date Value", "DateValue");
            columnConfig.AddStringColumn("Long Value", "LongTestValue");
            columnConfig.AddStringColumn("Category", "Category.Description"); // You can reference sub fields in the column name field

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.SampleEdit);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete item?")
            {
                OnConfirmationUIAction = MenuNumber.SampleDelete
            });
        }
コード例 #15
0
ファイル: BasicCrudView.cs プロジェクト: quintonn/QBic
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            foreach (var col in ColumnsToShowInView)
            {
                columnConfig.AddStringColumn(col.Value, col.Key);
            }

            foreach (var col in AdditionalColumns)
            {
                columnConfig.AddColumn(col);
            }

            columnConfig.AddLinkColumn("", "Id", "Edit", Id + 1);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete " + ItemName + "?")
            {
                OnConfirmationUIAction = Id + 2
            },
                                         new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Show,
                Conditions = new List <Condition>()
                {
                    new Condition("CanDelete", Comparison.Equals, "true")
                }
            }
                                         );
        }
コード例 #16
0
ファイル: ViewModels.cs プロジェクト: quintonn/QBicSamples
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddLinkColumn("", "Id", "Editions", MenuNumber.ViewEditions);
     columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditModel);
     columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete model?", MenuNumber.DeleteModel));
 }
コード例 #17
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddLinkColumn("", "Id", "Models", MenuNumber.ViewModels);
     columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditManufacturer);
     columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete manufacturer?", MenuNumber.DeleteManufacturer));
 }
コード例 #18
0
ファイル: ViewEditions.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "EditionName");
            columnConfig.AddStringColumn("Year", "EditionYear");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditEdition);

            columnConfig.AddButtonColumn("Details", "Id", "...", MenuNumber.DetailsEdition, new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Hide,
                Conditions = new List <Condition>()
                {
                    new Condition("Category", Comparison.Equals, "Special") // Can be used to hide buttons for certain types of data
                }
            });
            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete edition?", MenuNumber.DeleteEdition));
        }
コード例 #19
0
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("String Value", "StringValue");
            columnConfig.AddStringColumn("Number Value", "NumberValue");
            columnConfig.AddDateColumn("Date Value", "DateValue");
            columnConfig.AddStringColumn("Long Value", "LongTestValue");
            columnConfig.AddStringColumn("Category", "Category");

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.AdvancedEdit);

            columnConfig.AddButtonColumn("", "Id", "X",
                                         new UserConfirmation("Delete item?")
            {
                OnConfirmationUIAction = MenuNumber.AdvancedDelete
            });
            columnConfig.AddButtonColumn("Details", "Id", "...", MenuNumber.AdvancedDetails, new ShowHideColumnSetting()
            {
                Display    = ColumnDisplayType.Hide,
                Conditions = new List <Condition>()
                {
                    new Condition("Category", Comparison.Equals, "Special") // Can be used to hide buttons for certain types of data
                }
            });
        }
コード例 #20
0
ファイル: ViewCourses.cs プロジェクト: quintonn/QBicSamples
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Course Type", "CourseType");
            columnConfig.AddStringColumn("Presenter", "Presenter");
            columnConfig.AddStringColumn("Venue", "Venue");
            columnConfig.AddStringColumn("Region", "Region");
            columnConfig.AddStringColumn("Country", "Country");
            columnConfig.AddDateColumn("Start Date", "StartDate");
            columnConfig.AddStringColumn("Course Id", "CourseId");

            columnConfig.AddLinkColumn("Attendees", "Id", "Attendees", MenuNumber.ViewAttendees);

            columnConfig.AddLinkColumn("", "Id", "Edit", MenuNumber.EditCourse);

            columnConfig.AddButtonColumn("", "Id", "X", new UserConfirmation("Delete item?", MenuNumber.DeleteCourse));
        }
コード例 #21
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("ChildName", "ChildName");
     columnConfig.AddStringColumn("SuperName", "SuperName");
     columnConfig.AddStringColumn("Some Number", "SomeInt");
 }
コード例 #22
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Data", "Data");
 }
コード例 #23
0
ファイル: TestView.cs プロジェクト: quintonn/QBic
        public override void ConfigureColumns(ColumnConfiguration columnConfig)
        {
            columnConfig.AddStringColumn("Name", "Name");

            columnConfig.AddLinkColumn("", "Name", "Test Pdf", 555);
        }
コード例 #24
0
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddLinkColumn("", "Id", "Export", MenuNumber.ExportToCSV);
 }
コード例 #25
0
ファイル: TestInputView.cs プロジェクト: quintonn/QBic
 public override void ConfigureColumns(ColumnConfiguration columnConfig)
 {
     columnConfig.AddStringColumn("Name", "Name");
     columnConfig.AddStringColumn("Value", "Value");
 }