private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } string costumeID = string.IsNullOrEmpty(this.costumeTextBox1.SkinTxt.Text) ? null : this.costumeTextBox1.SkinTxt.Text; String color = ((CostumeColor)skinComboBox_Color.SelectedItem).Name;// ValidateUtil.CheckEmptyValue(); String size = ValidateUtil.CheckEmptyValue(skinComboBox_Size.SelectedValue); if (color == CommonGlobalUtil.COMBOBOX_ALL) { color = String.Empty; } // this.dataGridViewPagingSumCtrl.PageSize = int.MaxValue; this.pagePara = new GetCostumeStoreChangePara() { // CostumeStoreChangeType = ValidateUtil.CheckEmptyValue(this.skinComboBoxChangeType.SelectedValue), CostumeID = costumeID, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), ColorName = color, SizeName = size, ShopID = shopID, }; CostumeStoreChange listPage = CommonGlobalCache.ServerProxy.GetCostumeStoreChange(this.pagePara); // dataGridViewPagingSumCtrl.Initialize(listPage); // SetSpanInfo(); this.BindingSource(listPage); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }
private void BindingSource(CostumeStoreChange listPage) { dataGridViewPagingSumCtrl.BindingDataSource <CostumeStoreChangeInfo>(DataGridViewUtil.ListToBindingList(listPage?.CostumeStoreChangeInfos)); this.skinSplitContainer1.Panel2Collapsed = true; }