/// <summary>
 /// For Inserts
 /// </summary>
 public static NeedPpeType Create_FromViewModel(NeedPpeTypeViewModel s, Need need)
 {
     return(new NeedPpeType
     {
         Need = need,
         PpeTypeId = (byte)s.Type,
         PpeTypeOther = s.PpeTypeOther,
         DailyShortage = s.DailyShortage,
         DailyShortageForWhom = s.DailyShortageForWhom,
         StatusId = (int)PpeStatus.New                  //N.B for inserts
     });
 }
Exemplo n.º 2
0
 public void Modify(NeedPpeTypeViewModel s)
 {
     PpeTypeOther         = s.PpeTypeOther;
     DailyShortage        = s.DailyShortage;
     DailyShortageForWhom = s.DailyShortageForWhom;
 }