private void BuildPara() { string costumeID = string.IsNullOrEmpty(this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim()) ? null : this.CostumeCurrentShopTextBox1.SkinTxt.Text.Trim(); bool isOnlyShowHaveNegative = this.skinCheckBox1.Checked; int year = (int)(this.skinComboBox_Year.SelectedValue); CostumeColor color = this.skinComboBox_Color.SelectedItem as CostumeColor; string BrandStr = ValidateUtil.CheckEmptyValue(this.skinComboBox_Brand.SelectedValue); int curBrandID = 0; if (BrandStr == null) { curBrandID = 0; } curBrandID = Convert.ToInt32(BrandStr); this.pagePara = new CostumeStoreListPagePara() { CostumeID = costumeID, ShopID = shopID, IsShowAllShop = (shopID == null), ClassID = skinComboBoxBigClass.SelectedValue.ClassID, // SubSmallClass= skinComboBoxBigClass.SelectedValue?.SubSmallClass, BrandID = curBrandID, Season = ValidateUtil.CheckEmptyValue(this.skinComboBox_Season.SelectedValue), SupplierID = ValidateUtil.CheckEmptyValue(skinComboBoxSupplier.SelectedValue), Year = year, PageIndex = 0, CostumeStoreType = (CostumeStoreType)this.skinComboBox_storeType.SelectedValue, PageSize = int.MaxValue,// this.dataGridViewPagingSumCtrl.PageSize, IsOnlyShowHaveNegative = isOnlyShowHaveNegative, IsOnlyShowNotZero = skinCheckBox2.Checked, IsSingleModel = false, IsChooseColor = skinCheckBoxShowColor.Checked, GetOtherShop = skinCheckBoxOtherShop.Checked, ColorName = color?.Name == CommonGlobalUtil.COMBOBOX_ALL ? null : color?.Name, Date = new Date(dateTimePicker_Start.Value), }; }
private void skinComboBox1_SelectedIndexChanged(object sender, EventArgs e) { this.pagePara = new CostumeStoreListPagePara(); }