Exemple #1
0
        public MyPrincipal(string mastername)
        {
            identity = new MyIdentity(mastername);

            //如果成功创建对象
            if (identity.masterid != -1)
            {
                actions       = identity.Bll.GetActions();
                groupmanagers = identity.Bll.GetGroupmanager();
            }
            else
            {
                identity      = null;
                actions       = null;
                groupmanagers = null;
            }
        }
Exemple #2
0
        //构造函数
        public void MyPrincipalByMasterid(string masterid)
        {
            identity = new MyIdentity();
            identity.MyIdentityByMasterid(masterid);

            //如果成功创建对象
            if (identity.Bll._id != -1)
            {
                actions       = identity.Bll.GetActions();
                groupmanagers = identity.Bll.GetGroupmanager();
            }
            else
            {
                identity      = null;
                actions       = null;
                groupmanagers = null;
            }
        }