Ejemplo n.º 1
0
        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);
        }