本文整理汇总了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();
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}