-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet4.xsd
205 lines (205 loc) · 17.9 KB
/
DataSet4.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet4" targetNamespace="http://tempuri.org/DataSet4.xsd" xmlns:mstns="http://tempuri.org/DataSet4.xsd" xmlns="http://tempuri.org/DataSet4.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_DateTableAdapter" GeneratorDataComponentClassName="DataTable_Ins_DateTableAdapter" Name="DataTable_Ins_Date" UserDataComponentName="DataTable_Ins_DateTableAdapter">
<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, t.Item_Code, t.Item_Name, i.Installment_Date, i.Installment_Amount, i.Status, r.Date, r.Cust_ID, i.SM_ID
FROM Installment_Receipt AS r 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.Receipt_No = @a)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Receipt_No" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="varchar(12)" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" ProviderType="VarChar" Scale="0" Size="12" SourceColumn="Receipt_No" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Status" DataSetColumn="Status" />
<Mapping SourceColumn="Item_Name" DataSetColumn="Item_Name" />
<Mapping SourceColumn="Installment_Amount" DataSetColumn="Installment_Amount" />
<Mapping SourceColumn="Receipt_No" DataSetColumn="Receipt_No" />
<Mapping SourceColumn="Item_Code" DataSetColumn="Item_Code" />
<Mapping SourceColumn="Installment_Date" DataSetColumn="Installment_Date" />
<Mapping SourceColumn="Date" DataSetColumn="Date" />
<Mapping SourceColumn="Cust_ID" DataSetColumn="Cust_ID" />
<Mapping SourceColumn="SM_ID" DataSetColumn="SM_ID" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable_PaidAmtTableAdapter" GeneratorDataComponentClassName="DataTable_PaidAmtTableAdapter" Name="DataTable_PaidAmt" UserDataComponentName="DataTable_PaidAmtTableAdapter">
<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(Installment_Amount) AS Paid_Total
FROM Installment_Date
WHERE (Status = 'Paid') AND (Rec_No = @a)
GROUP BY Rec_No</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Rec_No" DataSourceName="FurnitureDB.dbo.Installment_Date" DataTypeServer="varchar(12)" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" ProviderType="VarChar" Scale="0" Size="12" SourceColumn="Rec_No" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Paid_Total" DataSetColumn="Paid_Total" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DataTable_Cus_InfoTableAdapter" GeneratorDataComponentClassName="DataTable_Cus_InfoTableAdapter" Name="DataTable_Cus_Info" UserDataComponentName="DataTable_Cus_InfoTableAdapter">
<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 c.NIC, c.Fname + c.Lname AS Name, c.AdrsL1 + ',' + c.AdrsL2 + ',' + c.AdrsL3 AS Address, c.Customer_No, r.Receipt_No
FROM Customer AS c INNER JOIN
Installment_Receipt AS r ON c.NIC = r.Cust_ID
WHERE (r.Receipt_No = @a)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Receipt_No" DataSourceName="FurnitureDB.dbo.Installment_Receipt" DataTypeServer="varchar(12)" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" ProviderType="VarChar" Scale="0" Size="12" SourceColumn="Receipt_No" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="NIC" DataSetColumn="NIC" />
<Mapping SourceColumn="Name" DataSetColumn="Name" />
<Mapping SourceColumn="Address" DataSetColumn="Address" />
<Mapping SourceColumn="Customer_No" DataSetColumn="Customer_No" />
<Mapping SourceColumn="Receipt_No" DataSetColumn="Receipt_No" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DataSet4" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet4" msprop:Generator_UserDSName="DataSet4">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DataTable_Ins_Date" msprop:Generator_TableClassName="DataTable_Ins_DateDataTable" msprop:Generator_TableVarName="tableDataTable_Ins_Date" msprop:Generator_TablePropName="DataTable_Ins_Date" msprop:Generator_RowDeletingName="DataTable_Ins_DateRowDeleting" msprop:Generator_RowChangingName="DataTable_Ins_DateRowChanging" msprop:Generator_RowEvHandlerName="DataTable_Ins_DateRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_Ins_DateRowDeleted" msprop:Generator_UserTableName="DataTable_Ins_Date" msprop:Generator_RowChangedName="DataTable_Ins_DateRowChanged" msprop:Generator_RowEvArgName="DataTable_Ins_DateRowChangeEvent" msprop:Generator_RowClassName="DataTable_Ins_DateRow">
<xs:complexType>
<xs:sequence>
<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="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_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="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="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="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="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" msprop:Generator_UserColumnName="Date" type="xs:dateTime" />
<xs:element name="Cust_ID" msprop:Generator_ColumnVarNameInTable="columnCust_ID" msprop:Generator_ColumnPropNameInRow="Cust_ID" msprop:Generator_ColumnPropNameInTable="Cust_IDColumn" msprop:Generator_UserColumnName="Cust_ID">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</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_PaidAmt" msprop:Generator_TableClassName="DataTable_PaidAmtDataTable" msprop:Generator_TableVarName="tableDataTable_PaidAmt" msprop:Generator_RowChangedName="DataTable_PaidAmtRowChanged" msprop:Generator_TablePropName="DataTable_PaidAmt" msprop:Generator_RowDeletingName="DataTable_PaidAmtRowDeleting" msprop:Generator_RowChangingName="DataTable_PaidAmtRowChanging" msprop:Generator_RowEvHandlerName="DataTable_PaidAmtRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_PaidAmtRowDeleted" msprop:Generator_RowClassName="DataTable_PaidAmtRow" msprop:Generator_UserTableName="DataTable_PaidAmt" msprop:Generator_RowEvArgName="DataTable_PaidAmtRowChangeEvent">
<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:element name="DataTable_Cus_Info" msprop:Generator_TableClassName="DataTable_Cus_InfoDataTable" msprop:Generator_TableVarName="tableDataTable_Cus_Info" msprop:Generator_TablePropName="DataTable_Cus_Info" msprop:Generator_RowDeletingName="DataTable_Cus_InfoRowDeleting" msprop:Generator_RowChangingName="DataTable_Cus_InfoRowChanging" msprop:Generator_RowEvHandlerName="DataTable_Cus_InfoRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_Cus_InfoRowDeleted" msprop:Generator_UserTableName="DataTable_Cus_Info" msprop:Generator_RowChangedName="DataTable_Cus_InfoRowChanged" msprop:Generator_RowEvArgName="DataTable_Cus_InfoRowChangeEvent" msprop:Generator_RowClassName="DataTable_Cus_InfoRow">
<xs:complexType>
<xs:sequence>
<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="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:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:DataTable_Cus_Info" />
<xs:field xpath="mstns:NIC" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="DataTable1_DataTable_Ins_Date" msdata:parent="DataTable_Cus_Info" msdata:child="DataTable_Ins_Date" msdata:parentkey="NIC" msdata:childkey="Cust_ID" msprop:Generator_UserChildTable="DataTable_Ins_Date" msprop:Generator_ChildPropName="GetDataTable_Ins_DateRows" msprop:Generator_UserRelationName="DataTable1_DataTable_Ins_Date" msprop:Generator_RelationVarName="relationDataTable1_DataTable_Ins_Date" msprop:Generator_UserParentTable="DataTable_Cus_Info" msprop:Generator_ParentPropName="DataTable_Cus_InfoRow" />
</xs:appinfo>
</xs:annotation>
</xs:schema>