You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
using NFine.Code;
|
|
using NFine.Data;
|
|
using NFine.Domain.Entity.SystemManage;
|
|
using NFine.Domain.IRepository.SystemManage;
|
|
using NFine.Repository;
|
|
using NFine.Repository.SystemManage;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace NFine.Application.SystemManage
|
|
{
|
|
public class FormDataActionApp : RepositoryBase
|
|
{
|
|
|
|
public List<FormDataActionEntity> GetList()
|
|
{
|
|
string sql = @"SELECT [ID]
|
|
,[SourceId]
|
|
,[CSortSeq]
|
|
,[CCaption]
|
|
,[CFiledName]
|
|
,[CIndex]
|
|
,[CLogString]
|
|
,[CValueBegin]
|
|
,[CValueEnd]
|
|
FROM [Sys_FormDataAction]";
|
|
List<FormDataActionEntity> FormDataActionList = FindList<FormDataActionEntity>(sql);
|
|
return FormDataActionList;
|
|
}
|
|
|
|
public List<RoleDataPowerEntity> GetRoleDataList(string roleId)
|
|
{
|
|
string sql = @"select ID,RoleId,DataActionId from Sys_RoleDataPower
|
|
where RoleId='{0}'";
|
|
sql = string.Format(sql, roleId);
|
|
List<RoleDataPowerEntity> RolePowerDataList = FindList<RoleDataPowerEntity>(sql);
|
|
return RolePowerDataList;
|
|
}
|
|
}
|
|
}
|