private static Dictionary<string, string> GetBallyTenderInfoListOverrideSettings(string denomTemplateName, StylePropertyBag style, string onRowSelectFunction,
     string headerCssClass, string footerCssClass, bool grantTotalRequired, string cssClass, bool otherAmountRequired, string otherAmountLabelKey, string actionUrl, PositionType otherAmountPosition, bool isViewMode, string validationMessageKey, DenomModeType denomMode, string undefinedRowReadonlyColumns, string undefinedRowEditableColumns, bool movementIndicatorRequired, string movementIndicatorColumn)
 {
     Dictionary<string, string> overrideSettings;
     overrideSettings = new Dictionary<string, string>();
     overrideSettings.Add(ControlLibConstants.DENOM_ON_ROWSELECT_FUNCTION, onRowSelectFunction);
     overrideSettings.Add(ControlLibConstants.DENOM_TEMPLATE_KEY, denomTemplateName);
     overrideSettings.Add(ControlLibConstants.DENOM_HEADER_CSS, headerCssClass);
     overrideSettings.Add(ControlLibConstants.DENOM_FOOTER_CSS, footerCssClass);
     overrideSettings.Add(ControlLibConstants.DENOM_GRANT_TOTAL_REQUIRED, grantTotalRequired.ToString());
     overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
     overrideSettings.Add(ControlLibConstants.DENOM_OTHERAMOUNT_REQUIRED, otherAmountRequired.ToString());
     overrideSettings.Add(ControlLibConstants.DENOM_OTHERAMOUNT_LABELKEY, otherAmountLabelKey);
     overrideSettings.Add(ControlLibConstants.ACTION_URL, actionUrl);
     overrideSettings.Add(ControlLibConstants.OTHER_AMOUNT_POSITION, otherAmountPosition.ToString());
     overrideSettings.Add(ControlLibConstants.IS_VIEW_MODE, isViewMode.ToString());
     overrideSettings.Add(ControlLibConstants.VALIDATION_MESSAGE_KEY, validationMessageKey);
     overrideSettings.Add(ControlLibConstants.DENOM_MODE, denomMode.ToString());
     overrideSettings.Add(ControlLibConstants.UNDEFINEDROW_READONLY_COLUMNS, undefinedRowReadonlyColumns);
     overrideSettings.Add(ControlLibConstants.UNDEFINEDROW_EDITABLE_COLUMNS, undefinedRowEditableColumns);
     overrideSettings.Add(ControlLibConstants.MOVEMENT_INDICATOR_COLUMN, movementIndicatorColumn);
     overrideSettings.Add(ControlLibConstants.MOVEMENT_INDICATOR_REQUIRED, movementIndicatorRequired.ToString());
     SetStyleSettings(style, overrideSettings);
     return overrideSettings;
 }
Esempio n. 2
0
        private static Dictionary <string, string> GetCheckBoxOverrideSettings(StylePropertyBag style, short tabIndex, string onClickFunction, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CLICK_FUNCTION, onClickFunction);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 3
0
 private static void SetStyleSettings(StylePropertyBag style, Dictionary <string, string> overrideSettings)
 {
     if (style != null)
     {
         if (!string.IsNullOrEmpty(style.Height))
         {
             overrideSettings.Add(ControlLibConstants.HEIGHT, style.Height);
         }
         if (!string.IsNullOrEmpty(style.Width))
         {
             overrideSettings.Add(ControlLibConstants.WIDTH, style.Width);
         }
     }
 }
Esempio n. 4
0
        private static Dictionary <string, string> GetTextAreaOverrideSettings(StylePropertyBag style, short tabIndex, string onLeaveFunction, string onKeyUpFunction, string onKeyDownFunction, string onChangeFunction, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_LEAVE_FUNCTION, onLeaveFunction);
            overrideSettings.Add(ControlLibConstants.ON_KEY_UP_FUNCTION, onKeyUpFunction);
            overrideSettings.Add(ControlLibConstants.ON_KEY_DOWN_FUNCTION, onKeyDownFunction);
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="htmlHelper"></param>
        /// <param name="controlName"></param>
        /// <param name="denomTemplateName"></param>
        /// <param name="dataSource"></param>
        /// <param name="tenderInfoParam"></param>
        /// <param name="actionUrl"></param>
        /// <param name="style"></param>
        /// <param name="onRowSelectFunction"></param>
        /// <param name="headerCssClass"></param>
        /// <param name="footerCssClass"></param>
        /// <param name="grantTotalRequired"></param>
        /// <param name="cssClass"></param>
        /// <param name="otherAmountRequired"></param>
        /// <param name="otherAmountPosition"></param>
        /// <param name="otherAmountLabelKey"></param>
        /// <param name="isViewMode"></param>
        /// <param name="validationMessageKey"></param>
        /// <param name="denomMode"></param>
        /// <param name="undefinedRowReadonlyColumns">Readonly columns name with , seperated</param>
        /// <returns></returns>
        public static MvcHtmlString BallyTenderInfoList(this HtmlHelper htmlHelper, string controlName, 
            string denomTemplateName, DenomDataSource dataSource, IDictionary<string, object> tenderInfoParam = null, string actionUrl = "", StylePropertyBag style = null, string onRowSelectFunction = "", string headerCssClass = "",
            string footerCssClass = "", bool grantTotalRequired = true, string cssClass = "", bool otherAmountRequired = false, PositionType otherAmountPosition = PositionType.Bottom, string otherAmountLabelKey = "other_amount", bool isViewMode = false, string validationMessageKey = "", DenomModeType denomMode = DenomModeType.Full, string undefinedRowReadonlyColumns = "", string undefinedRowEditableColumns = "", bool movementIndicatorRequired = false, string movementIndicatorColumn="")
        {
            string propertyName = controlName;
            string modelName = string.Empty;
            string controlHtmlString = string.Empty;
            Dictionary<string, string> overrideSettings;
            TenderInfoListHTMLEmitter controlHtmlEmitter;

            overrideSettings = GetBallyTenderInfoListOverrideSettings(denomTemplateName, style, onRowSelectFunction, headerCssClass, footerCssClass, grantTotalRequired, cssClass, otherAmountRequired, otherAmountLabelKey, actionUrl, otherAmountPosition, isViewMode, validationMessageKey, denomMode, undefinedRowReadonlyColumns, undefinedRowEditableColumns, movementIndicatorRequired, movementIndicatorColumn);
            FillerParams fillerParams = new FillerParams(modelName, propertyName, overrideSettings, inputParam: tenderInfoParam);

            var fillers = ControlPropertyFillerFactory.Get();
            var controlPropertyBag = new DenomControlPropertyBag(fillerParams);
            controlPropertyBag.Accept(fillers);
            controlHtmlEmitter = new TenderInfoListHTMLEmitter(dataSource, controlPropertyBag);

            controlHtmlEmitter.Emit(out controlHtmlString);
            return MvcHtmlString.Create(controlHtmlString);
        }
