Esempio n. 1
0
        /// <summary>
        /// 会员名称处理
        /// </summary>
        /// <param name="HuiYuanID"></param>
        /// <param name="IsNiMing"></param>
        /// <returns></returns>
        protected string HuiYuanMingCheng(object HuiYuanID, object IsNiMing)
        {
            if ((bool)IsNiMing)
            {
                return("匿名");
            }
            else
            {
                EyouSoft.BLL.YlStructure.BHuiYuan bll = new EyouSoft.BLL.YlStructure.BHuiYuan();
                var HuiYuan = bll.GetHuiYuanInfo(HuiYuanID.ToString());
                var name    = HuiYuan != null?Utils.GetText(HuiYuan.XingMing, 3) + "****" : "***";

                return(name);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 邮寄地址
        /// </summary>
        /// <returns></returns>
        string GetDiZhiHtml()
        {
            MYlHuiYuanInfo m       = null;
            var            isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out m);

            if (!isLogin)
            {
                return(string.Empty);
            }

            EyouSoft.Model.YlStructure.MHuiYuanDiZhiChaXunInfo chaxun = new MHuiYuanDiZhiChaXunInfo()
            {
                HuiYuanId = m.HuiYuanId
            };
            int recordCount = 0;

            StringBuilder s     = new StringBuilder();
            var           items = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhis(YuMingInfo.CompanyId, 20, 1, ref recordCount, chaxun);

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    string Ischeck = "";

                    if ((bool)item.IsMoRen)
                    {
                        Ischeck = "select=\"select\"";
                    }
                    string address = item.DiZhi + "&nbsp;&nbsp;邮编:" + item.YouBian + "&nbsp;&nbsp;联系电话" + item.DianHua;
                    s.AppendFormat("<li> <label><input type=\"radio\" value=\"{0}\" name=\"addressCk\" {1}>{2}</label><a href=\"javascript:;\"></a></li>",
                                   item.DiZhiId, Ischeck, address);
                }
            }

            return(s.ToString());
        }
Esempio n. 3
0
        /// <summary>
        /// 地址添加
        /// </summary>
        /// <returns></returns>
        protected string AddressSava()
        {
            string         str     = "";
            bool           isLogin = false;
            MYlHuiYuanInfo m       = null;

            isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out m);

            #region 赋值
            string            Name     = Utils.GetFormValue("txtName");
            string            Tell     = Utils.GetFormValue("txtTell");
            int               province = Utils.GetInt(Utils.GetFormValue("sel_province"));
            int               city     = Utils.GetInt(Utils.GetFormValue("sel_city"));
            int               country  = Utils.GetInt(Utils.GetFormValue("sel_country"));
            string            Adress   = Utils.GetFormValue("txtAdress");
            string            Zip      = Utils.GetFormValue("txtZip");
            MHuiYuanDiZhiInfo model    = new MHuiYuanDiZhiInfo()
            {
                ShengFenId = province,
                ChengShiId = city,
                XianQuId   = country,
                DiZhi      = Adress,
                YouBian    = Zip,
                XingMing   = Name,
                DianHua    = Tell
            };
            #endregion

            #region 判断
            if (string.IsNullOrEmpty(model.XingMing))
            {
                str = "-收件人不能为空!</br>";
            }
            if (string.IsNullOrEmpty(model.DianHua))
            {
                str += "-联系电话不能为空!</br>";
            }
            if (model.ShengFenId == 0)
            {
                str += "-请选择省份!</br>";
            }
            if (model.ChengShiId == 0)
            {
                str += "-请选择城市!</br>";
            }
            if (model.XianQuId == 0)
            {
                str += "-请选择县区!</br>";
            }
            if (string.IsNullOrEmpty(model.DiZhi))
            {
                str += "-邮寄地址不能为空!</br>";
            }
            if (string.IsNullOrEmpty(model.YouBian))
            {
                str += "-邮政编码!</br>";
            }
            #endregion

            if (!string.IsNullOrEmpty(str))
            {
                return(UtilsCommons.AjaxReturnJson("0", str, new { FeiHuiYuanId = "", DiZhiId = "" }));
            }

            string feiHuiYuanId = string.Empty;
            if (isLogin)
            {
                model.HuiYuanId = m.HuiYuanId;
            }
            else
            {
                var feiHuiYuanInfo = GetFeiHuiYuanInfo();
                model.HuiYuanId = feiHuiYuanId = feiHuiYuanInfo.id;
            }

            var bllRetCode = new EyouSoft.BLL.YlStructure.BHuiYuan().InsertDiZhi(model);
            if (bllRetCode == 1)
            {
                return(UtilsCommons.AjaxReturnJson("1", model.DiZhiId, new { FeiHuiYuanId = feiHuiYuanId, DiZhiid = model.DiZhiId }));
            }
            else
            {
                return(UtilsCommons.AjaxReturnJson("0", "添加失败", new { FeiHuiYuanId = feiHuiYuanId, DiZhiId = string.Empty }));
            }
        }
