Esempio n. 1
0
        public static bool ModifyFinanceConfigPermission(FinanceConfigPermission model)
        {
            string sql = string.Format(@"update {0} set [DepartId]=@DepartId,[FinanceConfigId]=@FinanceConfigId
            where Id=@Id", TableName);

            return(DBAccess.ExecuteSqlWithEntity(sql, model));
        }
Esempio n. 2
0
        public static bool AddFinanceConfigPermission(FinanceConfigPermission model)
        {
            string sql = string.Format("insert into {0}([DepartId],[FinanceConfigId])  values(@DepartId,@FinanceConfigId)", TableName);

            return(DBAccess.ExecuteSqlWithEntity(sql, model));
        }