示例#1
0
        public frmReturnableDCList(UserCompany currentCompany, User currentUser)
        {
            this.currentCompany = currentCompany;
            this.currentUser    = currentUser;
            objUIRights         = new UIRights();

            InitializeComponent();
            InitializeListView();

            GeneralMethods.FormAuthenticate(this.Name, currentCompany, currentUser);
            objUIRights.AddRight    = GeneralMethods.frmAddRight;
            objUIRights.ModifyRight = GeneralMethods.frmModifyRight;
            objUIRights.ViewRight   = GeneralMethods.frmViewRight;
            objUIRights.DeleteRight = GeneralMethods.frmDeleteRight;
            objUIRights.PrintRight  = GeneralMethods.repPrintRight;
        }
示例#2
0
        public frmUserAuthority(UserCompany currentCompany, User currentUser)
        {
            this.objUserCompany = currentCompany;
            this.objCurUser     = currentUser;

            objUIRights = new UIRights();

            InitializeComponent();

            GeneralMethods.FormAuthenticate(this.Name, objUserCompany, objCurUser);
            objUIRights.AddRight    = GeneralMethods.frmAddRight;
            objUIRights.ModifyRight = GeneralMethods.frmModifyRight;
            objUIRights.ViewRight   = GeneralMethods.frmViewRight;
            objUIRights.DeleteRight = GeneralMethods.frmDeleteRight;
            objUIRights.PrintRight  = GeneralMethods.repPrintRight;
        }
示例#3
0
        public frmDeptList(UserCompany objCompany, User objUser)
        {
            this.objCurUser     = objUser;
            this.objUserCompany = objCompany;

            objUIRights = new UIRights();

            InitializeComponent();
            InitializeListView();
            GeneralMethods.FormAuthenticate(this.Name, objUserCompany, objCurUser);

            objUIRights.AddRight    = GeneralMethods.frmAddRight;
            objUIRights.ModifyRight = GeneralMethods.frmModifyRight;
            objUIRights.ViewRight   = GeneralMethods.frmViewRight;
            objUIRights.DeleteRight = GeneralMethods.frmDeleteRight;
            objUIRights.PrintRight  = GeneralMethods.repPrintRight;
        }