Esempio n. 1
0
        /// <summary>
        ///     输出配置字典
        /// </summary>
        private void frmQuery_Load(object sender, EventArgs e)
        {
            if (!GuiConfig.IsMono)
            {
                Icon = GetSystemIcon.ConvertImgToIcon(GetResource.GetImage(ImageType.Query));
            }
            var fieldList = new List <DataFilter.QueryFieldItem>();

            fieldList = _currentDataViewInfo.MDataFilter.QueryFieldList;
            //增加第一个条件
            ConditionPan.AddCondition();
            if (_currentDataViewInfo.IsUseFilter)
            {
                //使用过滤:字段和条件的设定
                QueryFieldPicker.SetQueryFieldList(fieldList);
                if (_currentDataViewInfo.MDataFilter.QueryConditionList.Count > 0)
                {
                    ConditionPan.PutQueryToUi(_currentDataViewInfo.MDataFilter);
                }
            }
            else
            {
                //不使用过滤:字段初始化
                QueryFieldPicker.InitByCurrentCollection(true);
            }
            //多国语言
            GuiConfig.Translateform(this);
        }
Esempio n. 2
0
        /// <summary>
        ///     输出配置字典
        /// </summary>
        private void frmQuery_Load(object sender, EventArgs e)
        {
            Icon = GetSystemIcon.ConvertImgToIcon(GetResource.GetImage(ImageType.Query));
            var fieldList = new List <DataFilter.QueryFieldItem>();

            fieldList = _currentDataViewInfo.MDataFilter.QueryFieldList;
            //增加第一个条件
            ConditionPan.AddCondition();
            if (_currentDataViewInfo.IsUseFilter)
            {
                //使用过滤:字段和条件的设定
                QueryFieldPicker.SetQueryFieldList(fieldList);
                if (_currentDataViewInfo.MDataFilter.QueryConditionList.Count > 0)
                {
                    ConditionPan.PutQueryToUi(_currentDataViewInfo.MDataFilter);
                }
            }
            else
            {
                //不使用过滤:字段初始化
                QueryFieldPicker.InitByCurrentCollection(true);
            }
            if (GuiConfig.IsUseDefaultLanguage)
            {
                return;
            }
            Text = GuiConfig.GetText(TextType.QueryTitle);
            tabFieldInfo.Text    = GuiConfig.GetText(TextType.QueryFieldInfo);
            tabCondition.Text    = GuiConfig.GetText(TextType.QueryFilter);
            tabSql.Text          = GuiConfig.GetText(TextType.ConvertSqlTitle);
            cmdAddCondition.Text =
                GuiConfig.GetText(TextType.QueryFilterAddCondition);
            cmdLoad.Text   = GuiConfig.GetText(TextType.QueryActionLoad);
            cmdSave.Text   = GuiConfig.GetText(TextType.CommonSave);
            cmdOK.Text     = GuiConfig.GetText(TextType.CommonOk);
            cmdCancel.Text = GuiConfig.GetText(TextType.CommonCancel);
        }