public Previlege(string username, string menuname, int applID, PrevilegeType pType)
 {
     this.Username = username;
     this.Menuname = menuname;
     this.ApplID   = applID;
     this.PType    = pType;
 }
        private static bool HasPrevilegeFlag(string PS, PrevilegeType pType)
        {
            int pIndex = -1;

            if (pType == PrevilegeType.P_SELECT)
            {
                pIndex = 0;
            }
            else if (pType == PrevilegeType.P_ADD)
            {
                pIndex = 1;
            }
            else if (pType == PrevilegeType.P_EDIT)
            {
                pIndex = 2;
            }
            else if (pType == PrevilegeType.P_DELETE)
            {
                pIndex = 3;
            }

            char[] token = { '_' };

            if (PS.Split(token)[pIndex] == "Y")
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }