-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet9.xsd
98 lines (98 loc) · 8.71 KB
/
DataSet9.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet9" targetNamespace="http://tempuri.org/DataSet9.xsd" xmlns:mstns="http://tempuri.org/DataSet9.xsd" xmlns="http://tempuri.org/DataSet9.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_SM_Type_SalesTableAdapter" GeneratorDataComponentClassName="DataTable_SM_Type_SalesTableAdapter" Name="DataTable_SM_Type_Sales" UserDataComponentName="DataTable_SM_Type_SalesTableAdapter">
<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 s.Salesman_ID, f.Receipt_No, f.Cus_ID, f.Total_Amount, f.Payment_Type, f.Date
FROM Full_Receipt AS f CROSS JOIN
Salesman AS s
WHERE (s.Ac_Type = @a) AND (f.Date BETWEEN @b AND @c)
UNION
SELECT s.Salesman_ID, i.Receipt_No, i.Cust_ID, b.Downpayment, i.Payment_Type, i.Date
FROM Installment_Receipt AS i INNER JOIN
Item_Bought_Ins AS b ON i.Receipt_No = b.Rcipt_No CROSS JOIN
Salesman AS s
WHERE (s.Ac_Type = @a) AND (i.Date BETWEEN @b AND @c)
UNION
SELECT s.Salesman_ID, i.Rec_No, r.Cust_ID, i.Installment_Amount, r.Payment_Type, i.Installment_Date
FROM Installment_Date AS i INNER JOIN
Installment_Receipt AS r ON i.Rec_No = r.Receipt_No CROSS JOIN
Salesman AS s
WHERE (i.Status = 'Paid') AND (s.Ac_Type = @a) AND (i.Installment_Date BETWEEN @b AND @c)
ORDER BY f.Date</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="" DataSourceName="" DataTypeServer="varchar(23)" DbType="AnsiString" Direction="Input" ParameterName="@a" Precision="0" Scale="0" Size="23" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="b" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Full_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@b" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="c" ColumnName="Date" DataSourceName="FurnitureDB.dbo.Full_Receipt" DataTypeServer="date" DbType="AnsiString" Direction="Input" ParameterName="@c" Precision="0" ProviderType="Date" Scale="0" Size="3" SourceColumn="Date" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Salesman_ID" DataSetColumn="Salesman_ID" />
<Mapping SourceColumn="Receipt_No" DataSetColumn="Receipt_No" />
<Mapping SourceColumn="Cus_ID" DataSetColumn="Cus_ID" />
<Mapping SourceColumn="Total_Amount" DataSetColumn="Total_Amount" />
<Mapping SourceColumn="Payment_Type" DataSetColumn="Payment_Type" />
<Mapping SourceColumn="Date" DataSetColumn="Date" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DataSet9" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet9" msprop:Generator_UserDSName="DataSet9">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DataTable_SM_Type_Sales" msprop:Generator_TableClassName="DataTable_SM_Type_SalesDataTable" msprop:Generator_TableVarName="tableDataTable_SM_Type_Sales" msprop:Generator_RowChangedName="DataTable_SM_Type_SalesRowChanged" msprop:Generator_TablePropName="DataTable_SM_Type_Sales" msprop:Generator_RowDeletingName="DataTable_SM_Type_SalesRowDeleting" msprop:Generator_RowChangingName="DataTable_SM_Type_SalesRowChanging" msprop:Generator_RowEvHandlerName="DataTable_SM_Type_SalesRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_SM_Type_SalesRowDeleted" msprop:Generator_RowClassName="DataTable_SM_Type_SalesRow" msprop:Generator_UserTableName="DataTable_SM_Type_Sales" msprop:Generator_RowEvArgName="DataTable_SM_Type_SalesRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="Salesman_ID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnSalesman_ID" msprop:Generator_ColumnPropNameInRow="Salesman_ID" msprop:Generator_ColumnPropNameInTable="Salesman_IDColumn" msprop:Generator_UserColumnName="Salesman_ID" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Receipt_No" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnReceipt_No" msprop:Generator_ColumnPropNameInRow="Receipt_No" msprop:Generator_ColumnPropNameInTable="Receipt_NoColumn" msprop:Generator_UserColumnName="Receipt_No" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Cus_ID" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCus_ID" msprop:Generator_ColumnPropNameInRow="Cus_ID" msprop:Generator_ColumnPropNameInTable="Cus_IDColumn" msprop:Generator_UserColumnName="Cus_ID" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Total_Amount" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnTotal_Amount" msprop:Generator_ColumnPropNameInRow="Total_Amount" msprop:Generator_ColumnPropNameInTable="Total_AmountColumn" msprop:Generator_UserColumnName="Total_Amount" type="xs:decimal" minOccurs="0" />
<xs:element name="Payment_Type" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnPayment_Type" msprop:Generator_ColumnPropNameInRow="Payment_Type" msprop:Generator_ColumnPropNameInTable="Payment_TypeColumn" msprop:Generator_UserColumnName="Payment_Type" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="19" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Date" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" msprop:Generator_UserColumnName="Date" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>