Esempio n. 4
0
        private void BingKeInfo(ref IList <MHangQiDingDanYouKeInfo> YouKes, string huiYuanId)
        {
            string[] YoukeName          = HttpContext.Current.Request.Form.GetValues("bkname");
            string[] YoukeZhengjianType = HttpContext.Current.Request.Form.GetValues("sel_zjtype");
            string[] YoukeZhengjian     = HttpContext.Current.Request.Form.GetValues("bkzj");
            //string[] YoukeYXQ = HttpContext.Current.Request.Form.GetValues("bkyxq");
            string[] YoukeSex = HttpContext.Current.Request.Form.GetValues("select_Sex");
            //string[] YoukeBrithDay = HttpContext.Current.Request.Form.GetValues("bkbrithday");
            string[] YoukePhone  = HttpContext.Current.Request.Form.GetValues("bkphone");
            string[] YoukeType   = HttpContext.Current.Request.Form.GetValues("bktype");
            string[] YoukeIsSave = HttpContext.Current.Request.Form.GetValues("hd_Ischeck");
            var      yxq1        = HttpContext.Current.Request.Form.GetValues("yxq1");
            var      yxq2        = HttpContext.Current.Request.Form.GetValues("yxq2");
            var      yxq3        = HttpContext.Current.Request.Form.GetValues("yxq3");

            var sr1 = HttpContext.Current.Request.Form.GetValues("sr1");
            var sr2 = HttpContext.Current.Request.Form.GetValues("sr2");
            var sr3 = HttpContext.Current.Request.Form.GetValues("sr3");

            var sr01 = HttpContext.Current.Request.Form.GetValues("sr01");
            var sr02 = HttpContext.Current.Request.Form.GetValues("sr02");
            var sr03 = HttpContext.Current.Request.Form.GetValues("sr03");

            if (YoukeName.Length > 0 && YoukeZhengjian.Length > 0)
            {
                YouKes = new List <MHangQiDingDanYouKeInfo>();
                for (int i = 0; i < YoukeName.Length; i++)
                {
                    MHangQiDingDanYouKeInfo model = new MHangQiDingDanYouKeInfo();
                    model.XingMing         = YoukeName[i];
                    model.LeiXingId        = Utils.GetInt(YoukeType[i]);
                    model.ZhengJianLeiXing = (EyouSoft.Model.EnumType.YlStructure.YKZJLeiXing)Utils.GetInt(YoukeZhengjianType[i]);
                    model.ZhengJianHaoMa   = YoukeZhengjian[i];
                    if (model.ZhengJianHaoMa == "请输入证件号码")
                    {
                        model.ZhengJianHaoMa = string.Empty;
                    }
                    //model.ZhengJianYouXiaoQi = Utils.GetDateTimeNullable(YoukeYXQ[i]);
                    //model.ChuShengRiQi = Utils.GetDateTimeNullable(YoukeBrithDay[i]);
                    model.ShouJi = YoukePhone[i];
                    if (model.ShouJi == "请至少输入一位出行旅客的手机号码")
                    {
                        model.ShouJi = string.Empty;
                    }
                    model.XingBie = (EyouSoft.Model.EnumType.GovStructure.Gender)Utils.GetInt(YoukeSex[i]);

                    model.YXQ1 = yxq1[i];
                    model.YXQ2 = yxq2[i];
                    model.YXQ3 = yxq3[i];

                    if (model.YXQ1 == "年份yyyy")
                    {
                        model.YXQ1 = string.Empty;
                    }
                    if (model.YXQ2 == "月份mm")
                    {
                        model.YXQ2 = string.Empty;
                    }
                    if (model.YXQ3 == "日期dd")
                    {
                        model.YXQ3 = string.Empty;
                    }

                    if (model.ZhengJianLeiXing == EyouSoft.Model.EnumType.YlStructure.YKZJLeiXing.身份证)
                    {
                        model.ChuShengRiQi = Utils.GetDateTimeNullable(getSR(model.ZhengJianHaoMa));
                        model.XingBie      = (EyouSoft.Model.EnumType.GovStructure.Gender)Utils.GetInt(getXB(model.ZhengJianHaoMa));
                    }

                    if (model.ZhengJianLeiXing == EyouSoft.Model.EnumType.YlStructure.YKZJLeiXing.护照)
                    {
                        model.SR1 = sr1[i];
                        model.SR2 = sr2[i];
                        model.SR3 = sr3[i];
                    }

                    if (model.ZhengJianLeiXing == EyouSoft.Model.EnumType.YlStructure.YKZJLeiXing.户口本)
                    {
                        model.SR1 = sr01[i];
                        model.SR2 = sr02[i];
                        model.SR3 = sr03[i];
                    }

                    if (model.SR1 == "出生年份")
                    {
                        model.SR1 = string.Empty;
                    }
                    if (model.SR2 == "出生月份")
                    {
                        model.SR2 = string.Empty;
                    }
                    if (model.SR3 == "出生日期")
                    {
                        model.SR3 = string.Empty;
                    }

                    YouKes.Add(model);
                    if (YoukeIsSave[i] == "1")
                    {
                        EyouSoft.BLL.YlStructure.BHuiYuan bll = new EyouSoft.BLL.YlStructure.BHuiYuan();
                        EyouSoft.Model.YlStructure.MHuiYuanChangLvKeInfo lvke = new MHuiYuanChangLvKeInfo()
                        {
                            HuiYuanId          = huiYuanId,
                            XingMing           = model.XingMing,
                            ZhengJianLeiXing   = model.ZhengJianLeiXing,
                            ZhengJianHaoMa     = model.ZhengJianHaoMa,
                            ZhengJianYouXiaoQi = model.ZhengJianYouXiaoQi,
                            ChuShengRiQi       = model.ChuShengRiQi,
                            ShouJi             = model.ShouJi,
                            XingBie            = model.XingBie
                        };
                        bll.InsertChangLvKe(lvke);
                    }
                }
            }
        }