Esempio n. 6
0
        public static MvcHtmlString BallyCheckBox <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, StylePropertyBag style = null, short tabIndex = 0, string onClickFunction = "", string cssClass = "", IDictionary <string, object> attributes = null, bool?isEnabled = null)
        {
            string propertyName       = string.Empty;
            string modelName          = string.Empty;
            object value              = string.Empty;
            string errMsg             = string.Empty;
            string checkBoxHTMLString = string.Empty;
            string configKey          = string.Empty;
            Dictionary <string, string> overrideSettings;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            if (value == null)
            {
                value = false;
            }

            overrideSettings = GetCheckBoxOverrideSettings(style, tabIndex, onClickFunction, cssClass);

            var          fillers             = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams        = new FillerParams(modelName, propertyName, overrideSettings, attributes: attributes, isEnabled: isEnabled, configKey: configKey);
            var          checkBoxpropertyBag = new CheckBoxPropertyBag(fillerParams);

            checkBoxpropertyBag.Accept(fillers);
            checkBoxpropertyBag.ErrorMessage = errMsg;
            checkBoxpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;

            var checkBoxHTMLEmitter = new CheckBoxHTMLEmitter(value != null ? value.ToString() : string.Empty, checkBoxpropertyBag);

            checkBoxHTMLEmitter.Emit(out checkBoxHTMLString);
            return(MvcHtmlString.Create(checkBoxHTMLString));
        }
Esempio n. 7
0
        public static MvcHtmlString BallyCheckBoxList <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, ItemDataSource dataSource, int listLength = -1, string[] disabled = null, StylePropertyBag style = null, short tabIndex = 0, string onClickFunction = "", bool isVerticalAllign = false, string cssClass = "")
        {
            string propertyName         = string.Empty;
            string modelName            = string.Empty;
            object value                = string.Empty;
            string errMsg               = string.Empty;
            string chkBoxListHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;
            string configKey = string.Empty;
            CheckBoxListHTMLEmitter checkBoxListHTMLEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetCheckBoxListOverrideSettings(listLength, style, tabIndex, onClickFunction, isVerticalAllign, value, cssClass);
            FillerParams fillerParams = null;

            if (dataSource != null)
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: dataSource.DataSource, valueMember: dataSource.ValueMember, displayMember: dataSource.DisplayMember, configKey: configKey);
            }
            else
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: null, valueMember: string.Empty, displayMember: string.Empty, configKey: configKey);
            }
            var fillers            = ControlPropertyFillerFactory.Get();
            var chkListpropertyBag = new CheckBoxListPropertyBag(fillerParams);

            chkListpropertyBag.Accept(fillers);
            chkListpropertyBag.ErrorMessage = errMsg;
            chkListpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            checkBoxListHTMLEmitter         = new CheckBoxListHTMLEmitter(value != null ? value.ToString() : string.Empty, chkListpropertyBag);

            checkBoxListHTMLEmitter.Emit(out chkBoxListHTMLString);
            return(MvcHtmlString.Create(chkBoxListHTMLString));
        }
Esempio n. 8
0
        public static MvcHtmlString BallyTextArea <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, StylePropertyBag style = null, short tabIndex = 0, string onLeaveFunction = "", string onKeyUpFunction = "", string onKeyDownFunction = "", string onChangeFunction = "", string cssClass = "", bool?isEnabled = null, bool?isReadOnly = null, IDictionary <string, object> attributes = null)
        {
            string propertyName       = string.Empty;
            string modelName          = string.Empty;
            object value              = string.Empty;
            string errMsg             = string.Empty;
            string textAreaHTMLString = string.Empty;
            string configKey          = string.Empty;
            Dictionary <string, string> overrideSettings;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetTextAreaOverrideSettings(style, tabIndex, onLeaveFunction, onKeyUpFunction, onKeyDownFunction, onChangeFunction, cssClass);

            var          fillers             = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams        = new FillerParams(modelName, propertyName, overrideSettings, isEnabled: isEnabled, isReadOnly: isReadOnly, attributes: attributes, configKey: configKey);
            var          textAreapropertyBag = new TextAreaPropertyBag(fillerParams);

            textAreapropertyBag.Accept(fillers);
            textAreapropertyBag.ErrorMessage = errMsg;
            textAreapropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;

            var textAreaHTMLEmitter = new TextAreaHTMLEmitter(value != null ? value.ToString() : string.Empty, textAreapropertyBag);

            textAreaHTMLEmitter.Emit(out textAreaHTMLString);
            return(MvcHtmlString.Create(textAreaHTMLString));
        }
