示例#1
0
 public static void restoreDiscount()
 {
     client.lastDateUpd  = new DateTime();
     client.barcode      = null;
     client.nameLast     = null;
     client.nameFirst    = null;
     client.points       = 0;
     client.procent      = 0.0m;
     client.addPoints    = false;
     client.discountSet  = false;
     client.showMessaget = true;
     ClassCheck.discountCalc();
     new ClassFunctuon().writeToatl();
 }
示例#2
0
        public static void discountCalc()
        {
            if (b != null)
            {
                IEnumerable <XElement> elms = ClassCheck.b.Element("check").Elements("product");

                foreach (var e in elms)
                {
                    ClassProducts.product p = ClassProducts.transform(e);
                    ClassCheck.modifProductCheck_(p.ii, p.price, p.Name, p.qty);
                }
                ClassCheck.getTotalPrice();
            }
        }
示例#3
0
        private static void worker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
        {
            ClassSync.sync = false;

            new ClassPrintCheck(ClassCheck.b, false);

            ClassCheck.b = null;

            ClassCheck.openProductsCheck();

            pro = null;

            ndevis = -1;

            nfact = -1;

            ClassProMode.check = null;

            ClassProMode.devis = false;

            ClassProMode.modePro = false;

            ClassDiscounts.restoreDiscount();

            var de = ClassETC_fun.findWindow("_W_Message");

            if (de != null)
            {
                de.Close();
            }

            var mw = ClassETC_fun.findWindow("MainWindow_");

            if (mw != null)
            {
                mw.IsEnabled = true;
            }
        }