예제 #1
0
        private IParametersControl CreateDateTimePickerParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchDateTimePicker dateTimePicker = new Search.Controls.SearchDateTimePicker();
            dateTimePicker.Width = prm.ParameterControlWidth;

            return dateTimePicker;
        }
예제 #2
0
        private IParametersControl CreateCheckBoxParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchCheckBox checkBox = new Search.Controls.SearchCheckBox();
            checkBox.Width = prm.ParameterControlWidth;

            return checkBox;
        }
예제 #3
0
 private IParametersControl CreateComboBoxParameter(SearchParameterProperties prm)
 {
     Search.Controls.SearchComboBox comboBox = new Search.Controls.SearchComboBox();
     comboBox.Width = prm.ParameterControlWidth;
     comboBox.DataSource = prm.GetComboData();
     comboBox.DisplayMember = prm.ComboBoxDisplayMember;
     comboBox.ValueMember = prm.ComboBoxValueMembers;
     return comboBox;
 }
예제 #4
0
 private System.Windows.Forms.ComboBox CreateCompareOrderControl(SearchParameterProperties prm)
 {
     System.Windows.Forms.ComboBox compareOrderControl = new System.Windows.Forms.ComboBox();
     compareOrderControl.Width = 60;
     compareOrderControl.DropDownStyle = ComboBoxStyle.DropDownList;
     compareOrderControl.TabStop = false;
     if (string.IsNullOrWhiteSpace(prm.ComperOrders) == false)
     {
         string[] compareOrders = prm.ComperOrders.Split(',');
         compareOrderControl.DataSource = compareOrders;
     }
     else
         compareOrderControl.Visible = false;
     return compareOrderControl;
 }
예제 #5
0
 public void LoadDbSearchParameters(Srch_SearchMaster _searchMaster)
 {
     foreach (var dbSearchParameter in _searchMaster.Srch_SearchParameters)
     {
         SearchParameterProperties searchParameter = new SearchParameterProperties();
         searchParameter.Search = this;
         searchParameter.FromDbSearchParameter(dbSearchParameter);
         this.SearchParametersProperties.Add(searchParameter);
     }
 }
예제 #6
0
        private IParametersControl CreateTextBoxParameter(SearchParameterProperties prm)
        {
            Search.Controls.SearchTextBox textBox = new Search.Controls.SearchTextBox();
            textBox.Width = prm.ParameterControlWidth;

            return textBox;
        }