Esempio n. 5
0
        private string Sava()
        {
            string         str     = "";
            bool           isLogin = false;
            MYlHuiYuanInfo m       = null;

            isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out m);

            decimal keYongJiFen  = 0;
            string  feiHuiYuanId = string.Empty;

            string xiaDanRenId = string.Empty;

            if (isLogin)
            {
                xiaDanRenId = m.HuiYuanId;
                var huiYuanInfo = new EyouSoft.BLL.YlStructure.BHuiYuan().GetHuiYuanInfo(m.HuiYuanId);
                if (huiYuanInfo != null)
                {
                    keYongJiFen = huiYuanInfo.KeYongJiFen;
                }
            }
            else
            {
                var feiHuiYuanInfo = GetFeiHuiYuanInfo();
                xiaDanRenId  = feiHuiYuanInfo.id;
                feiHuiYuanId = feiHuiYuanInfo.id;
            }

            string valuejson = Utils.GetFormValue(hd_page1json.UniqueID);

            var info = Newtonsoft.Json.JsonConvert.DeserializeObject <MrTuanGouList>(valuejson);

            if (info == null)
            {
                return(UtilsCommons.AjaxReturnJson("0", "订单提交失败,请重新提交!", new { FeiHuiYuanId = feiHuiYuanId, DingDanId = string.Empty, DingDanStatus = -1 }));
            }

            EyouSoft.BLL.YlStructure.BHangQi bll = new EyouSoft.BLL.YlStructure.BHangQi();

            var HangQiInfo = bll.GetHangQiInfo(info.HangQiId);


            #region 表单赋值
            MHangQiDingDanInfo model = new MHangQiDingDanInfo();
            IList <MHangQiDingDanYouKeInfo> YouKes = null;
            BingKeInfo(ref YouKes, xiaDanRenId);
            IList <MHangQiDingDanJiaGeInfo> JiaGes = info.JiaGes;

            if (string.IsNullOrEmpty(info.HangQiId))
            {
                str += "-请重新选择订单!</br>";
            }
            else
            {
                model.HangQiId = info.HangQiId;
            }
            if (string.IsNullOrEmpty(info.RiQiId))
            {
                str += "-请选择出发日期</br>";
            }
            else
            {
                model.RiQiId = info.RiQiId;
            }
            model.CompanyId = YuMingInfo.CompanyId;
            if (info.DingdanRenShu > 0)
            {
                model.RenShu = info.DingdanRenShu;
            }
            else
            {
                str += "-请添加出发人数</br>";
            }


            model.DingDanStatus = EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.未处理;
            model.FuKuanStatus  = EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.未付款;
            string YuDingRenName = Utils.GetFormValue("txtYudingName");
            if (!string.IsNullOrEmpty(YuDingRenName))
            {
                model.YuDingRenName = YuDingRenName;
            }
            else
            {
                str += "-请填写预订人姓名</br>";
            }
            string YuDingRenDianHua = Utils.GetFormValue("txtYudingtell");
            string YuDingRenShouJi  = Utils.GetFormValue("txtYudingphone");
            if (string.IsNullOrEmpty(YuDingRenDianHua) && string.IsNullOrEmpty(YuDingRenShouJi))
            {
                str += "-手机号码和联系电话至少填写一项</br>";
            }
            else
            {
                model.YuDingRenShouJi  = YuDingRenShouJi;
                model.YuDingRenDianHua = YuDingRenDianHua;
            }

            string YuDingRenYouXiang = Utils.GetFormValue("txtYudingEmail");
            if (!string.IsNullOrEmpty(YuDingRenYouXiang))
            {
                model.YuDingRenYouXiang = YuDingRenYouXiang;
            }
            //else
            //    str += "-请填写预订人电子邮件</br>";

            model.IsXuYaoFaPiao = Utils.GetInt(Utils.GetFormValue("IscheckFaPiao")) == 1 ? true : false;
            model.FaPiaoTaiTou  = Utils.GetFormValue("txtFapiaoTitle");
            //model.FaPiaoMingXi = Utils.GetFormValue("txtFapiaoMingxi");
            model.FaPiaoLeiXing = Utils.GetFormValue("txt_fapiao_mxlx");
            model.FaPiaoMingXi  = GetFaPiaoMXLX(model.FaPiaoLeiXing);

            //***********************发票配送方式*******************
            model.FaPiaoPeiSongFangShi = EyouSoft.Model.EnumType.YlStructure.FaPiaoPeiSongFangShi.快递;
            if (model.IsXuYaoFaPiao)
            {
                model.FaPiaoDiZhiId = Utils.GetFormValue(hidAddressId.UniqueID);
            }
            else
            {
                model.FaPiaoDiZhiId = "";
            }
            if (model.IsXuYaoFaPiao)
            {
                model.FaPiaoKuaiDiJinE = HangQiInfo.FaPiaoKuaiDiJinE;
            }
            else
            {
                model.FaPiaoKuaiDiJinE = 0;
            }
            model.XiaDanRenId = xiaDanRenId;
            model.IssueTime   = DateTime.Now;


            model.IsTuanGou     = true;
            model.TuanGouId     = info.TuanGouId;
            model.FuJiaChanPins = null;
            if (YouKes != null && YouKes.Count > 0 && YouKes.Count == info.DingdanRenShu)
            {
                model.YouKes = YouKes;
            }
            else
            {
                str += "-请填写游客信息</br>";
            }
            if (JiaGes != null && JiaGes.Count > 0)
            {
                model.JiaGes = JiaGes;
            }
            else
            {
                str += "-请选择房型</br>";
            }
            //********************************优惠信息**********************
            MHangQiDingDanYouHuiInfo YouHui = new MHangQiDingDanYouHuiInfo();
            model.YouHuis = null;
            MHangQiDingDanDiKouInfo DiKou = new MHangQiDingDanDiKouInfo();

            model.DiKouInfo = null;

            //******************************产品金额的计算******************************************


            decimal ZongJinE = 0;
            foreach (var item in model.JiaGes)
            {
                ZongJinE += item.JiaGe1 * item.RenShu1;
            }
            if (ZongJinE > 0 && info.DingdanFangXingJinE == ZongJinE)
            {
                if (model.IsXuYaoFaPiao)
                {
                    ZongJinE += model.FaPiaoKuaiDiJinE;
                }
            }
            else
            {
                str += "-请重新选择订单!";
            }
            model.JinE = ZongJinE;
            //************************************************************************************

            model.JiFenLeiJiBiLi = HangQiInfo.JiFenLeiJiBiLi;
            model.MingCheng      = HangQiInfo.MingCheng;
            model.GysName        = HangQiInfo.GysName;
            model.GongSiName     = HangQiInfo.GongSiName;
            model.XiLieName      = HangQiInfo.XiLieName;
            model.ChuanZhiName   = HangQiInfo.ChuanZhiName;
            model.XiaDanBeiZhu   = Utils.GetFormValue("txtXiaDanBeiZhu");
            #endregion

            if (!string.IsNullOrEmpty(str))
            {
                return(UtilsCommons.AjaxReturnJson("0", str, new { FeiHuiYuanId = feiHuiYuanId, DingDanId = string.Empty, DingDanStatus = -1 }));
            }

            EyouSoft.BLL.YlStructure.BHangQiDingDan DingDan_Bll = new EyouSoft.BLL.YlStructure.BHangQiDingDan();
            int num = DingDan_Bll.InsertDingDan(model);

            if (num != 1)
            {
                return(UtilsCommons.AjaxReturnJson("0", "订单提交失败,请重新提交!", new { FeiHuiYuanId = feiHuiYuanId, DingDanId = string.Empty, DingDanStatus = -1 }));
            }

            var tj = DingDan_Bll.GetDingDanInfo(model.DingDanId);

            return(UtilsCommons.AjaxReturnJson("1", "下单成功", new { FeiHuiYuanId = feiHuiYuanId, DingDanId = model.DingDanId, DingDanStatus = (int)tj.DingDanStatus }));
        }
