예제 #1
0
 public int GetSecurityModuleByControllerAction(string controller, string action)
 {
     using (var gbData = new UERPDataAccess())
     {
         return(int.Parse(gbData.GetDataOnDatesetBySqlCommand("SELECT AspNetSecurityModuleId FROM AspNetSecurityModule WHERE ControllerName='" + controller + "' AND ActionName='" + action + "'").Tables[0].Rows[0][0].ToString()));
     }
 }
예제 #2
0
 public DateTime GetBusinessDay()
 {
     using (var gbData = new UERPDataAccess())
     {
         return(DateTime.Parse(gbData.GetDataOnDatesetBySqlCommand("SELECT GETDATE()").Tables[0].Rows[0][0].ToString()));
     }
 }
예제 #3
0
 public int ExecuteStoredProcedure <TParamOType>(TParamOType target, string storedProcedure) where TParamOType : class
 {
     using (var gbData = new UERPDataAccess())
     {
         return(gbData.ExecuteNonQuery(storedProcedure, target));
     }
 }
예제 #4
0
 public DataSet GetDataWithoutParameter(string storeProcedureName)
 {
     using (var gbData = new UERPDataAccess())
     {
         return(gbData.GetDataOnDatesetWithoutParam(storeProcedureName));
     }
 }
예제 #5
0
 public DataSet GetDataBySqlCommand(string sql)
 {
     using (var gbData = new UERPDataAccess())
     {
         return(gbData.GetDataOnDatesetBySqlCommand(sql));
     }
 }
예제 #6
0
 public DataSet GetDataWithParameter <TParamOType>(TParamOType target, string storeProcedureName) where TParamOType : class
 {
     using (var gbData = new UERPDataAccess())
     {
         return(gbData.GetDataOnDateset(storeProcedureName, target));
     }
 }
예제 #7
0
        public DataSet UpdateAspNetUserName <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "UpdateAspNetUserName";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #8
0
        public DataSet GetReportPermissionModule <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_ReportAccessModule";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #9
0
        public DataSet GetAspNetRoleModule <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_GET_Rolewise_Child_Menu";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #10
0
        public DataSet GetEmployeeForRegister()
        {
            var storeProcedureName = "USP_GET_EMPLOYEE_FOR_REGISTER";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDatesetWithoutParam(storeProcedureName));
            }
        }
예제 #11
0
        public DataSet GetAspNetUserList()
        {
            var storeProcedureName = "USP_GetAspNetUserList";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDatesetWithoutParam(storeProcedureName));
            }
        }
예제 #12
0
        public DataSet SP_GETAspNetRoleModuleIdIsactiveZero <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_GETAspNetRoleModuleIdIsactiveZero";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #13
0
        public DataSet SP_UPDATEAspNetRoleSecurityLevelId <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_UPDATEAspNetRoleSecurityLevelId";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #14
0
        public int SaveAspNetRoleModule <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "INSERT_AspNetRoleModule";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.ExecuteNonQuery(storeProcedureName, target));
            }
        }
예제 #15
0
        public DataSet GetAspNetSecurityModuleRole <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_AspNetSecurityModuleRole";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));
            }
        }
예제 #16
0
        public DataSet GetEmployeeForRegister <TParamOType>(TParamOType target) where TParamOType : class
        {
            var storeProcedureName = "USP_GET_EMPLOYEE_FOR_REGISTER";

            using (var gbData = new UERPDataAccess())
            {
                return(gbData.GetDataOnDateset(storeProcedureName, target));//menuSPService
            }
        }