Esempio n. 1
0
 public UserSecurityKeyTO(UserSecurityKey mdo)
 {
     this.id = mdo.Id;
     this.name = mdo.Name;
     this.descriptiveName = mdo.DescriptiveName;
     this.creatorId = mdo.CreatorId;
     this.creatorName = mdo.CreatorName;
     this.creationDate = mdo.CreationDate.Year == 1 ? "" : mdo.CreationDate.ToString("yyyyMMdd.HHmmss");
     this.reviewDate = mdo.ReviewDate.Year == 1 ? "" : mdo.ReviewDate.ToString("yyyyMMdd.HHmmss");
 }
Esempio n. 2
0
 public UserSecurityKeyArray(UserSecurityKey[] mdo)
 {
     if (mdo == null)
     {
         return;
     }
     keys = new UserSecurityKeyTO[mdo.Length];
     for (int i = 0; i < mdo.Length; i++)
     {
         keys[i] = new UserSecurityKeyTO(mdo[i]);
     }
     count = mdo.Length;
 }