private void Initialize() { this.pagePara = new RefundListPagePara(); this.refundOrderList = null; createTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATETIME_FORMAT; this.BindingRefundOrderDataSource(null); this.BindingRefundDetailDataSource(null); SetRetailOrderLabel(null); }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } string memberID = string.IsNullOrEmpty(this.skinTextBox_MemberID.SkinTxt.Text) ? null : this.skinTextBox_MemberID.SkinTxt.Text; string orderID = string.IsNullOrEmpty(this.skinTextBox_OrderID.SkinTxt.Text) ? null : this.skinTextBox_OrderID.SkinTxt.Text; string costumeID = string.IsNullOrEmpty(this.CostumeCurrentShopTextBox1.SkinTxt.Text) ? null : this.CostumeCurrentShopTextBox1.SkinTxt.Text; Date startDate = null; Date endDate = null; if (this.skinCheckBox1.CheckState == CheckState.Checked) { startDate = new Date(this.dateTimePicker_Start.Value); endDate = new Date(this.dateTimePicker_End.Value); } this.pagePara = new Core.InteractEntity.RefundListPagePara() { CostumeID = costumeID, RefundOrderID = orderID, MemberID = memberID, StartDate = startDate, EndDate = endDate, PageIndex = 0, PageSize = this.dataGridViewPagingSumCtrl.PageSize, ShopID = GlobalCache.CurrentShopID }; RefundListPage listPage = GlobalCache.ServerProxy.GetRefundListPage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingRefundOrderDataSource(listPage); #region 清空dataGridView_RetailDetail的绑定源 this.BindingRefundDetailDataSource(null); #endregion } catch (Exception ee) { GlobalUtil.WriteLog(ee); GlobalMessageBox.Show("查询失败!"); } finally { GlobalUtil.UnLockPage(this); } }
public void Search(RefundListPagePara pagePara) { this.pagePara = pagePara; this.BaseButton_Search_Click(null, null); }