public ZhongXin() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ZhongXinFactory.Create(); MySupplier = SupplierFactory.CreateSupplier(); DBHelper = SQLHelperFactory.CreateSQLHelper(); pub = new Public_Class(); sendmessages = new ZhongXinUtil.SendMessages(); //Supplier_ID = tools.CheckInt(Session["supplier_id"].ToString()); //佣金 CommissionAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccno"]; CommissionAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_commissionaccnm"]; //交易保证金 GuaranteeAccNo = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccno"]; GuaranteeAccNm = System.Configuration.ConfigurationManager.AppSettings["zhongxin_dealguaranteeaccnm"]; }
public ZhongXin() { //初始化ASP.NET内置对象 Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); MyBLL = ZhongXinFactory.Create(); MySupplier = SupplierFactory.CreateSupplier(); sendmessages = new ZhongXinUtil.SendMessages(); }