示例#1
0
文件: BGys.cs 项目: windygu/XiaZhou
        /// <summary>
        /// 获取供应商-地接社列表信息集合
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="pageSize">页记录数</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="chaXun">查询实体</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.GysStructure.MLBDiJieSheInfo> GetDiJieShes(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.GysStructure.MLBChaXunInfo chaXun)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }

            bool isOnlySelf = false;

            int[] depts = null;

            depts = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.资源管理_地接社, out isOnlySelf);

            var items = dal.GetDiJieShes(companyId, pageSize, pageIndex, ref recordCount, chaXun, isOnlySelf, LoginUserId, depts);

            if (items != null && items.Count > 0)
            {
                var citybll = new EyouSoft.BLL.ComStructure.BComCity();
                foreach (var item in items)
                {
                    item.CPCD = citybll.GetCPCD(companyId, item.CPCD.CountryId, item.CPCD.ProvinceId, item.CPCD.CityId, item.CPCD.DistrictId);
                }
            }

            return(items);
        }
示例#2
0
        protected void PageInit()
        {
            //获得默认城市
            CountryModel = new EyouSoft.BLL.SysStructure.BGeography().GetList();
            //所有常用城市
            IList <int> CityIds = new EyouSoft.BLL.ComStructure.BComCity().GetCityId(SiteUserInfo.CompanyId);

            foreach (int item in CityIds)
            {
                hidCommonCity.Value += item.ToString() + ",";
            }
        }
示例#3
0
        /// <summary>
        /// 获取导入客户管理号码集合
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="pageSize">页记录数</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="searchInfo">查询信息</param>
        /// <returns></returns>
        public IList<EyouSoft.Model.SmsStructure.MLBDaoRuLxrInfo> GetLxrs(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.SmsStructure.MLBDaoRuLxrSearchInfo searchInfo)
        {
            if (string.IsNullOrEmpty(companyId)) return null;

            var items = dal.GetLxrs(companyId, pageSize, pageIndex, ref recordCount, searchInfo);

            if (items != null && items.Count > 0)
            {
                var citybll = new EyouSoft.BLL.ComStructure.BComCity();
                foreach (var item in items)
                {
                    item.CPCD = citybll.GetCPCD(companyId, item.CountryId, item.ProvinceId, item.CityId, item.DistrictId);
                }
            }
            return items;
        }
示例#4
0
        private void SetCity()
        {
            bool flag = new EyouSoft.BLL.ComStructure.BComCity().SetCity(CityId, SiteUserInfo.CompanyId);

            if (flag)
            {
                Response.Clear();
                Response.ContentType = "text/plain";
                Response.Write("设置成功");
                Response.End();
            }
            else
            {
                Response.Clear();
                Response.ContentType = "text/plain";
                Response.Write("设置失败");
                Response.End();
            }
        }
示例#5
0
        /// <summary>
        /// 绑定数据源
        /// </summary>
        private void BindSource()
        {
            EyouSoft.BLL.SourceStructure.BSource bSource = new EyouSoft.BLL.SourceStructure.BSource();

            EyouSoft.Model.SourceStructure.MSourceTravel sourceTravel = bSource.GetTravelServiceModel(SiteUserInfo.SourceCompanyInfo.CompanyId);
            if (sourceTravel != null)
            {
                //查询国家、省市区域
                EyouSoft.BLL.ComStructure.BComCity bComCity = new EyouSoft.BLL.ComStructure.BComCity();
                EyouSoft.Model.ComStructure.MCPCC  m        = bComCity.GetCPCD(CurrentUserCompanyID, sourceTravel.SourceModel.CountryId, sourceTravel.SourceModel.ProvinceId, sourceTravel.SourceModel.CityId, sourceTravel.SourceModel.CountyId);
                if (m != null)
                {
                    this.lblCountry.Text = m.CountryName;
                    this.lblProvice.Text = m.ProvinceName;
                    this.lblCity.Text    = m.CityName;
                    this.lblCounty.Text  = m.CountyName;

                    this.lblType.Text = m.CountryName == "中国" ? "国内" : "国外";
                }
                this.lblName.Text = sourceTravel.SourceModel.Name;


                this.lblLicense.Text                  = sourceTravel.SourceModel.LicenseKey;
                this.lblLegalRepresentative.Text      = sourceTravel.SourceTravelModel.LegalRepresentative;
                this.lblLegalRepresentativePhone.Text = sourceTravel.SourceTravelModel.Telephone;
                this.lblAddress.Text                  = sourceTravel.SourceModel.Address;

                this.lblIsSignContract.Text = sourceTravel.SourceModel.IsSignContract == true ? "是" : "否";
                this.lblEffectTime.Text     = sourceTravel.SourceModel.ContractPeriodEnd != null?sourceTravel.SourceModel.ContractPeriodEnd.Value.ToString("yyyy-MM-dd") : string.Empty;

                this.lblFeatureRoute.Text = sourceTravel.SourceTravelModel.Routes;

                this.lblIsSign.Text = sourceTravel.SourceModel.IsPermission == true ? "是" : "否";

                this.lblIsRecommend.Text = sourceTravel.SourceModel.IsRecommend == true ? "是" : "否";

                this.lblIsRebatePolicy.Text = sourceTravel.SourceModel.IsCommission == true ? "是" : "否";

                this.lblRebatePolicy.Text = sourceTravel.SourceModel.UnitPolicy;
            }
        }
