Ejemplo n.º 1
0
        /// <summary>
        /// init gundongtupin
        /// </summary>
        void InitGunDongTuPian()
        {
            int recordCount = 0;
            var chaXun      = new EyouSoft.Model.YlStructure.MWzGuangGaoChaXunInfo();

            chaXun.WeiZhi = EyouSoft.Model.EnumType.YlStructure.WzGuangGaoWeiZhi.积分商城首页轮换图片;
            var items = new EyouSoft.BLL.YlStructure.BWz().GetGuangGaos(YuMingInfo.CompanyId, 5, 1, ref recordCount, chaXun);

            StringBuilder s1 = new StringBuilder();
            StringBuilder s2 = new StringBuilder();

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    string url    = item.Url;
                    string target = "target=\"_blank\"";

                    if (string.IsNullOrEmpty(url))
                    {
                        url    = "javascript:void(0)";
                        target = string.Empty;
                    }

                    s1.AppendFormat("<li><a href=\"{0}\" {1}><img src=\"{2}\" /></a></li>", url, target, ErpFilepath + item.Filepath);

                    s2.AppendFormat("<li><a href=\"javascript:void(0)\"></a></li>");
                }
            }

            ltr1.Text = s1.ToString();
            ltr2.Text = s2.ToString();
        }