Esempio n. 9
0
        public static MvcHtmlString BallyButton <TModel>(this HtmlHelper <TModel> htmlHelper, ButtonType buttonType, string controlName, string parentID, bool validateForm = true, StylePropertyBag style = null, short tabIndex = 0, string onClickFunction = "", string cssClass = "", bool?isEnabled = null, List <Security> taskCodes = null)
        {
            object value            = string.Empty;
            string errMsg           = string.Empty;
            string buttonHTMLString = string.Empty;
            string modelName        = htmlHelper.ViewData.Model.GetType().Name;
            Dictionary <string, string> overrideSettings;

            overrideSettings = GetButtonOverrideSettings(buttonType, parentID, validateForm, string.Empty, style, tabIndex, onClickFunction, cssClass: cssClass);

            var          fillers           = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams      = new FillerParams(modelName, controlName, overrideSettings, isEnabled: isEnabled, userTaskCodes: taskCodes);
            var          buttonpropertyBag = new ButtonPropertyBag(fillerParams);

            buttonpropertyBag.ButtonCatagory = ButtonCatagory.BallyButton;
            buttonpropertyBag.Accept(fillers);

            buttonpropertyBag.ErrorMessage = errMsg;
            buttonpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;

            var buttonHTMLEmitter = new ButtonHTMLEmitter(value != null ? value.ToString() : string.Empty, buttonpropertyBag);

            buttonHTMLEmitter.Emit(out buttonHTMLString);
            return(MvcHtmlString.Create(buttonHTMLString));
        }
Esempio n. 10
0
        public static MvcHtmlString BallyNumericTextBox <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, bool isCurrency = false, bool isAutoComplete = false, StylePropertyBag style = null, short tabIndex = 0, string onLeaveFunction = "", string onKeyUpFunction = "", string onKeyDownFunction = "", string onChangeFunction = "", string cssClass = "", string autoCompleteInputFunction = "", IDictionary <string, object> attributes = null, bool?isEnabled = null, bool?isReadOnly = null)
        {
            string propertyName      = string.Empty;
            string modelName         = string.Empty;
            object value             = string.Empty;
            string errMsg            = string.Empty;
            string textBoxHTMLString = string.Empty;
            string configKey         = string.Empty;
            Dictionary <string, string> overrideSettings;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetNumericTextBoxOverrideSettings(isCurrency, style, tabIndex, onLeaveFunction, onKeyUpFunction, onKeyDownFunction, onChangeFunction, cssClass, autoCompleteInputFunction);

            var          fillers            = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams       = new FillerParams(modelName, propertyName, overrideSettings, attributes: attributes, isEnabled: isEnabled, isReadOnly: isReadOnly, configKey: configKey);
            var          textBoxpropertyBag = new NumericTextBoxPropertyBag(fillerParams);

            // THe below line of code needs to be placed before calling the Accept() method - dont change this
            textBoxpropertyBag.AutoComplete = isAutoComplete;
            textBoxpropertyBag.Accept(fillers);
            textBoxpropertyBag.ErrorMessage = errMsg;
            textBoxpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;

            value = GetNumericTextBoxMaskingData <TModel>(value, textBoxpropertyBag);

            var textBoxHTMLEmitter = new NumericTextBoxHTMLEmitter(value != null ? value.ToString() : string.Empty, textBoxpropertyBag);

            textBoxHTMLEmitter.Emit(out textBoxHTMLString);
            return(MvcHtmlString.Create(textBoxHTMLString));
        }
Esempio n. 11
0
        public static MvcHtmlString BallyShuttleList <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, string actionUrl, string valueMember, string displayMember, IDictionary <string, object> shuttleParam = null, StylePropertyBag style = null, short tabIndex = 0, string onChangeFunction = "", string cssClass = "")
        {
            string propertyName      = string.Empty;
            string modelName         = string.Empty;
            object value             = string.Empty;
            string errMsg            = string.Empty;
            string controlHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;
            string             configKey = string.Empty;
            ShuttleHTMLEmitter controlHTMLEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetBallyShuttleListOverrideSettings(actionUrl, valueMember, displayMember, style, tabIndex, onChangeFunction, value, cssClass);

            FillerParams fillerParams = new FillerParams(modelName, propertyName, overrideSettings, inputParam: shuttleParam, configKey: configKey);

            var fillers            = ControlPropertyFillerFactory.Get();
            var controlpropertyBag = new ShuttlePropertyBag(fillerParams);

            controlpropertyBag.Accept(fillers);
            controlpropertyBag.ErrorMessage = errMsg;
            controlpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            controlHTMLEmitter = new ShuttleHTMLEmitter(value != null ? value.ToString() : string.Empty, controlpropertyBag);

            controlHTMLEmitter.Emit(out controlHTMLString);
            return(MvcHtmlString.Create(controlHTMLString));
        }
