Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            PbProject.Model.User_Company mTopcom = new PbProject.Logic.User.User_CompanyBLL().GetCompany("100001000045");
            PbProject.Logic.ControlBase.Bd_Base_ParametersBLL Bp      = new PbProject.Logic.ControlBase.Bd_Base_ParametersBLL();
            List <PbProject.Model.Bd_Base_Parameters>         ParList = Bp.GetParametersListByCpyNo(mTopcom.UninCode.ToString());

            PbProject.Model.definitionParam.BaseSwitch BS = PbProject.WebCommon.Utility.BaseParams.getParams(ParList);

            PbProject.Logic.Pay.AliPay tempAlipay = new PbProject.Logic.Pay.AliPay();
            string         msg      = "";
            string         sqlWhere = " orderid='0130502163134897981'";
            BaseDataManage Manage   = new BaseDataManage(System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "\\Dal.dll");
            List <PbProject.Model.Tb_Ticket_Order> orderList = Manage.CallMethod("Tb_Ticket_Order", "GetList", null, new object[] { sqlWhere }) as List <PbProject.Model.Tb_Ticket_Order>;

            PbProject.Model.Tb_Ticket_Order order = orderList[0];
            tempAlipay.QueryPriceByPNR(order, BS, ref msg);
        }
Пример #2
0
        /// <summary>
        /// 参数实例
        /// </summary>
        /// <param name="Order"></param>
        /// <param name="mUser">买家帐号</param>
        public AllInterface(PbProject.Model.Tb_Ticket_Order Order, PbProject.Model.User_Employees mUser)
        {
            _order     = Order;
            _mUser     = mUser;
            _changePnr = Order.AllowChangePNRFlag;
            string sqlWhere = " UninCode='" + _mUser.CpyNo.Substring(0, 12) + "'";
            List <PbProject.Model.User_Company> objList = Manage.CallMethod("User_Company", "GetList", null, new object[] { sqlWhere }) as List <PbProject.Model.User_Company>;

            if (objList != null && objList.Count > 0)
            {
                _mTopcom = objList[0];
            }
            //_mTopcom = objList[0];
            sqlWhere = " UninCode='" + _mUser.CpyNo + "'";;
            objList  = Manage.CallMethod("User_Company", "GetList", null, new object[] { sqlWhere }) as List <PbProject.Model.User_Company>;
            if (objList != null && objList.Count > 0)
            {
                _mCom = objList[0];
            }
            _allPolicy = new List <Model.Tb_Ticket_Policy>();
            //_mCom = objList[0];
        }