root/branches/TruckExpo/TruckExpoCDN/EXPODataSet.cs @ 709

Wersja 415, 1.0 KB (wprowadzona przez marek, 17 years temu)

re #104

Line 
1using System.Data.SqlClient;
2
3namespace ExportFaktur {
4
5
6    partial class EXPODataSet
7    {
8       public decimal sumaNETTO()
9        {
10            return (decimal)this.FAKTURA_DETAILS.Compute("Sum(netto)", "1=1");
11        }
12
13        public decimal stawkaVAT()
14        {
15            FAKTURA_DETAILSRow row = (FAKTURA_DETAILSRow)this.FAKTURA_DETAILS.Rows[0];
16            return (decimal)row.S_VAT;
17        }
18
19        public decimal rabatProcent()
20        {
21            FAKTURA_DETAILSRow row = (FAKTURA_DETAILSRow)this.FAKTURA_DETAILS.Rows[0];
22            return (decimal)row.UPUST_PR;
23        }
24    }
25
26}
27
28namespace ExportFaktur.EXPODataSetTableAdapters
29{
30    partial class FAKTURYTableAdapter
31    {
32        public void AttachTransaction(SqlTransaction transaction)
33        {
34            this.Adapter.InsertCommand.Transaction = transaction;
35            this.Adapter.UpdateCommand.Transaction = transaction;
36            this.Adapter.DeleteCommand.Transaction = transaction;
37        }
38    }
39}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.