示例#6
0
文件: BCrm.cs 项目: windygu/XiaZhou
        /// <summary>
        /// 获取客户单位信息集合
        /// </summary>
        /// <param name="companyId">公司编号</param>
        /// <param name="pageSize">每页记录数</param>
        /// <param name="pageIndex">页索引</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="crmType">客户单位类型</param>
        /// <param name="searchInfo">查询信息</param>
        /// <returns></returns>
        public IList <Model.CrmStructure.MLBCrmInfo> GetCrms(string companyId, int pageSize, int pageIndex, ref int recordCount, EyouSoft.Model.EnumType.CrmStructure.CrmType crmType, EyouSoft.Model.CrmStructure.MLBCrmSearchInfo searchInfo)
        {
            if (string.IsNullOrEmpty(companyId))
            {
                return(null);
            }
            if (crmType == EyouSoft.Model.EnumType.CrmStructure.CrmType.个人会员)
            {
                return(null);
            }

            bool isOnlySelf = false;

            int[] depts = null;

            if (crmType == EyouSoft.Model.EnumType.CrmStructure.CrmType.单位直客)
            {
                depts = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.客户管理_单位直客, out isOnlySelf);
            }
            else if (crmType == EyouSoft.Model.EnumType.CrmStructure.CrmType.行客户)
            {
                depts = GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.客户管理_同行客户, out isOnlySelf);
            }

            var items = dal.GetCrms(companyId, LoginUserId, depts, pageSize, pageIndex, ref recordCount, crmType, searchInfo);

            if (items != null && items.Count > 0)
            {
                var citybll = new EyouSoft.BLL.ComStructure.BComCity();
                foreach (var item in items)
                {
                    item.CPCD = citybll.GetCPCD(companyId, item.CountryId, item.ProvinceId, item.CityId, item.DistrictId);
                }
            }

            return(items);
        }
示例#7
0
        /// <summary>
        /// 绑定数据源
        /// </summary>
        private void BindSource()
        {
            EyouSoft.BLL.CrmStructure.BCrm   bCrm = new EyouSoft.BLL.CrmStructure.BCrm();
            EyouSoft.Model.CrmStructure.MCrm mCrm = bCrm.GetInfo(SiteUserInfo.TourCompanyInfo.CompanyId);
            //查询国家、省市区域的
            EyouSoft.BLL.ComStructure.BComCity bComCity = new EyouSoft.BLL.ComStructure.BComCity();
            EyouSoft.Model.ComStructure.MCPCC  m        = bComCity.GetCPCD(CurrentUserCompanyID, mCrm.CountryId, mCrm.ProvinceId, mCrm.CityId, mCrm.CountyId);
            if (m != null)
            {
                this.lblCountry.Text = m.CountryName;
                this.lblProvice.Text = m.ProvinceName;
                this.lblCity.Text    = m.CityName;
                this.lblCounty.Text  = m.CountyName;
            }

            this.lblName.Text                      = mCrm.Name;
            this.lblAddress.Text                   = mCrm.Address;
            this.lblOrganizationCode.Text          = mCrm.OrganizationCode;
            this.lblLegalRepresentative.Text       = mCrm.LegalRepresentative;
            this.lblLegalRepresentativeMobile.Text = mCrm.LegalRepresentativeMobile;
            this.lblLegalRepresentativePhone.Text  = mCrm.LegalRepresentativePhone;
            this.lblLicense.Text                   = mCrm.License;
            this.lblFinancialName.Text             = mCrm.FinancialName;
            this.lblFinancialPhone.Text            = mCrm.FinancialPhone;
            this.lblFinancialMobile.Text           = mCrm.FinancialMobile;

            //查询销售员
            EyouSoft.BLL.ComStructure.BComUser   bUser = new EyouSoft.BLL.ComStructure.BComUser();
            EyouSoft.Model.ComStructure.MComUser user  = bUser.GetModel(mCrm.SellerId, SiteUserInfo.CompanyId);
            if (null != user)
            {
                this.lblSeller.Text = user.UserName;
            }

            this.lblBrevityCode.Text  = mCrm.BrevityCode;
            this.lblRebatePolicy.Text = mCrm.RebatePolicy;
        }
