예제 #1
0
        public ReportRightResult Get(int ReportRightID)
        {
            ReportRight       rr     = new ReportRight();
            ReportRightResult result = rr.GetReportRight(ReportRightID);

            return(result);
        }
예제 #2
0
        public LoginUser(int ID, string LoginID, int APPLICATIONID, int DatabaseID, string DatabaseNAME, decimal ViewLevel, string ReportGroup, int REPORTRIGHT, CUSTOMRP.Model.GROUPRIGHT gr)
        {
            this.ID            = ID;
            this.LoginID       = LoginID;
            this.APPLICATIONID = APPLICATIONID;
            this.DatabaseID    = DatabaseID;
            this.DatabaseNAME  = DatabaseNAME;
            this.ViewLevel     = ViewLevel;
            this.ReportGroup   = ReportGroup;
            this.gr            = gr;

            //v1.1.0 - Cheong - 2016/06/03 - Simplify report right assignment
            _ReportRight = (ReportRight)REPORTRIGHT;
            //List<int> reportRight = Function.Utils.getList2N(REPORTRIGHT);
            //if (reportRight.Contains(3))
            //{
            //    rp_view = true;             // = 8
            //}
            //if (reportRight.Contains(2))
            //{
            //    rp_delete = true;           // = 4
            //}
            //if (reportRight.Contains(1))
            //{
            //    rp_modify = true;           // = 2
            //}
            //if (reportRight.Contains(0))
            //{
            //    rp_add = true;              // = 1
            //}
        }
예제 #3
0
        public List <ReportRightResult> Get()
        {
            ReportRight rr = new ReportRight();
            List <ReportRightResult> result = rr.GetReportRights();

            return(result);
        }