TestWSR4DataSet.xsd 198 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="TestWSR4DataSet" targetNamespace="http://tempuri.org/TestWSR4DataSet.xsd" xmlns:mstns="http://tempuri.org/TestWSR4DataSet.xsd" xmlns="http://tempuri.org/TestWSR4DataSet.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="TestWSR4ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TestWSR4ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.TestWSR4.Properties.Settings.GlobalReference.Default.TestWSR4ConnectionString" 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="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.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="TestWSR4.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="AgentPriorityHistoryTableAdapter" GeneratorDataComponentClassName="AgentPriorityHistoryTableAdapter" Name="AgentPriorityHistory" UserDataComponentName="AgentPriorityHistoryTableAdapter">
  113. <MainSource>
  114. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.AgentPriorityHistory" 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].[AgentPriorityHistory] WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ChangeDate] = @Original_ChangeDate) AND ([PriorityValue] = @Original_PriorityValue))</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="Int32" Direction="Input" ParameterName="@Original_AgentID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="AgentID" SourceColumnNullMapping="false" SourceVersion="Original" />
  121. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  122. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PriorityValue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriorityValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  123. </Parameters>
  124. </DbCommand>
  125. </DeleteCommand>
  126. <InsertCommand>
  127. <DbCommand CommandType="Text" ModifiedByUser="false">
  128. <CommandText>INSERT INTO [dbo].[AgentPriorityHistory] ([AgentID], [ChangeDate], [PriorityValue]) VALUES (@AgentID, @ChangeDate, @PriorityValue);
  129. SELECT ID, AgentID, ChangeDate, PriorityValue FROM AgentPriorityHistory WHERE (ID = SCOPE_IDENTITY())</CommandText>
  130. <Parameters>
  131. <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" />
  132. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  133. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PriorityValue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriorityValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  134. </Parameters>
  135. </DbCommand>
  136. </InsertCommand>
  137. <SelectCommand>
  138. <DbCommand CommandType="Text" ModifiedByUser="false">
  139. <CommandText>SELECT ID, AgentID, ChangeDate, PriorityValue FROM dbo.AgentPriorityHistory</CommandText>
  140. <Parameters />
  141. </DbCommand>
  142. </SelectCommand>
  143. <UpdateCommand>
  144. <DbCommand CommandType="Text" ModifiedByUser="false">
  145. <CommandText>UPDATE [dbo].[AgentPriorityHistory] SET [AgentID] = @AgentID, [ChangeDate] = @ChangeDate, [PriorityValue] = @PriorityValue WHERE (([ID] = @Original_ID) AND ([AgentID] = @Original_AgentID) AND ([ChangeDate] = @Original_ChangeDate) AND ([PriorityValue] = @Original_PriorityValue));
  146. SELECT ID, AgentID, ChangeDate, PriorityValue FROM AgentPriorityHistory WHERE (ID = @ID)</CommandText>
  147. <Parameters>
  148. <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" />
  149. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  150. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@PriorityValue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriorityValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  151. <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" />
  152. <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" />
  153. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  154. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_PriorityValue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="PriorityValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  155. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.AgentPriorityHistory" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  156. </Parameters>
  157. </DbCommand>
  158. </UpdateCommand>
  159. </DbSource>
  160. </MainSource>
  161. <Mappings>
  162. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  163. <Mapping SourceColumn="AgentID" DataSetColumn="AgentID" />
  164. <Mapping SourceColumn="ChangeDate" DataSetColumn="ChangeDate" />
  165. <Mapping SourceColumn="PriorityValue" DataSetColumn="PriorityValue" />
  166. </Mappings>
  167. <Sources />
  168. </TableAdapter>
  169. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AgentTypeTableAdapter" GeneratorDataComponentClassName="AgentTypeTableAdapter" Name="AgentType" UserDataComponentName="AgentTypeTableAdapter">
  170. <MainSource>
  171. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.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">
  172. <DeleteCommand>
  173. <DbCommand CommandType="Text" ModifiedByUser="false">
  174. <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>
  175. <Parameters>
  176. <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" />
  177. <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" />
  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. </Parameters>
  181. </DbCommand>
  182. </DeleteCommand>
  183. <InsertCommand>
  184. <DbCommand CommandType="Text" ModifiedByUser="false">
  185. <CommandText>INSERT INTO [dbo].[AgentType] ([Title], [Image]) VALUES (@Title, @Image);
  186. SELECT ID, Title, Image FROM AgentType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  187. <Parameters>
  188. <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" />
  189. <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" />
  190. </Parameters>
  191. </DbCommand>
  192. </InsertCommand>
  193. <SelectCommand>
  194. <DbCommand CommandType="Text" ModifiedByUser="false">
  195. <CommandText>SELECT ID, Title, Image FROM dbo.AgentType</CommandText>
  196. <Parameters />
  197. </DbCommand>
  198. </SelectCommand>
  199. <UpdateCommand>
  200. <DbCommand CommandType="Text" ModifiedByUser="false">
  201. <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)));
  202. SELECT ID, Title, Image FROM AgentType WHERE (ID = @ID)</CommandText>
  203. <Parameters>
  204. <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" />
  205. <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" />
  206. <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" />
  207. <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" />
  208. <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" />
  209. <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" />
  210. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.AgentType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  211. </Parameters>
  212. </DbCommand>
  213. </UpdateCommand>
  214. </DbSource>
  215. </MainSource>
  216. <Mappings>
  217. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  218. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  219. <Mapping SourceColumn="Image" DataSetColumn="Image" />
  220. </Mappings>
  221. <Sources />
  222. </TableAdapter>
  223. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MaterialTableAdapter" GeneratorDataComponentClassName="MaterialTableAdapter" Name="Material" UserDataComponentName="MaterialTableAdapter">
  224. <MainSource>
  225. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.Material" 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">
  226. <DeleteCommand>
  227. <DbCommand CommandType="Text" ModifiedByUser="false">
  228. <CommandText>DELETE FROM [dbo].[Material] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([CountInPack] = @Original_CountInPack) AND ([Unit] = @Original_Unit) AND ((@IsNull_CountInStock = 1 AND [CountInStock] IS NULL) OR ([CountInStock] = @Original_CountInStock)) AND ([MinCount] = @Original_MinCount) AND ([Cost] = @Original_Cost) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ([MaterialTypeID] = @Original_MaterialTypeID))</CommandText>
  229. <Parameters>
  230. <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" />
  231. <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" />
  232. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountInPack" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInPack" SourceColumnNullMapping="false" SourceVersion="Original" />
  233. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Unit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Original" />
  234. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="true" SourceVersion="Original" />
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CountInStock" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="false" SourceVersion="Original" />
  236. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_MinCount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="MinCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  237. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Cost" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <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" />
  239. <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" />
  240. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  241. </Parameters>
  242. </DbCommand>
  243. </DeleteCommand>
  244. <InsertCommand>
  245. <DbCommand CommandType="Text" ModifiedByUser="false">
  246. <CommandText>INSERT INTO [dbo].[Material] ([Title], [CountInPack], [Unit], [CountInStock], [MinCount], [Description], [Cost], [Image], [MaterialTypeID]) VALUES (@Title, @CountInPack, @Unit, @CountInStock, @MinCount, @Description, @Cost, @Image, @MaterialTypeID);
  247. SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID FROM Material WHERE (ID = SCOPE_IDENTITY())</CommandText>
  248. <Parameters>
  249. <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" />
  250. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountInPack" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInPack" SourceColumnNullMapping="false" SourceVersion="Current" />
  251. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Unit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Current" />
  252. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CountInStock" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="false" SourceVersion="Current" />
  253. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@MinCount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="MinCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  254. <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" />
  255. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Cost" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  256. <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" />
  257. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  258. </Parameters>
  259. </DbCommand>
  260. </InsertCommand>
  261. <SelectCommand>
  262. <DbCommand CommandType="Text" ModifiedByUser="false">
  263. <CommandText>SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID FROM dbo.Material</CommandText>
  264. <Parameters />
  265. </DbCommand>
  266. </SelectCommand>
  267. <UpdateCommand>
  268. <DbCommand CommandType="Text" ModifiedByUser="false">
  269. <CommandText>UPDATE [dbo].[Material] SET [Title] = @Title, [CountInPack] = @CountInPack, [Unit] = @Unit, [CountInStock] = @CountInStock, [MinCount] = @MinCount, [Description] = @Description, [Cost] = @Cost, [Image] = @Image, [MaterialTypeID] = @MaterialTypeID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([CountInPack] = @Original_CountInPack) AND ([Unit] = @Original_Unit) AND ((@IsNull_CountInStock = 1 AND [CountInStock] IS NULL) OR ([CountInStock] = @Original_CountInStock)) AND ([MinCount] = @Original_MinCount) AND ([Cost] = @Original_Cost) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)) AND ([MaterialTypeID] = @Original_MaterialTypeID));
  270. SELECT ID, Title, CountInPack, Unit, CountInStock, MinCount, Description, Cost, Image, MaterialTypeID FROM Material WHERE (ID = @ID)</CommandText>
  271. <Parameters>
  272. <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" />
  273. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CountInPack" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInPack" SourceColumnNullMapping="false" SourceVersion="Current" />
  274. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Unit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Current" />
  275. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CountInStock" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="false" SourceVersion="Current" />
  276. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@MinCount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="MinCount" SourceColumnNullMapping="false" SourceVersion="Current" />
  277. <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" />
  278. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Cost" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Current" />
  279. <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" />
  280. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
  281. <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" />
  282. <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" />
  283. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CountInPack" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInPack" SourceColumnNullMapping="false" SourceVersion="Original" />
  284. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Unit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Unit" SourceColumnNullMapping="false" SourceVersion="Original" />
  285. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_CountInStock" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="true" SourceVersion="Original" />
  286. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CountInStock" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountInStock" SourceColumnNullMapping="false" SourceVersion="Original" />
  287. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_MinCount" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="MinCount" SourceColumnNullMapping="false" SourceVersion="Original" />
  288. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_Cost" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="Cost" SourceColumnNullMapping="false" SourceVersion="Original" />
  289. <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" />
  290. <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" />
  291. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
  292. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.Material" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  293. </Parameters>
  294. </DbCommand>
  295. </UpdateCommand>
  296. </DbSource>
  297. </MainSource>
  298. <Mappings>
  299. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  300. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  301. <Mapping SourceColumn="CountInPack" DataSetColumn="CountInPack" />
  302. <Mapping SourceColumn="Unit" DataSetColumn="Unit" />
  303. <Mapping SourceColumn="CountInStock" DataSetColumn="CountInStock" />
  304. <Mapping SourceColumn="MinCount" DataSetColumn="MinCount" />
  305. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  306. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  307. <Mapping SourceColumn="Image" DataSetColumn="Image" />
  308. <Mapping SourceColumn="MaterialTypeID" DataSetColumn="MaterialTypeID" />
  309. </Mappings>
  310. <Sources />
  311. </TableAdapter>
  312. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MaterialCountHistoryTableAdapter" GeneratorDataComponentClassName="MaterialCountHistoryTableAdapter" Name="MaterialCountHistory" UserDataComponentName="MaterialCountHistoryTableAdapter">
  313. <MainSource>
  314. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.MaterialCountHistory" 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">
  315. <DeleteCommand>
  316. <DbCommand CommandType="Text" ModifiedByUser="false">
  317. <CommandText>DELETE FROM [dbo].[MaterialCountHistory] WHERE (([ID] = @Original_ID) AND ([MaterialID] = @Original_MaterialID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CountValue] = @Original_CountValue))</CommandText>
  318. <Parameters>
  319. <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" />
  320. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  321. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  322. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CountValue" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  323. </Parameters>
  324. </DbCommand>
  325. </DeleteCommand>
  326. <InsertCommand>
  327. <DbCommand CommandType="Text" ModifiedByUser="false">
  328. <CommandText>INSERT INTO [dbo].[MaterialCountHistory] ([MaterialID], [ChangeDate], [CountValue]) VALUES (@MaterialID, @ChangeDate, @CountValue);
  329. SELECT ID, MaterialID, ChangeDate, CountValue FROM MaterialCountHistory WHERE (ID = SCOPE_IDENTITY())</CommandText>
  330. <Parameters>
  331. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  332. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  333. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CountValue" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  334. </Parameters>
  335. </DbCommand>
  336. </InsertCommand>
  337. <SelectCommand>
  338. <DbCommand CommandType="Text" ModifiedByUser="false">
  339. <CommandText>SELECT ID, MaterialID, ChangeDate, CountValue FROM dbo.MaterialCountHistory</CommandText>
  340. <Parameters />
  341. </DbCommand>
  342. </SelectCommand>
  343. <UpdateCommand>
  344. <DbCommand CommandType="Text" ModifiedByUser="false">
  345. <CommandText>UPDATE [dbo].[MaterialCountHistory] SET [MaterialID] = @MaterialID, [ChangeDate] = @ChangeDate, [CountValue] = @CountValue WHERE (([ID] = @Original_ID) AND ([MaterialID] = @Original_MaterialID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CountValue] = @Original_CountValue));
  346. SELECT ID, MaterialID, ChangeDate, CountValue FROM MaterialCountHistory WHERE (ID = @ID)</CommandText>
  347. <Parameters>
  348. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  349. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  350. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CountValue" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  351. <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" />
  352. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  353. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  354. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CountValue" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CountValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  355. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.MaterialCountHistory" 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="MaterialID" DataSetColumn="MaterialID" />
  364. <Mapping SourceColumn="ChangeDate" DataSetColumn="ChangeDate" />
  365. <Mapping SourceColumn="CountValue" DataSetColumn="CountValue" />
  366. </Mappings>
  367. <Sources />
  368. </TableAdapter>
  369. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MaterialSupplierTableAdapter" GeneratorDataComponentClassName="MaterialSupplierTableAdapter" Name="MaterialSupplier" UserDataComponentName="MaterialSupplierTableAdapter">
  370. <MainSource>
  371. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.MaterialSupplier" 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">
  372. <DeleteCommand>
  373. <DbCommand CommandType="Text" ModifiedByUser="false">
  374. <CommandText>DELETE FROM [dbo].[MaterialSupplier] WHERE (([MaterialID] = @Original_MaterialID) AND ([SupplierID] = @Original_SupplierID))</CommandText>
  375. <Parameters>
  376. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  377. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SupplierID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierID" SourceColumnNullMapping="false" SourceVersion="Original" />
  378. </Parameters>
  379. </DbCommand>
  380. </DeleteCommand>
  381. <InsertCommand>
  382. <DbCommand CommandType="Text" ModifiedByUser="false">
  383. <CommandText>INSERT INTO [dbo].[MaterialSupplier] ([MaterialID], [SupplierID]) VALUES (@MaterialID, @SupplierID);
  384. SELECT MaterialID, SupplierID FROM MaterialSupplier WHERE (MaterialID = @MaterialID) AND (SupplierID = @SupplierID)</CommandText>
  385. <Parameters>
  386. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  387. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SupplierID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierID" SourceColumnNullMapping="false" SourceVersion="Current" />
  388. </Parameters>
  389. </DbCommand>
  390. </InsertCommand>
  391. <SelectCommand>
  392. <DbCommand CommandType="Text" ModifiedByUser="false">
  393. <CommandText>SELECT MaterialID, SupplierID FROM dbo.MaterialSupplier</CommandText>
  394. <Parameters />
  395. </DbCommand>
  396. </SelectCommand>
  397. <UpdateCommand>
  398. <DbCommand CommandType="Text" ModifiedByUser="false">
  399. <CommandText>UPDATE [dbo].[MaterialSupplier] SET [MaterialID] = @MaterialID, [SupplierID] = @SupplierID WHERE (([MaterialID] = @Original_MaterialID) AND ([SupplierID] = @Original_SupplierID));
  400. SELECT MaterialID, SupplierID FROM MaterialSupplier WHERE (MaterialID = @MaterialID) AND (SupplierID = @SupplierID)</CommandText>
  401. <Parameters>
  402. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  403. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SupplierID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierID" SourceColumnNullMapping="false" SourceVersion="Current" />
  404. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  405. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SupplierID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierID" SourceColumnNullMapping="false" SourceVersion="Original" />
  406. </Parameters>
  407. </DbCommand>
  408. </UpdateCommand>
  409. </DbSource>
  410. </MainSource>
  411. <Mappings>
  412. <Mapping SourceColumn="MaterialID" DataSetColumn="MaterialID" />
  413. <Mapping SourceColumn="SupplierID" DataSetColumn="SupplierID" />
  414. </Mappings>
  415. <Sources />
  416. </TableAdapter>
  417. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MaterialTypeTableAdapter" GeneratorDataComponentClassName="MaterialTypeTableAdapter" Name="MaterialType" UserDataComponentName="MaterialTypeTableAdapter">
  418. <MainSource>
  419. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.MaterialType" 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">
  420. <DeleteCommand>
  421. <DbCommand CommandType="Text" ModifiedByUser="false">
  422. <CommandText>DELETE FROM [dbo].[MaterialType] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)))</CommandText>
  423. <Parameters>
  424. <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" />
  425. <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" />
  426. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectedPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  427. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  428. </Parameters>
  429. </DbCommand>
  430. </DeleteCommand>
  431. <InsertCommand>
  432. <DbCommand CommandType="Text" ModifiedByUser="false">
  433. <CommandText>INSERT INTO [dbo].[MaterialType] ([Title], [DefectedPercent]) VALUES (@Title, @DefectedPercent);
  434. SELECT ID, Title, DefectedPercent FROM MaterialType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  435. <Parameters>
  436. <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" />
  437. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  438. </Parameters>
  439. </DbCommand>
  440. </InsertCommand>
  441. <SelectCommand>
  442. <DbCommand CommandType="Text" ModifiedByUser="false">
  443. <CommandText>SELECT ID, Title, DefectedPercent FROM dbo.MaterialType</CommandText>
  444. <Parameters />
  445. </DbCommand>
  446. </SelectCommand>
  447. <UpdateCommand>
  448. <DbCommand CommandType="Text" ModifiedByUser="false">
  449. <CommandText>UPDATE [dbo].[MaterialType] SET [Title] = @Title, [DefectedPercent] = @DefectedPercent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)));
  450. SELECT ID, Title, DefectedPercent FROM MaterialType WHERE (ID = @ID)</CommandText>
  451. <Parameters>
  452. <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" />
  453. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  454. <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" />
  455. <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" />
  456. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectedPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  457. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  458. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.MaterialType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  459. </Parameters>
  460. </DbCommand>
  461. </UpdateCommand>
  462. </DbSource>
  463. </MainSource>
  464. <Mappings>
  465. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  466. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  467. <Mapping SourceColumn="DefectedPercent" DataSetColumn="DefectedPercent" />
  468. </Mappings>
  469. <Sources />
  470. </TableAdapter>
  471. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTableAdapter" GeneratorDataComponentClassName="ProductTableAdapter" Name="Product" UserDataComponentName="ProductTableAdapter">
  472. <MainSource>
  473. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.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">
  474. <DeleteCommand>
  475. <DbCommand CommandType="Text" ModifiedByUser="false">
  476. <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>
  477. <Parameters>
  478. <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" />
  479. <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" />
  480. <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" />
  481. <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" />
  482. <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" />
  483. <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" />
  484. <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" />
  485. <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" />
  486. <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" />
  487. <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" />
  488. <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" />
  489. <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" />
  490. </Parameters>
  491. </DbCommand>
  492. </DeleteCommand>
  493. <InsertCommand>
  494. <DbCommand CommandType="Text" ModifiedByUser="false">
  495. <CommandText>INSERT INTO [dbo].[Product] ([Title], [ProductTypeID], [ArticleNumber], [Description], [Image], [ProductionPersonCount], [ProductionWorkshopNumber], [MinCostForAgent]) VALUES (@Title, @ProductTypeID, @ArticleNumber, @Description, @Image, @ProductionPersonCount, @ProductionWorkshopNumber, @MinCostForAgent);
  496. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = SCOPE_IDENTITY())</CommandText>
  497. <Parameters>
  498. <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" />
  499. <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" />
  500. <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" />
  501. <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" />
  502. <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" />
  503. <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" />
  504. <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" />
  505. <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" />
  506. </Parameters>
  507. </DbCommand>
  508. </InsertCommand>
  509. <SelectCommand>
  510. <DbCommand CommandType="Text" ModifiedByUser="false">
  511. <CommandText>SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM dbo.Product</CommandText>
  512. <Parameters />
  513. </DbCommand>
  514. </SelectCommand>
  515. <UpdateCommand>
  516. <DbCommand CommandType="Text" ModifiedByUser="false">
  517. <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));
  518. SELECT ID, Title, ProductTypeID, ArticleNumber, Description, Image, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM Product WHERE (ID = @ID)</CommandText>
  519. <Parameters>
  520. <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" />
  521. <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" />
  522. <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" />
  523. <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" />
  524. <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" />
  525. <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" />
  526. <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" />
  527. <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" />
  528. <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" />
  529. <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" />
  530. <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" />
  531. <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" />
  532. <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" />
  533. <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" />
  534. <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" />
  535. <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" />
  536. <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" />
  537. <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" />
  538. <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" />
  539. <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" />
  540. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.Product" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  541. </Parameters>
  542. </DbCommand>
  543. </UpdateCommand>
  544. </DbSource>
  545. </MainSource>
  546. <Mappings>
  547. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  548. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  549. <Mapping SourceColumn="ProductTypeID" DataSetColumn="ProductTypeID" />
  550. <Mapping SourceColumn="ArticleNumber" DataSetColumn="ArticleNumber" />
  551. <Mapping SourceColumn="Description" DataSetColumn="Description" />
  552. <Mapping SourceColumn="Image" DataSetColumn="Image" />
  553. <Mapping SourceColumn="ProductionPersonCount" DataSetColumn="ProductionPersonCount" />
  554. <Mapping SourceColumn="ProductionWorkshopNumber" DataSetColumn="ProductionWorkshopNumber" />
  555. <Mapping SourceColumn="MinCostForAgent" DataSetColumn="MinCostForAgent" />
  556. </Mappings>
  557. <Sources />
  558. </TableAdapter>
  559. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductCostHistoryTableAdapter" GeneratorDataComponentClassName="ProductCostHistoryTableAdapter" Name="ProductCostHistory" UserDataComponentName="ProductCostHistoryTableAdapter">
  560. <MainSource>
  561. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.ProductCostHistory" 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">
  562. <DeleteCommand>
  563. <DbCommand CommandType="Text" ModifiedByUser="false">
  564. <CommandText>DELETE FROM [dbo].[ProductCostHistory] WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CostValue] = @Original_CostValue))</CommandText>
  565. <Parameters>
  566. <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" />
  567. <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" />
  568. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  569. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_CostValue" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CostValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  570. </Parameters>
  571. </DbCommand>
  572. </DeleteCommand>
  573. <InsertCommand>
  574. <DbCommand CommandType="Text" ModifiedByUser="false">
  575. <CommandText>INSERT INTO [dbo].[ProductCostHistory] ([ProductID], [ChangeDate], [CostValue]) VALUES (@ProductID, @ChangeDate, @CostValue);
  576. SELECT ID, ProductID, ChangeDate, CostValue FROM ProductCostHistory WHERE (ID = SCOPE_IDENTITY())</CommandText>
  577. <Parameters>
  578. <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" />
  579. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  580. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CostValue" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CostValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  581. </Parameters>
  582. </DbCommand>
  583. </InsertCommand>
  584. <SelectCommand>
  585. <DbCommand CommandType="Text" ModifiedByUser="false">
  586. <CommandText>SELECT ID, ProductID, ChangeDate, CostValue FROM dbo.ProductCostHistory</CommandText>
  587. <Parameters />
  588. </DbCommand>
  589. </SelectCommand>
  590. <UpdateCommand>
  591. <DbCommand CommandType="Text" ModifiedByUser="false">
  592. <CommandText>UPDATE [dbo].[ProductCostHistory] SET [ProductID] = @ProductID, [ChangeDate] = @ChangeDate, [CostValue] = @CostValue WHERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([ChangeDate] = @Original_ChangeDate) AND ([CostValue] = @Original_CostValue));
  593. SELECT ID, ProductID, ChangeDate, CostValue FROM ProductCostHistory WHERE (ID = @ID)</CommandText>
  594. <Parameters>
  595. <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" />
  596. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  597. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@CostValue" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CostValue" SourceColumnNullMapping="false" SourceVersion="Current" />
  598. <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" />
  599. <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" />
  600. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_ChangeDate" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="ChangeDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  601. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_CostValue" Precision="10" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="CostValue" SourceColumnNullMapping="false" SourceVersion="Original" />
  602. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.ProductCostHistory" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  603. </Parameters>
  604. </DbCommand>
  605. </UpdateCommand>
  606. </DbSource>
  607. </MainSource>
  608. <Mappings>
  609. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  610. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  611. <Mapping SourceColumn="ChangeDate" DataSetColumn="ChangeDate" />
  612. <Mapping SourceColumn="CostValue" DataSetColumn="CostValue" />
  613. </Mappings>
  614. <Sources />
  615. </TableAdapter>
  616. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductMaterialTableAdapter" GeneratorDataComponentClassName="ProductMaterialTableAdapter" Name="ProductMaterial" UserDataComponentName="ProductMaterialTableAdapter">
  617. <MainSource>
  618. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.ProductMaterial" 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">
  619. <DeleteCommand>
  620. <DbCommand CommandType="Text" ModifiedByUser="false">
  621. <CommandText>DELETE FROM [dbo].[ProductMaterial] WHERE (([ProductID] = @Original_ProductID) AND ([MaterialID] = @Original_MaterialID) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)))</CommandText>
  622. <Parameters>
  623. <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" />
  624. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  625. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Count" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="true" SourceVersion="Original" />
  626. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Count" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="false" SourceVersion="Original" />
  627. </Parameters>
  628. </DbCommand>
  629. </DeleteCommand>
  630. <InsertCommand>
  631. <DbCommand CommandType="Text" ModifiedByUser="false">
  632. <CommandText>INSERT INTO [dbo].[ProductMaterial] ([ProductID], [MaterialID], [Count]) VALUES (@ProductID, @MaterialID, @Count);
  633. SELECT ProductID, MaterialID, Count FROM ProductMaterial WHERE (MaterialID = @MaterialID) AND (ProductID = @ProductID)</CommandText>
  634. <Parameters>
  635. <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" />
  636. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  637. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Count" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="false" SourceVersion="Current" />
  638. </Parameters>
  639. </DbCommand>
  640. </InsertCommand>
  641. <SelectCommand>
  642. <DbCommand CommandType="Text" ModifiedByUser="false">
  643. <CommandText>SELECT ProductID, MaterialID, Count FROM dbo.ProductMaterial</CommandText>
  644. <Parameters />
  645. </DbCommand>
  646. </SelectCommand>
  647. <UpdateCommand>
  648. <DbCommand CommandType="Text" ModifiedByUser="false">
  649. <CommandText>UPDATE [dbo].[ProductMaterial] SET [ProductID] = @ProductID, [MaterialID] = @MaterialID, [Count] = @Count WHERE (([ProductID] = @Original_ProductID) AND ([MaterialID] = @Original_MaterialID) AND ((@IsNull_Count = 1 AND [Count] IS NULL) OR ([Count] = @Original_Count)));
  650. SELECT ProductID, MaterialID, Count FROM ProductMaterial WHERE (MaterialID = @MaterialID) AND (ProductID = @ProductID)</CommandText>
  651. <Parameters>
  652. <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" />
  653. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Current" />
  654. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Count" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="false" SourceVersion="Current" />
  655. <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" />
  656. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MaterialID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaterialID" SourceColumnNullMapping="false" SourceVersion="Original" />
  657. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Count" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="true" SourceVersion="Original" />
  658. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Count" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Count" SourceColumnNullMapping="false" SourceVersion="Original" />
  659. </Parameters>
  660. </DbCommand>
  661. </UpdateCommand>
  662. </DbSource>
  663. </MainSource>
  664. <Mappings>
  665. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  666. <Mapping SourceColumn="MaterialID" DataSetColumn="MaterialID" />
  667. <Mapping SourceColumn="Count" DataSetColumn="Count" />
  668. </Mappings>
  669. <Sources />
  670. </TableAdapter>
  671. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductSaleTableAdapter" GeneratorDataComponentClassName="ProductSaleTableAdapter" Name="ProductSale" UserDataComponentName="ProductSaleTableAdapter">
  672. <MainSource>
  673. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.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">
  674. <DeleteCommand>
  675. <DbCommand CommandType="Text" ModifiedByUser="false">
  676. <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>
  677. <Parameters>
  678. <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" />
  679. <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" />
  680. <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" />
  681. <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" />
  682. <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" />
  683. </Parameters>
  684. </DbCommand>
  685. </DeleteCommand>
  686. <InsertCommand>
  687. <DbCommand CommandType="Text" ModifiedByUser="false">
  688. <CommandText>INSERT INTO [dbo].[ProductSale] ([AgentID], [ProductID], [SaleDate], [ProductCount]) VALUES (@AgentID, @ProductID, @SaleDate, @ProductCount);
  689. SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = SCOPE_IDENTITY())</CommandText>
  690. <Parameters>
  691. <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" />
  692. <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" />
  693. <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" />
  694. <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" />
  695. </Parameters>
  696. </DbCommand>
  697. </InsertCommand>
  698. <SelectCommand>
  699. <DbCommand CommandType="Text" ModifiedByUser="false">
  700. <CommandText>SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM dbo.ProductSale</CommandText>
  701. <Parameters />
  702. </DbCommand>
  703. </SelectCommand>
  704. <UpdateCommand>
  705. <DbCommand CommandType="Text" ModifiedByUser="false">
  706. <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));
  707. SELECT ID, AgentID, ProductID, SaleDate, ProductCount FROM ProductSale WHERE (ID = @ID)</CommandText>
  708. <Parameters>
  709. <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" />
  710. <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" />
  711. <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" />
  712. <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" />
  713. <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" />
  714. <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" />
  715. <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" />
  716. <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" />
  717. <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" />
  718. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.ProductSale" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  719. </Parameters>
  720. </DbCommand>
  721. </UpdateCommand>
  722. </DbSource>
  723. </MainSource>
  724. <Mappings>
  725. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  726. <Mapping SourceColumn="AgentID" DataSetColumn="AgentID" />
  727. <Mapping SourceColumn="ProductID" DataSetColumn="ProductID" />
  728. <Mapping SourceColumn="SaleDate" DataSetColumn="SaleDate" />
  729. <Mapping SourceColumn="ProductCount" DataSetColumn="ProductCount" />
  730. </Mappings>
  731. <Sources />
  732. </TableAdapter>
  733. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductTypeTableAdapter" GeneratorDataComponentClassName="ProductTypeTableAdapter" Name="ProductType" UserDataComponentName="ProductTypeTableAdapter">
  734. <MainSource>
  735. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.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">
  736. <DeleteCommand>
  737. <DbCommand CommandType="Text" ModifiedByUser="false">
  738. <CommandText>DELETE FROM [dbo].[ProductType] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)))</CommandText>
  739. <Parameters>
  740. <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" />
  741. <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" />
  742. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectedPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  743. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  744. </Parameters>
  745. </DbCommand>
  746. </DeleteCommand>
  747. <InsertCommand>
  748. <DbCommand CommandType="Text" ModifiedByUser="false">
  749. <CommandText>INSERT INTO [dbo].[ProductType] ([Title], [DefectedPercent]) VALUES (@Title, @DefectedPercent);
  750. SELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = SCOPE_IDENTITY())</CommandText>
  751. <Parameters>
  752. <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" />
  753. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  754. </Parameters>
  755. </DbCommand>
  756. </InsertCommand>
  757. <SelectCommand>
  758. <DbCommand CommandType="Text" ModifiedByUser="false">
  759. <CommandText>SELECT ID, Title, DefectedPercent FROM dbo.ProductType</CommandText>
  760. <Parameters />
  761. </DbCommand>
  762. </SelectCommand>
  763. <UpdateCommand>
  764. <DbCommand CommandType="Text" ModifiedByUser="false">
  765. <CommandText>UPDATE [dbo].[ProductType] SET [Title] = @Title, [DefectedPercent] = @DefectedPercent WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_DefectedPercent = 1 AND [DefectedPercent] IS NULL) OR ([DefectedPercent] = @Original_DefectedPercent)));
  766. SELECT ID, Title, DefectedPercent FROM ProductType WHERE (ID = @ID)</CommandText>
  767. <Parameters>
  768. <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" />
  769. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Current" />
  770. <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" />
  771. <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" />
  772. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DefectedPercent" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="true" SourceVersion="Original" />
  773. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DefectedPercent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DefectedPercent" SourceColumnNullMapping="false" SourceVersion="Original" />
  774. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.ProductType" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  775. </Parameters>
  776. </DbCommand>
  777. </UpdateCommand>
  778. </DbSource>
  779. </MainSource>
  780. <Mappings>
  781. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  782. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  783. <Mapping SourceColumn="DefectedPercent" DataSetColumn="DefectedPercent" />
  784. </Mappings>
  785. <Sources />
  786. </TableAdapter>
  787. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ShopTableAdapter" GeneratorDataComponentClassName="ShopTableAdapter" Name="Shop" UserDataComponentName="ShopTableAdapter">
  788. <MainSource>
  789. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.Shop" 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">
  790. <DeleteCommand>
  791. <DbCommand CommandType="Text" ModifiedByUser="false">
  792. <CommandText>DELETE FROM [dbo].[Shop] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([AgentID] = @Original_AgentID))</CommandText>
  793. <Parameters>
  794. <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" />
  795. <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" />
  796. <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" />
  797. <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" />
  798. <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" />
  799. </Parameters>
  800. </DbCommand>
  801. </DeleteCommand>
  802. <InsertCommand>
  803. <DbCommand CommandType="Text" ModifiedByUser="false">
  804. <CommandText>INSERT INTO [dbo].[Shop] ([Title], [Address], [AgentID]) VALUES (@Title, @Address, @AgentID);
  805. SELECT ID, Title, Address, AgentID FROM Shop WHERE (ID = SCOPE_IDENTITY())</CommandText>
  806. <Parameters>
  807. <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" />
  808. <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" />
  809. <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" />
  810. </Parameters>
  811. </DbCommand>
  812. </InsertCommand>
  813. <SelectCommand>
  814. <DbCommand CommandType="Text" ModifiedByUser="false">
  815. <CommandText>SELECT ID, Title, Address, AgentID FROM dbo.Shop</CommandText>
  816. <Parameters />
  817. </DbCommand>
  818. </SelectCommand>
  819. <UpdateCommand>
  820. <DbCommand CommandType="Text" ModifiedByUser="false">
  821. <CommandText>UPDATE [dbo].[Shop] SET [Title] = @Title, [Address] = @Address, [AgentID] = @AgentID WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ((@IsNull_Address = 1 AND [Address] IS NULL) OR ([Address] = @Original_Address)) AND ([AgentID] = @Original_AgentID));
  822. SELECT ID, Title, Address, AgentID FROM Shop WHERE (ID = @ID)</CommandText>
  823. <Parameters>
  824. <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" />
  825. <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" />
  826. <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" />
  827. <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" />
  828. <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" />
  829. <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" />
  830. <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" />
  831. <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" />
  832. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.Shop" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  833. </Parameters>
  834. </DbCommand>
  835. </UpdateCommand>
  836. </DbSource>
  837. </MainSource>
  838. <Mappings>
  839. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  840. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  841. <Mapping SourceColumn="Address" DataSetColumn="Address" />
  842. <Mapping SourceColumn="AgentID" DataSetColumn="AgentID" />
  843. </Mappings>
  844. <Sources />
  845. </TableAdapter>
  846. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SupplierTableAdapter" GeneratorDataComponentClassName="SupplierTableAdapter" Name="Supplier" UserDataComponentName="SupplierTableAdapter">
  847. <MainSource>
  848. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.Supplier" 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">
  849. <DeleteCommand>
  850. <DbCommand CommandType="Text" ModifiedByUser="false">
  851. <CommandText>DELETE FROM [dbo].[Supplier] WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([INN] = @Original_INN) AND ([StartDate] = @Original_StartDate) AND ((@IsNull_QualityRating = 1 AND [QualityRating] IS NULL) OR ([QualityRating] = @Original_QualityRating)) AND ((@IsNull_SupplierType = 1 AND [SupplierType] IS NULL) OR ([SupplierType] = @Original_SupplierType)))</CommandText>
  852. <Parameters>
  853. <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" />
  854. <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" />
  855. <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" />
  856. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  857. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="true" SourceVersion="Original" />
  858. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="false" SourceVersion="Original" />
  859. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="true" SourceVersion="Original" />
  860. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="false" SourceVersion="Original" />
  861. </Parameters>
  862. </DbCommand>
  863. </DeleteCommand>
  864. <InsertCommand>
  865. <DbCommand CommandType="Text" ModifiedByUser="false">
  866. <CommandText>INSERT INTO [dbo].[Supplier] ([Title], [INN], [StartDate], [QualityRating], [SupplierType]) VALUES (@Title, @INN, @StartDate, @QualityRating, @SupplierType);
  867. SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM Supplier WHERE (ID = SCOPE_IDENTITY())</CommandText>
  868. <Parameters>
  869. <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" />
  870. <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" />
  871. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  872. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="false" SourceVersion="Current" />
  873. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="false" SourceVersion="Current" />
  874. </Parameters>
  875. </DbCommand>
  876. </InsertCommand>
  877. <SelectCommand>
  878. <DbCommand CommandType="Text" ModifiedByUser="false">
  879. <CommandText>SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM dbo.Supplier</CommandText>
  880. <Parameters />
  881. </DbCommand>
  882. </SelectCommand>
  883. <UpdateCommand>
  884. <DbCommand CommandType="Text" ModifiedByUser="false">
  885. <CommandText>UPDATE [dbo].[Supplier] SET [Title] = @Title, [INN] = @INN, [StartDate] = @StartDate, [QualityRating] = @QualityRating, [SupplierType] = @SupplierType WHERE (([ID] = @Original_ID) AND ([Title] = @Original_Title) AND ([INN] = @Original_INN) AND ([StartDate] = @Original_StartDate) AND ((@IsNull_QualityRating = 1 AND [QualityRating] IS NULL) OR ([QualityRating] = @Original_QualityRating)) AND ((@IsNull_SupplierType = 1 AND [SupplierType] IS NULL) OR ([SupplierType] = @Original_SupplierType)));
  886. SELECT ID, Title, INN, StartDate, QualityRating, SupplierType FROM Supplier WHERE (ID = @ID)</CommandText>
  887. <Parameters>
  888. <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" />
  889. <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" />
  890. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Current" />
  891. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="false" SourceVersion="Current" />
  892. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@SupplierType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="false" SourceVersion="Current" />
  893. <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" />
  894. <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" />
  895. <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" />
  896. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Date" Direction="Input" ParameterName="@Original_StartDate" Precision="0" ProviderType="Date" Scale="0" Size="0" SourceColumn="StartDate" SourceColumnNullMapping="false" SourceVersion="Original" />
  897. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="true" SourceVersion="Original" />
  898. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QualityRating" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QualityRating" SourceColumnNullMapping="false" SourceVersion="Original" />
  899. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SupplierType" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="true" SourceVersion="Original" />
  900. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_SupplierType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="SupplierType" SourceColumnNullMapping="false" SourceVersion="Original" />
  901. <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="TestWSR4.dbo.Supplier" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
  902. </Parameters>
  903. </DbCommand>
  904. </UpdateCommand>
  905. </DbSource>
  906. </MainSource>
  907. <Mappings>
  908. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  909. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  910. <Mapping SourceColumn="INN" DataSetColumn="INN" />
  911. <Mapping SourceColumn="StartDate" DataSetColumn="StartDate" />
  912. <Mapping SourceColumn="QualityRating" DataSetColumn="QualityRating" />
  913. <Mapping SourceColumn="SupplierType" DataSetColumn="SupplierType" />
  914. </Mappings>
  915. <Sources />
  916. </TableAdapter>
  917. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ItogSumProductTableAdapter" GeneratorDataComponentClassName="ItogSumProductTableAdapter" Name="ItogSumProduct" UserDataComponentName="ItogSumProductTableAdapter">
  918. <MainSource>
  919. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.ItogSumProduct" DbObjectType="View" 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">
  920. <SelectCommand>
  921. <DbCommand CommandType="Text" ModifiedByUser="false">
  922. <CommandText>SELECT Product, Cost, ID FROM dbo.ItogSumProduct</CommandText>
  923. <Parameters />
  924. </DbCommand>
  925. </SelectCommand>
  926. </DbSource>
  927. </MainSource>
  928. <Mappings>
  929. <Mapping SourceColumn="Product" DataSetColumn="Product" />
  930. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  931. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  932. </Mappings>
  933. <Sources />
  934. </TableAdapter>
  935. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProductsPredTableAdapter" GeneratorDataComponentClassName="ProductsPredTableAdapter" Name="ProductsPred" UserDataComponentName="ProductsPredTableAdapter">
  936. <MainSource>
  937. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.ProductsPred" DbObjectType="View" 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">
  938. <SelectCommand>
  939. <DbCommand CommandType="Text" ModifiedByUser="false">
  940. <CommandText>SELECT ID, Title, Type, Cost, ArticleNumber, ProductionPersonCount, ProductionWorkshopNumber, MinCostForAgent FROM dbo.ProductsPred</CommandText>
  941. <Parameters />
  942. </DbCommand>
  943. </SelectCommand>
  944. </DbSource>
  945. </MainSource>
  946. <Mappings>
  947. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  948. <Mapping SourceColumn="Title" DataSetColumn="Title" />
  949. <Mapping SourceColumn="Type" DataSetColumn="Type" />
  950. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  951. <Mapping SourceColumn="ArticleNumber" DataSetColumn="ArticleNumber" />
  952. <Mapping SourceColumn="ProductionPersonCount" DataSetColumn="ProductionPersonCount" />
  953. <Mapping SourceColumn="ProductionWorkshopNumber" DataSetColumn="ProductionWorkshopNumber" />
  954. <Mapping SourceColumn="MinCostForAgent" DataSetColumn="MinCostForAgent" />
  955. </Mappings>
  956. <Sources />
  957. </TableAdapter>
  958. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ProizvProductTableAdapter" GeneratorDataComponentClassName="ProizvProductTableAdapter" Name="ProizvProduct" UserDataComponentName="ProizvProductTableAdapter">
  959. <MainSource>
  960. <DbSource ConnectionRef="TestWSR4ConnectionString (Settings)" DbObjectName="TestWSR4.dbo.ProizvProduct" DbObjectType="View" 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">
  961. <SelectCommand>
  962. <DbCommand CommandType="Text" ModifiedByUser="false">
  963. <CommandText>SELECT ID, Product, Material, Count, Cost, Proizv FROM dbo.ProizvProduct</CommandText>
  964. <Parameters />
  965. </DbCommand>
  966. </SelectCommand>
  967. </DbSource>
  968. </MainSource>
  969. <Mappings>
  970. <Mapping SourceColumn="ID" DataSetColumn="ID" />
  971. <Mapping SourceColumn="Product" DataSetColumn="Product" />
  972. <Mapping SourceColumn="Material" DataSetColumn="Material" />
  973. <Mapping SourceColumn="Count" DataSetColumn="Count" />
  974. <Mapping SourceColumn="Cost" DataSetColumn="Cost" />
  975. <Mapping SourceColumn="Proizv" DataSetColumn="Proizv" />
  976. </Mappings>
  977. <Sources />
  978. </TableAdapter>
  979. </Tables>
  980. <Sources />
  981. </DataSource>
  982. </xs:appinfo>
  983. </xs:annotation>
  984. <xs:element name="TestWSR4DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="TestWSR4DataSet" msprop:Generator_UserDSName="TestWSR4DataSet">
  985. <xs:complexType>
  986. <xs:choice minOccurs="0" maxOccurs="unbounded">
  987. <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">
  988. <xs:complexType>
  989. <xs:sequence>
  990. <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" />
  991. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  992. <xs:simpleType>
  993. <xs:restriction base="xs:string">
  994. <xs:maxLength value="150" />
  995. </xs:restriction>
  996. </xs:simpleType>
  997. </xs:element>
  998. <xs:element name="AgentTypeID" msprop:Generator_ColumnVarNameInTable="columnAgentTypeID" msprop:Generator_ColumnPropNameInRow="AgentTypeID" msprop:Generator_ColumnPropNameInTable="AgentTypeIDColumn" msprop:Generator_UserColumnName="AgentTypeID" type="xs:int" />
  999. <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
  1000. <xs:simpleType>
  1001. <xs:restriction base="xs:string">
  1002. <xs:maxLength value="300" />
  1003. </xs:restriction>
  1004. </xs:simpleType>
  1005. </xs:element>
  1006. <xs:element name="INN" msprop:Generator_ColumnVarNameInTable="columnINN" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_UserColumnName="INN">
  1007. <xs:simpleType>
  1008. <xs:restriction base="xs:string">
  1009. <xs:maxLength value="12" />
  1010. </xs:restriction>
  1011. </xs:simpleType>
  1012. </xs:element>
  1013. <xs:element name="KPP" msprop:Generator_ColumnVarNameInTable="columnKPP" msprop:Generator_ColumnPropNameInRow="KPP" msprop:Generator_ColumnPropNameInTable="KPPColumn" msprop:Generator_UserColumnName="KPP" minOccurs="0">
  1014. <xs:simpleType>
  1015. <xs:restriction base="xs:string">
  1016. <xs:maxLength value="9" />
  1017. </xs:restriction>
  1018. </xs:simpleType>
  1019. </xs:element>
  1020. <xs:element name="DirectorName" msprop:Generator_ColumnVarNameInTable="columnDirectorName" msprop:Generator_ColumnPropNameInRow="DirectorName" msprop:Generator_ColumnPropNameInTable="DirectorNameColumn" msprop:Generator_UserColumnName="DirectorName" minOccurs="0">
  1021. <xs:simpleType>
  1022. <xs:restriction base="xs:string">
  1023. <xs:maxLength value="100" />
  1024. </xs:restriction>
  1025. </xs:simpleType>
  1026. </xs:element>
  1027. <xs:element name="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone">
  1028. <xs:simpleType>
  1029. <xs:restriction base="xs:string">
  1030. <xs:maxLength value="20" />
  1031. </xs:restriction>
  1032. </xs:simpleType>
  1033. </xs:element>
  1034. <xs:element name="Email" msprop:Generator_ColumnVarNameInTable="columnEmail" msprop:Generator_ColumnPropNameInRow="Email" msprop:Generator_ColumnPropNameInTable="EmailColumn" msprop:Generator_UserColumnName="Email" minOccurs="0">
  1035. <xs:simpleType>
  1036. <xs:restriction base="xs:string">
  1037. <xs:maxLength value="255" />
  1038. </xs:restriction>
  1039. </xs:simpleType>
  1040. </xs:element>
  1041. <xs:element name="Logo" msprop:Generator_ColumnVarNameInTable="columnLogo" msprop:Generator_ColumnPropNameInRow="Logo" msprop:Generator_ColumnPropNameInTable="LogoColumn" msprop:Generator_UserColumnName="Logo" minOccurs="0">
  1042. <xs:simpleType>
  1043. <xs:restriction base="xs:string">
  1044. <xs:maxLength value="100" />
  1045. </xs:restriction>
  1046. </xs:simpleType>
  1047. </xs:element>
  1048. <xs:element name="Priority" msprop:Generator_ColumnVarNameInTable="columnPriority" msprop:Generator_ColumnPropNameInRow="Priority" msprop:Generator_ColumnPropNameInTable="PriorityColumn" msprop:Generator_UserColumnName="Priority" type="xs:int" />
  1049. </xs:sequence>
  1050. </xs:complexType>
  1051. </xs:element>
  1052. <xs:element name="AgentPriorityHistory" msprop:Generator_TableClassName="AgentPriorityHistoryDataTable" msprop:Generator_TableVarName="tableAgentPriorityHistory" msprop:Generator_TablePropName="AgentPriorityHistory" msprop:Generator_RowDeletingName="AgentPriorityHistoryRowDeleting" msprop:Generator_RowChangingName="AgentPriorityHistoryRowChanging" msprop:Generator_RowEvHandlerName="AgentPriorityHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="AgentPriorityHistoryRowDeleted" msprop:Generator_UserTableName="AgentPriorityHistory" msprop:Generator_RowChangedName="AgentPriorityHistoryRowChanged" msprop:Generator_RowEvArgName="AgentPriorityHistoryRowChangeEvent" msprop:Generator_RowClassName="AgentPriorityHistoryRow">
  1053. <xs:complexType>
  1054. <xs:sequence>
  1055. <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" />
  1056. <xs:element name="AgentID" msprop:Generator_ColumnVarNameInTable="columnAgentID" msprop:Generator_ColumnPropNameInRow="AgentID" msprop:Generator_ColumnPropNameInTable="AgentIDColumn" msprop:Generator_UserColumnName="AgentID" type="xs:int" />
  1057. <xs:element name="ChangeDate" msprop:Generator_ColumnVarNameInTable="columnChangeDate" msprop:Generator_ColumnPropNameInRow="ChangeDate" msprop:Generator_ColumnPropNameInTable="ChangeDateColumn" msprop:Generator_UserColumnName="ChangeDate" type="xs:dateTime" />
  1058. <xs:element name="PriorityValue" msprop:Generator_ColumnVarNameInTable="columnPriorityValue" msprop:Generator_ColumnPropNameInRow="PriorityValue" msprop:Generator_ColumnPropNameInTable="PriorityValueColumn" msprop:Generator_UserColumnName="PriorityValue" type="xs:int" />
  1059. </xs:sequence>
  1060. </xs:complexType>
  1061. </xs:element>
  1062. <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">
  1063. <xs:complexType>
  1064. <xs:sequence>
  1065. <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" />
  1066. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1067. <xs:simpleType>
  1068. <xs:restriction base="xs:string">
  1069. <xs:maxLength value="50" />
  1070. </xs:restriction>
  1071. </xs:simpleType>
  1072. </xs:element>
  1073. <xs:element name="Image" msprop:Generator_ColumnVarNameInTable="columnImage" msprop:Generator_ColumnPropNameInRow="Image" msprop:Generator_ColumnPropNameInTable="ImageColumn" msprop:Generator_UserColumnName="Image" minOccurs="0">
  1074. <xs:simpleType>
  1075. <xs:restriction base="xs:string">
  1076. <xs:maxLength value="100" />
  1077. </xs:restriction>
  1078. </xs:simpleType>
  1079. </xs:element>
  1080. </xs:sequence>
  1081. </xs:complexType>
  1082. </xs:element>
  1083. <xs:element name="Material" msprop:Generator_TableClassName="MaterialDataTable" msprop:Generator_TableVarName="tableMaterial" msprop:Generator_TablePropName="Material" msprop:Generator_RowDeletingName="MaterialRowDeleting" msprop:Generator_RowChangingName="MaterialRowChanging" msprop:Generator_RowEvHandlerName="MaterialRowChangeEventHandler" msprop:Generator_RowDeletedName="MaterialRowDeleted" msprop:Generator_UserTableName="Material" msprop:Generator_RowChangedName="MaterialRowChanged" msprop:Generator_RowEvArgName="MaterialRowChangeEvent" msprop:Generator_RowClassName="MaterialRow">
  1084. <xs:complexType>
  1085. <xs:sequence>
  1086. <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" />
  1087. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1088. <xs:simpleType>
  1089. <xs:restriction base="xs:string">
  1090. <xs:maxLength value="100" />
  1091. </xs:restriction>
  1092. </xs:simpleType>
  1093. </xs:element>
  1094. <xs:element name="CountInPack" msprop:Generator_ColumnVarNameInTable="columnCountInPack" msprop:Generator_ColumnPropNameInRow="CountInPack" msprop:Generator_ColumnPropNameInTable="CountInPackColumn" msprop:Generator_UserColumnName="CountInPack" type="xs:int" />
  1095. <xs:element name="Unit" msprop:Generator_ColumnVarNameInTable="columnUnit" msprop:Generator_ColumnPropNameInRow="Unit" msprop:Generator_ColumnPropNameInTable="UnitColumn" msprop:Generator_UserColumnName="Unit">
  1096. <xs:simpleType>
  1097. <xs:restriction base="xs:string">
  1098. <xs:maxLength value="10" />
  1099. </xs:restriction>
  1100. </xs:simpleType>
  1101. </xs:element>
  1102. <xs:element name="CountInStock" msprop:Generator_ColumnVarNameInTable="columnCountInStock" msprop:Generator_ColumnPropNameInRow="CountInStock" msprop:Generator_ColumnPropNameInTable="CountInStockColumn" msprop:Generator_UserColumnName="CountInStock" type="xs:double" minOccurs="0" />
  1103. <xs:element name="MinCount" msprop:Generator_ColumnVarNameInTable="columnMinCount" msprop:Generator_ColumnPropNameInRow="MinCount" msprop:Generator_ColumnPropNameInTable="MinCountColumn" msprop:Generator_UserColumnName="MinCount" type="xs:double" />
  1104. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1105. <xs:simpleType>
  1106. <xs:restriction base="xs:string">
  1107. <xs:maxLength value="2147483647" />
  1108. </xs:restriction>
  1109. </xs:simpleType>
  1110. </xs:element>
  1111. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1112. <xs:element name="Image" msprop:Generator_ColumnVarNameInTable="columnImage" msprop:Generator_ColumnPropNameInRow="Image" msprop:Generator_ColumnPropNameInTable="ImageColumn" msprop:Generator_UserColumnName="Image" minOccurs="0">
  1113. <xs:simpleType>
  1114. <xs:restriction base="xs:string">
  1115. <xs:maxLength value="100" />
  1116. </xs:restriction>
  1117. </xs:simpleType>
  1118. </xs:element>
  1119. <xs:element name="MaterialTypeID" msprop:Generator_ColumnVarNameInTable="columnMaterialTypeID" msprop:Generator_ColumnPropNameInRow="MaterialTypeID" msprop:Generator_ColumnPropNameInTable="MaterialTypeIDColumn" msprop:Generator_UserColumnName="MaterialTypeID" type="xs:int" />
  1120. </xs:sequence>
  1121. </xs:complexType>
  1122. </xs:element>
  1123. <xs:element name="MaterialCountHistory" msprop:Generator_TableClassName="MaterialCountHistoryDataTable" msprop:Generator_TableVarName="tableMaterialCountHistory" msprop:Generator_TablePropName="MaterialCountHistory" msprop:Generator_RowDeletingName="MaterialCountHistoryRowDeleting" msprop:Generator_RowChangingName="MaterialCountHistoryRowChanging" msprop:Generator_RowEvHandlerName="MaterialCountHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="MaterialCountHistoryRowDeleted" msprop:Generator_UserTableName="MaterialCountHistory" msprop:Generator_RowChangedName="MaterialCountHistoryRowChanged" msprop:Generator_RowEvArgName="MaterialCountHistoryRowChangeEvent" msprop:Generator_RowClassName="MaterialCountHistoryRow">
  1124. <xs:complexType>
  1125. <xs:sequence>
  1126. <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" />
  1127. <xs:element name="MaterialID" msprop:Generator_ColumnVarNameInTable="columnMaterialID" msprop:Generator_ColumnPropNameInRow="MaterialID" msprop:Generator_ColumnPropNameInTable="MaterialIDColumn" msprop:Generator_UserColumnName="MaterialID" type="xs:int" />
  1128. <xs:element name="ChangeDate" msprop:Generator_ColumnVarNameInTable="columnChangeDate" msprop:Generator_ColumnPropNameInRow="ChangeDate" msprop:Generator_ColumnPropNameInTable="ChangeDateColumn" msprop:Generator_UserColumnName="ChangeDate" type="xs:dateTime" />
  1129. <xs:element name="CountValue" msprop:Generator_ColumnVarNameInTable="columnCountValue" msprop:Generator_ColumnPropNameInRow="CountValue" msprop:Generator_ColumnPropNameInTable="CountValueColumn" msprop:Generator_UserColumnName="CountValue" type="xs:double" />
  1130. </xs:sequence>
  1131. </xs:complexType>
  1132. </xs:element>
  1133. <xs:element name="MaterialSupplier" msprop:Generator_TableClassName="MaterialSupplierDataTable" msprop:Generator_TableVarName="tableMaterialSupplier" msprop:Generator_TablePropName="MaterialSupplier" msprop:Generator_RowDeletingName="MaterialSupplierRowDeleting" msprop:Generator_RowChangingName="MaterialSupplierRowChanging" msprop:Generator_RowEvHandlerName="MaterialSupplierRowChangeEventHandler" msprop:Generator_RowDeletedName="MaterialSupplierRowDeleted" msprop:Generator_UserTableName="MaterialSupplier" msprop:Generator_RowChangedName="MaterialSupplierRowChanged" msprop:Generator_RowEvArgName="MaterialSupplierRowChangeEvent" msprop:Generator_RowClassName="MaterialSupplierRow">
  1134. <xs:complexType>
  1135. <xs:sequence>
  1136. <xs:element name="MaterialID" msprop:Generator_ColumnVarNameInTable="columnMaterialID" msprop:Generator_ColumnPropNameInRow="MaterialID" msprop:Generator_ColumnPropNameInTable="MaterialIDColumn" msprop:Generator_UserColumnName="MaterialID" type="xs:int" />
  1137. <xs:element name="SupplierID" msprop:Generator_ColumnVarNameInTable="columnSupplierID" msprop:Generator_ColumnPropNameInRow="SupplierID" msprop:Generator_ColumnPropNameInTable="SupplierIDColumn" msprop:Generator_UserColumnName="SupplierID" type="xs:int" />
  1138. </xs:sequence>
  1139. </xs:complexType>
  1140. </xs:element>
  1141. <xs:element name="MaterialType" msprop:Generator_TableClassName="MaterialTypeDataTable" msprop:Generator_TableVarName="tableMaterialType" msprop:Generator_TablePropName="MaterialType" msprop:Generator_RowDeletingName="MaterialTypeRowDeleting" msprop:Generator_RowChangingName="MaterialTypeRowChanging" msprop:Generator_RowEvHandlerName="MaterialTypeRowChangeEventHandler" msprop:Generator_RowDeletedName="MaterialTypeRowDeleted" msprop:Generator_UserTableName="MaterialType" msprop:Generator_RowChangedName="MaterialTypeRowChanged" msprop:Generator_RowEvArgName="MaterialTypeRowChangeEvent" msprop:Generator_RowClassName="MaterialTypeRow">
  1142. <xs:complexType>
  1143. <xs:sequence>
  1144. <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" />
  1145. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1146. <xs:simpleType>
  1147. <xs:restriction base="xs:string">
  1148. <xs:maxLength value="50" />
  1149. </xs:restriction>
  1150. </xs:simpleType>
  1151. </xs:element>
  1152. <xs:element name="DefectedPercent" msprop:Generator_ColumnVarNameInTable="columnDefectedPercent" msprop:Generator_ColumnPropNameInRow="DefectedPercent" msprop:Generator_ColumnPropNameInTable="DefectedPercentColumn" msprop:Generator_UserColumnName="DefectedPercent" type="xs:double" minOccurs="0" />
  1153. </xs:sequence>
  1154. </xs:complexType>
  1155. </xs:element>
  1156. <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">
  1157. <xs:complexType>
  1158. <xs:sequence>
  1159. <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" />
  1160. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1161. <xs:simpleType>
  1162. <xs:restriction base="xs:string">
  1163. <xs:maxLength value="100" />
  1164. </xs:restriction>
  1165. </xs:simpleType>
  1166. </xs:element>
  1167. <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" />
  1168. <xs:element name="ArticleNumber" msprop:Generator_ColumnVarNameInTable="columnArticleNumber" msprop:Generator_ColumnPropNameInRow="ArticleNumber" msprop:Generator_ColumnPropNameInTable="ArticleNumberColumn" msprop:Generator_UserColumnName="ArticleNumber">
  1169. <xs:simpleType>
  1170. <xs:restriction base="xs:string">
  1171. <xs:maxLength value="10" />
  1172. </xs:restriction>
  1173. </xs:simpleType>
  1174. </xs:element>
  1175. <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
  1176. <xs:simpleType>
  1177. <xs:restriction base="xs:string">
  1178. <xs:maxLength value="2147483647" />
  1179. </xs:restriction>
  1180. </xs:simpleType>
  1181. </xs:element>
  1182. <xs:element name="Image" msprop:Generator_ColumnVarNameInTable="columnImage" msprop:Generator_ColumnPropNameInRow="Image" msprop:Generator_ColumnPropNameInTable="ImageColumn" msprop:Generator_UserColumnName="Image" minOccurs="0">
  1183. <xs:simpleType>
  1184. <xs:restriction base="xs:string">
  1185. <xs:maxLength value="100" />
  1186. </xs:restriction>
  1187. </xs:simpleType>
  1188. </xs:element>
  1189. <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" />
  1190. <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" />
  1191. <xs:element name="MinCostForAgent" msprop:Generator_ColumnVarNameInTable="columnMinCostForAgent" msprop:Generator_ColumnPropNameInRow="MinCostForAgent" msprop:Generator_ColumnPropNameInTable="MinCostForAgentColumn" msprop:Generator_UserColumnName="MinCostForAgent" type="xs:decimal" />
  1192. </xs:sequence>
  1193. </xs:complexType>
  1194. </xs:element>
  1195. <xs:element name="ProductCostHistory" msprop:Generator_TableClassName="ProductCostHistoryDataTable" msprop:Generator_TableVarName="tableProductCostHistory" msprop:Generator_TablePropName="ProductCostHistory" msprop:Generator_RowDeletingName="ProductCostHistoryRowDeleting" msprop:Generator_RowChangingName="ProductCostHistoryRowChanging" msprop:Generator_RowEvHandlerName="ProductCostHistoryRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductCostHistoryRowDeleted" msprop:Generator_UserTableName="ProductCostHistory" msprop:Generator_RowChangedName="ProductCostHistoryRowChanged" msprop:Generator_RowEvArgName="ProductCostHistoryRowChangeEvent" msprop:Generator_RowClassName="ProductCostHistoryRow">
  1196. <xs:complexType>
  1197. <xs:sequence>
  1198. <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" />
  1199. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1200. <xs:element name="ChangeDate" msprop:Generator_ColumnVarNameInTable="columnChangeDate" msprop:Generator_ColumnPropNameInRow="ChangeDate" msprop:Generator_ColumnPropNameInTable="ChangeDateColumn" msprop:Generator_UserColumnName="ChangeDate" type="xs:dateTime" />
  1201. <xs:element name="CostValue" msprop:Generator_ColumnVarNameInTable="columnCostValue" msprop:Generator_ColumnPropNameInRow="CostValue" msprop:Generator_ColumnPropNameInTable="CostValueColumn" msprop:Generator_UserColumnName="CostValue" type="xs:decimal" />
  1202. </xs:sequence>
  1203. </xs:complexType>
  1204. </xs:element>
  1205. <xs:element name="ProductMaterial" msprop:Generator_TableClassName="ProductMaterialDataTable" msprop:Generator_TableVarName="tableProductMaterial" msprop:Generator_TablePropName="ProductMaterial" msprop:Generator_RowDeletingName="ProductMaterialRowDeleting" msprop:Generator_RowChangingName="ProductMaterialRowChanging" msprop:Generator_RowEvHandlerName="ProductMaterialRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductMaterialRowDeleted" msprop:Generator_UserTableName="ProductMaterial" msprop:Generator_RowChangedName="ProductMaterialRowChanged" msprop:Generator_RowEvArgName="ProductMaterialRowChangeEvent" msprop:Generator_RowClassName="ProductMaterialRow">
  1206. <xs:complexType>
  1207. <xs:sequence>
  1208. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1209. <xs:element name="MaterialID" msprop:Generator_ColumnVarNameInTable="columnMaterialID" msprop:Generator_ColumnPropNameInRow="MaterialID" msprop:Generator_ColumnPropNameInTable="MaterialIDColumn" msprop:Generator_UserColumnName="MaterialID" type="xs:int" />
  1210. <xs:element name="Count" msprop:Generator_ColumnVarNameInTable="columnCount" msprop:Generator_ColumnPropNameInRow="Count" msprop:Generator_ColumnPropNameInTable="CountColumn" msprop:Generator_UserColumnName="Count" type="xs:double" minOccurs="0" />
  1211. </xs:sequence>
  1212. </xs:complexType>
  1213. </xs:element>
  1214. <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">
  1215. <xs:complexType>
  1216. <xs:sequence>
  1217. <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" />
  1218. <xs:element name="AgentID" msprop:Generator_ColumnVarNameInTable="columnAgentID" msprop:Generator_ColumnPropNameInRow="AgentID" msprop:Generator_ColumnPropNameInTable="AgentIDColumn" msprop:Generator_UserColumnName="AgentID" type="xs:int" />
  1219. <xs:element name="ProductID" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
  1220. <xs:element name="SaleDate" msprop:Generator_ColumnVarNameInTable="columnSaleDate" msprop:Generator_ColumnPropNameInRow="SaleDate" msprop:Generator_ColumnPropNameInTable="SaleDateColumn" msprop:Generator_UserColumnName="SaleDate" type="xs:dateTime" />
  1221. <xs:element name="ProductCount" msprop:Generator_ColumnVarNameInTable="columnProductCount" msprop:Generator_ColumnPropNameInRow="ProductCount" msprop:Generator_ColumnPropNameInTable="ProductCountColumn" msprop:Generator_UserColumnName="ProductCount" type="xs:int" />
  1222. </xs:sequence>
  1223. </xs:complexType>
  1224. </xs:element>
  1225. <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">
  1226. <xs:complexType>
  1227. <xs:sequence>
  1228. <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" />
  1229. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1230. <xs:simpleType>
  1231. <xs:restriction base="xs:string">
  1232. <xs:maxLength value="50" />
  1233. </xs:restriction>
  1234. </xs:simpleType>
  1235. </xs:element>
  1236. <xs:element name="DefectedPercent" msprop:Generator_ColumnVarNameInTable="columnDefectedPercent" msprop:Generator_ColumnPropNameInRow="DefectedPercent" msprop:Generator_ColumnPropNameInTable="DefectedPercentColumn" msprop:Generator_UserColumnName="DefectedPercent" type="xs:double" minOccurs="0" />
  1237. </xs:sequence>
  1238. </xs:complexType>
  1239. </xs:element>
  1240. <xs:element name="Shop" msprop:Generator_TableClassName="ShopDataTable" msprop:Generator_TableVarName="tableShop" msprop:Generator_TablePropName="Shop" msprop:Generator_RowDeletingName="ShopRowDeleting" msprop:Generator_RowChangingName="ShopRowChanging" msprop:Generator_RowEvHandlerName="ShopRowChangeEventHandler" msprop:Generator_RowDeletedName="ShopRowDeleted" msprop:Generator_UserTableName="Shop" msprop:Generator_RowChangedName="ShopRowChanged" msprop:Generator_RowEvArgName="ShopRowChangeEvent" msprop:Generator_RowClassName="ShopRow">
  1241. <xs:complexType>
  1242. <xs:sequence>
  1243. <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" />
  1244. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1245. <xs:simpleType>
  1246. <xs:restriction base="xs:string">
  1247. <xs:maxLength value="150" />
  1248. </xs:restriction>
  1249. </xs:simpleType>
  1250. </xs:element>
  1251. <xs:element name="Address" msprop:Generator_ColumnVarNameInTable="columnAddress" msprop:Generator_ColumnPropNameInRow="Address" msprop:Generator_ColumnPropNameInTable="AddressColumn" msprop:Generator_UserColumnName="Address" minOccurs="0">
  1252. <xs:simpleType>
  1253. <xs:restriction base="xs:string">
  1254. <xs:maxLength value="300" />
  1255. </xs:restriction>
  1256. </xs:simpleType>
  1257. </xs:element>
  1258. <xs:element name="AgentID" msprop:Generator_ColumnVarNameInTable="columnAgentID" msprop:Generator_ColumnPropNameInRow="AgentID" msprop:Generator_ColumnPropNameInTable="AgentIDColumn" msprop:Generator_UserColumnName="AgentID" type="xs:int" />
  1259. </xs:sequence>
  1260. </xs:complexType>
  1261. </xs:element>
  1262. <xs:element name="Supplier" msprop:Generator_TableClassName="SupplierDataTable" msprop:Generator_TableVarName="tableSupplier" msprop:Generator_TablePropName="Supplier" msprop:Generator_RowDeletingName="SupplierRowDeleting" msprop:Generator_RowChangingName="SupplierRowChanging" msprop:Generator_RowEvHandlerName="SupplierRowChangeEventHandler" msprop:Generator_RowDeletedName="SupplierRowDeleted" msprop:Generator_UserTableName="Supplier" msprop:Generator_RowChangedName="SupplierRowChanged" msprop:Generator_RowEvArgName="SupplierRowChangeEvent" msprop:Generator_RowClassName="SupplierRow">
  1263. <xs:complexType>
  1264. <xs:sequence>
  1265. <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" />
  1266. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1267. <xs:simpleType>
  1268. <xs:restriction base="xs:string">
  1269. <xs:maxLength value="150" />
  1270. </xs:restriction>
  1271. </xs:simpleType>
  1272. </xs:element>
  1273. <xs:element name="INN" msprop:Generator_ColumnVarNameInTable="columnINN" msprop:Generator_ColumnPropNameInRow="INN" msprop:Generator_ColumnPropNameInTable="INNColumn" msprop:Generator_UserColumnName="INN">
  1274. <xs:simpleType>
  1275. <xs:restriction base="xs:string">
  1276. <xs:maxLength value="12" />
  1277. </xs:restriction>
  1278. </xs:simpleType>
  1279. </xs:element>
  1280. <xs:element name="StartDate" msprop:Generator_ColumnVarNameInTable="columnStartDate" msprop:Generator_ColumnPropNameInRow="StartDate" msprop:Generator_ColumnPropNameInTable="StartDateColumn" msprop:Generator_UserColumnName="StartDate" type="xs:dateTime" />
  1281. <xs:element name="QualityRating" msprop:Generator_ColumnVarNameInTable="columnQualityRating" msprop:Generator_ColumnPropNameInRow="QualityRating" msprop:Generator_ColumnPropNameInTable="QualityRatingColumn" msprop:Generator_UserColumnName="QualityRating" type="xs:int" minOccurs="0" />
  1282. <xs:element name="SupplierType" msprop:Generator_ColumnVarNameInTable="columnSupplierType" msprop:Generator_ColumnPropNameInRow="SupplierType" msprop:Generator_ColumnPropNameInTable="SupplierTypeColumn" msprop:Generator_UserColumnName="SupplierType" minOccurs="0">
  1283. <xs:simpleType>
  1284. <xs:restriction base="xs:string">
  1285. <xs:maxLength value="20" />
  1286. </xs:restriction>
  1287. </xs:simpleType>
  1288. </xs:element>
  1289. </xs:sequence>
  1290. </xs:complexType>
  1291. </xs:element>
  1292. <xs:element name="ItogSumProduct" msprop:Generator_TableClassName="ItogSumProductDataTable" msprop:Generator_TableVarName="tableItogSumProduct" msprop:Generator_TablePropName="ItogSumProduct" msprop:Generator_RowDeletingName="ItogSumProductRowDeleting" msprop:Generator_RowChangingName="ItogSumProductRowChanging" msprop:Generator_RowEvHandlerName="ItogSumProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ItogSumProductRowDeleted" msprop:Generator_UserTableName="ItogSumProduct" msprop:Generator_RowChangedName="ItogSumProductRowChanged" msprop:Generator_RowEvArgName="ItogSumProductRowChangeEvent" msprop:Generator_RowClassName="ItogSumProductRow">
  1293. <xs:complexType>
  1294. <xs:sequence>
  1295. <xs:element name="Product" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product">
  1296. <xs:simpleType>
  1297. <xs:restriction base="xs:string">
  1298. <xs:maxLength value="100" />
  1299. </xs:restriction>
  1300. </xs:simpleType>
  1301. </xs:element>
  1302. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:double" minOccurs="0" />
  1303. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  1304. </xs:sequence>
  1305. </xs:complexType>
  1306. </xs:element>
  1307. <xs:element name="ProductsPred" msprop:Generator_TableClassName="ProductsPredDataTable" msprop:Generator_TableVarName="tableProductsPred" msprop:Generator_TablePropName="ProductsPred" msprop:Generator_RowDeletingName="ProductsPredRowDeleting" msprop:Generator_RowChangingName="ProductsPredRowChanging" msprop:Generator_RowEvHandlerName="ProductsPredRowChangeEventHandler" msprop:Generator_RowDeletedName="ProductsPredRowDeleted" msprop:Generator_UserTableName="ProductsPred" msprop:Generator_RowChangedName="ProductsPredRowChanged" msprop:Generator_RowEvArgName="ProductsPredRowChangeEvent" msprop:Generator_RowClassName="ProductsPredRow">
  1308. <xs:complexType>
  1309. <xs:sequence>
  1310. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  1311. <xs:element name="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_UserColumnName="Title">
  1312. <xs:simpleType>
  1313. <xs:restriction base="xs:string">
  1314. <xs:maxLength value="100" />
  1315. </xs:restriction>
  1316. </xs:simpleType>
  1317. </xs:element>
  1318. <xs:element name="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_UserColumnName="Type">
  1319. <xs:simpleType>
  1320. <xs:restriction base="xs:string">
  1321. <xs:maxLength value="50" />
  1322. </xs:restriction>
  1323. </xs:simpleType>
  1324. </xs:element>
  1325. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:double" minOccurs="0" />
  1326. <xs:element name="ArticleNumber" msprop:Generator_ColumnVarNameInTable="columnArticleNumber" msprop:Generator_ColumnPropNameInRow="ArticleNumber" msprop:Generator_ColumnPropNameInTable="ArticleNumberColumn" msprop:Generator_UserColumnName="ArticleNumber">
  1327. <xs:simpleType>
  1328. <xs:restriction base="xs:string">
  1329. <xs:maxLength value="10" />
  1330. </xs:restriction>
  1331. </xs:simpleType>
  1332. </xs:element>
  1333. <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" />
  1334. <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" />
  1335. <xs:element name="MinCostForAgent" msprop:Generator_ColumnVarNameInTable="columnMinCostForAgent" msprop:Generator_ColumnPropNameInRow="MinCostForAgent" msprop:Generator_ColumnPropNameInTable="MinCostForAgentColumn" msprop:Generator_UserColumnName="MinCostForAgent" type="xs:decimal" />
  1336. </xs:sequence>
  1337. </xs:complexType>
  1338. </xs:element>
  1339. <xs:element name="ProizvProduct" msprop:Generator_TableClassName="ProizvProductDataTable" msprop:Generator_TableVarName="tableProizvProduct" msprop:Generator_TablePropName="ProizvProduct" msprop:Generator_RowDeletingName="ProizvProductRowDeleting" msprop:Generator_RowChangingName="ProizvProductRowChanging" msprop:Generator_RowEvHandlerName="ProizvProductRowChangeEventHandler" msprop:Generator_RowDeletedName="ProizvProductRowDeleted" msprop:Generator_UserTableName="ProizvProduct" msprop:Generator_RowChangedName="ProizvProductRowChanged" msprop:Generator_RowEvArgName="ProizvProductRowChangeEvent" msprop:Generator_RowClassName="ProizvProductRow">
  1340. <xs:complexType>
  1341. <xs:sequence>
  1342. <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
  1343. <xs:element name="Product" msprop:Generator_ColumnVarNameInTable="columnProduct" msprop:Generator_ColumnPropNameInRow="Product" msprop:Generator_ColumnPropNameInTable="ProductColumn" msprop:Generator_UserColumnName="Product">
  1344. <xs:simpleType>
  1345. <xs:restriction base="xs:string">
  1346. <xs:maxLength value="100" />
  1347. </xs:restriction>
  1348. </xs:simpleType>
  1349. </xs:element>
  1350. <xs:element name="Material" msprop:Generator_ColumnVarNameInTable="columnMaterial" msprop:Generator_ColumnPropNameInRow="Material" msprop:Generator_ColumnPropNameInTable="MaterialColumn" msprop:Generator_UserColumnName="Material">
  1351. <xs:simpleType>
  1352. <xs:restriction base="xs:string">
  1353. <xs:maxLength value="100" />
  1354. </xs:restriction>
  1355. </xs:simpleType>
  1356. </xs:element>
  1357. <xs:element name="Count" msprop:Generator_ColumnVarNameInTable="columnCount" msprop:Generator_ColumnPropNameInRow="Count" msprop:Generator_ColumnPropNameInTable="CountColumn" msprop:Generator_UserColumnName="Count" type="xs:double" minOccurs="0" />
  1358. <xs:element name="Cost" msprop:Generator_ColumnVarNameInTable="columnCost" msprop:Generator_ColumnPropNameInRow="Cost" msprop:Generator_ColumnPropNameInTable="CostColumn" msprop:Generator_UserColumnName="Cost" type="xs:decimal" />
  1359. <xs:element name="Proizv" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnProizv" msprop:Generator_ColumnPropNameInRow="Proizv" msprop:Generator_ColumnPropNameInTable="ProizvColumn" msprop:Generator_UserColumnName="Proizv" type="xs:double" minOccurs="0" />
  1360. </xs:sequence>
  1361. </xs:complexType>
  1362. </xs:element>
  1363. </xs:choice>
  1364. </xs:complexType>
  1365. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1366. <xs:selector xpath=".//mstns:Agent" />
  1367. <xs:field xpath="mstns:ID" />
  1368. </xs:unique>
  1369. <xs:unique name="AgentPriorityHistory_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1370. <xs:selector xpath=".//mstns:AgentPriorityHistory" />
  1371. <xs:field xpath="mstns:ID" />
  1372. </xs:unique>
  1373. <xs:unique name="AgentType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1374. <xs:selector xpath=".//mstns:AgentType" />
  1375. <xs:field xpath="mstns:ID" />
  1376. </xs:unique>
  1377. <xs:unique name="Material_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1378. <xs:selector xpath=".//mstns:Material" />
  1379. <xs:field xpath="mstns:ID" />
  1380. </xs:unique>
  1381. <xs:unique name="MaterialCountHistory_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1382. <xs:selector xpath=".//mstns:MaterialCountHistory" />
  1383. <xs:field xpath="mstns:ID" />
  1384. </xs:unique>
  1385. <xs:unique name="MaterialSupplier_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1386. <xs:selector xpath=".//mstns:MaterialSupplier" />
  1387. <xs:field xpath="mstns:MaterialID" />
  1388. <xs:field xpath="mstns:SupplierID" />
  1389. </xs:unique>
  1390. <xs:unique name="MaterialType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1391. <xs:selector xpath=".//mstns:MaterialType" />
  1392. <xs:field xpath="mstns:ID" />
  1393. </xs:unique>
  1394. <xs:unique name="Product_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1395. <xs:selector xpath=".//mstns:Product" />
  1396. <xs:field xpath="mstns:ID" />
  1397. </xs:unique>
  1398. <xs:unique name="ProductCostHistory_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1399. <xs:selector xpath=".//mstns:ProductCostHistory" />
  1400. <xs:field xpath="mstns:ID" />
  1401. </xs:unique>
  1402. <xs:unique name="ProductMaterial_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1403. <xs:selector xpath=".//mstns:ProductMaterial" />
  1404. <xs:field xpath="mstns:ProductID" />
  1405. <xs:field xpath="mstns:MaterialID" />
  1406. </xs:unique>
  1407. <xs:unique name="ProductSale_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1408. <xs:selector xpath=".//mstns:ProductSale" />
  1409. <xs:field xpath="mstns:ID" />
  1410. </xs:unique>
  1411. <xs:unique name="ProductType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1412. <xs:selector xpath=".//mstns:ProductType" />
  1413. <xs:field xpath="mstns:ID" />
  1414. </xs:unique>
  1415. <xs:unique name="Shop_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1416. <xs:selector xpath=".//mstns:Shop" />
  1417. <xs:field xpath="mstns:ID" />
  1418. </xs:unique>
  1419. <xs:unique name="Supplier_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1420. <xs:selector xpath=".//mstns:Supplier" />
  1421. <xs:field xpath="mstns:ID" />
  1422. </xs:unique>
  1423. <xs:unique name="ItogSumProduct_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1424. <xs:selector xpath=".//mstns:ItogSumProduct" />
  1425. <xs:field xpath="mstns:ID" />
  1426. </xs:unique>
  1427. <xs:unique name="ProductsPred_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1428. <xs:selector xpath=".//mstns:ProductsPred" />
  1429. <xs:field xpath="mstns:ID" />
  1430. </xs:unique>
  1431. <xs:unique name="ProizvProduct_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1432. <xs:selector xpath=".//mstns:ProizvProduct" />
  1433. <xs:field xpath="mstns:ID" />
  1434. </xs:unique>
  1435. </xs:element>
  1436. <xs:annotation>
  1437. <xs:appinfo>
  1438. <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" />
  1439. <msdata:Relationship name="FK_AgentPriorityHistory_Agent" msdata:parent="Agent" msdata:child="AgentPriorityHistory" msdata:parentkey="ID" msdata:childkey="AgentID" msprop:Generator_UserChildTable="AgentPriorityHistory" msprop:Generator_ChildPropName="GetAgentPriorityHistoryRows" msprop:Generator_UserRelationName="FK_AgentPriorityHistory_Agent" msprop:Generator_ParentPropName="AgentRow" msprop:Generator_RelationVarName="relationFK_AgentPriorityHistory_Agent" msprop:Generator_UserParentTable="Agent" />
  1440. <msdata:Relationship name="FK_Material_MaterialType" msdata:parent="MaterialType" msdata:child="Material" msdata:parentkey="ID" msdata:childkey="MaterialTypeID" msprop:Generator_UserChildTable="Material" msprop:Generator_ChildPropName="GetMaterialRows" msprop:Generator_UserRelationName="FK_Material_MaterialType" msprop:Generator_RelationVarName="relationFK_Material_MaterialType" msprop:Generator_UserParentTable="MaterialType" msprop:Generator_ParentPropName="MaterialTypeRow" />
  1441. <msdata:Relationship name="FK_MaterialCountHistory_Material" msdata:parent="Material" msdata:child="MaterialCountHistory" msdata:parentkey="ID" msdata:childkey="MaterialID" msprop:Generator_UserChildTable="MaterialCountHistory" msprop:Generator_ChildPropName="GetMaterialCountHistoryRows" msprop:Generator_UserRelationName="FK_MaterialCountHistory_Material" msprop:Generator_ParentPropName="MaterialRow" msprop:Generator_RelationVarName="relationFK_MaterialCountHistory_Material" msprop:Generator_UserParentTable="Material" />
  1442. <msdata:Relationship name="FK_MaterialSupplier_Material" msdata:parent="Material" msdata:child="MaterialSupplier" msdata:parentkey="ID" msdata:childkey="MaterialID" msprop:Generator_UserChildTable="MaterialSupplier" msprop:Generator_ChildPropName="GetMaterialSupplierRows" msprop:Generator_UserRelationName="FK_MaterialSupplier_Material" msprop:Generator_ParentPropName="MaterialRow" msprop:Generator_RelationVarName="relationFK_MaterialSupplier_Material" msprop:Generator_UserParentTable="Material" />
  1443. <msdata:Relationship name="FK_MaterialSupplier_Supplier" msdata:parent="Supplier" msdata:child="MaterialSupplier" msdata:parentkey="ID" msdata:childkey="SupplierID" msprop:Generator_UserChildTable="MaterialSupplier" msprop:Generator_ChildPropName="GetMaterialSupplierRows" msprop:Generator_UserRelationName="FK_MaterialSupplier_Supplier" msprop:Generator_RelationVarName="relationFK_MaterialSupplier_Supplier" msprop:Generator_UserParentTable="Supplier" msprop:Generator_ParentPropName="SupplierRow" />
  1444. <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" />
  1445. <msdata:Relationship name="FK_ProductCostHistory_Product" msdata:parent="Product" msdata:child="ProductCostHistory" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductCostHistory" msprop:Generator_ChildPropName="GetProductCostHistoryRows" msprop:Generator_UserRelationName="FK_ProductCostHistory_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductCostHistory_Product" msprop:Generator_UserParentTable="Product" />
  1446. <msdata:Relationship name="FK_ProductMaterial_Material" msdata:parent="Material" msdata:child="ProductMaterial" msdata:parentkey="ID" msdata:childkey="MaterialID" msprop:Generator_UserChildTable="ProductMaterial" msprop:Generator_ChildPropName="GetProductMaterialRows" msprop:Generator_UserRelationName="FK_ProductMaterial_Material" msprop:Generator_ParentPropName="MaterialRow" msprop:Generator_RelationVarName="relationFK_ProductMaterial_Material" msprop:Generator_UserParentTable="Material" />
  1447. <msdata:Relationship name="FK_ProductMaterial_Product" msdata:parent="Product" msdata:child="ProductMaterial" msdata:parentkey="ID" msdata:childkey="ProductID" msprop:Generator_UserChildTable="ProductMaterial" msprop:Generator_ChildPropName="GetProductMaterialRows" msprop:Generator_UserRelationName="FK_ProductMaterial_Product" msprop:Generator_ParentPropName="ProductRow" msprop:Generator_RelationVarName="relationFK_ProductMaterial_Product" msprop:Generator_UserParentTable="Product" />
  1448. <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" />
  1449. <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" />
  1450. <msdata:Relationship name="FK_Shop_Agent" msdata:parent="Agent" msdata:child="Shop" msdata:parentkey="ID" msdata:childkey="AgentID" msprop:Generator_UserChildTable="Shop" msprop:Generator_ChildPropName="GetShopRows" msprop:Generator_UserRelationName="FK_Shop_Agent" msprop:Generator_ParentPropName="AgentRow" msprop:Generator_RelationVarName="relationFK_Shop_Agent" msprop:Generator_UserParentTable="Agent" />
  1451. </xs:appinfo>
  1452. </xs:annotation>
  1453. </xs:schema>