コード例 #1
0
        public Print_List(DateTime startDat, DateTime endDat) : base()
        {
            //Set the file stream
            //Instantiate out Text property to an empty string
            Title_text       = string.Empty;
            Title_text2      = string.Empty;
            Title_text3      = string.Empty;
            startTag         = startDate.Day;
            startMonat       = startDate.Month;
            startJahr        = startDate.Year;
            endJahr          = endDate.Year;
            endMonat         = endDate.Month;
            endTag           = endDate.Day;
            this.startDate   = startDat;
            this.endDate     = endDat;
            this.workingDate = startDat;
            sno = 0;
            // count the no of days
            noOfDays = Convert.ToInt32((endDate - startDate).TotalDays);

            totalMwst19 = 0;
            totalSumme  = 0;
            totalMwst7  = 0;
            if (base.DefaultPageSettings.PaperSize.PaperName != "A5")
            {
                PageSetupDialog ds = new PageSetupDialog();
                ds.Document = this;
                ds.ShowDialog();
            }
            rData = new RestauranteData();
        }
コード例 #2
0
ファイル: NeuAuftrag.cs プロジェクト: pakiweb46/Restaurante
 public NeuAuftrag()
 {
     InitializeComponent();
     rData      = new RestauranteData();
     providerEn = CultureInfo.CreateSpecificCulture("en-GB");
     recordNr   = 0;
 }
コード例 #3
0
 public frmMitarbeiter()
 {
     InitializeComponent();
     rData = new RestauranteData();
     // initialize indexer
     recordNr    = 0;
     recordCount = rData.getCount("mitarbeiter");
 }
コード例 #4
0
 public frmKundenDaten()
 {
     InitializeComponent();
     rData      = new RestauranteData();
     providerEn = CultureInfo.CreateSpecificCulture("en-GB");
     // initialize indexer
     recordNr    = 0;
     recordCount = rData.getCount("kundendaten");
 }
コード例 #5
0
 public Print_List() : base()
 {
     //Set the file stream
     //Instantiate out Text property to an empty string
     Title_text  = string.Empty;
     Title_text2 = string.Empty;
     Title_text3 = string.Empty;
     rData       = new RestauranteData();
 }
コード例 #6
0
ファイル: KundeHolder.cs プロジェクト: pakiweb46/Restaurante
 public KundeHolder()
 {
     rData          = new RestauranteData();
     KundenName     = string.Empty;
     KundenOrt      = string.Empty;
     KundenPLZ      = string.Empty;
     KundenAddresse = string.Empty;
     KundenTelefone = string.Empty;
     KundenHinweis  = string.Empty;
     AnfahrtKosten  = 0;
     MwstAnfahrt    = 0;
     Gesamt         = 0;
     Rabatt         = 0;
 }
コード例 #7
0
 /// </summary>
 public frmAbrechnung()
 {
     InitializeComponent();
     rData = new RestauranteData();
 }
コード例 #8
0
 public frmZutaten()
 {
     InitializeComponent();
     rData      = new RestauranteData();
     providerEn = CultureInfo.CreateSpecificCulture("en-GB");
 }
コード例 #9
0
 public chooseView()
 {
     InitializeComponent();
     rData = new RestauranteData();
 }
コード例 #10
0
 public frmShowList()
 {
     InitializeComponent();
     rData = new RestauranteData();
 }
コード例 #11
0
        private void InitializeArtikel()
        {
            rData              = new RestauranteData();
            this.listView1     = new PrintableListView2();
            this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.btnDrucken    = new System.Windows.Forms.Button();
            this.btnZuruck     = new System.Windows.Forms.Button();

            this.SuspendLayout();
            //
            // listView1
            //
            this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                this.columnHeader1,
                this.columnHeader2,
                this.columnHeader3,
                this.columnHeader4
            });
            this.listView1.GridLines = true;
            this.listView1.Location  = new System.Drawing.Point(53, 75);
            this.listView1.Margin    = new System.Windows.Forms.Padding(5);
            this.listView1.Name      = "listView1";
            this.listView1.Size      = new System.Drawing.Size(804, 464);
            this.listView1.TabIndex  = 1;
            this.listView1.UseCompatibleStateImageBehavior = false;
            this.listView1.View = System.Windows.Forms.View.Details;

            //
            // columnHeader1
            //
            this.columnHeader1.Text  = "Artikel Nr";
            this.columnHeader1.Width = 149;
            //
            // columnHeader2
            //
            this.columnHeader2.Text  = "Bezeichnung";
            this.columnHeader2.Width = 312;
            //
            // columnHeader3
            //
            this.columnHeader3.Text  = "Zusatz";
            this.columnHeader3.Width = 118;
            //
            // columnHeader5
            //
            this.columnHeader4.Text  = "Preis";
            this.columnHeader4.Width = 133;
            // button1
            //
            this.btnDrucken.Location = new System.Drawing.Point(53, 614);
            this.btnDrucken.Name     = "button1";
            this.btnDrucken.Size     = new System.Drawing.Size(136, 45);
            this.btnDrucken.TabIndex = 4;
            this.btnDrucken.Text     = "Drucken (F3)";
            this.btnDrucken.UseVisualStyleBackColor = true;
            this.btnDrucken.Click += new System.EventHandler(this.btnDrucken_Click);
            //
            // button2
            //
            this.btnZuruck.Location = new System.Drawing.Point(195, 614);
            this.btnZuruck.Name     = "button2";
            this.btnZuruck.Size     = new System.Drawing.Size(148, 45);
            this.btnZuruck.TabIndex = 5;
            this.btnZuruck.Text     = "Zurück (Esc)";
            this.btnZuruck.UseVisualStyleBackColor = true;
            this.btnZuruck.Click += new System.EventHandler(this.btnZuruck_Click);

            //

            //
            // frmShowList
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 20F);
            this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize          = new System.Drawing.Size(892, 671);
            this.Controls.Add(this.listView1);
            this.Controls.Add(this.btnZuruck);
            this.Controls.Add(this.btnDrucken);

            this.Font   = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Margin = new System.Windows.Forms.Padding(5);
            this.Name   = "frmShowList";
            this.Text   = "frmShowList";
            this.Load  += new System.EventHandler(this.frmShowList_Load);
            this.ResumeLayout(false);
            this.PerformLayout();
        }