root/Baza Reklam 2 - Faktury/REKLAMADataSet.cs @ 2

Wersja 2, 3.5 KB (wprowadzona przez dorota, 17 years temu)
Line 
1using System;
2using System.Data;
3using System.Data.SqlClient;
4
5namespace Baza_Reklam.REKLAMADataSetTableAdapters
6{
7    partial class REKLAMATableAdapter
8    {
9        public void AttachTransaction(SqlTransaction transaction)
10        {
11            this.Adapter.InsertCommand.Transaction = transaction;
12            this.Adapter.UpdateCommand.Transaction = transaction;
13            this.Adapter.DeleteCommand.Transaction = transaction;
14        }
15    }
16
17    partial class FAKTURA_DETAILSTableAdapter
18    {
19        public void AttachTransaction(SqlTransaction transaction)
20        {
21            this.Adapter.InsertCommand.Transaction = transaction;
22            this.Adapter.UpdateCommand.Transaction = transaction;
23            this.Adapter.DeleteCommand.Transaction = transaction;
24        }
25    }
26
27    partial class UKAZE_SIE_W_NRTableAdapter
28    {
29        public void AttachTransaction(SqlTransaction transaction)
30        {
31            this.Adapter.InsertCommand.Transaction = transaction;
32            this.Adapter.UpdateCommand.Transaction = transaction;
33            this.Adapter.DeleteCommand.Transaction = transaction;
34        }
35    }
36
37    partial class zamowieniaTableAdapter
38    {
39        public void AttachTransaction(SqlTransaction transaction)
40        {
41            this.Adapter.InsertCommand.Transaction = transaction;
42            this.Adapter.UpdateCommand.Transaction = transaction;
43            this.Adapter.DeleteCommand.Transaction = transaction;
44        }
45    }
46
47    partial class FAKTURYTableAdapter
48    {
49        public void AttachTransaction(SqlTransaction transaction)
50        {
51            this.Adapter.InsertCommand.Transaction = transaction;
52            this.Adapter.UpdateCommand.Transaction = transaction;
53            this.Adapter.DeleteCommand.Transaction = transaction;
54        }
55    }
56}
57
58namespace Baza_Reklam {
59
60
61    partial class REKLAMADataSet
62    {
63        partial class WplatyDataTable
64        {
65        }
66   
67        partial class ZestawienieFakturNEWDataTable
68        {
69        }
70
71        partial class REKLAMADataTable
72        {
73            public double sumaNetto()
74            {
75                double suma = 0;
76             
77                if (Rows.Count > 0)
78                {
79                    suma = (double)this.Compute("Sum(netto)", "netto is not null");
80                }
81               
82                return suma;
83            }
84        }
85
86        partial class zamowieniaDataTable
87        {
88            /// <summary>
89            /// Do wywołania jeżeli z tablicy są wszystkie zamówienia klienta
90            /// </summary>
91            public int nrKolejnegoZamowienia(int rok)
92            {
93                int nowyNr = 1;
94               
95                if (Rows.Count > 0)
96                {
97                    nowyNr = (int)this.Compute("Count(idZamowienia)", "rokZamowienia=" + rok);
98                }
99
100                return nowyNr;
101            }
102        }
103
104        partial class UKAZE_SIE_W_NRDataTable
105        {
106            /*
107            public double sumaNetto(string tytul,  )
108            {
109                double suma = 0;
110
111                if (Rows.Count > 0)
112                {
113                    suma = (double)this.Compute("Sum(netto)", "netto is not null");
114                }
115
116                return suma;
117            }*/
118        }
119           
120
121        partial class REKLAMA_STRONADataTable
122        {
123        }
124   
125        partial class KONTAKTYDataTable
126        {
127           
128        }
129
130     
131
132    }
133}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.