public static void GetIncomeDetail(DataResultBlock resultBlock, string start, string end, IncomeType type) { CSEarning.Builder earing = new CSEarning.Builder(); earing.Starttime = start; earing.Endtime = end; MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsEarning(earing); SendModel send = new SendModel() { content = content.Build(), }; if (type == IncomeType.DAY_INCOME) { send.cmd = Cmd.CMD_EARNING_DAY; } else if (type == IncomeType.MONTH_INCOME) { send.cmd = Cmd.CMD_EARNING_MONTH; } else { send.cmd = Cmd.CMD_EARNING_YEAR; } NetMessageManage.SendMsg(send, resultBlock); }
public static void GetProductList(DataResultBlock resultBlock, StructPage page, Int32 category, string keywords) { CSGoodsFind.Builder products = new CSGoodsFind.Builder(); products.SetPage(page); if (category >= 0) { products.SetCategory(category); } if (keywords != null && !keywords.Equals("")) { products.SetKeywords(keywords); } //System.Console.WriteLine(products); ; MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsGoodsFind(products); SendModel send = new SendModel() { cmd = Cmd.CMD_GOODS_FIND, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 用户上网记录 /// </summary> /// <param name="resultBlock">结果回调</param> /// <param name="page">分页</param> /// <param name="start">开始时间</param> /// <param name="end">结束时间</param> /// <param name="name">姓名或卡号</param> /// <param name="mid">会员id,个人搜索记录使用</param> /// <param name="comId">电脑id</param> public static void GetUserNetRecord(DataResultBlock resultBlock, StructPage page, string start, string end, string name, int mid, int comId) { CSQueryEmk.Builder emk = new CSQueryEmk.Builder(); emk.Page = page; if (start != null && !start.Equals("")) { emk.Starttime = start; emk.Stoptime = end; } if (name != null && !name.Equals("")) { emk.Name = name; } if (mid >= 0) { emk.Memberid = mid; } if (comId >= 0) { emk.Computerid = comId; } System.Console.WriteLine(emk); MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsQueryEmk = emk.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_QUERY_EMBARKATION, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
public static void GetLogList(DataResultBlock resultBlock, StructPage page, string start, string end, string staff, string keyword) { CSLog.Builder log = new CSLog.Builder(); log.Page = page; if (start != null && !start.Equals("")) { log.Starttime = start; log.Endtime = end; } if (staff != null && !staff.Equals("")) { log.Operator = staff; } if (keyword != null && !keyword.Equals("")) { log.Keyword = keyword; } // System.Console.WriteLine(log); MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsLog = log.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_LOG, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 按条件查询会员 /// </summary> /// <param name="resultBlock"></param> /// <param name="page">分页</param> /// <param name="status">状态</param> /// <param name="right">会员等级</param> /// <param name="keywords">姓名</param> public static void SearchConditionMember(DataResultBlock resultBlock, StructPage page, Int32 status, Int32 right, string keywords) { CSMemberFind.Builder memberFind = new CSMemberFind.Builder(); memberFind.SetPage(page); if (status > 0) { memberFind.SetStatus(status); } if (right > 0) { memberFind.SetRight(right); } if (keywords != null && !keywords.Equals("")) { memberFind.SetKeywords(keywords); System.Console.WriteLine(keywords); } MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsMemberFind(memberFind); SendModel send = new SendModel() { cmd = Cmd.CMD_MEMBER_FIND, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 获取员工评价列表 /// </summary> /// <param name="resultBlock"></param> /// <param name="page">页数</param> /// <param name="start">开始时间</param> /// <param name="end">结束时间</param> /// <param name="staff">员工姓名</param> /// <param name="member">评价人姓名或身份证号</param> public static void GetStaffEvaluateList(DataResultBlock resultBlock, StructPage page, string start, string end, string staff, string member) { CSStaffComment.Builder comment = new CSStaffComment.Builder(); comment.Page = page; comment.Type = 2; if (start != null && !start.Equals("")) { comment.Starttime = start; comment.Endtime = end; } if (staff != null && !staff.Equals("")) { comment.Staff = staff; } if (member != null && !member.Equals("")) { comment.Customer = member; } System.Console.WriteLine(comment); MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsStaffComment = comment.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_STAFF_COMMENT, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 获取用户充值记录 /// </summary> /// <param name="resultBlock">结果回调</param> /// <param name="page">分页</param> /// <param name="start">开始时间</param> /// <param name="end">结束时间</param> /// <param name="pay">支付方式</param> /// <param name="name">会员姓名或卡号</param> public static void GetUserRechargeRecord(DataResultBlock resultBlock, StructPage page, string start, string end, int pay, string name) { CSQueryCharge.Builder charge = new CSQueryCharge.Builder(); charge.Page = page; if (start != null && !start.Equals("")) { charge.Starttime = start; charge.Stoptime = end; } if (pay > 0) { charge.Paymode = pay; } if (name != null && !name.Equals("")) { charge.Name = name; } MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsQueryCharge = charge.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_QUERY_CHARGE, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 用户消费记录 /// </summary> /// <param name="resultBlock">结果回调</param> /// <param name="page">分页</param> /// <param name="start">开始时间</param> /// <param name="end">结束时间</param> /// <param name="use">用途</param> /// <param name="pay">支付方式</param> /// <param name="mid">会员id,个人消费记录查询</param> public static void GetUserConsumeRecord(DataResultBlock resultBlock, StructPage page, string start, string end, int use, int pay, int mid) { CSQueryTrade.Builder consume = new CSQueryTrade.Builder(); consume.Page = page; if (start != null && !start.Equals("")) { consume.Starttime = start; consume.Stoptime = end; } if (use > 0) { consume.Usage = use; } if (pay > 0) { consume.Paymode = pay; } if (mid >= 0) { consume.Memberid = mid; } MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsQueryTrade = consume.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_QUERY_CONSUM, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
public static void GetSellRecordList(DataResultBlock resultBlock, StructPage page, Int32 id, string start, string end) { CSSalesRecord.Builder record = new CSSalesRecord.Builder() { Page = page, Goodsid = id }; if (start != null && !start.Equals("")) { record.SetBegintime(start); record.SetEndtime(end); } MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsSalesRecord(record); SendModel send = new SendModel() { cmd = Cmd.CMD_GOODS_SALES, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
public static void UpdateAreaComputer(DataResultBlock resultBlock, CSComputerUpdate update) { MessageContent.Builder content = new MessageContent.Builder(); content.SetCsComputerUpdate(update); content.SetMessageType(1); SendModel send = new SendModel() { cmd = Cmd.CMD_COMPUTER_UPDATE, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
//费率管理更新 public static void RateManageUpdate(DataResultBlock resultBlock, CSSysBillUpdate update) { MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsSysBillUpdate(update); SendModel send = new SendModel() { cmd = Cmd.CMD_SYS_BILLING_UPDATE, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 客户端认证 /// </summary> public static void ClientAuthen(DataResultBlock resultBlock) { CSAuthen.Builder auther = new CSAuthen.Builder(); auther.Text = "zyc"; MessageContent.Builder content = new MessageContent.Builder(); content.SetCsAuthen(auther); content.SetMessageType(1); SendModel send = new SendModel() { cmd = Cmd.CMD_AUTHEN, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 处理呼叫 /// </summary> /// <param name="resultBlock"></param> /// <param name="callid"></param> public static void HandleCall(DataResultBlock resultBlock, int callid) { CSCallProcess.Builder call = new CSCallProcess.Builder(); call.Callid = callid; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsCallProcess = call.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_CALL_PROCESS, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 进入充值入口 /// </summary> /// <param name="resultBlock">反馈结果回调</param> /// <param name="card">身份证号</param> public static void BeiginRecharge(DataResultBlock resultBlock, string card) { CSEmkCharge.Builder charge = new CSEmkCharge.Builder(); charge.Cardnumber = card; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsEmkCharge = charge.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_EMK_RECHARGE, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
//获取会员列表 public static void GetMemberList(DataResultBlock resultBlock, StructPage page) { CSMemberList.Builder memberlist = new CSMemberList.Builder(); memberlist.SetPage(page); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsMemberList(memberlist); SendModel send = new SendModel() { cmd = Cmd.CMD_MEMBER_LIST, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 修改管理员的角色名称 /// </summary> public static void UpdateManagerName(DataResultBlock resultBlock, Int32 roleId, string name) { CSRoleUpdate.Builder update = new CSRoleUpdate.Builder(); update.SetName(name); update.SetRoleid(roleId); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsRoleUpdate(update.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_ROLE_UPDATE, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 添加身份证信息(添加临时会员) /// </summary> /// <param name="resultBlock">结果反馈</param> /// <param name="card">身份证信息</param> public static void AddCardInfo(DataResultBlock resultBlock, StructCard card) { CSEmkAddCardInfo.Builder info = new CSEmkAddCardInfo.Builder(); info.Card = card; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsEmkAddCardInfo = info.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_EMK_ADD_CARDINFO, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 添加管理员新角色 /// </summary> public static void AddManager(DataResultBlock resultBlock, string name) { CSRoleAdd.Builder add = new CSRoleAdd.Builder(); add.SetName(name); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsRoleAdd(add.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_ROLE_ADD, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 下机结算 /// </summary> public static void CardCheckOut(DataResultBlock resultBlock, string card) { CSEmkCheckout.Builder checkout = new CSEmkCheckout.Builder(); checkout.SetCardnumber(card); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsEmkCheckout(checkout); SendModel send = new SendModel() { cmd = Cmd.CMD_EMK_CHECKOUT, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 处理商品订单 /// </summary> /// <param name="resultBlock"></param> /// <param name="orderid"></param> public static void HandleProductIndent(DataResultBlock resultBlock, Int32 orderid) { CSOrderProc.Builder process = new CSOrderProc.Builder(); process.Orderid = orderid; MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsOrderProc(process); SendModel send = new SendModel() { cmd = Cmd.CMD_GOODS_ORDER_PROCESS, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 修改员工信息 /// </summary> /// <param name="resultBlock"></param> /// <param name="account"></param> public static void UpdateStaff(DataResultBlock resultBlock, StructAccount account) { CSAccountUpdate.Builder update = new CSAccountUpdate.Builder(); update.SetAccount(account); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsAccountUpdate(update.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_STAFF_UPDATE, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 添加员工 /// </summary> /// <param name="resultBlock"></param> /// <param name="account"></param> public static void AddStaff(DataResultBlock resultBlock, StructAccount account) { CSAccountAdd.Builder add = new CSAccountAdd.Builder(); add.SetAccount(account); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsAccountAdd(add.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_STAFF_ADD, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 删除员工 /// </summary> /// <param name="resultBlock"></param> public static void DeleteStaffs(DataResultBlock resultBlock, string adminid) { CSAccountDel.Builder del = new CSAccountDel.Builder(); del.SetAdminid(adminid); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsAccountDel(del.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_STAFF_DEL, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 删除管理员的角色 /// </summary> public static void DeleteManager(DataResultBlock resultBlock, Int32 id) { CSRoleDel.Builder del = new CSRoleDel.Builder(); del.SetRoleid(id); MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsRoleDel(del.Build()); SendModel send = new SendModel() { cmd = Cmd.CMD_ROLE_DEL, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 通过身份证号查询用户信息 /// </summary> /// <param name="resultBlock">查询结果反馈</param> /// <param name="card">身份证号</param> public static void MemberInfo(DataResultBlock resultBlock, string card) { CSEmkUserInfo.Builder info = new CSEmkUserInfo.Builder() { Cardnumber = card, }; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsEmkUserInfo = info.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_EMK_USERINFO, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
public static void GetJXList(DataResultBlock resultBlock, Int32 year, Int32 month) { CSStaffPerform.Builder perform = new CSStaffPerform.Builder(); perform.Year = year; perform.Month = month; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsStaffPerform = perform.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_STAFF_PERFORM, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 会员信息查询 /// </summary> public static void MemberInfo(DataResultBlock resultBlock, int mid) { CSMemberCardInfo.Builder info = new CSMemberCardInfo.Builder() { Memberid = mid, }; MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsMemberCardInfo(info); SendModel send = new SendModel() { cmd = Cmd.CMD_MEMBER_CARD_INFO, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 上传图片 /// </summary> /// <param name="resultBlock">反馈结果</param> /// <param name="name">图片名称</param> /// <param name="data">图片数据</param> public static void UploadPicture(DataResultBlock resultBlock, string name, string data) { CSUploadPicture.Builder picture = new CSUploadPicture.Builder(); picture.Name = name; picture.Data = data; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsUpload = picture.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_UPLOAD_PICTURE, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
public static void SysInfo(DataResultBlock resultBlock, string parent) { CSSysInto.Builder info = new CSSysInto.Builder() { Parent = parent, }; MessageContent.Builder content = new MessageContent.Builder(); content.SetMessageType(1); content.SetCsSysInfo(info); SendModel send = new SendModel() { cmd = Cmd.CMD_SYS_INFO, content = content.Build() }; NetMessageManage.SendMsg(send, resultBlock); }
/// <summary> /// 添加会员入口 /// </summary> /// <param name="resultBlock">反馈结果回调</param> /// <param name="card">身份证号</param> public static void OpenMember(DataResultBlock resultBlock, string card) { CSEmkApplyMember.Builder member = new CSEmkApplyMember.Builder(); member.Cardnumber = card; member.Channel = (int)MANAGECHANNEL.系统后台; MessageContent.Builder content = new MessageContent.Builder(); content.MessageType = 1; content.CsEmkApplyMember = member.Build(); SendModel send = new SendModel() { cmd = Cmd.CMD_EMK_APPLY_MEMBER, content = content.Build(), }; NetMessageManage.SendMsg(send, resultBlock); }