|
Wersja 710, 1.3 KB
(wprowadzona przez dorota, 18 years temu)
|
|
baza zamowien i premii 1.0.0.1
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.ComponentModel;
|
|---|
| 4 | using System.Data;
|
|---|
| 5 | using System.Drawing;
|
|---|
| 6 | using System.Text;
|
|---|
| 7 | using System.Windows.Forms;
|
|---|
| 8 | using BazaZamowien.Classes;
|
|---|
| 9 |
|
|---|
| 10 | namespace BazaZamowien
|
|---|
| 11 | {
|
|---|
| 12 | public partial class RealizacjaForm : Form
|
|---|
| 13 | {
|
|---|
| 14 | public RealizacjaForm(int IDE, int IDEzam, bool nowa)
|
|---|
| 15 | {
|
|---|
| 16 | InitializeComponent();
|
|---|
| 17 |
|
|---|
| 18 | realizacjeTableAdapter.Connection.ConnectionString = ConnString.getConnString().ZamowieniaConnStr;
|
|---|
| 19 |
|
|---|
| 20 | if (!nowa)
|
|---|
| 21 | {
|
|---|
| 22 | this.realizacjeTableAdapter.FillByIDE(this.zamowieniaDataSet.Realizacje, IDE);
|
|---|
| 23 | }
|
|---|
| 24 | else
|
|---|
| 25 | {
|
|---|
| 26 | DataView datatable = (DataView)this.realizacjeBindingSource.List;
|
|---|
| 27 | DataRowView row = datatable.AddNew();
|
|---|
| 28 | // row["IDE"] = IDE;
|
|---|
| 29 | row["Data"] = DateTime.Today;
|
|---|
| 30 | row["IDEZamowienie"] = IDEzam;
|
|---|
| 31 | realizacjeBindingSource.EndEdit();
|
|---|
| 32 |
|
|---|
| 33 | }
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | private void button1_Click(object sender, EventArgs e)
|
|---|
| 37 | {
|
|---|
| 38 | this.realizacjeBindingSource.EndEdit();
|
|---|
| 39 | this.realizacjeTableAdapter.Update(this.zamowieniaDataSet.Realizacje);
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | private void button2_Click(object sender, EventArgs e)
|
|---|
| 43 | {
|
|---|
| 44 |
|
|---|
| 45 | }
|
|---|
| 46 | }
|
|---|
| 47 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.