private void SearchRechargeRecord(DayBenefitReportDetailPara para) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } RechargeRecordListPara rechargePara = new RechargeRecordListPara() { ShopID = para.ShopID, PhoneNumber = String.Empty, StartDate = para.StartDate, EndDate = para.EndDate, }; List <RechargeRecord> rechargeRecordList = CommonGlobalCache.ServerProxy.GetRechargeRecordList(rechargePara); BindingDataSource(rechargeRecordList); } catch (Exception ee) { ShowError(ee); } finally { UnLockPage(); } }
public RechargeRecordListCtrl(RechargeRecordListPara para) { InitializeComponent(); this.pagePara = para; this.createTimeDataGridViewTextBoxColumn.DefaultCellStyle.Format = DateTimeUtil.DEFAULT_DATETIME_FORMAT; this.dataGridViewPagingSumCtrl = new DataGridViewPagingSumCtrl(this.dataGridView1); dataGridViewPagingSumCtrl.SpecAutoSizeModeColumns(new DataGridViewColumn[] { remarksDataGridViewTextBoxColumn }); dataGridViewPagingSumCtrl.Initialize(); }
private void Search() { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } RechargeRecordListPara para = new RechargeRecordListPara() { IsPos = IsPos, ShopID = HasPermission(RolePermissionMenuEnum.会员管理, RolePermissionEnum.查看_只看本店) ? CommonGlobalCache.CurrentShopID : null, PhoneNumber = this.skinTextBox_MemberID.Text.Trim(), StartDate = new Date(this.dateTimePicker_Start.Value), EndDate = new Date(this.dateTimePicker_End.Value) }; //if (IsPos) //{ // para.IsPos = true; // para.ShopID = CommonGlobalCache.CurrentShopID; //} //else { // para.IsPos = false; //} if (string.IsNullOrEmpty(para.PhoneNumber)) { para.PhoneNumber = null; } this.rechargeRecordList = CommonGlobalCache.ServerProxy.GetRechargeRecordList(para); this.BindingDataSource(); } catch (Exception ee) { CommonGlobalUtil.WriteLog(ee);//CommonGlobalUtil.Logger.Log(ee, "RechargeRecordCtrl.BaseButton1_Click", CJBasic.Loggers.ErrorLevel.Standard); GlobalMessageBox.Show("查询失败!"); } finally { CommonGlobalUtil.UnLockPage(this); } }