Example #1
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "role_id";

                scrud.TableSchema = "office";
                scrud.Table       = "roles";
                scrud.ViewSchema  = "office";
                scrud.View        = "role_scrud_view";

                scrud.Text             = Resources.Titles.Roles;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(Roles));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #2
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "sales_tax_type_id";

                scrud.TableSchema = "core";
                scrud.Table       = "sales_tax_types";

                scrud.ViewSchema = "core";
                scrud.View       = "sales_tax_type_scrud_view";

                scrud.Text = Titles.SalesTaxTypes;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #3
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "unit_id";

                scrud.TableSchema = "core";
                scrud.Table       = "units";
                scrud.ViewSchema  = "core";
                scrud.View        = "unit_scrud_view";

                scrud.Text             = Titles.UnitsOfMeasure;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(UOM));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #4
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "cash_flow_setup_id";
                scrud.TableSchema = "core";
                scrud.Table       = "cash_flow_setup";
                scrud.ViewSchema  = "core";
                scrud.View        = "cash_flow_setup_scrud_view";
                scrud.Text        = Titles.CashFlowSetup;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #5
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "compound_item_id";

                scrud.TableSchema = "core";
                scrud.Table       = "compound_items";
                scrud.ViewSchema  = "core";
                scrud.View        = "compound_item_scrud_view";

                scrud.Text             = Titles.CompoundItems;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(CompoundItems));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #6
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "opportunity_stage_id";

                scrud.TableSchema = "crm";
                scrud.Table       = "opportunity_stages";
                scrud.ViewSchema  = "crm";
                scrud.View        = "opportunity_stages";

                scrud.Text             = Titles.OpportunityStages;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(OpportunityStages));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #7
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "fiscal_year_code";

                scrud.TableSchema = "core";
                scrud.Table       = "fiscal_year";
                scrud.ViewSchema  = "core";
                scrud.View        = "fiscal_year_scrud_view";

                scrud.Text             = Titles.FiscalYear;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(FiscalYear));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #8
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "industry_id";
                scrud.TableSchema = "core";
                scrud.Table       = "industries";
                scrud.ViewSchema  = "core";
                scrud.View        = "industry_scrud_view";
                scrud.Text        = Titles.Industries;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #9
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "smtp_id";

                scrud.ExcludeEdit = "key";
                scrud.TableSchema = "config";
                scrud.Table       = "smtp";
                scrud.ViewSchema  = "config";
                scrud.View        = "smtp";

                scrud.Text = Titles.SMTPConfiguration;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #10
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn     = "late_fee_id";
                scrud.TableSchema   = "core";
                scrud.Table         = "late_fee";
                scrud.ViewSchema    = "core";
                scrud.View          = "late_fee_scrud_view";
                scrud.Text          = Resources.Titles.LateFees;
                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(LateFees));
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #11
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "sales_tax_exempt_detail_id";
                scrud.TableSchema = "core";
                scrud.Table       = "sales_tax_exempt_details";
                scrud.ViewSchema  = "core";
                scrud.View        = "sales_tax_exempt_detail_scrud_view";
                scrud.Text        = Titles.SalesTaxExemptDetails;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #12
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn     = "item_group_id";
                scrud.TableSchema   = "core";
                scrud.Table         = "item_groups";
                scrud.ViewSchema    = "core";
                scrud.View          = "item_group_scrud_view";
                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();
                scrud.UseLocalColumnInDisplayViews = true;
                scrud.UseDisplayViewsAsParents     = true;

                scrud.Text = Titles.ItemGroups;
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #13
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "county_sales_tax_id";
                scrud.TableSchema = "core";
                scrud.Table       = "county_sales_taxes";
                scrud.ViewSchema  = "core";
                scrud.View        = "county_sales_tax_scrud_view";
                scrud.Text        = Titles.CountySalesTaxes;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(StateSalesTaxes));
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #14
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn     = "bonus_slab_detail_id";
                scrud.TableSchema   = "core";
                scrud.Table         = "bonus_slab_details";
                scrud.ViewSchema    = "core";
                scrud.View          = "bonus_slab_detail_scrud_view";
                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();
                scrud.Text          = Titles.BonusSlabDetails;

                this.AddScrudCustomValidatorMessages();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #15
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "payment_card_id";
                scrud.TableSchema = "core";
                scrud.Table       = "payment_cards";
                scrud.ViewSchema  = "core";
                scrud.View        = "payment_cards";
                scrud.Text        = Titles.PaymentCards;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(PaymentCards));
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #16
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "ageing_slab_id";

                scrud.TableSchema = "core";
                scrud.Table       = "ageing_slabs";
                scrud.ViewSchema  = "core";
                scrud.View        = "ageing_slab_scrud_view";

                scrud.Text = Titles.AgeingSlabs;

                this.AddScrudCustomValidatorErrorMessages();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #17
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "late_fee_id";
                scrud.TableSchema = "core";
                scrud.Table       = "late_fee";
                scrud.ViewSchema  = "core";
                scrud.View        = "late_fee_scrud_view";
                scrud.Text        = Titles.LateFees;

                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #18
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "merchant_fee_setup_id";
                scrud.TableSchema = "core";
                scrud.Table       = "merchant_fee_setup";
                scrud.ViewSchema  = "core";
                scrud.View        = "merchant_fee_setup";
                scrud.Text        = Titles.MerchantFeeSetup;

                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;

                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(PaymentCards));
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #19
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "compound_unit_id";

                scrud.TableSchema = "core";
                scrud.Table       = "compound_units";
                scrud.ViewSchema  = "core";
                scrud.View        = "compound_unit_scrud_view";

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.Text = Titles.CompoundUnitsOfMeasure;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #20
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "key";

                scrud.ExcludeEdit = "key";
                scrud.TableSchema = "config";
                scrud.DenyDelete  = true;

                scrud.Table      = "db_parameters";
                scrud.ViewSchema = "config";
                scrud.View       = "db_parameter_scrud_view";

                scrud.Text = Titles.DatabaseParameters;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #21
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.TableSchema = "core";
                scrud.Table       = "accounts";
                scrud.KeyColumn   = "account_id";
                scrud.ViewSchema  = "core";
                scrud.View        = "account_scrud_view";

                scrud.Exclude = "sys_type";

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();
                scrud.Text          = Titles.ChartOfAccounts;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #22
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "payment_term_id";
                scrud.TableSchema = "core";
                scrud.Table       = "payment_terms";
                scrud.ViewSchema  = "core";
                scrud.View        = "payment_term_scrud_view";
                scrud.Text        = Titles.PaymentTerms;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                this.AddScrudCustomValidatorErrorMessages();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #23
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "recurring_invoice_id";
                scrud.TableSchema = "core";
                scrud.Table       = "recurring_invoices";
                scrud.ViewSchema  = "core";
                scrud.View        = "recurring_invoice_scrud_view";
                scrud.Text        = Titles.RecurringInvoices;

                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;

                this.AddScrudCustomValidatorErrorMessages();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #24
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "frequency_setup_id";

                scrud.TableSchema = "core";
                scrud.Table       = "frequency_setups";
                scrud.ViewSchema  = "core";
                scrud.View        = "frequency_setup_scrud_view";
                scrud.PageSize    = 12;

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.Text = Titles.Frequencies;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #25
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "office_id";

                scrud.TableSchema = "office";
                scrud.Table       = "offices";
                scrud.ViewSchema  = "office";
                scrud.View        = "office_scrud_view";

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();
                scrud.ExcludeEdit   = "currency_code";

                scrud.Text = Titles.OfficeSetup;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "recurring_invoice_setup_id";
                scrud.TableSchema = "core";
                scrud.Table       = "recurring_invoice_setup";
                scrud.ViewSchema  = "core";
                scrud.View        = "recurring_invoice_setup_scrud_view";
                scrud.Text        = Titles.RecurringInvoiceSetup;
                scrud.ExcludeEdit =
                    "recurrence_type_id, recurring_frequency_id, recurring_duration, recurs_on_same_calendar_date, account_id";

                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #27
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "cash_repository_id";

                scrud.TableSchema = "office";
                scrud.Table       = "cash_repositories";
                scrud.ViewSchema  = "office";
                scrud.View        = "cash_repository_scrud_view";

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.Text             = Titles.CashRepositories;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(CashRepositories));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #28
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn                = "item_id";
                scrud.TableSchema              = "core";
                scrud.Table                    = "items";
                scrud.ViewSchema               = "core";
                scrud.View                     = "item_scrud_view";
                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;
                scrud.ExcludeEdit              = "item_code, maintain_stock, item_group_id";

                scrud.Text             = Titles.Items;
                scrud.ResourceAssembly = Assembly.GetAssembly(typeof(ItemsPopup));

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
Example #29
0
        protected void LoadControl()
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "salesperson_id";
                scrud.TableSchema = "core";
                scrud.Table       = "salespersons";
                scrud.ViewSchema  = "core";
                scrud.View        = "salesperson_scrud_view";

                scrud.DisplayFields            = GetDisplayFields();
                scrud.DisplayViews             = GetDisplayViews();
                scrud.UseDisplayViewsAsParents = true;

                scrud.SelectedValues = GetSelectedValues();

                scrud.Text = Titles.SalesPersons;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn   = "shipping_address_id";
                scrud.TableSchema = "core";
                scrud.Table       = "shipping_addresses";
                scrud.ViewSchema  = "core";
                scrud.View        = "shipping_address_scrud_view";

                //Shipping address code will be automatically generated on the database.
                scrud.Exclude = "shipping_address_code";

                scrud.DisplayFields = GetDisplayFields();
                scrud.DisplayViews  = GetDisplayViews();

                scrud.Text = Titles.ShippingAddressMaintenance;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }