Пример #1
0
        private void EditAssoInfo(HttpContext context)
        {
            int itemid = Convert.ToInt32(context.Request["ItemId"]);

            jsonModel = bll.GetEntityById(itemid);
            if (jsonModel.errNum == 0)
            {
                Asso_Info item = jsonModel.retData as Asso_Info;
                item.Id        = itemid;
                item.Name      = context.Request["Name"];
                item.Slogan    = context.Request["Slogan"];
                item.Introduce = context.Request["Introduce"];
                if (!string.IsNullOrEmpty(context.Request["LeaderNo"]))
                {
                    item.LeaderNo = context.Request["LeaderNo"];
                }
                if (!string.IsNullOrEmpty(context.Request["SecondLeaderNo"]))
                {
                    item.SecondLeaderNo = context.Request["SecondLeaderNo"];
                }
                item.AssoType  = Convert.ToInt32(context.Request["AssoType"]);
                item.ApplyType = Convert.ToByte(context.Request["ApplyType"] ?? "0");
                item.PicURL    = context.Request["PicURL"];
                item.EditUID   = context.Request["LoginUID"];
                jsonModel      = bll.EditAssoInfo(item);
            }
        }
Пример #2
0
        private void ChangeBackPic(HttpContext context)
        {
            int itemid = Convert.ToInt32(context.Request["ItemId"]);

            jsonModel = bll.GetEntityById(itemid);
            if (jsonModel.errNum == 0)
            {
                Asso_Info item = jsonModel.retData as Asso_Info;
                item.Id         = itemid;
                item.BackPicUrl = context.Request["BackPicUrl"];
                jsonModel       = bll.Update(item);
            }
        }
Пример #3
0
        /*******************错误信息应答*****************/

        public override void OnForAssoInfo(Trade_Head msgHead, Asso_Info pAssoInfo)
        {
            if (strategy == null)
            {
                return;
            }
            try
            {
                strategy.OnJHTradeHead(msgHead);
                strategy.OnJHTradeForAssoInfo(msgHead, pAssoInfo);
            }catch (Exception ex)
            {
                strategy.OnExceptionMessage(EnumStateFlag.交易回报, ex.ToString());
            }
        }
Пример #4
0
        private void AddAssoInfo(HttpContext context)
        {
            Asso_Info item = new Asso_Info();

            item.Id             = 0;
            item.Name           = context.Request["Name"];
            item.Slogan         = context.Request["Slogan"];
            item.Introduce      = context.Request["Introduce"];
            item.LeaderNo       = context.Request["LeaderNo"];
            item.SecondLeaderNo = context.Request["SecondLeaderNo"];
            item.AssoType       = Convert.ToInt32(context.Request["AssoType"]);
            item.ApplyType      = Convert.ToByte(context.Request["ApplyType"] ?? "0");
            item.PicURL         = context.Request["PicURL"];
            item.CreateUID      = context.Request["LoginUID"];
            jsonModel           = bll.EditAssoInfo(item);
        }
Пример #5
0
 /// <summary>
 /// 会员信息
 /// </summary>
 /// <param name="msgHead"></param>
 /// <param name="pAssoInfo"></param>
 virtual public void OnJHTradeForAssoInfo(Trade_Head msgHead, Asso_Info pAssoInfo)
 {
 }