Esempio n. 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);
    }
Esempio n. 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();
                }
            }
        }
Esempio n. 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();
 }