-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet2.xsd
94 lines (94 loc) · 9.39 KB
/
DataSet2.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet2" targetNamespace="http://tempuri.org/DataSet2.xsd" xmlns:mstns="http://tempuri.org/DataSet2.xsd" xmlns="http://tempuri.org/DataSet2.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_FullTableAdapter" GeneratorDataComponentClassName="DataTable_FullTableAdapter" Name="DataTable_Full" UserDataComponentName="DataTable_FullTableAdapter">
<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 Full_Receipt.Receipt_No, Item_Bought_Full.FItm_Code, Item.Item_Name, Item_Bought_Full.FQuantity, Item_Bought_Full.FUnit_Price, Full_Receipt.Total_Amount, Full_Receipt.Payment_Type, Full_Receipt.Discount, Full_Receipt.Date,
Item_Bought_Full.FUnit_Price * Item_Bought_Full.FQuantity AS Unit_Value
FROM Item INNER JOIN
Full_Receipt LEFT OUTER JOIN
Item_Bought_Full ON Full_Receipt.Receipt_No = Item_Bought_Full.Rcpt_No ON Item.Item_Code = Item_Bought_Full.FItm_Code
WHERE (Full_Receipt.Receipt_No = Item_Bought_Full.Rcpt_No) AND (Full_Receipt.Receipt_No = @a) AND (Item_Bought_Full.FCus_ID = Full_Receipt.Cus_ID) AND (Full_Receipt.Cus_ID = @b)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="a" ColumnName="Receipt_No" DataSourceName="FurnitureDB.dbo.Full_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" />
<Parameter AllowDbNull="false" AutogeneratedName="b" ColumnName="Cus_ID" DataSourceName="FurnitureDB.dbo.Full_Receipt" DataTypeServer="varchar(12)" DbType="AnsiString" Direction="Input" ParameterName="@b" Precision="0" ProviderType="VarChar" Scale="0" Size="12" SourceColumn="Cus_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Receipt_No" DataSetColumn="Receipt_No" />
<Mapping SourceColumn="FItm_Code" DataSetColumn="FItm_Code" />
<Mapping SourceColumn="Item_Name" DataSetColumn="Item_Name" />
<Mapping SourceColumn="FQuantity" DataSetColumn="FQuantity" />
<Mapping SourceColumn="FUnit_Price" DataSetColumn="FUnit_Price" />
<Mapping SourceColumn="Total_Amount" DataSetColumn="Total_Amount" />
<Mapping SourceColumn="Payment_Type" DataSetColumn="Payment_Type" />
<Mapping SourceColumn="Discount" DataSetColumn="Discount" />
<Mapping SourceColumn="Date" DataSetColumn="Date" />
<Mapping SourceColumn="Unit_Value" DataSetColumn="Unit_Value" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DataSet2" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet2" msprop:Generator_UserDSName="DataSet2">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="DataTable_Full" msprop:Generator_TableClassName="DataTable_FullDataTable" msprop:Generator_TableVarName="tableDataTable_Full" msprop:Generator_RowChangedName="DataTable_FullRowChanged" msprop:Generator_TablePropName="DataTable_Full" msprop:Generator_RowDeletingName="DataTable_FullRowDeleting" msprop:Generator_RowChangingName="DataTable_FullRowChanging" msprop:Generator_RowEvHandlerName="DataTable_FullRowChangeEventHandler" msprop:Generator_RowDeletedName="DataTable_FullRowDeleted" msprop:Generator_RowClassName="DataTable_FullRow" msprop:Generator_UserTableName="DataTable_Full" msprop:Generator_RowEvArgName="DataTable_FullRowChangeEvent">
<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="FItm_Code" msprop:Generator_ColumnVarNameInTable="columnFItm_Code" msprop:Generator_ColumnPropNameInRow="FItm_Code" msprop:Generator_ColumnPropNameInTable="FItm_CodeColumn" msprop:Generator_UserColumnName="FItm_Code" minOccurs="0">
<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="FQuantity" msprop:Generator_ColumnVarNameInTable="columnFQuantity" msprop:Generator_ColumnPropNameInRow="FQuantity" msprop:Generator_ColumnPropNameInTable="FQuantityColumn" msprop:Generator_UserColumnName="FQuantity" type="xs:int" minOccurs="0" />
<xs:element name="FUnit_Price" msprop:Generator_ColumnVarNameInTable="columnFUnit_Price" msprop:Generator_ColumnPropNameInRow="FUnit_Price" msprop:Generator_ColumnPropNameInTable="FUnit_PriceColumn" msprop:Generator_UserColumnName="FUnit_Price" type="xs:decimal" minOccurs="0" />
<xs:element name="Total_Amount" msprop:Generator_ColumnVarNameInTable="columnTotal_Amount" msprop:Generator_ColumnPropNameInRow="Total_Amount" msprop:Generator_ColumnPropNameInTable="Total_AmountColumn" msprop:Generator_UserColumnName="Total_Amount" type="xs:decimal" />
<xs:element name="Payment_Type" msprop:Generator_ColumnVarNameInTable="columnPayment_Type" msprop:Generator_ColumnPropNameInRow="Payment_Type" msprop:Generator_ColumnPropNameInTable="Payment_TypeColumn" msprop:Generator_UserColumnName="Payment_Type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Discount" msprop:Generator_ColumnVarNameInTable="columnDiscount" msprop:Generator_ColumnPropNameInRow="Discount" msprop:Generator_ColumnPropNameInTable="DiscountColumn" msprop:Generator_UserColumnName="Discount" type="xs:int" minOccurs="0" />
<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="Unit_Value" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnUnit_Value" msprop:Generator_ColumnPropNameInRow="Unit_Value" msprop:Generator_ColumnPropNameInTable="Unit_ValueColumn" msprop:Generator_UserColumnName="Unit_Value" type="xs:decimal" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>