Beispiel #1
0
        private void FakturaTilSummaSummarumToolStripButton_Click(object sender, EventArgs e)
        {
            try
            {
                Registry.CurrentUser.OpenSubKey(@"SOFTWARE\STONE'S SOFTWARE\SUMMAPRO\FAKTURA", true).SetValue("Kontant", "0");
                Registry.CurrentUser.OpenSubKey(@"SOFTWARE\STONE'S SOFTWARE\SUMMAPRO\FAKTURA", true).SetValue("SkjulDaekBD", "1");
            }
            catch (System.NullReferenceException)
            {
            }

            if (Valider())
            {
                clsFaktura objFaktura = new clsFaktura();
                objFaktura.SalgsOrder2Summa((IList <Tblwfak>) this.tblwfakBindingSource.List);
                objFaktura.KøbsOrder2Summa((IList <Tblwfak>) this.tblwfakBindingSource.List);
                objFaktura = null;

                int iMax = this.tblwfakBindingSource.List.Count - 1;
                for (int i = iMax; i >= 0; i--)
                {
                    try
                    {
                        this.tblwfakBindingSource.List.RemoveAt(i);
                    }
                    catch { }
                }
            }
        }
Beispiel #2
0
        private void importFakturaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            clsFaktura objFaktura = new clsFaktura();

            objFaktura.ImportSalgsfakturaer();
            objFaktura.ImportKøbsfakturaer();
            objFaktura.KøbsOrderOmk();
        }