private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } string orderID = string.IsNullOrEmpty(this.skinTextBox_OrderID.SkinTxt.Text) ? null : this.skinTextBox_OrderID.SkinTxt.Text; string costumeID = string.IsNullOrEmpty(this.costumeTextBox1.SkinTxt.Text) ? null : this.costumeTextBox1.SkinTxt.Text; pagePara = new AllocateOrderPagePara() { CostumeID = costumeID, AllocateOrderID = orderID, AllocateOrderState = (AllocateOrderState)this.skinComboBox_State.SelectedValue, IsOpenDate = true, SourceShopID = CommonGlobalCache.CurrentShopID, DestShopID = ValidateUtil.CheckEmptyValue(this.skinComboBox_DestShop.SelectedValue), StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), PageIndex = 0, PageSize = this.dataGridViewPagingSumCtrl.PageSize }; Search(); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }