83 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			6.9 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <xs:schema id="DSReport" targetNamespace="http://tempuri.org/DSReport.xsd" xmlns:mstns="http://tempuri.org/DSReport.xsd" xmlns="http://tempuri.org/DSReport.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="gwcs" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="gwcs (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FCM0000.Properties.Settings.GlobalReference.Default.gwcs" Provider="System.Data.SqlClient" />
 | |
|         </Connections>
 | |
|         <Tables>
 | |
|           <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PersonInvStockTableAdapter" GeneratorDataComponentClassName="PersonInvStockTableAdapter" Name="PersonInvStock" UserDataComponentName="PersonInvStockTableAdapter">
 | |
|             <MainSource>
 | |
|               <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Inventory" DbObjectType="Table" 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="false">
 | |
|                     <CommandText>SELECT  dbo.getUserName(uid) AS username, ISNULL(dbo.getProjectName(project), '--') AS project, MAX(pdate) AS pdate, ItemName, SUM(dr_qty) AS stock
 | |
| FROM     Inventory
 | |
| WHERE  (dbo.getUserName(uid) LIKE @uid)
 | |
| GROUP BY dbo.getUserName(uid), dbo.getProjectName(project), ItemName
 | |
| HAVING  (SUM(dr_qty) <> 0)
 | |
| ORDER BY username, project, ItemName</CommandText>
 | |
|                     <Parameters>
 | |
|                       <Parameter AllowDbNull="false" AutogeneratedName="uid" ColumnName="" DataSourceName="" DataTypeServer="unknown" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" Scale="0" Size="1024" SourceColumn="" SourceColumnNullMapping="false" SourceVersion="Current" />
 | |
|                     </Parameters>
 | |
|                   </DbCommand>
 | |
|                 </SelectCommand>
 | |
|               </DbSource>
 | |
|             </MainSource>
 | |
|             <Mappings>
 | |
|               <Mapping SourceColumn="username" DataSetColumn="username" />
 | |
|               <Mapping SourceColumn="project" DataSetColumn="project" />
 | |
|               <Mapping SourceColumn="pdate" DataSetColumn="pdate" />
 | |
|               <Mapping SourceColumn="ItemName" DataSetColumn="ItemName" />
 | |
|               <Mapping SourceColumn="stock" DataSetColumn="stock" />
 | |
|             </Mappings>
 | |
|             <Sources />
 | |
|           </TableAdapter>
 | |
|         </Tables>
 | |
|         <Sources />
 | |
|       </DataSource>
 | |
|     </xs:appinfo>
 | |
|   </xs:annotation>
 | |
|   <xs:element name="DSReport" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSReport" msprop:Generator_UserDSName="DSReport">
 | |
|     <xs:complexType>
 | |
|       <xs:choice minOccurs="0" maxOccurs="unbounded">
 | |
|         <xs:element name="PersonInvStock" msprop:Generator_TableClassName="PersonInvStockDataTable" msprop:Generator_TableVarName="tablePersonInvStock" msprop:Generator_TablePropName="PersonInvStock" msprop:Generator_RowDeletingName="PersonInvStockRowDeleting" msprop:Generator_RowChangingName="PersonInvStockRowChanging" msprop:Generator_RowEvHandlerName="PersonInvStockRowChangeEventHandler" msprop:Generator_RowDeletedName="PersonInvStockRowDeleted" msprop:Generator_UserTableName="PersonInvStock" msprop:Generator_RowChangedName="PersonInvStockRowChanged" msprop:Generator_RowEvArgName="PersonInvStockRowChangeEvent" msprop:Generator_RowClassName="PersonInvStockRow">
 | |
|           <xs:complexType>
 | |
|             <xs:sequence>
 | |
|               <xs:element name="username" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" msprop:Generator_UserColumnName="username" minOccurs="0">
 | |
|                 <xs:simpleType>
 | |
|                   <xs:restriction base="xs:string">
 | |
|                     <xs:maxLength value="200" />
 | |
|                   </xs:restriction>
 | |
|                 </xs:simpleType>
 | |
|               </xs:element>
 | |
|               <xs:element name="project" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnproject" msprop:Generator_ColumnPropNameInRow="project" msprop:Generator_ColumnPropNameInTable="projectColumn" msprop:Generator_UserColumnName="project" minOccurs="0">
 | |
|                 <xs:simpleType>
 | |
|                   <xs:restriction base="xs:string">
 | |
|                     <xs:maxLength value="200" />
 | |
|                   </xs:restriction>
 | |
|                 </xs:simpleType>
 | |
|               </xs:element>
 | |
|               <xs:element name="pdate" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0">
 | |
|                 <xs:simpleType>
 | |
|                   <xs:restriction base="xs:string">
 | |
|                     <xs:maxLength value="10" />
 | |
|                   </xs:restriction>
 | |
|                 </xs:simpleType>
 | |
|               </xs:element>
 | |
|               <xs:element name="ItemName" msprop:Generator_ColumnVarNameInTable="columnItemName" msprop:Generator_ColumnPropNameInRow="ItemName" msprop:Generator_ColumnPropNameInTable="ItemNameColumn" msprop:Generator_UserColumnName="ItemName" minOccurs="0">
 | |
|                 <xs:simpleType>
 | |
|                   <xs:restriction base="xs:string">
 | |
|                     <xs:maxLength value="200" />
 | |
|                   </xs:restriction>
 | |
|                 </xs:simpleType>
 | |
|               </xs:element>
 | |
|               <xs:element name="stock" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnstock" msprop:Generator_ColumnPropNameInRow="stock" msprop:Generator_ColumnPropNameInTable="stockColumn" msprop:Generator_UserColumnName="stock" type="xs:int" minOccurs="0" />
 | |
|             </xs:sequence>
 | |
|           </xs:complexType>
 | |
|         </xs:element>
 | |
|       </xs:choice>
 | |
|     </xs:complexType>
 | |
|   </xs:element>
 | |
| </xs:schema> | 
