Exemplo n.º 1
0
        /// <summary>
        /// 获取域名信息
        /// </summary>
        /// <param name="yuMing">域名</param>
        /// <returns></returns>
        public EyouSoft.Model.YlStructure.MWzYuMingInfo GetYuMingInfo(string yuMing)
        {
            var info = new EyouSoft.Model.YlStructure.MWzYuMingInfo();

            info.YuMing    = yuMing;
            info.CompanyId = string.Empty;

            DbCommand cmd = _db.GetSqlStringCommand(SQL_SELECT_GetYuMingInfo);

            _db.AddInParameter(cmd, "YuMing", DbType.String, yuMing);

            using (var rdr = DbHelper.ExecuteReader(cmd, _db))
            {
                if (rdr.Read())
                {
                    info.CompanyId = rdr["CompanyId"].ToString();
                    info.ErpYuMing = rdr["ErpYuMing"].ToString();
                }
            }

            return(info);
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BANK_ZL = Utils.GetQueryStringValue("bank_zl");
            BANK_ID = Utils.GetQueryStringValue("bank_id");
            BANK_KJ = Utils.GetQueryStringValue("bank_kj");

            YuMingInfo = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo();

            string dingDanId       = Request.QueryString["dingdanid"];
            var    dingDanLeiXiang = Utils.GetEnumValue <EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing>(Utils.GetQueryStringValue("DingDanLeiXing"), EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing.航期订单);//订单类型

            if (string.IsNullOrEmpty(dingDanId))
            {
                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 (isLogin && huiYuanInfo.HuiYuanId != token)
            {
                Utils.RCWE("错误的请求");
            }

            decimal zhiFuJinE    = 0.0m;
            string  zhiFuBiaoTi  = ""; //标题
            string  zhiFuMiaoShu = ""; //描述
            string  strErr       = string.Empty;
            string  cpName       = "";
            string  dingDanHao   = string.Empty;

            switch (dingDanLeiXiang)
            {
            case EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing.航期订单:
                strErr = this.GetHangQiDingDan(dingDanId, ref zhiFuBiaoTi, ref zhiFuMiaoShu, ref zhiFuJinE, ref cpName, ref dingDanHao);
                break;

            case EyouSoft.Model.EnumType.YlStructure.DingDanLeiXing.兑换订单:
                strErr = this.GetJiFenDingDan(dingDanId, ref zhiFuBiaoTi, ref zhiFuMiaoShu, ref zhiFuJinE, ref cpName, ref dingDanHao);
                break;

            default:
                strErr = "订单类型错误!";
                break;
            }

            if (!string.IsNullOrEmpty(strErr))
            {
                Utils.RCWE(strErr);
            }

            if (zhiFuJinE <= 0)
            {
                Utils.RCWE("支付金额必须大于0才能支付!");
            }

            Init99bill(dingDanId, zhiFuBiaoTi, zhiFuMiaoShu, zhiFuJinE, cpName, (int)dingDanLeiXiang, dingDanHao);
        }