agentRUDDataSet.xsd 79 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="agentRUDDataSet" targetNamespace="http://tempuri.org/agentRUDDataSet.xsd" xmlns:mstns="http://tempuri.org/agentRUDDataSet.xsd" xmlns="http://tempuri.org/agentRUDDataSet.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">
  3. <xs:annotation>
  4. <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
  5. <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  6. <Connections>
  7. <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="agentRUDConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="agentRUDConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.Prakt2.Properties.Settings.GlobalReference.Default.agentRUDConnectionString" Provider="System.Data.SqlClient" />
  8. </Connections>
  9. <Tables>
  10. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AgentTableAdapter" GeneratorDataComponentClassName="AgentTableAdapter" Name="Agent" UserDataComponentName="AgentTableAdapter">
  11. <MainSource>
  12. <DbSource ConnectionRef="agentRUDConnectionString (Settings)" DbObjectName="agentRUD.dbo.Agent" 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">
  13. <DeleteCommand>
  14. <DbCommand CommandType="Text" ModifiedByUser="false">
  15. <CommandText>DELETE FROM [dbo].[Agent] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([AgentTypeID] = @Original_AgentTypeID) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([INN] = @Original_INN) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_DirectorName = 1 AND [DirectorName] IS NULL) OR ([DirectorName] = @Original_DirectorName)) AND ([Phone] = @Original_Phone) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Logo = 1 AND [Logo] IS NULL) OR ([Logo] = @Original_Logo)) AND ([Priority] = @Original_Priority))</CommandText>
  16. <Parameters>
  17. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AgentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
  22. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KPP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="true" SourceVersion="Original" />
  24. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_KPP" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Original" />
  25. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DirectorName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="true" SourceVersion="Original" />
  26. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DirectorName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="false" SourceVersion="Original" />
  27. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  29. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  30. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Logo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="true" SourceVersion="Original" />
  31. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Logo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="false" SourceVersion="Original" />
  32. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Priority" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Priority" SourceColumnNullMapping="false" SourceVersion="Original" />
  33. </Parameters>
  34. </DbCommand>
  35. </DeleteCommand>
  36. <InsertCommand>
  37. <DbCommand CommandType="Text" ModifiedByUser="false">
  38. <CommandText>INSERT INTO [dbo].[Agent] ([Title], [AgentTypeID], [Address], [INN], [KPP], [DirectorName], [Phone], [Email], [Logo], [Priority]) VALUES (@Title, @AgentTypeID, @Address, @INN, @KPP, @DirectorName, @Phone, @Email, @Logo, @Priority);
  39. SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority FROM Agent WHERE (ID = SCOPE_IDENTITY())</CommandText>
  40. <Parameters>
  41. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  42. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AgentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  43. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
  44. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
  45. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@KPP" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Current" />
  46. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DirectorName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="false" SourceVersion="Current" />
  47. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  48. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  49. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Logo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="false" SourceVersion="Current" />
  50. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Priority" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Priority" SourceColumnNullMapping="false" SourceVersion="Current" />
  51. </Parameters>
  52. </DbCommand>
  53. </InsertCommand>
  54. <SelectCommand>
  55. <DbCommand CommandType="Text" ModifiedByUser="false">
  56. <CommandText>SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority FROM dbo.Agent</CommandText>
  57. <Parameters />
  58. </DbCommand>
  59. </SelectCommand>
  60. <UpdateCommand>
  61. <DbCommand CommandType="Text" ModifiedByUser="false">
  62. <CommandText>UPDATE [dbo].[Agent] SET [Title] = @Title, [AgentTypeID] = @AgentTypeID, [Address] = @Address, [INN] = @INN, [KPP] = @KPP, [DirectorName] = @DirectorName, [Phone] = @Phone, [Email] = @Email, [Logo] = @Logo, [Priority] = @Priority WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([AgentTypeID] = @Original_AgentTypeID) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([INN] = @Original_INN) AND ((@IsNull_KPP = 1 AND [KPP] IS NULL) OR ([KPP] = @Original_KPP)) AND ((@IsNull_DirectorName = 1 AND [DirectorName] IS NULL) OR ([DirectorName] = @Original_DirectorName)) AND ([Phone] = @Original_Phone) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Logo = 1 AND [Logo] IS NULL) OR ([Logo] = @Original_Logo)) AND ([Priority] = @Original_Priority));
  63. SELECT ID, Title, AgentTypeID, Address, INN, KPP, DirectorName, Phone, Email, Logo, Priority FROM Agent WHERE (ID = @ID)</CommandText>
  64. <Parameters>
  65. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  66. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AgentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Current" />
  68. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@INN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Current" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@KPP" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Current" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DirectorName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="false" SourceVersion="Current" />
  71. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Current" />
  72. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Current" />
  73. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Logo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="false" SourceVersion="Current" />
  74. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Priority" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Priority" SourceColumnNullMapping="false" SourceVersion="Current" />
  75. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  76. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  77. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AgentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  78. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Address" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="true" SourceVersion="Original" />
  79. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Address" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Address" SourceColumnNullMapping="false" SourceVersion="Original" />
  80. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_INN" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INN" SourceColumnNullMapping="false" SourceVersion="Original" />
  81. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_KPP" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="true" SourceVersion="Original" />
  82. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_KPP" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="KPP" SourceColumnNullMapping="false" SourceVersion="Original" />
  83. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DirectorName" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="true" SourceVersion="Original" />
  84. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DirectorName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DirectorName" SourceColumnNullMapping="false" SourceVersion="Original" />
  85. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Phone" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Phone" SourceColumnNullMapping="false" SourceVersion="Original" />
  86. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Email" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="true" SourceVersion="Original" />
  87. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Email" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Email" SourceColumnNullMapping="false" SourceVersion="Original" />
  88. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Logo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="true" SourceVersion="Original" />
  89. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Logo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Logo" SourceColumnNullMapping="false" SourceVersion="Original" />
  90. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Priority" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Priority" SourceColumnNullMapping="false" SourceVersion="Original" />
  91. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="agentRUD.dbo.Agent" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  92. </Parameters>
  93. </DbCommand>
  94. </UpdateCommand>
  95. </DbSource>
  96. </MainSource>
  97. <Mappings>
  98. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  99. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  100. <Mapping SourceColumn="AgentTypeID" DataSetColumn="AgentTypeID" />
  101. <Mapping SourceColumn="Address" DataSetColumn="Address" />
  102. <Mapping SourceColumn="INN" DataSetColumn="INN" />
  103. <Mapping SourceColumn="KPP" DataSetColumn="KPP" />
  104. <Mapping SourceColumn="DirectorName" DataSetColumn="DirectorName" />
  105. <Mapping SourceColumn="Phone" DataSetColumn="Phone" />
  106. <Mapping SourceColumn="Email" DataSetColumn="Email" />
  107. <Mapping SourceColumn="Logo" DataSetColumn="Logo" />
  108. <Mapping SourceColumn="Priority" DataSetColumn="Priority" />
  109. </Mappings>
  110. <Sources />
  111. </TableAdapter>
  112. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AgentTypeTableAdapter" GeneratorDataComponentClassName="AgentTypeTableAdapter" Name="AgentType" UserDataComponentName="AgentTypeTableAdapter">
  113. <MainSource>
  114. <DbSource ConnectionRef="agentRUDConnectionString (Settings)" DbObjectName="agentRUD.dbo.AgentType" 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">
  115. <DeleteCommand>
  116. <DbCommand CommandType="Text" ModifiedByUser="false">
  117. <CommandText>DELETE FROM [dbo].[AgentType] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)))</CommandText>
  118. <Parameters>
  119. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  120. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Image" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="true" SourceVersion="Original" />
  122. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. </Parameters>
  124. </DbCommand>
  125. </DeleteCommand>
  126. <InsertCommand>
  127. <DbCommand CommandType="Text" ModifiedByUser="false">
  128. <CommandText>INSERT INTO [dbo].[AgentType] ([Title], [Image]) VALUES (@Title, @Image);
  129. SELECT ID, Title, Image FROM AgentType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  130. <Parameters>
  131. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  132. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Current" />
  133. </Parameters>
  134. </DbCommand>
  135. </InsertCommand>
  136. <SelectCommand>
  137. <DbCommand CommandType="Text" ModifiedByUser="false">
  138. <CommandText>SELECT ID, Title, Image FROM dbo.AgentType</CommandText>
  139. <Parameters />
  140. </DbCommand>
  141. </SelectCommand>
  142. <UpdateCommand>
  143. <DbCommand CommandType="Text" ModifiedByUser="false">
  144. <CommandText>UPDATE [dbo].[AgentType] SET [Title] = @Title, [Image] = @Image WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)));
  145. SELECT ID, Title, Image FROM AgentType WHERE (ID = @ID)</CommandText>
  146. <Parameters>
  147. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  148. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Current" />
  149. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  150. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  151. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Image" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="true" SourceVersion="Original" />
  152. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Original" />
  153. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="agentRUD.dbo.AgentType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  154. </Parameters>
  155. </DbCommand>
  156. </UpdateCommand>
  157. </DbSource>
  158. </MainSource>
  159. <Mappings>
  160. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  161. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  162. <Mapping SourceColumn="Image" DataSetColumn="Image" />
  163. </Mappings>
  164. <Sources />
  165. </TableAdapter>
  166. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  167. <MainSource>
  168. <DbSource ConnectionRef="agentRUDConnectionString (Settings)" DbObjectName="agentRUD.dbo.Product" 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">
  169. <DeleteCommand>
  170. <DbCommand CommandType="Text" ModifiedByUser="false">
  171. <CommandText>DELETE FROM [dbo].[Product] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_ProductTypeID = 1 AND [ProductTypeID] IS NULL) OR ([ProductTypeID] = @Original_ProductTypeID)) AND ([ArticleNumber] = @Original_ArticleNumber) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ((@IsNull_ProductionPersonCount = 1 AND [ProductionPersonCount] IS NULL) OR ([ProductionPersonCount] = @Original_ProductionPersonCount)) AND ((@IsNull_ProductionWorkshopNumber = 1 AND [ProductionWorkshopNumber] IS NULL) OR ([ProductionWorkshopNumber] = @Original_ProductionWorkshopNumber)) AND ([MinCostForAgent] = @Original_MinCostForAgent))</CommandText>
  172. <Parameters>
  173. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  174. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  175. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="true" SourceVersion="Original" />
  176. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  177. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  178. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Image" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="true" SourceVersion="Original" />
  179. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Original" />
  180. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="true" SourceVersion="Original" />
  181. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  182. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  183. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  184. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_MinCostForAgent" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="MinCostForAgent" SourceColumnNullMapping="false" SourceVersion="Original" />
  185. </Parameters>
  186. </DbCommand>
  187. </DeleteCommand>
  188. <InsertCommand>
  189. <DbCommand CommandType="Text" ModifiedByUser="false">
  190. <CommandText>INSERT INTO [dbo].[Product] ([Title], [ProductTypeID], [ArticleNumber], [Description], [Image], [ProductionPersonCount], [ProductionWorkshopNumber], [MinCostForAgent]) VALUES (@Title, @ProductTypeID, @ArticleNumber, @Description, @Image, @ProductionPersonCount, @ProductionWorkshopNumber, @MinCostForAgent);
  191. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  192. <Parameters>
  193. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  195. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  196. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Current" />
  198. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  199. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  200. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@MinCostForAgent" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="MinCostForAgent" SourceColumnNullMapping="false" SourceVersion="Current" />
  201. </Parameters>
  202. </DbCommand>
  203. </InsertCommand>
  204. <SelectCommand>
  205. <DbCommand CommandType="Text" ModifiedByUser="false">
  206. <CommandText>SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM dbo.Product</CommandText>
  207. <Parameters />
  208. </DbCommand>
  209. </SelectCommand>
  210. <UpdateCommand>
  211. <DbCommand CommandType="Text" ModifiedByUser="false">
  212. <CommandText>UPDATE [dbo].[Product] SET [Title] = @Title, [ProductTypeID] = @ProductTypeID, [ArticleNumber] = @ArticleNumber, [Description] = @Description, [Image] = @Image, [ProductionPersonCount] = @ProductionPersonCount, [ProductionWorkshopNumber] = @ProductionWorkshopNumber, [MinCostForAgent] = @MinCostForAgent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_ProductTypeID = 1 AND [ProductTypeID] IS NULL) OR ([ProductTypeID] = @Original_ProductTypeID)) AND ([ArticleNumber] = @Original_ArticleNumber) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ((@IsNull_ProductionPersonCount = 1 AND [ProductionPersonCount] IS NULL) OR ([ProductionPersonCount] = @Original_ProductionPersonCount)) AND ((@IsNull_ProductionWorkshopNumber = 1 AND [ProductionWorkshopNumber] IS NULL) OR ([ProductionWorkshopNumber] = @Original_ProductionWorkshopNumber)) AND ([MinCostForAgent] = @Original_MinCostForAgent));
  213. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = @ID)</CommandText>
  214. <Parameters>
  215. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  216. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  217. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ArticleNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  218. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Description" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Description" SourceColumnNullMapping="false" SourceVersion="Current" />
  219. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Current" />
  220. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  221. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
  222. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@MinCostForAgent" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="MinCostForAgent" SourceColumnNullMapping="false" SourceVersion="Current" />
  223. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  224. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  225. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="true" SourceVersion="Original" />
  226. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  227. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ArticleNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ArticleNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  228. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Image" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="true" SourceVersion="Original" />
  229. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Image" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Image" SourceColumnNullMapping="false" SourceVersion="Original" />
  230. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="true" SourceVersion="Original" />
  231. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductionPersonCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionPersonCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  232. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="true" SourceVersion="Original" />
  233. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductionWorkshopNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductionWorkshopNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
  234. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_MinCostForAgent" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="MinCostForAgent" SourceColumnNullMapping="false" SourceVersion="Original" />
  235. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="agentRUD.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  236. </Parameters>
  237. </DbCommand>
  238. </UpdateCommand>
  239. </DbSource>
  240. </MainSource>
  241. <Mappings>
  242. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  243. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  244. <Mapping SourceColumn="ProductTypeID" DataSetColumn="ProductTypeID" />
  245. <Mapping SourceColumn="ArticleNumber" DataSetColumn="ArticleNumber" />
  246. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  247. <Mapping SourceColumn="Image" DataSetColumn="Image" />
  248. <Mapping SourceColumn="ProductionPersonCount" DataSetColumn="ProductionPersonCount" />
  249. <Mapping SourceColumn="ProductionWorkshopNumber" DataSetColumn="ProductionWorkshopNumber" />
  250. <Mapping SourceColumn="MinCostForAgent" DataSetColumn="MinCostForAgent" />
  251. </Mappings>
  252. <Sources />
  253. </TableAdapter>
  254. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductSaleTableAdapter" GeneratorDataComponentClassName="ProductSaleTableAdapter" Name="ProductSale" UserDataComponentName="ProductSaleTableAdapter">
  255. <MainSource>
  256. <DbSource ConnectionRef="agentRUDConnectionString (Settings)" DbObjectName="agentRUD.dbo.ProductSale" 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">
  257. <DeleteCommand>
  258. <DbCommand CommandType="Text" ModifiedByUser="false">
  259. <CommandText>DELETE FROM [dbo].[ProductSale] WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ProductID] = @Original_ProductID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductCount] = @Original_ProductCount))</CommandText>
  260. <Parameters>
  261. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  262. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AgentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentID" SourceColumnNullMapping="false" SourceVersion="Original" />
  263. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  264. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  265. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  266. </Parameters>
  267. </DbCommand>
  268. </DeleteCommand>
  269. <InsertCommand>
  270. <DbCommand CommandType="Text" ModifiedByUser="false">
  271. <CommandText>INSERT INTO [dbo].[ProductSale] ([AgentID], [ProductID], [SaleDate], [ProductCount]) VALUES (@AgentID, @ProductID, @SaleDate, @ProductCount);
  272. SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = SCOPE_IDENTITY())</CommandText>
  273. <Parameters>
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AgentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentID" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  276. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  278. </Parameters>
  279. </DbCommand>
  280. </InsertCommand>
  281. <SelectCommand>
  282. <DbCommand CommandType="Text" ModifiedByUser="false">
  283. <CommandText>SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM dbo.ProductSale</CommandText>
  284. <Parameters />
  285. </DbCommand>
  286. </SelectCommand>
  287. <UpdateCommand>
  288. <DbCommand CommandType="Text" ModifiedByUser="false">
  289. <CommandText>UPDATE [dbo].[ProductSale] SET [AgentID] = @AgentID, [ProductID] = @ProductID, [SaleDate] = @SaleDate, [ProductCount] = @ProductCount WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ProductID] = @Original_ProductID) AND ([SaleDate] = @Original_SaleDate) AND ([ProductCount] = @Original_ProductCount));
  290. SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = @ID)</CommandText>
  291. <Parameters>
  292. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@AgentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentID" SourceColumnNullMapping="false" SourceVersion="Current" />
  293. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Current" />
  294. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@SaleDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  295. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@ProductCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  296. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  297. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_AgentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentID" SourceColumnNullMapping="false" SourceVersion="Original" />
  298. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductID" SourceColumnNullMapping="false" SourceVersion="Original" />
  299. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_SaleDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="SaleDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  300. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ProductCount" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ProductCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  301. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="agentRUD.dbo.ProductSale" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  302. </Parameters>
  303. </DbCommand>
  304. </UpdateCommand>
  305. </DbSource>
  306. </MainSource>
  307. <Mappings>
  308. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  309. <Mapping SourceColumn="AgentID" DataSetColumn="AgentID" />
  310. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  311. <Mapping SourceColumn="SaleDate" DataSetColumn="SaleDate" />
  312. <Mapping SourceColumn="ProductCount" DataSetColumn="ProductCount" />
  313. </Mappings>
  314. <Sources />
  315. </TableAdapter>
  316. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTypeTableAdapter" GeneratorDataComponentClassName="ProductTypeTableAdapter" Name="ProductType" UserDataComponentName="ProductTypeTableAdapter">
  317. <MainSource>
  318. <DbSource ConnectionRef="agentRUDConnectionString (Settings)" DbObjectName="agentRUD.dbo.ProductType" 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">
  319. <DeleteCommand>
  320. <DbCommand CommandType="Text" ModifiedByUser="false">
  321. <CommandText>DELETE FROM [dbo].[ProductType] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([DefectedPercent] = @Original_DefectedPercent))</CommandText>
  322. <Parameters>
  323. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  324. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  325. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  326. </Parameters>
  327. </DbCommand>
  328. </DeleteCommand>
  329. <InsertCommand>
  330. <DbCommand CommandType="Text" ModifiedByUser="false">
  331. <CommandText>INSERT INTO [dbo].[ProductType] ([Title], [DefectedPercent]) VALUES (@Title, @DefectedPercent);
  332. SELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  333. <Parameters>
  334. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  335. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  336. </Parameters>
  337. </DbCommand>
  338. </InsertCommand>
  339. <SelectCommand>
  340. <DbCommand CommandType="Text" ModifiedByUser="false">
  341. <CommandText>SELECT ID, Title, DefectedPercent FROM dbo.ProductType</CommandText>
  342. <Parameters />
  343. </DbCommand>
  344. </SelectCommand>
  345. <UpdateCommand>
  346. <DbCommand CommandType="Text" ModifiedByUser="false">
  347. <CommandText>UPDATE [dbo].[ProductType] SET [Title] = @Title, [DefectedPercent] = @DefectedPercent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([DefectedPercent] = @Original_DefectedPercent));
  348. SELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = @ID)</CommandText>
  349. <Parameters>
  350. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
  351. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  352. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
  353. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Title" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Original" />
  354. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  355. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="agentRUD.dbo.ProductType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  356. </Parameters>
  357. </DbCommand>
  358. </UpdateCommand>
  359. </DbSource>
  360. </MainSource>
  361. <Mappings>
  362. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  363. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  364. <Mapping SourceColumn="DefectedPercent" DataSetColumn="DefectedPercent" />
  365. </Mappings>
  366. <Sources />
  367. </TableAdapter>
  368. </Tables>
  369. <Sources />
  370. </DataSource>
  371. </xs:appinfo>
  372. </xs:annotation>
  373. <xs:element name="agentRUDDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="agentRUDDataSet" msprop:Generator_UserDSName="agentRUDDataSet">
  374. <xs:complexType>
  375. <xs:choice minOccurs="0" maxOccurs="unbounded">
  376. <xs:element name="Agent" msprop:Generator_TableClassName="AgentDataTable" msprop:Generator_TableVarName="tableAgent" msprop:Generator_TablePropName="Agent" msprop:Generator_RowDeletingName="AgentRowDeleting" msprop:Generator_RowChangingName="AgentRowChanging" msprop:Generator_RowEvHandlerName="AgentRowChangeEventHandler" msprop:Generator_RowDeletedName="AgentRowDeleted" msprop:Generator_UserTableName="Agent" msprop:Generator_RowChangedName="AgentRowChanged" msprop:Generator_RowEvArgName="AgentRowChangeEvent" msprop:Generator_RowClassName="AgentRow">
  377. <xs:complexType>
  378. <xs:sequence>
  379. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  380. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  381. <xs:simpleType>
  382. <xs:restriction base="xs:string">
  383. <xs:maxLength value="150" />
  384. </xs:restriction>
  385. </xs:simpleType>
  386. </xs:element>
  387. <xs:element name="AgentTypeID" msprop:Generator_ColumnVarNameInTable="columnAgentTypeID" msprop:Generator_ColumnPropNameInRow="AgentTypeID" msprop:Generator_ColumnPropNameInTable="AgentTypeIDColumn" msprop:Generator_UserColumnName="AgentTypeID" type="xs:int" />
  388. <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
  389. <xs:simpleType>
  390. <xs:restriction base="xs:string">
  391. <xs:maxLength value="300" />
  392. </xs:restriction>
  393. </xs:simpleType>
  394. </xs:element>
  395. <xs:element name="INN" msprop:Generator_ColumnVarNameInTable="columnINN" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_UserColumnName="INN">
  396. <xs:simpleType>
  397. <xs:restriction base="xs:string">
  398. <xs:maxLength value="12" />
  399. </xs:restriction>
  400. </xs:simpleType>
  401. </xs:element>
  402. <xs:element name="KPP" msprop:Generator_ColumnVarNameInTable="columnKPP" msprop:Generator_ColumnPropNameInRow="KPP" msprop:Generator_ColumnPropNameInTable="KPPColumn" msprop:Generator_UserColumnName="KPP" minOccurs="0">
  403. <xs:simpleType>
  404. <xs:restriction base="xs:string">
  405. <xs:maxLength value="9" />
  406. </xs:restriction>
  407. </xs:simpleType>
  408. </xs:element>
  409. <xs:element name="DirectorName" msprop:Generator_ColumnVarNameInTable="columnDirectorName" msprop:Generator_ColumnPropNameInRow="DirectorName" msprop:Generator_ColumnPropNameInTable="DirectorNameColumn" msprop:Generator_UserColumnName="DirectorName" minOccurs="0">
  410. <xs:simpleType>
  411. <xs:restriction base="xs:string">
  412. <xs:maxLength value="100" />
  413. </xs:restriction>
  414. </xs:simpleType>
  415. </xs:element>
  416. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  417. <xs:simpleType>
  418. <xs:restriction base="xs:string">
  419. <xs:maxLength value="20" />
  420. </xs:restriction>
  421. </xs:simpleType>
  422. </xs:element>
  423. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  424. <xs:simpleType>
  425. <xs:restriction base="xs:string">
  426. <xs:maxLength value="255" />
  427. </xs:restriction>
  428. </xs:simpleType>
  429. </xs:element>
  430. <xs:element name="Logo" msprop:Generator_ColumnVarNameInTable="columnLogo" msprop:Generator_ColumnPropNameInRow="Logo" msprop:Generator_ColumnPropNameInTable="LogoColumn" msprop:Generator_UserColumnName="Logo" minOccurs="0">
  431. <xs:simpleType>
  432. <xs:restriction base="xs:string">
  433. <xs:maxLength value="100" />
  434. </xs:restriction>
  435. </xs:simpleType>
  436. </xs:element>
  437. <xs:element name="Priority" msprop:Generator_ColumnVarNameInTable="columnPriority" msprop:Generator_ColumnPropNameInRow="Priority" msprop:Generator_ColumnPropNameInTable="PriorityColumn" msprop:Generator_UserColumnName="Priority" type="xs:int" />
  438. </xs:sequence>
  439. </xs:complexType>
  440. </xs:element>
  441. <xs:element name="AgentType" msprop:Generator_TableClassName="AgentTypeDataTable" msprop:Generator_TableVarName="tableAgentType" msprop:Generator_TablePropName="AgentType" msprop:Generator_RowDeletingName="AgentTypeRowDeleting" msprop:Generator_RowChangingName="AgentTypeRowChanging" msprop:Generator_RowEvHandlerName="AgentTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="AgentTypeRowDeleted" msprop:Generator_UserTableName="AgentType" msprop:Generator_RowChangedName="AgentTypeRowChanged" msprop:Generator_RowEvArgName="AgentTypeRowChangeEvent" msprop:Generator_RowClassName="AgentTypeRow">
  442. <xs:complexType>
  443. <xs:sequence>
  444. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  445. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  446. <xs:simpleType>
  447. <xs:restriction base="xs:string">
  448. <xs:maxLength value="50" />
  449. </xs:restriction>
  450. </xs:simpleType>
  451. </xs:element>
  452. <xs:element name="Image" msprop:Generator_ColumnVarNameInTable="columnImage" msprop:Generator_ColumnPropNameInRow="Image" msprop:Generator_ColumnPropNameInTable="ImageColumn" msprop:Generator_UserColumnName="Image" minOccurs="0">
  453. <xs:simpleType>
  454. <xs:restriction base="xs:string">
  455. <xs:maxLength value="100" />
  456. </xs:restriction>
  457. </xs:simpleType>
  458. </xs:element>
  459. </xs:sequence>
  460. </xs:complexType>
  461. </xs:element>
  462. <xs:element name="Product" msprop:Generator_TableClassName="ProductDataTable" msprop:Generator_TableVarName="tableProduct" msprop:Generator_TablePropName="Product" msprop:Generator_RowDeletingName="ProductRowDeleting" msprop:Generator_RowChangingName="ProductRowChanging" msprop:Generator_RowEvHandlerName="ProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductRowDeleted" msprop:Generator_UserTableName="Product" msprop:Generator_RowChangedName="ProductRowChanged" msprop:Generator_RowEvArgName="ProductRowChangeEvent" msprop:Generator_RowClassName="ProductRow">
  463. <xs:complexType>
  464. <xs:sequence>
  465. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  466. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  467. <xs:simpleType>
  468. <xs:restriction base="xs:string">
  469. <xs:maxLength value="100" />
  470. </xs:restriction>
  471. </xs:simpleType>
  472. </xs:element>
  473. <xs:element name="ProductTypeID" msprop:Generator_ColumnVarNameInTable="columnProductTypeID" msprop:Generator_ColumnPropNameInRow="ProductTypeID" msprop:Generator_ColumnPropNameInTable="ProductTypeIDColumn" msprop:Generator_UserColumnName="ProductTypeID" type="xs:int" minOccurs="0" />
  474. <xs:element name="ArticleNumber" msprop:Generator_ColumnVarNameInTable="columnArticleNumber" msprop:Generator_ColumnPropNameInRow="ArticleNumber" msprop:Generator_ColumnPropNameInTable="ArticleNumberColumn" msprop:Generator_UserColumnName="ArticleNumber">
  475. <xs:simpleType>
  476. <xs:restriction base="xs:string">
  477. <xs:maxLength value="10" />
  478. </xs:restriction>
  479. </xs:simpleType>
  480. </xs:element>
  481. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  482. <xs:simpleType>
  483. <xs:restriction base="xs:string">
  484. <xs:maxLength value="2147483647" />
  485. </xs:restriction>
  486. </xs:simpleType>
  487. </xs:element>
  488. <xs:element name="Image" msprop:Generator_ColumnVarNameInTable="columnImage" msprop:Generator_ColumnPropNameInRow="Image" msprop:Generator_ColumnPropNameInTable="ImageColumn" msprop:Generator_UserColumnName="Image" minOccurs="0">
  489. <xs:simpleType>
  490. <xs:restriction base="xs:string">
  491. <xs:maxLength value="100" />
  492. </xs:restriction>
  493. </xs:simpleType>
  494. </xs:element>
  495. <xs:element name="ProductionPersonCount" msprop:Generator_ColumnVarNameInTable="columnProductionPersonCount" msprop:Generator_ColumnPropNameInRow="ProductionPersonCount" msprop:Generator_ColumnPropNameInTable="ProductionPersonCountColumn" msprop:Generator_UserColumnName="ProductionPersonCount" type="xs:int" minOccurs="0" />
  496. <xs:element name="ProductionWorkshopNumber" msprop:Generator_ColumnVarNameInTable="columnProductionWorkshopNumber" msprop:Generator_ColumnPropNameInRow="ProductionWorkshopNumber" msprop:Generator_ColumnPropNameInTable="ProductionWorkshopNumberColumn" msprop:Generator_UserColumnName="ProductionWorkshopNumber" type="xs:int" minOccurs="0" />
  497. <xs:element name="MinCostForAgent" msprop:Generator_ColumnVarNameInTable="columnMinCostForAgent" msprop:Generator_ColumnPropNameInRow="MinCostForAgent" msprop:Generator_ColumnPropNameInTable="MinCostForAgentColumn" msprop:Generator_UserColumnName="MinCostForAgent" type="xs:decimal" />
  498. </xs:sequence>
  499. </xs:complexType>
  500. </xs:element>
  501. <xs:element name="ProductSale" msprop:Generator_TableClassName="ProductSaleDataTable" msprop:Generator_TableVarName="tableProductSale" msprop:Generator_TablePropName="ProductSale" msprop:Generator_RowDeletingName="ProductSaleRowDeleting" msprop:Generator_RowChangingName="ProductSaleRowChanging" msprop:Generator_RowEvHandlerName="ProductSaleRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductSaleRowDeleted" msprop:Generator_UserTableName="ProductSale" msprop:Generator_RowChangedName="ProductSaleRowChanged" msprop:Generator_RowEvArgName="ProductSaleRowChangeEvent" msprop:Generator_RowClassName="ProductSaleRow">
  502. <xs:complexType>
  503. <xs:sequence>
  504. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  505. <xs:element name="AgentID" msprop:Generator_ColumnVarNameInTable="columnAgentID" msprop:Generator_ColumnPropNameInRow="AgentID" msprop:Generator_ColumnPropNameInTable="AgentIDColumn" msprop:Generator_UserColumnName="AgentID" type="xs:int" />
  506. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  507. <xs:element name="SaleDate" msprop:Generator_ColumnVarNameInTable="columnSaleDate" msprop:Generator_ColumnPropNameInRow="SaleDate" msprop:Generator_ColumnPropNameInTable="SaleDateColumn" msprop:Generator_UserColumnName="SaleDate" type="xs:dateTime" />
  508. <xs:element name="ProductCount" msprop:Generator_ColumnVarNameInTable="columnProductCount" msprop:Generator_ColumnPropNameInRow="ProductCount" msprop:Generator_ColumnPropNameInTable="ProductCountColumn" msprop:Generator_UserColumnName="ProductCount" type="xs:int" />
  509. </xs:sequence>
  510. </xs:complexType>
  511. </xs:element>
  512. <xs:element name="ProductType" msprop:Generator_TableClassName="ProductTypeDataTable" msprop:Generator_TableVarName="tableProductType" msprop:Generator_TablePropName="ProductType" msprop:Generator_RowDeletingName="ProductTypeRowDeleting" msprop:Generator_RowChangingName="ProductTypeRowChanging" msprop:Generator_RowEvHandlerName="ProductTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductTypeRowDeleted" msprop:Generator_UserTableName="ProductType" msprop:Generator_RowChangedName="ProductTypeRowChanged" msprop:Generator_RowEvArgName="ProductTypeRowChangeEvent" msprop:Generator_RowClassName="ProductTypeRow">
  513. <xs:complexType>
  514. <xs:sequence>
  515. <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  516. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  517. <xs:simpleType>
  518. <xs:restriction base="xs:string">
  519. <xs:maxLength value="50" />
  520. </xs:restriction>
  521. </xs:simpleType>
  522. </xs:element>
  523. <xs:element name="DefectedPercent" msprop:Generator_ColumnVarNameInTable="columnDefectedPercent" msprop:Generator_ColumnPropNameInRow="DefectedPercent" msprop:Generator_ColumnPropNameInTable="DefectedPercentColumn" msprop:Generator_UserColumnName="DefectedPercent" type="xs:double" />
  524. </xs:sequence>
  525. </xs:complexType>
  526. </xs:element>
  527. </xs:choice>
  528. </xs:complexType>
  529. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  530. <xs:selector xpath=".//mstns:Agent" />
  531. <xs:field xpath="mstns:ID" />
  532. </xs:unique>
  533. <xs:unique name="AgentType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  534. <xs:selector xpath=".//mstns:AgentType" />
  535. <xs:field xpath="mstns:ID" />
  536. </xs:unique>
  537. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  538. <xs:selector xpath=".//mstns:Product" />
  539. <xs:field xpath="mstns:ID" />
  540. </xs:unique>
  541. <xs:unique name="ProductSale_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  542. <xs:selector xpath=".//mstns:ProductSale" />
  543. <xs:field xpath="mstns:ID" />
  544. </xs:unique>
  545. <xs:unique name="ProductType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  546. <xs:selector xpath=".//mstns:ProductType" />
  547. <xs:field xpath="mstns:ID" />
  548. </xs:unique>
  549. </xs:element>
  550. <xs:annotation>
  551. <xs:appinfo>
  552. <msdata:Relationship name="FK_Agent_AgentType" msdata:parent="AgentType" msdata:child="Agent" msdata:parentkey="ID" msdata:childkey="AgentTypeID" msprop:Generator_UserChildTable="Agent" msprop:Generator_ChildPropName="GetAgentRows" msprop:Generator_UserRelationName="FK_Agent_AgentType" msprop:Generator_RelationVarName="relationFK_Agent_AgentType" msprop:Generator_UserParentTable="AgentType" msprop:Generator_ParentPropName="AgentTypeRow" />
  553. <msdata:Relationship name="FK_Product_ProductType" msdata:parent="ProductType" msdata:child="Product" msdata:parentkey="ID" msdata:childkey="ProductTypeID" msprop:Generator_UserChildTable="Product" msprop:Generator_ChildPropName="GetProductRows" msprop:Generator_UserRelationName="FK_Product_ProductType" msprop:Generator_RelationVarName="relationFK_Product_ProductType" msprop:Generator_UserParentTable="ProductType" msprop:Generator_ParentPropName="ProductTypeRow" />
  554. <msdata:Relationship name="FK_ProductSale_Agent" msdata:parent="Agent" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="AgentID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_Agent" msprop:Generator_ParentPropName="AgentRow" msprop:Generator_RelationVarName="relationFK_ProductSale_Agent" msprop:Generator_UserParentTable="Agent" />
  555. <msdata:Relationship name="FK_ProductSale_Product" msdata:parent="Product" msdata:child="ProductSale" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductSale" msprop:Generator_ChildPropName="GetProductSaleRows" msprop:Generator_UserRelationName="FK_ProductSale_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductSale_Product" msprop:Generator_UserParentTable="Product" />
  556. </xs:appinfo>
  557. </xs:annotation>
  558. </xs:schema>