Exemple #1
0
        void BindPublish(HttpContext context, UserInfo userInfo)
        {
            int companyId = EyouSoft.Common.Utils.GetInt(context.Request["companyId"]);

            EyouSoft.BLL.RouteStructure.Route       bll   = new EyouSoft.BLL.RouteStructure.Route();
            EyouSoft.Model.RouteStructure.RouteInfo model = bll.GetRouteInfo(EyouSoft.Common.Utils.GetInt(context.Request["id"]));

            xianlu xl = new xianlu();

            xl.xlArea      = model.AreaId;
            xl.xlDays      = model.RouteDays;
            xl.xlFuwu      = "";
            xl.xlId        = model.RouteId;
            xl.xlName      = model.RouteName;
            xl.xclist      = new List <XingCheng>();
            xl.projectList = model.RouteNormalInfo.Services;
            xl.noProject   = model.RouteNormalInfo.BuHanXiangMu;
            xl.buy         = model.RouteNormalInfo.GouWuAnPai;
            xl.child       = model.RouteNormalInfo.ErTongAnPai;
            xl.Notes       = model.RouteNormalInfo.ZhuYiShiXiang;
            xl.owner       = model.RouteNormalInfo.ZiFeiXIangMu;
            xl.Reminder    = model.RouteNormalInfo.WenXinTiXing;
            foreach (var l in model.RouteNormalInfo.Plans)
            {
                xl.xclist.Add(new XingCheng(l.Interval, l.Vehicle, l.Hotel, l.Dinner.Contains("1") ? 1 : 0, l.Dinner.Contains("2") ? 1 : 0, l.Dinner.Contains("3") ? 1 : 0, l.Dinner.Contains("4") ? 1 : 0, l.Plan, l.FilePath));
            }
            context.Response.Write(JsonConvert.SerializeObject(xl));
        }
Exemple #2
0
        /// <summary>
        /// 快速发布
        /// </summary>
        void BindQuickPublish(HttpContext context, UserInfo userInfo)
        {
            int companyId = EyouSoft.Common.Utils.GetInt(context.Request["companyId"]);

            EyouSoft.BLL.RouteStructure.Route       bll   = new EyouSoft.BLL.RouteStructure.Route();
            EyouSoft.Model.RouteStructure.RouteInfo model = bll.GetRouteInfo(EyouSoft.Common.Utils.GetInt(context.Request["id"]));

            xianlu xl = new xianlu();

            xl.xlArea     = model.AreaId;
            xl.xlDays     = model.RouteDays;
            xl.xlFuwu     = model.RouteQuickInfo.Service;
            xl.xlId       = model.RouteId;
            xl.xlName     = model.RouteName;
            xl.xlXianchen = model.RouteQuickInfo.QuickPlan;
            context.Response.Write(JsonConvert.SerializeObject(xl));
        }