コード例 #1
0
        private void BuildPara()
        {
            string costumeID = string.IsNullOrEmpty(this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim()) ? null : this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim();
            bool   isOnlyShowHaveNegative = this.skinckbNoZeroStore.Checked;
            string curBrandStr            = ValidateUtil.CheckEmptyValue(this.skinComboBox_Brand.SelectedValue);
            int    curBrandID             = 0;

            if (curBrandStr == null)
            {
                curBrandID = 0;
            }
            curBrandID = Convert.ToInt32(curBrandStr);
            string curPfCustomerID = "";

            if (skinComboBoxSupplier.SelectedValue != null)
            {
                curPfCustomerID = ValidateUtil.CheckEmptyValue(skinComboBoxSupplier.SelectedValue);
            }
            else
            {
                if (skinComboBoxSupplier.Text != "" && skinComboBoxSupplier.Text != "所有")
                {
                    GlobalMessageBox.Show("请输入正确的客户信息后再进行查询!");
                    this.skinComboBoxSupplier.Focus();
                    return;
                }
            }

            CostumeColor color = this.skinComboBox_Color.SelectedItem as CostumeColor;
            int          year  = (int)(this.skinComboBox_Year.SelectedValue);

            this.pagePara = new GetPfCustomerStorePagePara()
            {
                CostumeID         = costumeID,
                BrandID           = curBrandID,
                PfCustomerID      = curPfCustomerID,
                PageIndex         = 0,
                PageSize          = int.MaxValue,// this.dataGridViewPagingSumCtrl.PageSize,
                ClassID           = skinComboBoxBigClass.SelectedValue.ClassID,
                ColorName         = color?.Name == CommonGlobalUtil.COMBOBOX_ALL ? null : color?.Name,
                Season            = ValidateUtil.CheckEmptyValue(this.skinComboBox_Season.SelectedValue),
                SupplierID        = ValidateUtil.CheckEmptyValue(supllierComboBox1.SelectedValue),
                Year              = year,
                IsShowColor       = skinCheckBoxShowColor.Checked,
                IsOnlyShowNotZero = isOnlyShowHaveNegative,
            };
        }
コード例 #2
0
        private void BuildPara()
        {
            string costumeID = string.IsNullOrEmpty(this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim()) ? null : this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim();
            bool   isOnlyShowHaveNegative = this.skinCheckBox1.Checked;
            string curBrandStr            = ValidateUtil.CheckEmptyValue(this.skinComboBox_Brand.SelectedValue);
            int    curBrandID             = 0;

            if (curBrandStr == null)
            {
                curBrandID = 0;
            }
            curBrandID = Convert.ToInt32(curBrandStr);
            string curPfCustomerID = "";

            if (skinComboBoxSupplier.SelectedValue != null)
            {
                curPfCustomerID = ValidateUtil.CheckEmptyValue(skinComboBoxSupplier.SelectedValue);
            }
            else
            {
                if (skinComboBoxSupplier.Text != "" && skinComboBoxSupplier.Text != "所有")
                {
                    GlobalMessageBox.Show("请输入正确的客户信息后再进行查询!");
                    this.skinComboBoxSupplier.Focus();
                    return;
                }
            }

            this.pagePara = new GetPfCustomerStorePagePara()
            {
                CostumeID    = costumeID,
                BrandID      = curBrandID,
                PfCustomerID = curPfCustomerID,
                PageIndex    = 0,
                PageSize     = int.MaxValue,// this.dataGridViewPagingSumCtrl.PageSize,

                IsOnlyShowNotZero = isOnlyShowHaveNegative,
            };
        }
コード例 #3
0
 private void skinComboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.pagePara = new GetPfCustomerStorePagePara();
     this.dataGridViewPagingSumCtrl.Initialize(1);
 }