示例#8
0
        protected string GetQuYu()
        {
            System.Text.StringBuilder s = new System.Text.StringBuilder();

            var items = new EyouSoft.BLL.ComStructure.BComCity().GetProvince(1, CurrentUserCompanyID);

            if (items == null || items.Count == 0)
            {
                return(string.Empty);
            }
            int i = 0;

            foreach (var item in items)
            {
                s.AppendFormat("<label>&nbsp;<input type='checkbox' name='chkquyu' value='{0}'>{1}</label>&nbsp;&nbsp;&nbsp;&nbsp;", item.ProvinceId, item.Name);
                if (i > 0 && (i + 1) % 5 == 0)
                {
                    s.AppendFormat("<br>");
                }
                i++;
            }

            return(s.ToString());
        }
示例#9
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string getType = Utils.GetQueryStringValue("get");

            StringBuilder sb = new StringBuilder();

            int    gID       = Utils.GetInt(Utils.GetQueryStringValue("gid"), 1);
            int    pID       = Utils.GetInt(Utils.GetQueryStringValue("pid"));
            int    cID       = Utils.GetInt(Utils.GetQueryStringValue("cid"));
            int    xID       = Utils.GetInt(Utils.GetQueryStringValue("xid"));
            string companyID = Utils.GetQueryStringValue("companyID");

            EyouSoft.BLL.ComStructure.BComCity bll = new EyouSoft.BLL.ComStructure.BComCity();

            switch (getType)
            {
            case "g":

                IList <EyouSoft.Model.SysStructure.MSysCountry> gList = new EyouSoft.BLL.ComStructure.BComCity().GetGuoJias(companyID);
                if (gList != null && gList.Count > 0)
                {
                    sb.Append("{\"list\":[");
                    for (int i = 0; i < gList.Count; i++)
                    {
                        sb.Append("{\"id\":\"" + gList[i].CountryId.ToString() + "\",\"name\":\"" + gList[i].Name + "\"},");
                    }
                    if (sb.Length > 1)
                    {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    sb.Append("]}");
                }
                else
                {
                    sb.Append("{\"list\":[]}");
                }
                break;

            case "p":
                IList <EyouSoft.Model.SysStructure.MSysProvince> pList = bll.GetProvince(gID, companyID);
                if (pList != null && pList.Count > 0)
                {
                    sb.Append("{\"list\":[");
                    for (int i = 0; i < pList.Count; i++)
                    {
                        sb.Append("{\"id\":\"" + pList[i].ProvinceId.ToString() + "\",\"name\":\"" + pList[i].Name + "\"},");
                    }
                    if (sb.Length > 1)
                    {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    sb.Append("]}");
                }
                else
                {
                    sb.Append("{\"list\":[]}");
                }

                break;

            case "c":
                IList <EyouSoft.Model.SysStructure.MSysCity> cList = bll.GetCity(pID, companyID);
                if (cList != null && cList.Count > 0)
                {
                    sb.Append("{\"list\":[");
                    for (int i = 0; i < cList.Count; i++)
                    {
                        sb.Append("{\"id\":\"" + cList[i].CityId.ToString() + "\",\"name\":\"" + cList[i].Name + "\"},");
                    }
                    if (sb.Length > 1)
                    {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    sb.Append("]}");
                }
                else
                {
                    sb.Append("{\"list\":[]}");
                }
                break;

            case "x":
                IList <EyouSoft.Model.SysStructure.MSysDistrict> xList = bll.GetDistrict(cID, companyID);
                if (xList != null && xList.Count > 0)
                {
                    sb.Append("{\"list\":[");
                    for (int i = 0; i < xList.Count; i++)
                    {
                        sb.Append("{\"id\":\"" + xList[i].DistrictId.ToString() + "\",\"name\":\"" + xList[i].Name + "\"},");
                    }
                    if (sb.Length > 1)
                    {
                        sb.Remove(sb.Length - 1, 1);
                    }
                    sb.Append("]}");
                }
                else
                {
                    sb.Append("{\"list\":[]}");
                }
                break;
            }

            context.Response.Write(sb.ToString());
        }
示例#10
0
        void initPage()
        {
            string dingDanId      = Utils.GetQueryStringValue("dingdanid");
            var    DingDanLeiXing = (EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing), Utils.GetQueryStringValue("dingdanleixing"));

            if (!DingDanLeiXing.HasValue ||
                DingDanLeiXing.Value != EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing.航期订单)
            {
                Utils.RCWE("请求异常!");
            }

            MHangQiDingDanInfo model = new EyouSoft.BLL.YlStructure.BHangQiDingDan().GetDingDanInfo(dingDanId);

            if (model == null)
            {
                Utils.RCWE("请求异常!");
            }

            string token = Utils.GetQueryStringValue("token");

            if (string.IsNullOrEmpty(token))
            {
                Utils.RCWE("请求异常!");
            }

            EyouSoft.Model.SSOStructure.MYlHuiYuanInfo huiYuanInfo;
            bool isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out huiYuanInfo);

            if (model.XiaDanRenId != token)
            {
                RCWE("请求异常");
            }
            if (isLogin && model.XiaDanRenId != huiYuanInfo.HuiYuanId)
            {
                RCWE("请求异常");
            }

            dingdanhao.Text = model.JiaoYiHao;

            dingdanzhuangtai.Text = model.FuKuanStatus.ToString();
            if (model.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.未付款)
            {
                dingdanzhuangtai.Text = "<span style='color:#ff0000'>未付款</span>";

                if (model.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.成交)
                {
                    ltr01.Text = "<a href=\"orderpay.aspx?dingdanleixing=" + (int)DingDanLeiXing.Value + "&dingdanid=" + dingDanId + "&token=" + token + "\" class=\"fukuan\">付款</a>";
                }
                else if (model.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.审核中 || model.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.未处理)
                {
                    ltr01.Text = "审核中";
                }
                else if (model.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.取消)
                {
                    ltr01.Text = "已取消";
                }
                else
                {
                    ltr01.Text = string.Empty;
                }
            }
            else
            {
                ltr01.Text = string.Format("<a href=\"/Print/QueRenDan.aspx?DingDanId={0}\" target=\"_blank\" class=\"print-btn\">打印订单</a> <a href=\"/Print/XingChengDan.aspx?HangQiId={1}\" target=\"_blank\" class=\"print-btn\">打印行程单</a>", dingDanId, model.HangQiId);
            }

            chanpinjine.Text = "";
            decimal jinE = 0;

            #region  产品金额


            if (model.IsTuanGou)
            {
                if (model.TGJiaGes != null && model.TGJiaGes.Count > 0)
                {
                    foreach (var item in model.TGJiaGes)
                    {
                        jinE += item.RenShu * item.JiaGe;
                    }
                }
            }
            else
            {
                if (model.YouLunLeiXing == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮)
                {
                    if (model.JiaGes != null && model.JiaGes.Count > 0)
                    {
                        foreach (var item in model.JiaGes)
                        {
                            jinE += item.RenShu1 * item.JiaGe1 + item.RenShu2 * item.JiaGe2 + item.RenShu3 * item.JiaGe3 + item.RenShu4 * item.JiaGe4;
                        }
                    }
                }
                else if (model.YouLunLeiXing == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮)
                {
                    if (model.HYJiaGes != null && model.HYJiaGes.Count > 0)
                    {
                        foreach (var item in model.HYJiaGes)
                        {
                            jinE += item.JinE;
                        }
                    }
                }
            }
            #endregion
            chanpinjine.Text = jinE.ToString("C2");


            if (model.DiKouInfo != null)
            {
                shiyongjifen.Text = string.Format("-{0}", model.DiKouInfo.JinFenJinE.ToString("C2"));
            }
            else
            {
                JiFenTr.Visible = false;
            }
            shifujine.Text = model.JinE.ToString("C2");

            #region 附加产品
            decimal sumFJ = 0M;
            if (model.FuJiaChanPins != null && model.FuJiaChanPins.Count > 0)
            {
                for (int i = 0; i < model.FuJiaChanPins.Count; i++)
                {
                    sumFJ += model.FuJiaChanPins[i].JinE;
                }
            }
            fujiachanpinjie.Text = string.Format("{0}", sumFJ.ToString("C2"));
            #endregion

            kuaidifei.Text = model.FaPiaoKuaiDiJinE.ToString("C2");



            var hangqi   = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQiInfo(model.HangQiId);
            var riqi     = new EyouSoft.BLL.YlStructure.BHangQi().GetRiQiInfo(model.RiQiId);
            var chuanzhi = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetChuanZhiInfo(hangqi.ChuanZhiId);

            if (hangqi != null)
            {
                dengchuanxinxi.Text = string.Format("<tr><td align=\"center\" valign=\"middle\">{0}</td><td align=\"center\">{1}</td><td align=\"center\" valign=\"middle\" class=\"font12\">{2}</td><td align=\"center\" valign=\"middle\">{3}</td></tr>", riqi != null ? riqi.RiQi.ToString() : "", hangqi.ChuFaGangKouMingCheng, hangqi.DiDaGangKouMingCheng, chuanzhi != null && model.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.已付款 ? chuanzhi.ChuanZaiDianHua : "");
            }

            dingdanxinxi.Text += string.Format(" <tr>");
            dingdanxinxi.Text += string.Format(" <td align=\"middle\" class=\"padd20\">{0}</td>", model.MingCheng);
            dingdanxinxi.Text += string.Format(" <td align=\"center\">{0}</td>", riqi != null ? riqi.RiQi.ToString("yyyy-MM-dd") : "");
            dingdanxinxi.Text += string.Format(" <td align=\"center\" valign=\"top\" class=\"font12\">");


            #region 价格信息
            if (model.JiaGes != null && model.JiaGes.Count > 0)
            {
                for (int i = 0; i < model.JiaGes.Count; i++)
                {
                    dingdanxinxi.Text += string.Format(" <dl> <dt>【{0}】</dt><dd> {2} {1}人</dd></dl>", getGYSName(model.JiaGes[i].FangXingId.ToString()), (model.JiaGes[i].RenShu1 + model.JiaGes[i].RenShu2 + model.JiaGes[i].RenShu3 + model.JiaGes[i].RenShu4), getGYSName(model.JiaGes[i].BinKeLeiXingId.ToString()));
                }
            }

            #endregion



            dingdanxinxi.Text += string.Format("</dl></td>");
            dingdanxinxi.Text += string.Format("<td align=\"center\" valign=\"middle\">");

            if (model.FuJiaChanPins != null && model.FuJiaChanPins.Count > 0)
            {
                for (int i = 0; i < model.FuJiaChanPins.Count; i++)
                {
                    dingdanxinxi.Text += string.Format("{0}</br>", getGYSName(model.FuJiaChanPins[i].LeiXingId.ToString()));
                }
            }

            dingdanxinxi.Text += string.Format("</td></tr>");



            #region  游轮信息



            if (hangqi != null)
            {
            }
            #endregion

            #region 优惠信息
            decimal sumYH = 0M;
            if (model.YouHuis != null && model.YouHuis.Count > 0)
            {
                for (int i = 0; i < model.YouHuis.Count; i++)
                {
                    sumYH += model.YouHuis[i].JinE;
                }
            }
            youhuijine.Text = string.Format("-{0}", sumYH.ToString("C2"));
            #endregion

            #region 游客信息
            if (model.YouKes != null && model.YouKes.Count > 0)
            {
                rptyoukes.DataSource = model.YouKes;
                rptyoukes.DataBind();
            }
            #endregion

            #region 预订信息
            yudingren.Text     = model.YuDingRenName;
            yudingyoujian.Text = model.YuDingRenYouXiang;
            yudingshouji.Text  = model.YuDingRenShouJi;
            xiadanbeizhu.Text  = model.XiaDanBeiZhu;
            #endregion

            if (model.IsXuYaoFaPiao)
            {
                #region 发票信息
                fapiaotaitou.Text = model.FaPiaoTaiTou;
                fapiaomingxi.Text = model.FaPiaoMingXi;
                #endregion

                #region 配送方式
                var dizhi = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhiInfo(model.FaPiaoDiZhiId);
                if (dizhi != null)
                {
                    var dizhixiangqing = new EyouSoft.BLL.ComStructure.BComCity().GetCPCD(YuMingInfo.CompanyId, dizhi.GuoJiaId, dizhi.ShengFenId, dizhi.ChengShiId, dizhi.XianQuId);
                    peisongfangshi.Text = string.Format("{0}({1})", dizhixiangqing != null ? dizhixiangqing.CountryName + dizhixiangqing.ProvinceName + dizhixiangqing.CityName + dizhixiangqing.CountyName + dizhi.DiZhi : "", model.FaPiaoPeiSongFangShi);
                }
                #endregion
            }
            else
            {
                phFaPiao.Visible = false;
                phFaPiaoPeiSongFangShi.Visible = false;
            }

            #region 旅客须知
            EyouSoft.Model.YlStructure.MWzKvInfo lkxz = null;

            if (hangqi.LeiXing == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮)
            {
                lkxz = new EyouSoft.BLL.YlStructure.BWz().GetKvInfo(YuMingInfo.CompanyId, EyouSoft.Model.EnumType.YlStructure.WzKvKey.长江游轮旅客须知);
            }
            if (hangqi.LeiXing == EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.海洋邮轮)
            {
                lkxz = new EyouSoft.BLL.YlStructure.BWz().GetKvInfo(YuMingInfo.CompanyId, EyouSoft.Model.EnumType.YlStructure.WzKvKey.海洋邮轮旅客须知);
            }
            if (lkxz != null && !string.IsNullOrEmpty(lkxz.V))
            {
                ltrLvKeXuZhi.Text = lkxz.V;
            }
            #endregion
        }
