當前位置: 首頁>>代碼示例>>C#>>正文


C# Controls.Scrud類代碼示例

本文整理匯總了C#中MixERP.Net.FrontEnd.Controls.Scrud的典型用法代碼示例。如果您正苦於以下問題:C# Scrud類的具體用法?C# Scrud怎麽用?C# Scrud使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Scrud類屬於MixERP.Net.FrontEnd.Controls命名空間,在下文中一共展示了Scrud類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                bool denyToNonAdmins = !AppUsers.GetCurrentLogin().View.IsAdmin.ToBool();

                scrud.DenyAdd = denyToNonAdmins;
                scrud.DenyEdit = denyToNonAdmins;
                scrud.DenyDelete = denyToNonAdmins;

                scrud.KeyColumn = "api_access_policy_id";

                scrud.TableSchema = "policy";
                scrud.Table = "api_access_policy";
                scrud.ViewSchema = "policy";
                scrud.View = "api_access_policy";

                scrud.PageSize = 100;

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

                scrud.Text = "API Access Policy";

                this.ScrudPlaceholder.Controls.Add(scrud);
                this.RegisterJavascript();
            }
        }
開發者ID:varcharli,項目名稱:mixerp,代碼行數:29,代碼來源:ApiAccess.ascx.cs

示例2: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                bool denyToNonAdmins = !AppUsers.GetCurrent().View.IsAdmin.ToBool();

                scrud.DenyAdd = denyToNonAdmins;
                scrud.DenyEdit = denyToNonAdmins;
                scrud.DenyDelete = denyToNonAdmins;

                scrud.ExcludeEdit = "user_id";

                scrud.KeyColumn = "policy_id";

                scrud.TableSchema = "policy";
                scrud.Table = "auto_verification_policy";
                scrud.ViewSchema = "policy";
                scrud.View = "auto_verification_policy_scrud_view";

                scrud.PageSize = 100;

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

                scrud.Text = Titles.AutoVerificationPolicy;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:njmube,項目名稱:mixerp,代碼行數:30,代碼來源:AutoVerification.ascx.cs

示例3: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "item_type_id";
                scrud.TableSchema = "core";
                scrud.Table = "item_types";
                scrud.ViewSchema = "core";
                scrud.View = "item_type_scrud_view";
                scrud.Text = Titles.ItemTypes;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:njmube,項目名稱:mixerp,代碼行數:14,代碼來源:ItemTypes.ascx.cs

示例4: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "cash_flow_heading_id";
                scrud.TableSchema = "core";
                scrud.Table = "cash_flow_headings";
                scrud.ViewSchema = "core";
                scrud.View = "cash_flow_heading_scrud_view";
                scrud.Text = Titles.CashFlowHeadings;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:JonathanValle,項目名稱:mixerp,代碼行數:14,代碼來源:CashFlowHeadings.ascx.cs

示例5: LoadControl

        protected void LoadControl()
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "sales_team_id";
                scrud.TableSchema = "core";
                scrud.Table = "sales_teams";
                scrud.ViewSchema = "core";
                scrud.View = "sales_team_scrud_view";

                scrud.Text = Titles.SalesTeams;
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:njmube,項目名稱:mixerp,代碼行數:14,代碼來源:Teams.ascx.cs

示例6: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "tax_master_id";
                scrud.TableSchema = "core";
                scrud.Table = "tax_master";
                scrud.ViewSchema = "core";
                scrud.View = "tax_master_scrud_view";
                scrud.Text = Titles.TaxMaster;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:JonathanValle,項目名稱:mixerp,代碼行數:14,代碼來源:TaxMaster.ascx.cs

示例7: OnControlLoad

 public override void OnControlLoad(object sender, EventArgs e)
 {
     using (Scrud scrud = new Scrud())
     {
         scrud.KeyColumn = "salesperson_bonus_setup_id";
         scrud.TableSchema = "core";
         scrud.Table = "salesperson_bonus_setups";
         scrud.ViewSchema = "core";
         scrud.View = "salesperson_bonus_setup_scrud_view";
         scrud.DisplayFields = GetDisplayFields();
         scrud.DisplayViews = GetDisplayViews();
         scrud.Text = Titles.AgentBonusSlabAssignment;
         this.ScrudPlaceholder.Controls.Add(scrud);
     }
 }
開發者ID:JonathanValle,項目名稱:mixerp,代碼行數:15,代碼來源:BonusSlabAssignment.ascx.cs

示例8: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "cost_center_id";
                scrud.TableSchema = "office";
                scrud.Table = "cost_centers";
                scrud.ViewSchema = "office";
                scrud.View = "cost_center_scrud_view";

                scrud.Text = Titles.CostCenters;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:JonathanValle,項目名稱:mixerp,代碼行數:15,代碼來源:CostCenters.ascx.cs

示例9: OnControlLoad

        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Scrud scrud = new Scrud())
            {
                scrud.KeyColumn = "lead_status_id";

                scrud.TableSchema = "crm";
                scrud.Table = "lead_statuses";
                scrud.ViewSchema = "crm";
                scrud.View = "lead_statuses";
                scrud.Text = Titles.LeadStatuses;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:roczj,項目名稱:mixerp,代碼行數:15,代碼來源:LeadStatuses.ascx.cs

示例10: OnControlLoad

        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.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:roczj,項目名稱:mixerp,代碼行數:16,代碼來源:BonusSlabDetails.ascx.cs

示例11: OnControlLoad

        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;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:JonathanValle,項目名稱:mixerp,代碼行數:16,代碼來源:UOM.ascx.cs

示例12: OnControlLoad

        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;

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:roczj,項目名稱:mixerp,代碼行數:16,代碼來源:FiscalYear.ascx.cs

示例13: OnControlLoad

        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.Text = Titles.ItemGroups;
                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:girish66,項目名稱:mixerp,代碼行數:16,代碼來源:ItemGroups.ascx.cs

示例14: OnControlLoad

        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();

                this.ScrudPlaceholder.Controls.Add(scrud);
            }
        }
開發者ID:njmube,項目名稱:mixerp,代碼行數:17,代碼來源:CountySalesTaxes.ascx.cs

示例15: OnControlLoad

        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);
            }
        }
開發者ID:njmube,項目名稱:mixerp,代碼行數:17,代碼來源:SMTP.ascx.cs


注:本文中的MixERP.Net.FrontEnd.Controls.Scrud類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。