/// <summary> /// Creates the child controls. /// </summary> /// <param name="parentControl"></param> /// <returns></returns> public override System.Web.UI.Control[] CreateChildControls(System.Web.UI.Control parentControl) { AccountPicker accountPicker = new AccountPicker(); accountPicker.AllowMultiSelect = true; accountPicker.ID = parentControl.ID + "_accountPicker"; accountPicker.Label = "Account"; accountPicker.Help = string.Format( "Pick accounts to show the {0} time the person made a contribution into any of those accounts. Leave blank if you don't want to limit it to specific accounts.", FirstOrLast.ConvertToString().ToLower()); parentControl.Controls.Add(accountPicker); return(new System.Web.UI.Control[] { accountPicker }); }
/// <summary> /// Creates the child controls. /// </summary> /// <param name="parentControl"></param> /// <returns></returns> public override System.Web.UI.Control[] CreateChildControls(System.Web.UI.Control parentControl) { AccountPicker accountPicker = new AccountPicker(); accountPicker.AllowMultiSelect = true; accountPicker.ID = parentControl.ID + "_accountPicker"; accountPicker.Label = "Account"; accountPicker.Help = string.Format( "Pick accounts to show the {0} time the person made a contribution into any of those accounts. Leave blank if you don't want to limit it to specific accounts.", FirstOrLast.ConvertToString().ToLower()); parentControl.Controls.Add(accountPicker); RockCheckBox cbUseSundayDate = new RockCheckBox(); cbUseSundayDate.ID = parentControl.ID + "_cbUseSundayDate"; cbUseSundayDate.Label = "Use Sunday Date"; cbUseSundayDate.Help = "Use the Sunday Date instead of the actual transaction date."; parentControl.Controls.Add(cbUseSundayDate); return(new System.Web.UI.Control[] { accountPicker, cbUseSundayDate }); }
/// <summary> /// Gets the title. /// </summary> /// <param name="entityType"></param> /// <returns></returns> /// <value> /// The title. /// </value> public override string GetTitle(Type entityType) { return(FirstOrLast.ConvertToString() + " Contribution"); }