示例#11
0
        /// <summary>
        /// 初始化页面
        /// </summary>
        void initPage()
        {
            string             id    = Utils.GetQueryStringValue("id");
            MHangQiDingDanInfo model = new EyouSoft.BLL.YlStructure.BHangQiDingDan().GetDingDanInfo(id);

            if (model == null)
            {
                return;
            }

            fukuanzhuangtai.Text = model.FuKuanStatus.ToString();
            if (model.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.已付款)
            {
                var zxzfinfo = new EyouSoft.BLL.YlStructure.BZaiXianZhiFu().GetInfo(model.DingDanId);
                if (zxzfinfo != null)
                {
                    switch (zxzfinfo.ZhiFuFangShi)
                    {
                    case   EyouSoft.Model.EnumType.YlStructure.ZaiXianZhiFuFangShi.Alipay:
                        fukuanzhuangtai.Text += "【支付宝】";
                        break;

                    case EyouSoft.Model.EnumType.YlStructure.ZaiXianZhiFuFangShi.Bill99:
                        fukuanzhuangtai.Text += "【快钱】";
                        break;

                    default: break;
                    }
                }
            }

            litZongJinE.Text     = model.JinE.ToString("F2");
            txtDingDanJiFen.Text = model.DingDanJiFen.ToString("F2");
            if (model.DiKouInfo != null)
            {
                litDiKouJinE.Text = model.DiKouInfo.JinFenJinE.ToString("F2");
            }
            else
            {
                litDiKouJinE.Text = "0.00";
            }
            dingdanzhuangtai   = ((int)(model.DingDanStatus)).ToString();
            litKuaiDiJinE.Text = model.FaPiaoKuaiDiJinE.ToString("F2");

            selectDDL.Text        = getSelectState(((int)model.DingDanStatus).ToString());
            txtCaoZuoBeiZhu.Value = model.CaoZuoBeiZhu;

            #region  游轮信息

            gongyingshang.Text  = model.GysName;
            youlungongsi.Text   = model.GongSiName;
            youlunxilie.Text    = model.XiLieName;
            youlunchuanzhi.Text = model.ChuanZhiName;

            var hangqi = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQiInfo(model.HangQiId);//获取航期

            if (hangqi != null)
            {
                chufagangkou.Text     = hangqi.ChuFaGangKouMingCheng;
                didagangkou.Text      = hangqi.DiDaGangKouMingCheng;
                xingchengtianshu.Text = string.Format("{0}天{1}晚", hangqi.TianShu1, hangqi.TianShu2);
                chanpinmingcheng.Text = hangqi.MingCheng;
                chanpinbianhao.Text   = hangqi.BianHao;
            }
            #endregion

            #region 价格信息
            jiagexingxi.Text = GetFangXingString(model);
            #endregion

            #region 附加产品
            if (model.FuJiaChanPins != null && model.FuJiaChanPins.Count > 0)
            {
                rptfujia.DataSource = model.FuJiaChanPins;
                rptfujia.DataBind();
                PlaceHolder2.Visible = false;
            }
            #endregion

            #region 优惠信息
            if (model.YouHuis != null && model.YouHuis.Count > 0)
            {
                rptyouhuis.DataSource = model.YouHuis;
                rptyouhuis.DataBind();
            }

            #endregion

            #region 游客信息
            if (model.YouKes != null && model.YouKes.Count > 0)
            {
                rptyouke.DataSource = model.YouKes;
                rptyouke.DataBind();
                PlaceHolder3.Visible = false;
            }
            #endregion

            #region 预订信息
            yudingxingming.Text = model.YuDingRenName;
            //yudingzhanghao.Text=model.yudingz
            yudingshijian.Text        = model.IssueTime.ToString();
            yudinglianxidianhua.Text  = model.YuDingRenDianHua;
            yudinglianxishouji.Text   = model.YuDingRenShouJi;
            yudinglianxiyouxiang.Text = model.YuDingRenYouXiang;
            xiadanbeizhu.Text         = model.XiaDanBeiZhu;
            #endregion

            #region 发票信息
            if (model.IsXuYaoFaPiao)
            {
                var dizhi = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhiInfo(model.FaPiaoDiZhiId);
                if (dizhi != null)
                {
                    var dizhixiangqing = new EyouSoft.BLL.ComStructure.BComCity().GetCPCD(SiteUserInfo.CompanyId, dizhi.GuoJiaId, dizhi.ShengFenId, dizhi.ChengShiId, dizhi.XianQuId);
                    //youjidizhi.Text = string.Format("{0}({1})", dizhixiangqing != null ? dizhixiangqing.CountryName + dizhixiangqing.ProvinceName + dizhixiangqing.CityName + dizhixiangqing.CountyName + dizhi.DiZhi : "", model.FaPiaoPeiSongFangShi);
                    if (dizhixiangqing != null)
                    {
                        youjidizhi.Text          = dizhixiangqing.ProvinceName + "&nbsp;" + dizhixiangqing.CityName + "&nbsp;" + dizhixiangqing.CountyName + "&nbsp;" + dizhi.DiZhi;
                        shoujianrenxingming.Text = dizhi.XingMing;
                        shoujianrendianhua.Text  = dizhi.DianHua;
                    }
                }

                ltrFaPiaoTaiTou.Text = model.FaPiaoTaiTou;
                ltrFaPiaoMingXi.Text = model.FaPiaoMingXi;

                phFaPiao1.Visible         = true;
                ltrShiFouXuYaoFaPiao.Text = "需要发票";
            }
            else
            {
                ltrShiFouXuYaoFaPiao.Text = "不需要发票";
            }
            #endregion

            chufariqi.Text = model.RiQi.ToString("yyyy-MM-dd");

            if (model.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.HangQiDingDanStatus.取消)
            {
                ltrCaoZuo.Text = "订单已取消";
            }
            else
            {
                if (model.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.已付款)
                {
                    ltrCaoZuo.Text = "订单已付款";
                }
                else
                {
                    ltrCaoZuo.Text = "<a id=\"btnSave\" href=\"javascript:;\"><s class=\"baochun\"></s>保 存</a> ";
                }
            }
        }
