示例#1
0
    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);
    }
示例#2
0
        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();
                }
            }
        }
示例#3
0
 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();
 }