Пример #1
0
        protected bool CheckPermission(string functionCode = "")
        {
            object dataResponse = DataFunction.ExecuteNoneQuery(serviceUrl, "Request/NoneQuery", "",
                                                                new List <string>()
            {
                "@employeeCode", SEmployee.EmployeeCode,
                "@functionCode", functionCode
            },
                                                                "[dbo].[NI10_Function_CheckPermission]");

            if (dataResponse != null)
            {
                if (Convert.ToInt32(dataResponse) > 0)
                {
                    return(true);
                }
            }
            return(false);
        }