private void GetOpenMemberRecord() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pageBegin, Pagesize = this.pageSize, Order = 1, Fieldname = 0, }; int type = -1; string staff = "", name = ""; if (!this.buttonEdit1.Text.Equals(this.buttonEdit1.Properties.NullText)) { name = this.buttonEdit1.Text; } if (this.comboBoxEdit2.SelectedIndex > 0) { type = this.memberTypes[this.comboBoxEdit2.SelectedIndex - 1].typeId; } if (this.comboBoxEdit1.SelectedIndex > 0) { staff = this.staffs[this.comboBoxEdit1.SelectedIndex - 1].Nickname; } RecordNetOperation.GetOpenMemberRecord(GetOpenMemberRecordResult, page.Build(), this.startTime, this.endTime, staff, type, name); }
//会员上网记录查询 private void GetUserNetRecord(bool isFilter) { if (isFilter) { this.pageView1.InitPageViewData(); } StructPage.Builder page = new StructPage.Builder() { Pagesize = pageView1.PageSize, Pagebegin = pageView1.PageBegin, Fieldname = 0, Order = 0, }; string name = ""; if (!this.searchButtonEdit.Text.Equals(this.searchButtonEdit.Properties.NullText)) { name = this.searchButtonEdit.Text; } int comId = -1; if (this.comboBoxEdit1.SelectedIndex > 0) { comId = this.computers[this.comboBoxEdit1.SelectedIndex - 1].Computerid; } RecordNetOperation.GetUserNetRecord(GetUserNetRecordResult, page.Build(), this.startTime, this.endTime, name, -1, comId); }
//通过条件查询会员 private void SearchMember() { //会员类型 int type = 0; if (this.memberTypeComboBoxEdit.SelectedIndex > 0) { MemberTypeModel item = this.memberTypes[this.memberTypeComboBoxEdit.SelectedIndex - 1]; type = item.typeId; } MEMBERSTATUS status = MEMBERSTATUS.无; Enum.TryParse <MEMBERSTATUS>(this.statusComboBoxEdit.Text, out status); string key = ""; if (!this.searchButtonEdit.Text.Equals(this.searchButtonEdit.Properties.NullText)) { key = this.searchButtonEdit.Text; } //System.Console.WriteLine("type:" + type + "\nstatus:" + status + "\nkey:" + key); //测试多条件查询 StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pageBegin, Pagesize = this.pageSize, Fieldname = field, Order = order, // }; MemberNetOperation.SearchConditionMember(SearchMemberResult, page.Build(), (int)status, type, key); }
//获取销售记录 private void GetSellRecordList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = pagebegin, Pagesize = pageSize, Fieldname = 0, Order = 0, }; ProductNetOperation.GetSellRecordList(GetSellRecordListResult, page.Build(), this.productId, startTime, endTime); }
//获取会员列表 private void GetMemberList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pageBegin, Pagesize = this.pageSize, Fieldname = this.field, Order = this.order, // }; MemberNetOperation.GetMemberList(MemberListResult, page.Build()); }
//获取库存清单 private void GetStoreList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pageBegin, Pagesize = this.pageSize, Fieldname = 0, Order = 0, }; ProductNetOperation.GetStoreList(GetStoreListResult, page.Build()); }
private void GetStaffShiftsRecord() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = 0, Pagesize = 15, Order = 1, Fieldname = 0, }; System.Console.WriteLine("start" + startTime + "\nend:" + endTime); StaffNetOperation.GetStaffShiftsRecordList(GetStaffShiftsRecordListResult, page.Build(), startTime, endTime); }
//获取锁定的会员列表 private void GetLockList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = pageBegin, Pagesize = pageSize, Fieldname = 0, Order = 1, }; string name = this.buttonEdit1.Text; MemberNetOperation.SearchConditionMember(GetMemberLockListResult, page.Build(), (int)MEMBERSTATUS.锁定, -1, name); }
//获取网吧评价列表 private void GetNetBarEvaluateList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pagebegin, Pagesize = this.pageSize, Fieldname = 0, Order = 0 }; string member = this.buttonEdit1.Text.Equals(this.buttonEdit1.Properties.NullText)?"": this.buttonEdit1.Text; EvaluateNetOperation.GetNetBarEvaluateList(GetNetBarEvaluateListResult, page.Build(), startTime, endTime, member); }
//会员上网记录查询 private void GetMemberNetRecord(bool isFilter) { if (isFilter) { this.pageView1.InitPageViewData(); } StructPage.Builder page = new StructPage.Builder() { Pagesize = pageView1.PageSize, Pagebegin = pageView1.PageBegin, Fieldname = 0, Order = 0, }; RecordNetOperation.GetUserNetRecord(MemberNetRecordResult, page.Build(), this.startTime, this.endTime, "", mid, -1); }
//获取销售记录 private void GetProductIndentList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = pageBegin, Pagesize = pageSize, Fieldname = 0, Order = 0, }; string keyWords = this.buttonEdit1.Text; //1提交 2付款完成 3订单处理完成(发货完成) //"1提交","2完成","3撤销" ProductNetOperation.GetProdcutIndentList(GetProdcutIndentListResult, page.Build(), 2, "", "", "", "", keyWords); }
//获取日志数据列表 private void GetLogList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pagebegin, Pagesize = this.pageSize, Fieldname = 0, Order = 0 }; string staff = ""; if (this.comboBoxEdit1.SelectedIndex >= 0) { staff = this.staffs[this.comboBoxEdit1.SelectedIndex].Nickname; } string keyword = this.buttonEdit1.Text; OtherMainNetOperation.GetLogList(GetLogListResult, page.Build(), startTime, endTime, staff, keyword); }
//获取员工评价列表 private void GetStaffEvaluateList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pagebegin, Pagesize = this.pageSize, Fieldname = 0, Order = 0 }; string staff = ""; if (this.comboBoxEdit1.SelectedIndex >= 0) { staff = this.staffs[this.comboBoxEdit1.SelectedIndex].Nickname; } string member = this.buttonEdit1.Text.Equals(this.buttonEdit1.Properties.NullText) ? "" : this.buttonEdit1.Text; EvaluateNetOperation.GetStaffEvaluateList(GetStaffEvaluateListResult, page.Build(), this.startTime, this.endTime, staff, member); }
//获取销售记录 private void GetProductIndentList() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = pageBegin, Pagesize = pageSize, Fieldname = 0, Order = 0, }; string keyWords = null; if (!this.buttonEdit1.Text.Equals(this.buttonEdit1.Properties.NullText)) { keyWords = this.buttonEdit1.Text; } int status = this.comboBoxEdit1.SelectedIndex + 1; ProductNetOperation.GetProdcutIndentList(GetProdcutIndentListResult, page.Build(), status, addStart, addEnd, handleStart, handleEnd, keyWords); }
private void GetUserRechargeRecord() { StructPage.Builder page = new StructPage.Builder() { Pagebegin = this.pageBeign, Pagesize = this.pageSize, Order = 1, Fieldname = 0, }; string name = ""; PAYCHANNEL paychannel = PAYCHANNEL.无; Enum.TryParse <PAYCHANNEL>(this.comboBoxEdit1.Text, out paychannel); if (!buttonEdit1.Text.Equals(buttonEdit1.Properties.NullText)) { name = buttonEdit1.Text; } RecordNetOperation.GetUserRechargeRecord(GetUserRechargeRecordResult, page.Build(), this.startTime, this.endTime, (int)paychannel, name); }
//用户消费记录查询 private void GetUserConsumeRecord(bool isFilter) { if (isFilter) { this.pageView1.InitPageViewData(); } CONSUMEUSE consume = CONSUMEUSE.无; Enum.TryParse <CONSUMEUSE>(this.useComboBoxEdit.Text, out consume); PAYCHANNEL paychannel = PAYCHANNEL.无; Enum.TryParse <PAYCHANNEL>(this.payChannelComboBoxEdit.Text, out paychannel); StructPage.Builder page = new StructPage.Builder() { Pagesize = pageView1.PageSize, Pagebegin = pageView1.PageBegin, Fieldname = 0, Order = 0, }; RecordNetOperation.GetUserConsumeRecord(GetUserConsumeRecordResult, page.Build(), this.startTime, this.endTime, (int)consume, (int)paychannel, -1); }
private void GetProductList() { Int32 category = -1; if (this.comboBoxEdit1.SelectedIndex > 0) { category = this.productTypes[this.comboBoxEdit1.SelectedIndex - 1].typeId; } string keyWords = ""; if (!this.buttonEdit1.Text.Equals(this.buttonEdit1.Properties.NullText)) { keyWords = this.buttonEdit1.Text; } StructPage.Builder page = new StructPage.Builder() { Pagesize = pageSize, Pagebegin = pageBegin, Fieldname = 0, Order = 0, }; ProductNetOperation.GetProductList(GetProductListResult, page.Build(), category, keyWords); }