Esempio n. 12
0
        private static Dictionary <string, string> GetBallyMultiColumnDropDownOverrideSettings(string templateNameKey, int listLength, StylePropertyBag style, short tabIndex, string onChangeFunction, object value, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.LIST_LENGTH, listLength.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.SELECTED_VALUE, Convert.ToString(value));
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            overrideSettings.Add(ControlLibConstants.TEMPLATE_NAME_KEY, templateNameKey);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 13
0
        public static MvcHtmlString BallyDateTimePicker <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, bool showDate = true, bool showTime = true, string dateFormat = "yy-mm-dd", bool showAmPm = false, int step = 5, StylePropertyBag style = null, short tabIndex = 0, string onChangeFunction = "", string dateCssClass = "", string timeCssClass = "", int minYear = -1, int maxYear = -1, DateTime?minDate = null, DateTime?maxDate = null)//bool UTCConversion = true,
        {
            string propertyName       = string.Empty;
            string modelName          = string.Empty;
            object value              = string.Empty;
            string errMsg             = string.Empty;
            string dateTimeHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;
            string configKey = string.Empty;
            DateTimeHTMLEmitter dateTimeHTMLEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetBallyDateTimePickerOverrideSettings(showDate, showTime, dateFormat, showAmPm, step, style, tabIndex, onChangeFunction, dateCssClass, timeCssClass, getYearRange(minYear, maxYear));
            var          fillers             = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams        = new FillerParams(modelName, propertyName, overrideSettings, configKey: configKey, minDate: minDate, maxDate: maxDate);
            var          dateTimepropertyBag = new DateTimePropertyBag(fillerParams);

            dateTimepropertyBag.Accept(fillers);
            dateTimepropertyBag.ErrorMessage = errMsg;
            dateTimepropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            //dateTimepropertyBag.UTCDateTime = UTCValue;
            //dateTimepropertyBag.UTCConversion = UTCConversion;
            DateTime dt = DateTime.MinValue;

            if (value != null)
            {
                DateTime.TryParse(value.ToString(), out dt);
                // dateTimepropertyBag.DateTimeKind = dt.Kind; /*Check the values- UTC,LOCAL,Unspecified*/
            }

            // dateTimeHTMLEmitter = new DateTimeHTMLEmitter(!showTime ? ( default(DateTime) == dt ? string.Empty : dt.ToShortDateString()) : (!showDate ? dt.ToShortTimeString() : dt.ToString()), dateTimepropertyBag);
            dateTimeHTMLEmitter = new DateTimeHTMLEmitter(dt.ToString(), dateTimepropertyBag);
            dateTimeHTMLEmitter.Emit(out dateTimeHTMLString);
            return(MvcHtmlString.Create(dateTimeHTMLString));
        }
