Beispiel #1
0
 public Permission Copy()
 {
     Permission kq = new Permission();
     kq.PermissionCode = permissionCode;
     kq.PermissionName = permissionName;
     return kq;
 }
Beispiel #2
0
 public static List<Permission> getListPermission()
 {
     List<Permission> kq = new List<Permission>();
     string sql = "SELECT [PermissionCode],[PermissionName] FROM  [VNAAccounting].[dbo].[Permission]";
     System.Data.DataTable dt = DAL.CSDL.hienthi(sql);
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         Permission temp = new Permission();
         temp.PermissionCode = dt.Rows[i]["PermissionCode"].ToString();
         temp.PermissionName = dt.Rows[i]["PermissionName"].ToString();
         kq.Add(temp);
     }
     return kq;
 }