Esempio n. 1
0
        /// <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);
        }