public static LookUpEditBase SetupActivityEditor(this GridLookUpEditBase editor) { editor.Properties.DisplayMember = "FullActivityName"; editor.Properties.NullText = "Select Activity"; editor.Properties.ValueMember = "ActivityID"; editor.EditValue = null; editor.Properties.View = InitializeActivityGridView(); editor.BindAllowedActivities(); return(editor); }
public static GridLookUpEditBase SetupAccountEditor(this GridLookUpEditBase editor) { editor.Properties.DisplayMember = "AccountName"; editor.Properties.NullText = "Select Account"; editor.Properties.ValueMember = "AccountID"; editor.EditValue = null; editor.Properties.View = InitializeAccountGridView(); var accounts = new Account(); accounts.LoadByUser(CurrentContext.UserId); editor.Properties.DataSource = accounts.DefaultView; return(editor); }
/// <summary> /// 绑定角色 /// </summary> public static void BoundRoleID(GridLookUpEditBase lue, bool displayCombination, bool AddNull) { BoundRoleID(lue.Properties, displayCombination, AddNull); }