Esempio n. 6
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;
                }
            }
        }
Esempio n. 7
0
        /// <summary>
        /// get feihuiyun
        /// </summary>
        /// <returns></returns>
        MFeiHuiYuanInfo GetFeiHuiYuanInfo()
        {
            MYlHuiYuanInfo m       = null;
            var            isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out m);

            if (isLogin)
            {
                return new MFeiHuiYuanInfo()
                       {
                           id = m.HuiYuanId
                       }
            }
            ;

            MFeiHuiYuanInfo info = new MFeiHuiYuanInfo();
            string          s    = Utils.GetFormValue("txtFeiHuiYuanInfo");

            if (string.IsNullOrEmpty(s))
            {
                return(info);
            }

            info = Newtonsoft.Json.JsonConvert.DeserializeObject <MFeiHuiYuanInfo>(s);

            info = info ?? new MFeiHuiYuanInfo();

            if (!string.IsNullOrEmpty(info.id))
            {
                return(info);
            }

            //if (string.IsNullOrEmpty(info.sj) || string.IsNullOrEmpty(info.xm)) return info;

            string guid = Guid.NewGuid().ToString();
            var    pwd  = new EyouSoft.Model.ComStructure.MPasswordInfo();

            pwd.NoEncryptPassword = guid;

            MHuiYuanInfo huiYuanInfo = new MHuiYuanInfo();

            huiYuanInfo.CompanyId   = YuMingInfo.CompanyId;
            huiYuanInfo.Username    = guid;
            huiYuanInfo.MD5Password = pwd.MD5Password;
            huiYuanInfo.YouXiang    = "";
            huiYuanInfo.ShengRi     = DateTime.Now;
            huiYuanInfo.LeiXing     = EyouSoft.Model.EnumType.YlStructure.HuiYuanLeiXing.直接预订;
            huiYuanInfo.XingMing    = info.xm;
            huiYuanInfo.ShouJi      = info.sj;

            int bllRetCode = new EyouSoft.BLL.YlStructure.BHuiYuan().InsertHuiYuan(huiYuanInfo);

            if (bllRetCode == 1)
            {
                info.id = huiYuanInfo.HuiYuanId;

                MYlHuiYuanInfo outuserinfo = null;
                EyouSoft.Security.Membership.YlHuiYuanProvider.Login(huiYuanInfo.CompanyId, huiYuanInfo.Username, pwd, out outuserinfo, 2);
            }

            return(info);
        }

        void GetDiZhi()
        {
            string s = GetDiZhiHtml();

            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", s));
        }

        string getSR(string hm)
        {
            if (hm.Length == 18)
            {
                return(hm.Substring(6, 4) + "-" + hm.Substring(10, 2) + "-" + hm.Substring(12, 2));
            }

            if (hm.Length == 15)
            {
                return("19" + hm.Substring(6, 2) + "-" + hm.Substring(8, 2) + "-" + hm.Substring(10, 2));
            }

            return(string.Empty);
        }

        string getXB(string hm)
        {
            string s = string.Empty;
            string v = string.Empty;

            if (hm.Length == 18)
            {
                s = hm.Substring(14, 3);
            }
            if (hm.Length == 15)
            {
                s = hm.Substring(12, 3);
            }

            if (!string.IsNullOrEmpty(s))
            {
                if (Utils.GetInt(s) % 2 == 0)
                {
                    v = "1";
                }
                else
                {
                    v = "0";
                }
            }

            return(v);
        }

        string GetFaPiaoMXLX(string lx)
        {
            string s = string.Empty;

            switch (lx)
            {
            case "1": s = "旅游业-船票"; break;

            case "2": s = "旅游业-综合服务费"; break;

            case "3": s = "旅游业-旅游费"; break;
            }
            return(s);
        }
    }
