public UPageBase() { _BPMContext = new Pkurg.PWorldBPM.Common.Context.BPMContext(); _BPMContext.OrgService = new Pkurg.PWorldBPM.Common.Services.OrgService(); _BPMContext.ProcService = new Pkurg.PWorldBPM.Common.Services.BPMProcService(); // BizContext = new BizFormDBDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["BPMConnectionString"].ConnectionString); SysContext = new SysDBDataContext(System.Configuration.ConfigurationManager.ConnectionStrings["BPMConnectionString"].ConnectionString); }
protected override void OnInit(EventArgs e) { base.OnInit(e); ///初始化 if (_BPMContext == null) { if (this.Page is UPageBase) { _BPMContext = ((UPageBase)this.Page)._BPMContext; } else { _BPMContext = new BPMContext(); _BPMContext.OrgService = new Pkurg.PWorldBPM.Common.Services.OrgService(); _BPMContext.ProcService = new Pkurg.PWorldBPM.Common.Services.BPMProcService(); } } }
public UHanderBase() { _BPMContext = new Pkurg.PWorldBPM.Common.Context.BPMContext(); _BPMContext.OrgService = new Pkurg.PWorldBPM.Common.Services.OrgService(); _BPMContext.ProcService = new Pkurg.PWorldBPM.Common.Services.BPMProcService(); }