public static void SOD() { if (!LogBLL.IsLogged()) { FinalizeStoreInPast(); OrderBLL.CloseOrder(); FacilityBLL.ResetCounting(); LogBLL.Logs(RedBloodSystem.SODActor); } }
public static List <Donation> New(RedBloodDataContext db, int count) { Facility f = FacilityBLL.GetFirst(db); int autonum = f.CountingNumber.Value; Donation[] l = new Donation[count]; for (int i = 0; i < l.Length; i++) { l[i] = new Donation(); autonum++; l[i].DIN = f.FIN + f.CountingYY + autonum.ToString("D6"); l[i].Status = Donation.StatusX.Init; l[i].InfectiousMarkers = 0.ToString("D" + BarcodeBLL.InfectiousMarkersLength.ToString()); } f.CountingNumber = autonum; db.Donations.InsertAllOnSubmit(l); return(l.ToList()); }