Example #1
0
        public static string Logcardact(int actid, int cardid, int comid)
        {
            var totalcount = 0;

            try
            {
                var         prodata    = new B2bCrmData();
                var         list       = prodata.Logcardact(actid, cardid, comid, out totalcount);
                IEnumerable result     = "";
                var         memcompany = new MemberChannelcompanyData();
                if (list != null)
                {
                    result = from pro in list
                             select new
                    {
                        ID     = pro.ID,
                        CardID = MemberCardData.GetCardId(pro.CardID).Cardcode,
                        ACTID  = MemberActivityData.GetActById(pro.ACTID).Title,
                        //OrderId = pro.OrderId,
                        ServerName = pro.ServerName,
                        //Sales_admin = pro.Sales_admin,
                        //Num_people = pro.Num_people,
                        Usesubdate       = pro.Usesubdate,
                        Per_capita_money = pro.Per_capita_money * pro.Num_people,
                        //Member_return_money = pro.Member_return_money,
                    }
                }
                ;

                return(JsonConvert.SerializeObject(new { type = 100, msg = result, totalcount = totalcount }));
            }
            catch (Exception ex)
            {
                return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message }));

                throw;
            }
        }