Esempio n. 14
0
        private static Dictionary <string, string> GetGridOverrideSettings(string valueMemebr, string actionUrl, StylePropertyBag style, short tabIndex, string onDataRowSelectFunction, string onDataSelectionChangeFunctionName, object value, string gridDataColumnDefinitionName, string hiddencolumns, int pageSize, int gridHeight, bool enableFilter, bool enableSorting, bool enableExport, bool pagination, bool serverPagination, bool selectOption, string defaultSortField, string imageSizeProperty, string statusProperty, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_DATAROW_SELECT_FUNCTION, onDataRowSelectFunction);
            overrideSettings.Add(ControlLibConstants.ON_DATAROW_SELECTION_CHANGE_FN, onDataSelectionChangeFunctionName);
            overrideSettings.Add(ControlLibConstants.VALUE_MEMBER, valueMemebr);
            overrideSettings.Add(ControlLibConstants.ACTION_URL, actionUrl);
            overrideSettings.Add(ControlLibConstants.GRID_DATACOLUMN_DEFINITION_NAME, Convert.ToString(gridDataColumnDefinitionName));
            overrideSettings.Add(ControlLibConstants.PAGESIZE, pageSize.ToString());
            overrideSettings.Add(ControlLibConstants.GRIDHEIGHT, gridHeight.ToString());
            overrideSettings.Add(ControlLibConstants.ENABLEFILTER, enableFilter.ToString());
            overrideSettings.Add(ControlLibConstants.ENABLESORTING, enableSorting.ToString());
            overrideSettings.Add(ControlLibConstants.ENABLEEXPORT, enableExport.ToString());
            overrideSettings.Add(ControlLibConstants.ENABLEPAGINATION, pagination.ToString());
            overrideSettings.Add(ControlLibConstants.SERVERPAGINATION, serverPagination.ToString());
            overrideSettings.Add(ControlLibConstants.SELECTOPTION, selectOption.ToString());
            overrideSettings.Add(ControlLibConstants.DEFAULTSORTFIELD, defaultSortField);
            overrideSettings.Add(ControlLibConstants.IMAGESIZEPROPERTY, imageSizeProperty);
            overrideSettings.Add(ControlLibConstants.STATUSPROPERTY, statusProperty);
            overrideSettings.Add(ControlLibConstants.HIDEN_COUMN, hiddencolumns);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="htmlHelper"></param>
        /// <param name="controlName"></param>
        /// <param name="denomTemplateName"></param>
        /// <param name="dataSource"></param>
        /// <param name="tenderInfoParam"></param>
        /// <param name="actionUrl"></param>
        /// <param name="style"></param>
        /// <param name="onRowSelectFunction"></param>
        /// <param name="headerCssClass"></param>
        /// <param name="footerCssClass"></param>
        /// <param name="grantTotalRequired"></param>
        /// <param name="cssClass"></param>
        /// <param name="otherAmountRequired"></param>
        /// <param name="otherAmountPosition"></param>
        /// <param name="otherAmountLabelKey"></param>
        /// <param name="isViewMode"></param>
        /// <param name="validationMessageKey"></param>
        /// <param name="denomMode"></param>
        /// <param name="undefinedRowReadonlyColumns">Readonly columns name with , seperated</param>
        /// <returns></returns>
        public static MvcHtmlString BallyTenderInfoList(this HtmlHelper htmlHelper, string controlName,
                                                        string denomTemplateName, DenomDataSource dataSource, IDictionary <string, object> tenderInfoParam = null, string actionUrl = "", StylePropertyBag style = null, string onRowSelectFunction = "", string headerCssClass = "",
                                                        string footerCssClass = "", bool grantTotalRequired = true, string cssClass = "", bool otherAmountRequired = false, PositionType otherAmountPosition = PositionType.Bottom, string otherAmountLabelKey = "other_amount", bool isViewMode = false, string validationMessageKey = "", DenomModeType denomMode = DenomModeType.Full, string undefinedRowReadonlyColumns = "", string undefinedRowEditableColumns = "", bool movementIndicatorRequired = false, string movementIndicatorColumn = "")
        {
            string propertyName      = controlName;
            string modelName         = string.Empty;
            string controlHtmlString = string.Empty;
            Dictionary <string, string> overrideSettings;
            TenderInfoListHTMLEmitter   controlHtmlEmitter;

            overrideSettings = GetBallyTenderInfoListOverrideSettings(denomTemplateName, style, onRowSelectFunction, headerCssClass, footerCssClass, grantTotalRequired, cssClass, otherAmountRequired, otherAmountLabelKey, actionUrl, otherAmountPosition, isViewMode, validationMessageKey, denomMode, undefinedRowReadonlyColumns, undefinedRowEditableColumns, movementIndicatorRequired, movementIndicatorColumn);
            FillerParams fillerParams = new FillerParams(modelName, propertyName, overrideSettings, inputParam: tenderInfoParam);

            var fillers            = ControlPropertyFillerFactory.Get();
            var controlPropertyBag = new DenomControlPropertyBag(fillerParams);

            controlPropertyBag.Accept(fillers);
            controlHtmlEmitter = new TenderInfoListHTMLEmitter(dataSource, controlPropertyBag);

            controlHtmlEmitter.Emit(out controlHtmlString);
            return(MvcHtmlString.Create(controlHtmlString));
        }
Esempio n. 16
0
        public static MvcHtmlString BallyGrid <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, string valueMember, string GridDataColumnDefinitionName, IDictionary <string, object> gridParam = null, string hiddenColumns = "", string actionUrl = "", StylePropertyBag style = null, short tabIndex = 0, int pageSize = 10, int gridHeight = 400, bool enableFilter = false, bool enableSorting = false, bool enableExport = false, bool pagination = true, bool serverPagination = false, bool selectOption = true, string defaultSortField = "", string imageSizeClass = "", string statusProperty = "", string onDataRowSelectFunction = "", string onDataRowSelectionChangeFunctionName = "", string cssClass = "")
        {
            string propertyName      = string.Empty;
            string modelName         = string.Empty;
            object value             = string.Empty;
            string errMsg            = string.Empty;
            string controlHtmlString = string.Empty;
            string configKey         = string.Empty;
            Dictionary <string, string> overrideSettings;
            GridHTMLEmitter             controlHtmlEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetGridOverrideSettings(valueMember, actionUrl, style, tabIndex, onDataRowSelectFunction, onDataRowSelectionChangeFunctionName, value, GridDataColumnDefinitionName, hiddenColumns, pageSize, gridHeight, enableFilter, enableSorting, enableExport, pagination, serverPagination, selectOption, defaultSortField, imageSizeClass, statusProperty, cssClass);

            FillerParams fillerParams = new FillerParams(modelName, propertyName, overrideSettings, inputParam: gridParam, configKey: configKey);

            var fillers            = ControlPropertyFillerFactory.Get();
            var controlPropertyBag = new GridPropertyBag(fillerParams);

            controlPropertyBag.Accept(fillers);
            controlPropertyBag.ErrorMessage = errMsg;
            controlPropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            controlHtmlEmitter = new GridHTMLEmitter(value != null ? value.ToString() : string.Empty, controlPropertyBag);

            controlHtmlEmitter.Emit(out controlHtmlString);
            return(MvcHtmlString.Create(controlHtmlString));
        }
Esempio n. 17
0
        public static MvcHtmlString BallyTextBlock(this HtmlHelper htmlHelper, object value, string controlID, string externalizationKey, bool isCurrency = false, bool masking = false, StylePropertyBag style = null, string cssClass = "", IDictionary <string, object> attributes = null, string toolTip = "")
        {
            string propertyName    = controlID;
            string modelName       = string.Empty;
            string labelHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;

            overrideSettings = GetLabelOverrideSettings(DisplayType.TextBlock, style, isCurrency: isCurrency, cssClass: cssClass, overrideToolTip: toolTip);

            var          fillers          = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams     = new FillerParams(modelName, propertyName, overrideSettings, skipBehaviourFill: true, skipSecurityFill: true, skipValidationFill: true, isBindingControl: false, externalizationKey: externalizationKey, attributes: attributes);
            var          labelPropertyBag = new LabelPropertyBag(fillerParams);

            labelPropertyBag.Accept(fillers);

            labelPropertyBag.IsBindingControl = false;
            labelPropertyBag.Masking          = masking;
            value = GetLabelMaskingData(propertyName, modelName, value, labelPropertyBag);

            var labelHTMLEmitter = new LabelHTMLEmitter(value != null ? value.ToString() : string.Empty, labelPropertyBag);

            labelHTMLEmitter.Emit(out labelHTMLString);
            return(MvcHtmlString.Create(labelHTMLString));
        }
