Example #1
0
 private void Save_com()
 {
     foreach (tbl_000_H_PART c in comlist)
     {
         c.YEARUSED    = UserSettings.LogInYear;
         c.IsLocked    = false;
         c.CreatedDate = DateTime.Now;
         c.CreatedBy   = UserSettings.Username;
         c.UpdatedDate = DateTime.Now;
         c.IsCopied    = false;
         c.CopyDate    = DateTime.Now;
         c.IsImported  = true;
         c.ImportDate  = DateTime.Now;
         c.ImportBy    = UserSettings.Username;
         cleaned_list_com.Add(c);
     }
     if (combal.Save_List(cleaned_list_com))
     {
         if (cleaned_list_com.Count > 0)
         {
             finishing_msg = msgval_success;
         }
         else
         {
             finishing_msg = msgval_nochanges;
         }
         MessageHelpers.ShowInfo(finishing_msg);
         MyCaller_com.Init_Form();
     }
 }
 private void Save_com(Boolean IsOverwrite)
 {
     if (combal.CopyByYear(selyear, UserSettings.LogInYear, UserSettings.Username, IsOverwrite))
     {
         MessageHelpers.ShowInfo(msgval_success);
         MyCaller_com.Init_Form();
     }
 }