コード例 #1
0
 public PermissionDetail Copy()
 {
     PermissionDetail kq = new PermissionDetail();
     kq.PermissionCode = permissionCode;
     kq.FormCode = formCode;
     kq.FormName = formName;
     kq.PerView = perView;
     return kq;
 }
コード例 #2
0
        public PermissionDetail Copy()
        {
            PermissionDetail kq = new PermissionDetail();

            kq.PermissionCode = permissionCode;
            kq.FormCode       = formCode;
            kq.FormName       = formName;
            kq.PerView        = perView;
            return(kq);
        }
コード例 #3
0
 public static List<PermissionDetail> getListPermissionDetail()
 {
     List<PermissionDetail> kq = new List<PermissionDetail>();
     string sql = "SELECT [PermissionCode],[FormCode],[FormName],[PerView] FROM  [VNAAccounting].[dbo].[PermissionDetail]";
     System.Data.DataTable dt = DAL.CSDL.hienthi(sql);
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         PermissionDetail temp = new PermissionDetail();
         temp.PermissionCode = dt.Rows[i]["PermissionCode"].ToString();
         temp.FormCode = dt.Rows[i]["FormCode"].ToString();
         temp.FormName = dt.Rows[i]["FormName"].ToString();
         temp.PerView = bool.Parse(dt.Rows[i]["PerView"].ToString());
         kq.Add(temp);
     }
     return kq;
 }