Esempio n. 18
0
        private static Dictionary <string, string> GetButtonOverrideSettings(ButtonType buttonType, string parentID, bool validateForm, string actionName, StylePropertyBag style, short tabIndex, string onClickFunction, string cssClass = "", string imagePath = "")
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.BUTTON_TYPE, buttonType.ToString());
            overrideSettings.Add(ControlLibConstants.PARENT_ID, parentID);
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CLICK_FUNCTION, onClickFunction);
            overrideSettings.Add(ControlLibConstants.VALIDATE_FORM, validateForm.ToString());
            overrideSettings.Add(ControlLibConstants.ACTION_NAME, actionName);
            overrideSettings.Add(ControlLibConstants.IMAGE_PATH, imagePath);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 19
0
        private static Dictionary <string, string> GetBallyDropdownListOverrideSettings(DropDownType type, int listLength, string targetControlID, string actionUrl, StylePropertyBag style, short tabIndex, string onChangeFunction, object value, string cssClass, string cascadeInputFunction = "")
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.LIST_LENGTH, listLength.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.TARGET_CONTROL_ID, targetControlID);
            overrideSettings.Add(ControlLibConstants.ACTION_URL, actionUrl);
            overrideSettings.Add(ControlLibConstants.TYPE, type.ToString());
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            overrideSettings.Add(ControlLibConstants.CASCADE_INPUT_FUNCTION, cascadeInputFunction);
            overrideSettings.Add(ControlLibConstants.SELECTED_VALUE, Convert.ToString(value));
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 20
0
        public static MvcHtmlString BallyLabel <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, StylePropertyBag style = null, string cssClass = "", IDictionary <string, object> attributes = null)
        {
            string propertyName    = string.Empty;
            string modelName       = string.Empty;
            object value           = string.Empty;
            string errMsg          = string.Empty;
            string labelHTMLString = string.Empty;
            string configKey       = string.Empty;
            Dictionary <string, string> overrideSettings;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey, false);

            overrideSettings = GetLabelOverrideSettings(DisplayType.Label, style, cssClass: cssClass);

            var          fillers          = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams     = new FillerParams(modelName, propertyName, overrideSettings, attributes: attributes, configKey: configKey);
            var          labelPropertyBag = new LabelPropertyBag(fillerParams);

            labelPropertyBag.Accept(fillers);

            var labelHTMLEmitter = new LabelHTMLEmitter(value != null ? value.ToString() : string.Empty, labelPropertyBag);

            labelHTMLEmitter.Emit(out labelHTMLString);
            return(MvcHtmlString.Create(labelHTMLString));
        }
Esempio n. 21
0
        private static Dictionary <string, string> GetCheckBoxListOverrideSettings(int listLength, StylePropertyBag style, short tabIndex, string onClickFunction, bool isVerticalAllign, object value, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CLICK_FUNCTION, onClickFunction);
            overrideSettings.Add(ControlLibConstants.SELECTED_VALUE, Convert.ToString(value));
            overrideSettings.Add(ControlLibConstants.LIST_LENGTH, listLength.ToString());
            overrideSettings.Add(ControlLibConstants.IS_VERTICAL_ALLIGN, Convert.ToString(isVerticalAllign));
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 22
0
        public static MvcHtmlString BallyLabel(this HtmlHelper htmlHelper, string controlID, string externalizationKey, bool isMandatory = false, StylePropertyBag style = null, string cssClass = "", IDictionary <string, object> attributes = null)
        {
            string propertyName    = controlID;
            string modelName       = string.Empty;
            string labelHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;

            overrideSettings = GetLabelOverrideSettings(DisplayType.Label, style, cssClass: cssClass);

            var          fillers          = ControlPropertyFillerFactory.Get();
            FillerParams fillerParams     = new FillerParams(modelName, propertyName, overrideSettings, skipBehaviourFill: true, skipSecurityFill: true, skipValidationFill: true, isBindingControl: false, externalizationKey: externalizationKey, attributes: attributes);
            var          labelPropertyBag = new LabelPropertyBag(fillerParams);

            labelPropertyBag.Accept(fillers);

            labelPropertyBag.IsMandatory      = isMandatory;
            labelPropertyBag.IsBindingControl = false;
            var labelHTMLEmitter = new LabelHTMLEmitter(string.Empty, labelPropertyBag);

            labelHTMLEmitter.Emit(out labelHTMLString);
            return(MvcHtmlString.Create(labelHTMLString));
        }
