-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet5.xsd
156 lines (156 loc) · 14.1 KB
/
DataSet5.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet5" targetNamespace="http://tempuri.org/DataSet5.xsd" xmlns:mstns="http://tempuri.org/DataSet5.xsd" xmlns="http://tempuri.org/DataSet5.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="FurnitureDBConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="FurnitureDBConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Furniture_System.Properties.Settings.GlobalReference.Default.FurnitureDBConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable_Ins_View_AllTableAdapter" GeneratorDataComponentClassName="DataTable_Ins_View_AllTableAdapter" Name="DataTable_Ins_View_All" UserDataComponentName="DataTable_Ins_View_AllTableAdapter">
<MainSource>
<DbSource ConnectionRef="FurnitureDBConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT DISTINCT r.Receipt_No, c.NIC, c.Fname + c.Lname AS Name, c.AdrsL1 + ',' + c.AdrsL2 + ',' + c.AdrsL3 AS Address, c.Customer_No, t.Item_Code, t.Item_Name, i.Installment_Date, i.Installment_Amount, i.Status, i.SM_ID
FROM Customer AS c INNER JOIN
Installment_Receipt AS r ON c.NIC = r.Cust_ID AND c.NIC = r.Cust_ID INNER JOIN
Item AS t INNER JOIN
Installment_Date AS i ON t.Item_Code = i.InItm_Code ON r.Receipt_No = i.Rec_No
WHERE (r.Date BETWEEN @a AND @b)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="b" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@b" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Receipt_No" DataSetColumn="Receipt_No" />
<Mapping SourceColumn="NIC" DataSetColumn="NIC" />
<Mapping SourceColumn="Name" DataSetColumn="Name" />
<Mapping SourceColumn="Address" DataSetColumn="Address" />
<Mapping SourceColumn="Customer_No" DataSetColumn="Customer_No" />
<Mapping SourceColumn="Item_Code" DataSetColumn="Item_Code" />
<Mapping SourceColumn="Item_Name" DataSetColumn="Item_Name" />
<Mapping SourceColumn="Installment_Date" DataSetColumn="Installment_Date" />
<Mapping SourceColumn="Installment_Amount" DataSetColumn="Installment_Amount" />
<Mapping SourceColumn="Status" DataSetColumn="Status" />
<Mapping SourceColumn="SM_ID" DataSetColumn="SM_ID" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable_Paid_TotTableAdapter" GeneratorDataComponentClassName="DataTable_Paid_TotTableAdapter" Name="DataTable_Paid_Tot" UserDataComponentName="DataTable_Paid_TotTableAdapter">
<MainSource>
<DbSource ConnectionRef="FurnitureDBConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT SUM(d.Installment_Amount) AS Paid_Total
FROM Installment_Date AS d INNER JOIN
Installment_Receipt AS i ON d.Rec_No = i.Receipt_No
WHERE (d.Status = 'Paid') AND (i.Date BETWEEN @a AND @b)
GROUP BY d.Rec_No</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="b" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@b" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Paid_Total" DataSetColumn="Paid_Total" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DataSet5" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet5" msprop:Generator_UserDSName="DataSet5">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DataTable_Ins_View_All" msprop:Generator_TableClassName="DataTable_Ins_View_AllDataTable" msprop:Generator_TableVarName="tableDataTable_Ins_View_All" msprop:Generator_RowChangedName="DataTable_Ins_View_AllRowChanged" msprop:Generator_TablePropName="DataTable_Ins_View_All" msprop:Generator_RowDeletingName="DataTable_Ins_View_AllRowDeleting" msprop:Generator_RowChangingName="DataTable_Ins_View_AllRowChanging" msprop:Generator_RowEvHandlerName="DataTable_Ins_View_AllRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_Ins_View_AllRowDeleted" msprop:Generator_RowClassName="DataTable_Ins_View_AllRow" msprop:Generator_UserTableName="DataTable_Ins_View_All" msprop:Generator_RowEvArgName="DataTable_Ins_View_AllRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="Receipt_No" msprop:Generator_ColumnVarNameInTable="columnReceipt_No" msprop:Generator_ColumnPropNameInRow="Receipt_No" msprop:Generator_ColumnPropNameInTable="Receipt_NoColumn" msprop:Generator_UserColumnName="Receipt_No">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NIC" msprop:Generator_ColumnVarNameInTable="columnNIC" msprop:Generator_ColumnPropNameInRow="NIC" msprop:Generator_ColumnPropNameInTable="NICColumn" msprop:Generator_UserColumnName="NIC">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Name" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_UserColumnName="Name" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="35" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Address" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="82" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Customer_No" msprop:Generator_ColumnVarNameInTable="columnCustomer_No" msprop:Generator_ColumnPropNameInRow="Customer_No" msprop:Generator_ColumnPropNameInTable="Customer_NoColumn" msprop:Generator_UserColumnName="Customer_No">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Item_Code" msprop:Generator_ColumnVarNameInTable="columnItem_Code" msprop:Generator_ColumnPropNameInRow="Item_Code" msprop:Generator_ColumnPropNameInTable="Item_CodeColumn" msprop:Generator_UserColumnName="Item_Code">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Item_Name" msprop:Generator_ColumnVarNameInTable="columnItem_Name" msprop:Generator_ColumnPropNameInRow="Item_Name" msprop:Generator_ColumnPropNameInTable="Item_NameColumn" msprop:Generator_UserColumnName="Item_Name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Installment_Date" msprop:Generator_ColumnVarNameInTable="columnInstallment_Date" msprop:Generator_ColumnPropNameInRow="Installment_Date" msprop:Generator_ColumnPropNameInTable="Installment_DateColumn" msprop:Generator_UserColumnName="Installment_Date" type="xs:dateTime" />
<xs:element name="Installment_Amount" msprop:Generator_ColumnVarNameInTable="columnInstallment_Amount" msprop:Generator_ColumnPropNameInRow="Installment_Amount" msprop:Generator_ColumnPropNameInTable="Installment_AmountColumn" msprop:Generator_UserColumnName="Installment_Amount" type="xs:decimal" />
<xs:element name="Status" msprop:Generator_ColumnVarNameInTable="columnStatus" msprop:Generator_ColumnPropNameInRow="Status" msprop:Generator_ColumnPropNameInTable="StatusColumn" msprop:Generator_UserColumnName="Status">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SM_ID" msprop:Generator_ColumnVarNameInTable="columnSM_ID" msprop:Generator_ColumnPropNameInRow="SM_ID" msprop:Generator_ColumnPropNameInTable="SM_IDColumn" msprop:Generator_UserColumnName="SM_ID" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DataTable_Paid_Tot" msprop:Generator_TableClassName="DataTable_Paid_TotDataTable" msprop:Generator_TableVarName="tableDataTable_Paid_Tot" msprop:Generator_RowChangedName="DataTable_Paid_TotRowChanged" msprop:Generator_TablePropName="DataTable_Paid_Tot" msprop:Generator_RowDeletingName="DataTable_Paid_TotRowDeleting" msprop:Generator_RowChangingName="DataTable_Paid_TotRowChanging" msprop:Generator_RowEvHandlerName="DataTable_Paid_TotRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_Paid_TotRowDeleted" msprop:Generator_RowClassName="DataTable_Paid_TotRow" msprop:Generator_UserTableName="DataTable_Paid_Tot" msprop:Generator_RowEvArgName="DataTable_Paid_TotRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="Paid_Total" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPaid_Total" msprop:Generator_ColumnPropNameInRow="Paid_Total" msprop:Generator_ColumnPropNameInTable="Paid_TotalColumn" msprop:Generator_UserColumnName="Paid_Total" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>