Esempio n. 1
0
 private void Save_vp()
 {
     foreach (tbl_000_H_VP v in vplist)
     {
         v.YEARUSED    = UserSettings.LogInYear;
         v.IsLocked    = false;
         v.CreatedDate = DateTime.Now;
         v.CreatedBy   = UserSettings.Username;
         v.UpdatedDate = DateTime.Now;
         v.IsCopied    = false;
         v.CopyDate    = DateTime.Now;
         v.IsImported  = true;
         v.ImportDate  = DateTime.Now;
         v.ImportBy    = UserSettings.Username;
         cleaned_list_vp.Add(v);
     }
     if (vpbal.Save_List(cleaned_list_vp))
     {
         if (cleaned_list_vp.Count > 0)
         {
             finishing_msg = msgval_success;
         }
         else
         {
             finishing_msg = msgval_nochanges;
         }
         MessageHelpers.ShowInfo(finishing_msg);
         MyCaller_mtvp.Init_Form();
     }
 }
Esempio n. 2
0
 private void Save_vp(Boolean IsOverwrite)
 {
     if (vpbal.CopyByYear(selyear, UserSettings.LogInYear, UserSettings.Username, IsOverwrite))
     {
         MessageHelpers.ShowInfo(msgval_success);
         MyCaller_mtvp.Init_Form();
     }
 }