Ejemplo n.º 2
0
        void InitGuangGao()
        {
            int recordCount = 0;
            var chaXun      = new EyouSoft.Model.YlStructure.MWzGuangGaoChaXunInfo();

            chaXun.WeiZhi = EyouSoft.Model.EnumType.YlStructure.WzGuangGaoWeiZhi.注册页右侧大图;

            var items = new EyouSoft.BLL.YlStructure.BWz().GetGuangGaos(YuMingInfo.CompanyId, 1, 1, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                ltrGuangGao.Text = string.Format("<img src=\"{0}\">", ErpFilepath + items[0].Filepath);
            }
            else
            {
                ltrGuangGao.Text = string.Format("<img  src=\"\">");
            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string type      = Utils.GetQueryStringValue("type");
            string tuangouId = Utils.GetQueryStringValue("TuanGouId");

            if (type == "CheckPage")
            {
                RCWE(SelectProduct());
            }
            if (type == "sava")
            {
                RCWE(Sava());
            }
            if (type == "address")
            {
                RCWE(AddressSava());
            }
            if (type == "getdizhi")
            {
                GetDiZhi();
            }

            if (string.IsNullOrEmpty(tuangouId))
            {
                RCWE("请求异常");
            }
            Master.WeiZhi = EyouSoft.Model.EnumType.YlStructure.WzGuangGaoWeiZhi.团购横幅;
            if (!IsPostBack)
            {
                BHangQi bll_hangqi = new BHangQi();
                Model = bll_hangqi.GetTuanGouInfo(tuangouId);
                if (Model == null)
                {
                    RCWE("请求异常");
                }

                EyouSoft.BLL.YlStructure.BJiChuXinXi bll_jichuxinxi = new BJiChuXinXi();
                EyouSoft.BLL.YlStructure.BHuiYuan    HuiYuan        = new EyouSoft.BLL.YlStructure.BHuiYuan();
                MJiChuXinXiChaXunInfo searchModel = new MJiChuXinXiChaXunInfo();
                Hangqi.Value     = Model.HangQiId;
                RiQiID.Value     = Model.RiQiId;
                FangXingID.Value = Model.FangXingId.ToString();
                TuanGouId.Value  = Model.TuanGouId;
                this.BinkeStr    = Model.BinKeLeiXing;


                MHangQiInfo   hangQiInfo   = bll_hangqi.GetHangQiInfo(Model.HangQiId);
                MChuanZhiInfo chuanZhiInfo = bll_jichuxinxi.GetChuanZhiInfo(hangQiInfo.ChuanZhiId);
                ChuanZhiId                = hangQiInfo.ChuanZhiId;
                AddressFree.Value         = hangQiInfo.FaPiaoKuaiDiJinE.ToString();
                KuaiDiJinE                = hangQiInfo.FaPiaoKuaiDiJinE;
                txt_YL_FeiYong.Text       = hangQiInfo.FeiYongShuoMing;
                txt_YL_YuDingXuZhi.Text   = hangQiInfo.YuDingXuZhi;
                txt_YL_YouQing.Text       = hangQiInfo.YouQingTiShi;
                txt_YL_YouLunGongLue.Text = hangQiInfo.GongLue;
                //this.FangxingStr = string.Join(",", chuanZhiInfo.FangXings.Select(x => x.MingCheng).ToArray());
                this.FangxingStr = JiChuXinXi(Model.FangXingId);

                #region 用户点评

                decimal FenShu      = HuiYuan.GetDianPingJunFen(Model.HangQiId);
                int     recordCount = 0;
                MWzDianPingChaXunInfo DianPingChaXun = new MWzDianPingChaXunInfo()
                {
                    HangQiId = Model.HangQiId,
                    IsShenHe = true
                };
                var DianPinglist = HuiYuan.GetDianPings(YuMingInfo.CompanyId, 5, 1, ref recordCount, DianPingChaXun);
                if (DianPinglist != null && DianPinglist.Count > 0)
                {
                    rptListDianPing.DataSource = DianPinglist;
                    rptListDianPing.DataBind();
                }
                string DianPingHtml = "";
                if (FenShu > 0)
                {
                    DianPingHtml += "<em>" + FenShu.ToString("F2") + "</em>分";
                }
                else
                {
                    DianPingHtml += "<em>0</em>分";
                }
                if (recordCount > 0)
                {
                    DianPingHtml += "(共" + recordCount + "人点评)";
                }
                else
                {
                    DianPingHtml += "(暂无点评)";
                }
                litYongHuDingPing.Text = DianPingHtml;
                #endregion

                #region 咨询问答
                int Count = 0;
                MWzWenDaChaXunInfo WenDaChaxun = new MWzWenDaChaXunInfo()
                {
                    HangQiId = Model.HangQiId,
                    IsHuiFu  = true
                };
                var WendaList = HuiYuan.GetWenDas(YuMingInfo.CompanyId, 5, 1, ref Count, WenDaChaxun);
                if (WendaList != null && WendaList.Count > 0)
                {
                    rptListZiXunWD.DataSource = WendaList;
                    rptListZiXunWD.DataBind();
                }

                #endregion

                Dengchuan_gangkou = JiChuXinXi(hangQiInfo.ChuFaGangKouId);
                Xiachuan_gangkou  = JiChuXinXi(hangQiInfo.DiDaGangKouId);

                this.Hangxian_XingZhi = hangQiInfo.HangXianXingZhi;

                this.TuJingChengShi = hangQiInfo.TuJingChengShi;
                this.TianShu1       = hangQiInfo.TianShu1;
                this.TianShu2       = hangQiInfo.TianShu2;


                JiaGes(Model.JiaGes.Select(x => new { LeiXingId = x.BinKeLeiXingId, MingCheng = JiChuXinXi(x.BinKeLeiXingId), JiaGe = x.JiaGe }).ToArray());

                YouLunInfo(chuanZhiInfo.ChuanZhiId);
                ChuanZhiId = chuanZhiInfo.ChuanZhiId;
                XingChengs(hangQiInfo.XingChengs);

                InsertHangQJiLu(hangQiInfo.HangQiId);

                ltrChangYongDiZhi.Text = GetDiZhiHtml();

                EyouSoft.Model.YlStructure.MWzKvInfo httk = null;

                if (hangQiInfo.LeiXing == YouLunLeiXing.长江游轮)
                {
                    httk = new EyouSoft.BLL.YlStructure.BWz().GetKvInfo(YuMingInfo.CompanyId, EyouSoft.Model.EnumType.YlStructure.WzKvKey.长江游轮合同条款);
                }
                if (hangQiInfo.LeiXing == YouLunLeiXing.海洋邮轮)
                {
                    httk = new EyouSoft.BLL.YlStructure.BWz().GetKvInfo(YuMingInfo.CompanyId, EyouSoft.Model.EnumType.YlStructure.WzKvKey.海洋邮轮合同条款);
                }
                if (httk != null && !string.IsNullOrEmpty(httk.V))
                {
                    ltrHeTongTiaoKuan.Text = httk.V;
                }
            }
        }