示例#12
0
        /// <summary>
        /// init edit info
        /// </summary>
        void InitEditInfo()
        {
            if (string.IsNullOrEmpty(DingDanId))
            {
                return;
            }

            var info = new EyouSoft.BLL.YlStructure.BLiPinKa().GetLiPinKaDingDanInfo(DingDanId);

            if (info == null)
            {
                return;
            }

            ltrDingDanHao.Text       = info.JiaoYiHao;
            ltrLiPinKaMingCheng.Text = info.LiPinKaMingCheng;
            ltrLiPinKaJinE.Text      = info.JinE1.ToString("F2");
            ltrLiPinKaLeiXing.Text   = info.LiPinKaLeiXing.ToString();
            ltrHuiYuanXingMing.Text  = info.HuiYuanXingMing;
            ltrShuLiang.Text         = info.ShuLiang.ToString();
            ltrJinE.Text             = info.JinE.ToString("F2");
            ltrDingDanStatus.Text    = info.DingDanStatus.ToString();
            ltrFuKuanStatus.Text     = info.FuKuanStatus.ToString();
            if (info.IsXuYaoFaPiao)
            {
                ltrFaPiao.Text = "发票抬头:" + info.FaPiaoTaiTou + "<br/>发票明细:" + info.FaPiaoMingXi;

                if (info.FaPiaoPeiSongFangShi == EyouSoft.Model.EnumType.YlStructure.FaPiaoPeiSongFangShi.快递)
                {
                    if (!string.IsNullOrEmpty(info.FaPiaoDiZhiId))
                    {
                        var diZhiInfo = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhiInfo(info.FaPiaoDiZhiId);
                        if (diZhiInfo != null)
                        {
                            var    citybll = new EyouSoft.BLL.ComStructure.BComCity();
                            var    CPCD    = citybll.GetCPCD(CurrentUserCompanyID, diZhiInfo.GuoJiaId, diZhiInfo.ShengFenId, diZhiInfo.ChengShiId, diZhiInfo.XianQuId);
                            string s       = string.Empty;
                            if (CPCD != null)
                            {
                                s = CPCD.CountryName + "-" + CPCD.ProvinceName + "-" + CPCD.CityName + "-" + CPCD.CountyName + "&nbsp;";
                            }

                            ltrPeiSongFangShi.Text = "快递<br/>地址:" + s + diZhiInfo.DiZhi + "&nbsp;邮编:" + diZhiInfo.YouBian + "<br/>收件人:" + diZhiInfo.XingMing + "&nbsp;&nbsp;" + diZhiInfo.DianHua;
                        }
                    }
                }
                else
                {
                    ltrPeiSongFangShi.Text = "自取";
                }
            }
            else
            {
                ltrFaPiao.Text = "无需发票";
            }

            ltrXiaDanShiJian.Text = info.IssueTime.ToString();
            ltrZengYu.Text        = info.ZengYu;

            if (!string.IsNullOrEmpty(info.SlrDiZhiId))
            {
                var diZhiInfo = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhiInfo(info.SlrDiZhiId);
                if (diZhiInfo != null)
                {
                    ltrSlrXingMing.Text = diZhiInfo.XingMing;
                    var    citybll = new EyouSoft.BLL.ComStructure.BComCity();
                    var    CPCD    = citybll.GetCPCD(CurrentUserCompanyID, diZhiInfo.GuoJiaId, diZhiInfo.ShengFenId, diZhiInfo.ChengShiId, diZhiInfo.XianQuId);
                    string s       = string.Empty;
                    if (CPCD != null)
                    {
                        s = CPCD.CountryName + "-" + CPCD.ProvinceName + "-" + CPCD.CityName + "-" + CPCD.CountyName + "&nbsp;";
                    }

                    ltrSlrDiZhi.Text = "地址:" + s + diZhiInfo.DiZhi + "&nbsp;邮编:" + diZhiInfo.YouBian + "<br/>收件人:" + diZhiInfo.XingMing + "&nbsp;&nbsp;" + diZhiInfo.DianHua;
                }
            }

            if (info.DingDanStatus != EyouSoft.Model.EnumType.YlStructure.LiPinKaDingDanStatus.已取消 &&
                info.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.未付款)
            {
                phQuXiao.Visible = true;
            }
        }