Esempio n. 23
0
        private static Dictionary <string, string> GetBallyDateTimePickerOverrideSettings(bool showDate, bool showTime, string dateFormat, bool showAmPm, int step, StylePropertyBag style, short tabIndex, string onChangeFunction, string dateCssClass, string timeCssClass, string range)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.DATE_FORMAT, dateFormat.ToString());
            overrideSettings.Add(ControlLibConstants.SHOW_AM_PM, showAmPm.ToString());
            overrideSettings.Add(ControlLibConstants.STEP, step.ToString());
            overrideSettings.Add(ControlLibConstants.SHOW_DATE, showDate.ToString());
            overrideSettings.Add(ControlLibConstants.SHOW_TIME, showTime.ToString());
            overrideSettings.Add(ControlLibConstants.DATE_CSS_CLASS, dateCssClass);
            overrideSettings.Add(ControlLibConstants.TIME_CSS_CLASS, timeCssClass);
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.YEAR_RANGE, range);

            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 24
0
        public static MvcHtmlString BallyCascadeDropDown <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, NameGenerator controlId, string actionUrl, ItemDataSource dataSource, string[] disabled = null, int listLength = -1, StylePropertyBag style = null, short tabIndex = 0, string onChangeFunction = "", string cssClass = "", string cascadeInputFunction = "", IDictionary <string, object> attributes = null)
        {
            string propertyName       = string.Empty;
            string targetControlID    = controlId.ControlID;
            string modelName          = string.Empty;
            object value              = string.Empty;
            string errMsg             = string.Empty;
            string dropDownHTMLString = string.Empty;
            Dictionary <string, string> overrideSettings;
            string configKey = string.Empty;
            DropDownHTMLEmitter dropDownHTMLEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetBallyDropdownListOverrideSettings(DropDownType.CascadeSelect, listLength, targetControlID, actionUrl, style, tabIndex, onChangeFunction, value, cssClass, cascadeInputFunction);
            FillerParams fillerParams = null;

            if (dataSource != null)
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: dataSource.DataSource, valueMember: dataSource.ValueMember, displayMember: dataSource.DisplayMember, disabled: disabled, attributes: attributes, configKey: configKey);
            }
            else
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: null, valueMember: string.Empty, displayMember: string.Empty, disabled: disabled, attributes: attributes, configKey: configKey);
            }

            var fillers             = ControlPropertyFillerFactory.Get();
            var dropDownpropertyBag = new DropDownPropertyBag(fillerParams);

            dropDownpropertyBag.Accept(fillers);
            dropDownpropertyBag.ErrorMessage = errMsg;
            dropDownpropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            dropDownHTMLEmitter = new DropDownHTMLEmitter(value != null ? value.ToString() : string.Empty, dropDownpropertyBag);

            dropDownHTMLEmitter.Emit(out dropDownHTMLString);
            return(MvcHtmlString.Create(dropDownHTMLString));
        }
Esempio n. 25
0
        private static Dictionary <string, string> GetNumericTextBoxOverrideSettings(bool isCurrency, StylePropertyBag style, short tabIndex, string onLeaveFunction, string onKeyUpFunction, string onKeyDownFunction, string onChangeFunction, string cssClass, string autoCompleteInputFunction)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.IS_CURRENCY, isCurrency.ToString());
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_LEAVE_FUNCTION, onLeaveFunction);
            overrideSettings.Add(ControlLibConstants.ON_KEY_UP_FUNCTION, onKeyUpFunction);
            overrideSettings.Add(ControlLibConstants.ON_KEY_DOWN_FUNCTION, onKeyDownFunction);
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            overrideSettings.Add(ControlLibConstants.AUTOCOMPLETE_INPUT_FUNCTION, autoCompleteInputFunction);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
        public static MvcHtmlString BallyTemplateListBox <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, string templateNameKey, ItemDataSource dataSource, int listLength = -1, StylePropertyBag style = null, short tabIndex = 0, string onClickFunction = "", string listItemTemplateCssClass = "", string listItemMouseOverCssClass = "", string listItemSelectedCssClass = "", string cssClass = "")
        {
            string propertyName      = string.Empty;
            string modelName         = string.Empty;
            object value             = string.Empty;
            string errMsg            = string.Empty;
            string controlHtmlString = string.Empty;
            string configKey         = string.Empty;
            Dictionary <string, string> overrideSettings;
            TemplateListHTMLEmitter     controlHtmlEmitter;

            ControlExtension.GetPropertyNameAndValue <TModel, TProperty>(htmlHelper, expression, out propertyName, out modelName, out value, out errMsg, out configKey);

            overrideSettings = GetBallyTemplateListBoxOverrideSettings(templateNameKey, listLength, style, tabIndex, onClickFunction, value, listItemTemplateCssClass, listItemMouseOverCssClass, listItemSelectedCssClass, cssClass);
            FillerParams fillerParams = null;

            if (dataSource != null)
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: dataSource.DataSource, valueMember: dataSource.ValueMember, param: dataSource.DisplayParams, templateKeyName: templateNameKey, listType: ListBoxType.MultiColumnList, configKey: configKey);
            }
            else
            {
                fillerParams = new FillerParams(modelName, propertyName, overrideSettings, list: null, valueMember: string.Empty, param: null, templateKeyName: templateNameKey, listType: ListBoxType.MultiColumnList, configKey: configKey);
            }

            var fillers            = ControlPropertyFillerFactory.Get();
            var controlPropertyBag = new TemplateListPropertyBag(fillerParams);

            controlPropertyBag.Accept(fillers);
            controlPropertyBag.ErrorMessage = errMsg;
            controlPropertyBag.IsDirty      = string.IsNullOrEmpty(errMsg) ? false : true;
            controlHtmlEmitter = new TemplateListHTMLEmitter(value != null ? value.ToString() : string.Empty, controlPropertyBag);

            controlHtmlEmitter.Emit(out controlHtmlString);
            return(MvcHtmlString.Create(controlHtmlString));
        }
