Exemple #1
0
 public QueryCriteria(Channel channel)
 {
     InitializeComponent();
     channelForm             = channel;
     type                    = "Add";
     sqlOutQueryCriteriaItem = new SQLOutQueryCriteriaItem();
     this.Text               = "Add Filter Item";
 }
Exemple #2
0
 public QueryInParameter(XCollection <SQLOutQueryCriteriaItem> parameters)
 {
     InitializeComponent();
     GetLUTTables();
     parameterList = parameters;
     parameterItem = new SQLOutQueryCriteriaItem();
     type          = "Add";
     this.Text     = "Add Parameter";
 }
Exemple #3
0
        public QueryCriteria(Channel channel, int index)
        {
            InitializeComponent();
            channelForm = channel;
            type        = "Edit";
            this.Text   = "Edit Filter Item";

            selectIndex             = index;
            sqlOutQueryCriteriaItem = channel.criteriaItemList[index];
            ShowInformation(selectIndex);
        }
Exemple #4
0
        public QueryInParameter(XCollection <SQLOutQueryCriteriaItem> parameters, int index)
        {
            InitializeComponent();
            GetLUTTables();
            parameterList = parameters;
            parameterItem = parameters[index];
            type          = "Edit";
            this.Text     = "Edit Parameter";

            ShowInformation();
        }
Exemple #5
0
        private void LoadEventTypeSetting(SQLOutboundChanel chn, string tablePrefix, string[] eventTypes)
        {
            chn.Rule.QueryCriteria.Type = QueryCriteriaRuleType.DataSet;
            foreach (string str in eventTypes)
            {
                SQLOutQueryCriteriaItem item = new SQLOutQueryCriteriaItem();
                item.TargetField   = GWDataDBField.i_EventType.GetFullFieldName(tablePrefix);
                item.GWDataDBField = GWDataDBField.i_EventType;

                ThrPartyDBParamter p = new ThrPartyDBParamter();
                p.FieldType = System.Data.OleDb.OleDbType.Empty;
                item.ThirdPartyDBPatamter = p;
                item.SourceField          = "";

                item.Translating.Type       = TranslatingType.FixValue;
                item.Translating.ConstValue = str;

                item.Type = QueryCriteriaType.Or;

                chn.Rule.QueryCriteria.MappingList.Add(item);
            }
        }