示例#13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string dingDanId      = Utils.GetQueryStringValue("dingdanid");
            var    DingDanLeiXing = (EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing), Utils.GetQueryStringValue("dingdanleixing"));

            if (!DingDanLeiXing.HasValue ||
                DingDanLeiXing.Value != EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing.兑换订单)
            {
                Utils.RCWE("请求异常!");
            }


            var info = new EyouSoft.BLL.YlStructure.BDuiHuan().GetJiFenDingDanInfo(dingDanId);

            if (info == null)
            {
                Utils.RCWE("请求异常!");
            }

            string token = Utils.GetQueryStringValue("token");

            if (string.IsNullOrEmpty(token))
            {
                Utils.RCWE("请求异常!");
            }

            EyouSoft.Model.SSOStructure.MYlHuiYuanInfo huiYuanInfo;
            bool isLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out huiYuanInfo);

            if (info.XiaDanRenId != token)
            {
                RCWE("请求异常");
            }
            if (isLogin && info.XiaDanRenId != huiYuanInfo.HuiYuanId)
            {
                RCWE("请求异常");
            }

            dingdanhao.Text = info.JiaoYiHao;

            dingdanzhuangtai.Text = info.FuKuanStatus.ToString();
            if (info.FuKuanStatus == EyouSoft.Model.EnumType.YlStructure.FuKuanStatus.未付款)
            {
                dingdanzhuangtai.Text = "<span style='color:#ff0000'>未付款</span>";
                if (info.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.JiFenDingDanStatus.已成交)
                {
                    ltr01.Text = "<a href=\"orderpay.aspx?dingdanleixing=" + (int)DingDanLeiXing.Value + "&dingdanid=" + dingDanId + "&token=" + token + "\" class=\"fukuan\">付款</a>";
                }
                else if (info.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.JiFenDingDanStatus.未处理)
                {
                    ltr01.Text = "审核中";
                }
                else if (info.DingDanStatus == EyouSoft.Model.EnumType.YlStructure.JiFenDingDanStatus.已取消)
                {
                    ltr01.Text = "已取消";
                }
                else
                {
                    ltr01.Text = string.Empty;
                }
            }

            shanpinjine.Text = info.ShangPinJinE.ToString("C2");

            string fangshi = string.Empty;

            if (info.FangShi == EyouSoft.Model.EnumType.YlStructure.JiFenDuiHuanFangShi.积分)
            {
                fangshi = "积分";
            }
            else if (info.FangShi == EyouSoft.Model.EnumType.YlStructure.JiFenDuiHuanFangShi.积分现金)
            {
                fangshi = "积分+现金";
            }
            duihuanfangshi.Text  = fangshi;
            duihuanjifen.Text    = info.JiFen.ToString("F2");
            duihuanjine.Text     = (info.JinE - info.FaPiaoKuaiDiJinE).ToString("C2");
            kuaidifei.Text       = info.FaPiaoKuaiDiJinE.ToString("C2");
            shifujine.Text       = info.JinE.ToString("C2");
            duihuanshuliang.Text = info.ShuLiang.ToString();

            #region 预订信息
            yudingren.Text     = info.YuDingRenName;
            yudingyoujian.Text = info.YuDingRenYouXiang;
            yudingshouji.Text  = info.YuDingRenShouJi;
            #endregion

            if (info.IsXuYaoFaPiao)
            {
                #region 发票信息
                fapiaotaitou.Text = info.FaPiaoTaiTou;
                fapiaomingxi.Text = info.FaPiaoMingXi;
                #endregion

                #region 配送方式
                var dizhi = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDiZhiInfo(info.FaPiaoDiZhiId);
                if (dizhi != null)
                {
                    var dizhixiangqing = new EyouSoft.BLL.ComStructure.BComCity().GetCPCD(YuMingInfo.CompanyId, dizhi.GuoJiaId, dizhi.ShengFenId, dizhi.ChengShiId, dizhi.XianQuId);
                    peisongfangshi.Text = string.Format("{0}({1})", dizhixiangqing != null ? dizhixiangqing.CountryName + dizhixiangqing.ProvinceName + dizhixiangqing.CityName + dizhixiangqing.CountyName + dizhi.DiZhi : "", info.FaPiaoPeiSongFangShi);
                }
                #endregion
            }
            else
            {
                phFaPiao.Visible = false;
                phFaPiaoPeiSongFangShi.Visible = false;
            }
        }