コード例 #1
0
 public DynamicControls()
 {
     Name = string.Empty;
     Label = new DynamicLabel();
     Css = string.Empty;
     Style = string.Empty;
     Visible = true;
     CustomerSpecificInfoTypeID = 0;
 }
コード例 #2
0
 public DynamicGridViewXml(string name, DynamicLabel label, string css, string style, List<string[]> dataSourceList, bool visible)
 {
     base.Name = name;
     Label = label;
     Css = css;
     Style = style;
     DataSourceList = dataSourceList;
     Visible = visible;
 }
コード例 #3
0
 public DynamicCheckBoxXml(string name,bool check, string text, string css, string style,DynamicLabel label, bool visible)
 {
     Text = text;
     Check = check;
     Css = css;
     Style = style;
     Label = label;
     this.Name = name;
     Visible = visible;
 }
コード例 #4
0
 public DynamicRadioButtonListXml(string name, string selectedValue,string selectedText, bool isRequired, string errorMessage, string validationGroup, DynamicLabel label, string css, string style, bool visible)
 {
     Name = name;
     _selectedValue = selectedValue;
     _selectedText = selectedText;
     _isRequired = isRequired;
     _errorMessage = errorMessage;
     _validationGroup = validationGroup;
     Label = label;
     Css = css;
     Style = style;
     Visible = visible;
 }
コード例 #5
0
 public DynamicTextBoxXml(string text, string name, bool isRequired, string errorMessage, string validationGroup, int maxLength, DynamicLabel label, string css, string style, bool visible)
 {
     _text = text;
     Name = name;
     _isRequired = isRequired;
     _errorMessage = errorMessage;
     _validationGroup = validationGroup;
     _maxLength = maxLength;
     Label = label;
     Css = css;
     Style = style;
     Visible = visible;
 }
コード例 #6
0
 public DynamicDropDownListXml(int filterId, string name, string selectedValue,string selectedText, bool isRequired, string errorMessage, string validationGroup, DynamicLabel label, string css, string style,bool visible)
 {
     _filterId = filterId;
     Name = name;
     _selectedValue = selectedValue;
     _selectedText = selectedText;
     _isRequired = isRequired;
     _errorMessage = errorMessage;
     _validationGroup = validationGroup;
     Label = label;
     Css = css;
     Style = style;
     this.Visible = visible;
 }
コード例 #7
0
 public DynamicTimeXml(string text, string name, string mask, MaskedEditType type, bool isValidEmpty, string validationGroup, string invalidValueMessage,
     string emptyValueMessage, DynamicLabel label, string css, string style, MaskedEditInputDirection inputDirection, bool visible)
 {
     Text = text;
     Name = name;
     Mask = mask;
     MaskedType = type;
     IsValidEmpty = isValidEmpty;
     ValidationGroup = validationGroup;
     InvalidValueMessage = invalidValueMessage;
     EmptyValueMessage = emptyValueMessage;
     Label = label;
     Css = css;
     Style = style;
     InputDirection = inputDirection;
     Visible = visible;
 }
コード例 #8
0
 public DynamicCountableTextBoxXml(string text, string name, bool isRequired, string errorMessage, string validationGroup, int maxChars, int maxCharsWarning, TextBoxMode textMode, double width, double height, DynamicLabel label, string css, string style, bool visible)
 {
     _text = text;
     Name = name;
     _isRequired = isRequired;
     _errorMessage = errorMessage;
     _validationGroup = validationGroup;
     _MaxChars = maxChars;
     _MaxCharsWarning = maxCharsWarning;
     _textMode = textMode;
     _width = width;
     _height = height;
     Label = label;
     Css = css;
     Style = style;
     Visible = visible;
 }
コード例 #9
0
 public DynamicFilteredTextBoxXml(string text, string name, bool isRequired, string errorMessage, string validationGroup, double width, double height, int maxLength,
     FilterTypes filterType, FilterModes filterMode, int filterInterval, string validChars, string invalidChars,
     DynamicLabel label, string css, string style, bool visible)
 {
     _text = text;
     Name = name;
     _isRequired = isRequired;
     _errorMessage = errorMessage;
     _validationGroup = validationGroup;
     _width = width;
     _height = height;
     _maxLength = maxLength;
     _filterType = filterType;
     _filterMode = filterMode;
     _filterInterval = filterInterval;
     _validChars = validChars;
     _invalidChars = invalidChars;
     Label = label;
     Css = css;
     Style = style;
     Visible = visible;
 }
コード例 #10
0
        private DynamicFieldsAggregator CreateAggregatorForSpecificCustomerInfo(IList<int> selectedCustomerInfoType)
        {
            List<CS_CustomerSpecificInfoType> customerSpecificType = _customerSpecificInfoTypeRepository.ListAll(e => e.Active && selectedCustomerInfoType.Contains(e.ID)).ToList();

            DynamicFieldsAggregator aggregator = new DynamicFieldsAggregator();

            for (int i = 0; i < customerSpecificType.Count; i++)
            {
                DynamicLabel label = new DynamicLabel();
                label.Text = customerSpecificType[i].Description + ":";
                label.Css = "dynamicLabel";

                string controlName = StringManipulation.RemoveSpecialCharactersForControlName("txt" + customerSpecificType[i].Description.Replace(" ", ""));

                DynamicTextBoxXml textbox = new DynamicTextBoxXml("", controlName, false, "", "", 255, label, "input", "", true);
                textbox.CustomerSpecificInfoTypeID = customerSpecificType[i].ID;
                aggregator.Controls.Add(textbox);
            }

            return aggregator;
        }