Esempio n. 27
0
        private static Dictionary <string, string> GetBallyShuttleListOverrideSettings(string actionUrl, string valMember, string dispMember, StylePropertyBag style, short tabIndex, string onChangeFunction, object value, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CHANGE_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.ACTION_URL, actionUrl);
            overrideSettings.Add(ControlLibConstants.VALUE_MEMBER, valMember);
            overrideSettings.Add(ControlLibConstants.DISPLAY_MEMBER, dispMember);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
        private static Dictionary <string, string> GetBallyTemplateListBoxOverrideSettings(string templateNameKey, int listLength, StylePropertyBag style, short tabIndex, string onChangeFunction, object value, string listItemTemplateCssClass, string listItemMouseOverCssClass, string listItemSelectedCssClass, string cssClass)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.TAB_INDEX, tabIndex.ToString());
            overrideSettings.Add(ControlLibConstants.LIST_LENGTH, listLength.ToString());
            overrideSettings.Add(ControlLibConstants.ON_CLICK_FUNCTION, onChangeFunction);
            overrideSettings.Add(ControlLibConstants.SELECTED_VALUE, Convert.ToString(value));
            overrideSettings.Add(ControlLibConstants.TEMPLATE_NAME_KEY, templateNameKey);
            overrideSettings.Add(ControlLibConstants.LISTITEM_TEMPLATE_CSSCLASS, listItemTemplateCssClass);
            overrideSettings.Add(ControlLibConstants.LISTITEM_MOUSEOVER_CSSCLASS, listItemMouseOverCssClass);
            overrideSettings.Add(ControlLibConstants.LISTITEM_SELECTED_CSSCLASS, listItemSelectedCssClass);
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }
Esempio n. 29
0
        private static Dictionary <string, string> GetLabelOverrideSettings(DisplayType DisplayType, StylePropertyBag style, bool isCurrency = false, string cssClass = "", string overrideToolTip = "")
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            SetStyleSettings(style, overrideSettings);
            overrideSettings.Add(ControlLibConstants.DISPLAY_TYPE, DisplayType.ToString());
            overrideSettings.Add(ControlLibConstants.IS_CURRENCY, isCurrency.ToString());
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            overrideSettings.Add(ControlLibConstants.OVERRIDE_TOOLTIP, overrideToolTip);
            return(overrideSettings);
        }
        private static Dictionary <string, string> GetBallyTenderInfoListOverrideSettings(string denomTemplateName, StylePropertyBag style, string onRowSelectFunction,
                                                                                          string headerCssClass, string footerCssClass, bool grantTotalRequired, string cssClass, bool otherAmountRequired, string otherAmountLabelKey, string actionUrl, PositionType otherAmountPosition, bool isViewMode, string validationMessageKey, DenomModeType denomMode, string undefinedRowReadonlyColumns, string undefinedRowEditableColumns, bool movementIndicatorRequired, string movementIndicatorColumn)
        {
            Dictionary <string, string> overrideSettings;

            overrideSettings = new Dictionary <string, string>();
            overrideSettings.Add(ControlLibConstants.DENOM_ON_ROWSELECT_FUNCTION, onRowSelectFunction);
            overrideSettings.Add(ControlLibConstants.DENOM_TEMPLATE_KEY, denomTemplateName);
            overrideSettings.Add(ControlLibConstants.DENOM_HEADER_CSS, headerCssClass);
            overrideSettings.Add(ControlLibConstants.DENOM_FOOTER_CSS, footerCssClass);
            overrideSettings.Add(ControlLibConstants.DENOM_GRANT_TOTAL_REQUIRED, grantTotalRequired.ToString());
            overrideSettings.Add(ControlLibConstants.CSS_CLASS, cssClass);
            overrideSettings.Add(ControlLibConstants.DENOM_OTHERAMOUNT_REQUIRED, otherAmountRequired.ToString());
            overrideSettings.Add(ControlLibConstants.DENOM_OTHERAMOUNT_LABELKEY, otherAmountLabelKey);
            overrideSettings.Add(ControlLibConstants.ACTION_URL, actionUrl);
            overrideSettings.Add(ControlLibConstants.OTHER_AMOUNT_POSITION, otherAmountPosition.ToString());
            overrideSettings.Add(ControlLibConstants.IS_VIEW_MODE, isViewMode.ToString());
            overrideSettings.Add(ControlLibConstants.VALIDATION_MESSAGE_KEY, validationMessageKey);
            overrideSettings.Add(ControlLibConstants.DENOM_MODE, denomMode.ToString());
            overrideSettings.Add(ControlLibConstants.UNDEFINEDROW_READONLY_COLUMNS, undefinedRowReadonlyColumns);
            overrideSettings.Add(ControlLibConstants.UNDEFINEDROW_EDITABLE_COLUMNS, undefinedRowEditableColumns);
            overrideSettings.Add(ControlLibConstants.MOVEMENT_INDICATOR_COLUMN, movementIndicatorColumn);
            overrideSettings.Add(ControlLibConstants.MOVEMENT_INDICATOR_REQUIRED, movementIndicatorRequired.ToString());
            SetStyleSettings(style, overrideSettings);
            return(overrideSettings);
        }