コード例 #1
0
        public static void SOD()
        {
            if (!LogBLL.IsLogged())
            {
                FinalizeStoreInPast();
                OrderBLL.CloseOrder();
                FacilityBLL.ResetCounting();

                LogBLL.Logs(RedBloodSystem.SODActor);
            }
        }
コード例 #2
0
ファイル: DonationBLL.cs プロジェクト: ghostnguyen/redblood
        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());
        }