コード例 #1
0
        public ActionResult Save()
        {
            RoleModel e = new RoleModel();

            e = ObjectUtil.Eval <RoleModel>(e, Request.Params, "", "");
            JsResultObject re = BaseZdBiz.SaveOrUpdate(e, "角色");

            return(JsonText(re, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
        public ActionResult Save()
        {
            GuestModel guest = new GuestModel();

            guest = ObjectUtil.Eval(guest, Request.Params, "", "");
            JsResultObject result = BaseZdBiz.SaveOrUpdate(guest, "住客");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public ActionResult SaveHotelDetail(string id)
        {
            HotelDetailModel e = BaseZdBiz.Load <HotelDetailModel>(id);

            e = ObjectUtil.Eval <HotelDetailModel>(e, Request.Params, "", "");
            JsResultObject re = BaseZdBiz.SaveOrUpdate(e, "酒店详细信息");

            return(JsonText(re, JsonRequestBehavior.AllowGet));
        }
コード例 #4
0
        public ActionResult Save()
        {
            UserModel e = new UserModel();

            e = ObjectUtil.Eval <UserModel>(e, Request.Params, "", "");
            JsResultObject re = BaseZdBiz.Save(e);

            return(JsonText(re, JsonRequestBehavior.AllowGet));
        }
コード例 #5
0
        public ActionResult SaveDictType()
        {
            DictTypeModel dictType = new DictTypeModel();

            dictType = ObjectUtil.Eval(dictType, Request.Params, "", "");
            JsResultObject result = BaseZdBiz.SaveOrUpdate(dictType, "字典类型");

            this.reflashDictCache();
            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #6
0
        public ActionResult SaveRecommend()
        {
            HotelRecommendModel hotel = new HotelRecommendModel();

            hotel = ObjectUtil.Eval(hotel, Request.Params, "", "");
            if (string.IsNullOrEmpty(hotel.hotelId))
            {
                hotel.hotelId = hotel.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(hotel, "酒店推荐");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #7
0
        public ActionResult SaveMemberCommentReward()
        {
            MemberRewardModel e = new MemberRewardModel();

            e = ObjectUtil.Eval(e, Request.Params, "", "");
            if (string.IsNullOrEmpty(e.id))
            {
                e.id = e.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "会员点评奖励");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #8
0
        public ActionResult SaveOuterLink(string id)
        {
            OuterLinkModel e = new OuterLinkModel();

            e = ObjectUtil.Eval(e, Request.Params, "", "");
            if (string.IsNullOrEmpty(e.id))
            {
                e.id = e.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "外部链接");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #9
0
        public ActionResult SaveExhi()
        {
            ExhiCommentModel e = new ExhiCommentModel();

            e = ObjectUtil.Eval(e, Request.Params, "", "");
            if (string.IsNullOrEmpty(e.id))
            {
                e.id = e.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(e, "展会评论");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #10
0
        public ActionResult Save()
        {
            DictModel dict = new DictModel();

            dict = ObjectUtil.Eval(dict, Request.Params, "", "");
            if (string.IsNullOrEmpty(dict.id))
            {
                dict.id = dict.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(dict, "字典");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #11
0
        public ActionResult Save()
        {
            GeoModel geo = new GeoModel();

            geo = ObjectUtil.Eval(geo, Request.Params, "", "");
            if (string.IsNullOrEmpty(geo.id))
            {
                geo.id = geo.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(geo, "地理信息");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #12
0
        public ActionResult Save()
        {
            ExhiModel exhi = new ExhiModel();

            exhi.status = BaseModel.STATUS_ACTIVATE;
            exhi        = ObjectUtil.Eval(exhi, Request.Params, "", "");
            if (string.IsNullOrEmpty(exhi.id))
            {
                exhi.id = exhi.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(exhi, "展会");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #13
0
        public ActionResult Save()
        {
            NewsModel news = new NewsModel();

            news.status = BaseModel.STATUS_ACTIVATE;

            news = ObjectUtil.Eval(news, Request.Params, "", "");
            if (string.IsNullOrEmpty(news.id))
            {
                news.id = news.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(news, "新闻");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #14
0
        public ActionResult Save()
        {
            BrandModel brand = new BrandModel();

            brand.status = BaseModel.STATUS_ACTIVATE;

            brand = ObjectUtil.Eval(brand, Request.Params, "", "");
            if (string.IsNullOrEmpty(brand.brandID))
            {
                brand.brandID = brand.createPk().ToString();
            }
            JsResultObject result = BaseZdBiz.SaveOrUpdate(brand, "连锁品牌");

            return(JsonText(result, JsonRequestBehavior.AllowGet));
        }
コード例 #15
0
        public ActionResult DoSubmitOrder()
        {
            OrderModel order = new OrderModel();

            order = ObjectUtil.Eval <OrderModel>(order, Request.Params, "", "");


            DateTime checkInDate      = order.checkInDate;
            DateTime arraivalLateTime = new DateTime(
                checkInDate.Year, checkInDate.Month, checkInDate.Day
                , order.arraivalLateTime.Hour, 0, 0
                );

            order.arraivalLateTime  = arraivalLateTime;
            order.arraivalEarlyTime = arraivalLateTime.AddHours(-3);

            ELongApiBiz    elongBiz = ELongApiBiz.GetInstant();
            JsResultObject re       = elongBiz.submitHotelOrder(ref order);

            BaseZdBiz.SaveOrUpdate(order, "");
            return(JsonText(re, JsonRequestBehavior.AllowGet));
        }