-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDSAssignedWork.xsd
111 lines (111 loc) · 14 KB
/
DSAssignedWork.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DSAssignedWork" targetNamespace="http://tempuri.org/DSAssignedWork.xsd" xmlns:mstns="http://tempuri.org/DSAssignedWork.xsd" xmlns="http://tempuri.org/DSAssignedWork.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="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="dsa_limsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="dsa_limsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.DSA_lims.Properties.Settings.GlobalReference.Default.dsa_limsConnectionString" Provider="System.Data.SqlClient" />
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="dsa_limsConnectionString1" IsAppSettingsProperty="true" Modifier="Assembly" Name="dsa_limsConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.DSA_lims.Properties.Settings.GlobalReference.Default.dsa_limsConnectionString1" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="assignmentTableAdapter" GeneratorDataComponentClassName="assignmentTableAdapter" Name="assignment" UserDataComponentName="assignmentTableAdapter">
<MainSource>
<DbSource ConnectionRef="dsa_limsConnectionString (Settings)" DbObjectName="dsa_lims.dbo.assignment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" 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">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [assignment] WHERE (([id] = @Original_id) AND ([name] = @Original_name) AND ([deadline] = @Original_deadline))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_deadline" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="deadline" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT id, name, deadline,
(SELECT SUM(ast.sample_count * apm.preparation_method_count) AS Expr1
FROM assignment_preparation_method AS apm INNER JOIN
assignment_sample_type AS ast ON ast.id = apm.assignment_sample_type_id INNER JOIN
assignment AS a1 ON a1.id = ast.assignment_id AND a1.id = a.id AND apm.preparation_laboratory_id = a1.laboratory_id) AS 'AssignedPreparations',
(SELECT COUNT(*) AS Expr1
FROM preparation AS p
WHERE (assignment_id = a.id) AND (workflow_status_id = 2) AND (instance_status_id = 1)) AS 'CompletedPreparations',
(SELECT SUM(ast.sample_count * apm.preparation_method_count * aam.analysis_method_count) AS Expr1
FROM assignment_analysis_method AS aam INNER JOIN
assignment_preparation_method AS apm ON apm.id = aam.assignment_preparation_method_id INNER JOIN
assignment_sample_type AS ast ON ast.id = apm.assignment_sample_type_id INNER JOIN
assignment AS a2 ON a2.id = ast.assignment_id AND a2.id = a.id) AS 'AssignedAnalyses',
(SELECT COUNT(*) AS Expr1
FROM analysis AS an
WHERE (assignment_id = a.id) AND (workflow_status_id = 2) AND (instance_status_id = 1)) AS 'CompletedAnalyses'
FROM assignment AS a
WHERE (laboratory_id = @labid) AND (workflow_status_id = 1)
GROUP BY id, name, deadline</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="labid" ColumnName="laboratory_id" DataSourceName="dsa_lims.dbo.assignment" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@labid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="laboratory_id" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [assignment] SET [id] = @id, [name] = @name, [deadline] = @deadline WHERE (([id] = @Original_id) AND ([name] = @Original_name) AND ([deadline] = @Original_deadline));
SELECT id, name, deadline, (SELECT SUM(ast.sample_count * apm.preparation_method_count) AS Expr1 FROM assignment_preparation_method AS apm INNER JOIN assignment_sample_type AS ast ON ast.id = apm.assignment_sample_type_id INNER JOIN assignment AS a1 ON a1.id = ast.assignment_id AND a1.id = a.id AND apm.preparation_laboratory_id = a1.laboratory_id) AS 'AssignedPreparations', (SELECT COUNT(*) AS Expr1 FROM preparation AS p WHERE (assignment_id = a.id) AND (workflow_status_id = 2) AND (instance_status_id = 1)) AS 'CompletedPreparations', (SELECT SUM(ast.sample_count * apm.preparation_method_count * aam.analysis_method_count) AS Expr1 FROM assignment_analysis_method AS aam INNER JOIN assignment_preparation_method AS apm ON apm.id = aam.assignment_preparation_method_id INNER JOIN assignment_sample_type AS ast ON ast.id = apm.assignment_sample_type_id INNER JOIN assignment AS a2 ON a2.id = ast.assignment_id AND a2.id = a.id) AS 'AssignedAnalyses', (SELECT COUNT(*) AS Expr1 FROM analysis AS an WHERE (assignment_id = a.id) AND (workflow_status_id = 2) AND (instance_status_id = 1)) AS 'CompletedAnalyses' FROM assignment AS a WHERE (id = @id) GROUP BY id, name, deadline</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@id" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@deadline" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="deadline" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="name" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_deadline" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="deadline" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="id" DataSetColumn="id" />
<Mapping SourceColumn="name" DataSetColumn="name" />
<Mapping SourceColumn="deadline" DataSetColumn="deadline" />
<Mapping SourceColumn="AssignedPreparations" DataSetColumn="AssignedPreparations" />
<Mapping SourceColumn="CompletedPreparations" DataSetColumn="CompletedPreparations" />
<Mapping SourceColumn="AssignedAnalyses" DataSetColumn="AssignedAnalyses" />
<Mapping SourceColumn="CompletedAnalyses" DataSetColumn="CompletedAnalyses" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DSAssignedWork" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSAssignedWork" msprop:Generator_UserDSName="DSAssignedWork">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="assignment" msprop:Generator_TableClassName="assignmentDataTable" msprop:Generator_TableVarName="tableassignment" msprop:Generator_RowChangedName="assignmentRowChanged" msprop:Generator_TablePropName="assignment" msprop:Generator_RowDeletingName="assignmentRowDeleting" msprop:Generator_RowChangingName="assignmentRowChanging" msprop:Generator_RowEvHandlerName="assignmentRowChangeEventHandler" msprop:Generator_RowDeletedName="assignmentRowDeleted" msprop:Generator_RowClassName="assignmentRow" msprop:Generator_UserTableName="assignment" msprop:Generator_RowEvArgName="assignmentRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="id" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:string" />
<xs:element name="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" msprop:Generator_UserColumnName="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="80" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="deadline" msprop:Generator_ColumnVarNameInTable="columndeadline" msprop:Generator_ColumnPropNameInRow="deadline" msprop:Generator_ColumnPropNameInTable="deadlineColumn" msprop:Generator_UserColumnName="deadline" type="xs:dateTime" />
<xs:element name="AssignedPreparations" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAssignedPreparations" msprop:Generator_ColumnPropNameInRow="AssignedPreparations" msprop:Generator_ColumnPropNameInTable="AssignedPreparationsColumn" msprop:Generator_UserColumnName="AssignedPreparations" type="xs:int" minOccurs="0" />
<xs:element name="CompletedPreparations" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCompletedPreparations" msprop:Generator_ColumnPropNameInRow="CompletedPreparations" msprop:Generator_ColumnPropNameInTable="CompletedPreparationsColumn" msprop:Generator_UserColumnName="CompletedPreparations" type="xs:int" minOccurs="0" />
<xs:element name="AssignedAnalyses" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnAssignedAnalyses" msprop:Generator_ColumnPropNameInRow="AssignedAnalyses" msprop:Generator_ColumnPropNameInTable="AssignedAnalysesColumn" msprop:Generator_UserColumnName="AssignedAnalyses" type="xs:int" minOccurs="0" />
<xs:element name="CompletedAnalyses" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnCompletedAnalyses" msprop:Generator_ColumnPropNameInRow="CompletedAnalyses" msprop:Generator_ColumnPropNameInTable="CompletedAnalysesColumn" msprop:Generator_UserColumnName="CompletedAnalyses" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:assignment" />
<xs:field xpath="mstns:id" />
</xs:unique>
</xs:element>
</xs:schema>