Esempio n. 8
0
        protected void initData()
        {
            string uptype  = Utils.GetQueryStringValue("uptype");
            string chatype = Utils.GetQueryStringValue("chatype");

            #region 会员积分
            MYlHuiYuanInfo userInfo = null;
            bool           IsLogin  = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out userInfo);
            if (IsLogin)
            {
                var huiYuanInfo = new EyouSoft.BLL.YlStructure.BHuiYuan().GetHuiYuanInfo(userInfo.HuiYuanId);
                phlLoginY.Visible = false;
                phLoginIn.Visible = true;
                ltr_jfNumber.Text = huiYuanInfo.KeYongJiFen.ToString("0.00");
                // ltr_jfCar.Text = "";
            }
            #endregion
            MWzJiFenShangPinChaXunInfo Chaxun = new MWzJiFenShangPinChaXunInfo();
            if (uptype == "up")
            {
                switch (Utils.GetInt(chatype))
                {
                case (int)JiFenDuiHuanFangShi.积分:
                    Chaxun.PaiXu = 0;
                    break;

                case (int)JiFenDuiHuanFangShi.积分礼品卡:
                    Chaxun.PaiXu = 2;
                    break;

                case (int)JiFenDuiHuanFangShi.积分现金:
                    Chaxun.PaiXu = 4;
                    break;

                default:
                    Chaxun.PaiXu = 0;
                    break;
                }
            }
            else if (uptype == "down")
            {
                switch (Utils.GetInt(chatype))
                {
                case (int)JiFenDuiHuanFangShi.积分:
                    Chaxun.PaiXu = 1;
                    break;

                case (int)JiFenDuiHuanFangShi.积分礼品卡:
                    Chaxun.PaiXu = 3;
                    break;

                case (int)JiFenDuiHuanFangShi.积分现金:
                    Chaxun.PaiXu = 5;
                    break;

                default:
                    Chaxun.PaiXu = 1;
                    break;
                }
            }
            BDuiHuan bll = new BDuiHuan();
            _pageIndex = UtilsCommons.GetPadingIndex();
            var list = bll.GetJiFenShangPins(YuMingInfo.CompanyId, PageSize, _pageIndex, ref _recordCount, Chaxun);
            if (list != null && list.Count > 0)
            {
                rptList.DataSource = list;
                rptList.DataBind();

                RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", PageSize, _pageIndex, _recordCount));
            }
        }