謎鹿DataSet.xsd 141 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema id="謎鹿DataSet" targetNamespace="http://tempuri.org/謎鹿DataSet.xsd" xmlns:mstns="http://tempuri.org/謎鹿DataSet.xsd" xmlns="http://tempuri.org/謎鹿DataSet.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="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
  6. <Connections>
  7. <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="謎鹿ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="謎鹿ConnectionString (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.謎鹿進銷存系統.My.MySettings.GlobalReference.Default.謎鹿ConnectionString" Provider="System.Data.SqlClient" />
  8. <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="謎鹿ConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="謎鹿ConnectionString1 (MySettings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.謎鹿進銷存系統.My.MySettings.GlobalReference.Default.謎鹿ConnectionString1" Provider="System.Data.SqlClient" />
  9. </Connections>
  10. <Tables>
  11. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="商品TableAdapter" GeneratorDataComponentClassName="商品TableAdapter" Name="商品" UserDataComponentName="商品TableAdapter">
  12. <MainSource>
  13. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.商品" 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">
  14. <DeleteCommand>
  15. <DbCommand CommandType="Text" ModifiedByUser="false">
  16. <CommandText>DELETE FROM [dbo].[商品] WHERE (([商品編號] = @Original_商品編號) AND ((@IsNull_商品名稱 = 1 AND [商品名稱] IS NULL) OR ([商品名稱] = @Original_商品名稱)) AND ((@IsNull_庫存數量 = 1 AND [庫存數量] IS NULL) OR ([庫存數量] = @Original_庫存數量)) AND ((@IsNull_定價 = 1 AND [定價] IS NULL) OR ([定價] = @Original_定價)) AND ((@IsNull_種類 = 1 AND [種類] IS NULL) OR ([種類] = @Original_種類)) AND ((@IsNull_管理者編號 = 1 AND [管理者編號] IS NULL) OR ([管理者編號] = @Original_管理者編號)))</CommandText>
  17. <Parameters>
  18. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  19. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品名稱" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="true" SourceVersion="Original" />
  20. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Original" />
  21. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_庫存數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  22. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  23. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_定價" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="true" SourceVersion="Original" />
  24. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_定價" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Original" />
  25. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_種類" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="true" SourceVersion="Original" />
  26. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_種類" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Original" />
  27. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_管理者編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  28. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  29. </Parameters>
  30. </DbCommand>
  31. </DeleteCommand>
  32. <InsertCommand>
  33. <DbCommand CommandType="Text" ModifiedByUser="false">
  34. <CommandText>INSERT INTO [dbo].[商品] ([商品編號], [商品名稱], [庫存數量], [定價], [種類], [管理者編號]) VALUES (@商品編號, @商品名稱, @庫存數量, @定價, @種類, @管理者編號);
  35. SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM 商品 WHERE (商品編號 = @商品編號)</CommandText>
  36. <Parameters>
  37. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  38. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Current" />
  39. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  40. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@定價" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Current" />
  41. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@種類" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Current" />
  42. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  43. </Parameters>
  44. </DbCommand>
  45. </InsertCommand>
  46. <SelectCommand>
  47. <DbCommand CommandType="Text" ModifiedByUser="false">
  48. <CommandText>SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM dbo.商品</CommandText>
  49. <Parameters />
  50. </DbCommand>
  51. </SelectCommand>
  52. <UpdateCommand>
  53. <DbCommand CommandType="Text" ModifiedByUser="false">
  54. <CommandText>UPDATE [dbo].[商品] SET [商品編號] = @商品編號, [商品名稱] = @商品名稱, [庫存數量] = @庫存數量, [定價] = @定價, [種類] = @種類, [管理者編號] = @管理者編號 WHERE (([商品編號] = @Original_商品編號) AND ((@IsNull_商品名稱 = 1 AND [商品名稱] IS NULL) OR ([商品名稱] = @Original_商品名稱)) AND ((@IsNull_庫存數量 = 1 AND [庫存數量] IS NULL) OR ([庫存數量] = @Original_庫存數量)) AND ((@IsNull_定價 = 1 AND [定價] IS NULL) OR ([定價] = @Original_定價)) AND ((@IsNull_種類 = 1 AND [種類] IS NULL) OR ([種類] = @Original_種類)) AND ((@IsNull_管理者編號 = 1 AND [管理者編號] IS NULL) OR ([管理者編號] = @Original_管理者編號)));
  55. SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM 商品 WHERE (商品編號 = @商品編號)</CommandText>
  56. <Parameters>
  57. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  58. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Current" />
  59. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  60. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@定價" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Current" />
  61. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@種類" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Current" />
  62. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  63. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  64. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品名稱" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="true" SourceVersion="Original" />
  65. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Original" />
  66. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_庫存數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  67. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  68. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_定價" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="true" SourceVersion="Original" />
  69. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_定價" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Original" />
  70. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_種類" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="true" SourceVersion="Original" />
  71. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_種類" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Original" />
  72. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_管理者編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  73. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  74. </Parameters>
  75. </DbCommand>
  76. </UpdateCommand>
  77. </DbSource>
  78. </MainSource>
  79. <Mappings>
  80. <Mapping SourceColumn="商品編號" DataSetColumn="商品編號" />
  81. <Mapping SourceColumn="商品名稱" DataSetColumn="商品名稱" />
  82. <Mapping SourceColumn="庫存數量" DataSetColumn="庫存數量" />
  83. <Mapping SourceColumn="定價" DataSetColumn="定價" />
  84. <Mapping SourceColumn="種類" DataSetColumn="種類" />
  85. <Mapping SourceColumn="管理者編號" DataSetColumn="管理者編號" />
  86. </Mappings>
  87. <Sources>
  88. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
  89. <DeleteCommand>
  90. <DbCommand CommandType="Text" ModifiedByUser="true">
  91. <CommandText>DELETE FROM 商品
  92. WHERE (商品編號 = @商品編號)</CommandText>
  93. <Parameters>
  94. <Parameter AllowDbNull="false" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  95. </Parameters>
  96. </DbCommand>
  97. </DeleteCommand>
  98. </DbSource>
  99. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.商品" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByKeyword" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByKeyword" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByKeyword">
  100. <SelectCommand>
  101. <DbCommand CommandType="Text" ModifiedByUser="true">
  102. <CommandText>SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號
  103. FROM 商品
  104. WHERE (商品編號 LIKE @keyword) OR
  105. (商品名稱 LIKE @keyword) OR
  106. (庫存數量 LIKE @keyword) OR
  107. (定價 LIKE @keyword) OR
  108. (種類 LIKE @keyword) OR
  109. (管理者編號 LIKE @keyword)</CommandText>
  110. <Parameters>
  111. <Parameter AllowDbNull="false" AutogeneratedName="keyword" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@keyword" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  112. </Parameters>
  113. </DbCommand>
  114. </SelectCommand>
  115. </DbSource>
  116. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.商品" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBysql" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillBysql" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillBysql">
  117. <SelectCommand>
  118. <DbCommand CommandType="Text" ModifiedByUser="true">
  119. <CommandText>SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號
  120. FROM 商品
  121. WHERE (商品編號 LIKE @sql)</CommandText>
  122. <Parameters>
  123. <Parameter AllowDbNull="false" AutogeneratedName="sql" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@sql" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  124. </Parameters>
  125. </DbCommand>
  126. </SelectCommand>
  127. </DbSource>
  128. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="InsertQuery">
  129. <InsertCommand>
  130. <DbCommand CommandType="Text" ModifiedByUser="true">
  131. <CommandText>INSERT INTO 商品
  132. (商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號)
  133. VALUES (@商品編號,@商品名稱,@庫存數量,@定價,@種類,@管理者編號);
  134. SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM 商品 WHERE (商品編號 = @商品編號)</CommandText>
  135. <Parameters>
  136. <Parameter AllowDbNull="false" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  137. <Parameter AllowDbNull="true" AutogeneratedName="商品名稱" ColumnName="商品名稱" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Current" />
  138. <Parameter AllowDbNull="true" AutogeneratedName="庫存數量" ColumnName="庫存數量" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  139. <Parameter AllowDbNull="true" AutogeneratedName="定價" ColumnName="定價" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@定價" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Current" />
  140. <Parameter AllowDbNull="true" AutogeneratedName="種類" ColumnName="種類" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@種類" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Current" />
  141. <Parameter AllowDbNull="true" AutogeneratedName="管理者編號" ColumnName="管理者編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  142. </Parameters>
  143. </DbCommand>
  144. </InsertCommand>
  145. </DbSource>
  146. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="UpdateQuery">
  147. <UpdateCommand>
  148. <DbCommand CommandType="Text" ModifiedByUser="true">
  149. <CommandText>UPDATE 商品
  150. SET 商品編號 = @商品編號, 商品名稱 = @商品名稱, 庫存數量 = @庫存數量, 定價 = @定價, 種類 = @種類,
  151. 管理者編號 = @管理者編號
  152. WHERE (商品編號 = @商品編號);
  153. SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM 商品 WHERE (商品編號 = @商品編號)</CommandText>
  154. <Parameters>
  155. <Parameter AllowDbNull="false" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  156. <Parameter AllowDbNull="true" AutogeneratedName="商品名稱" ColumnName="商品名稱" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@商品名稱" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="商品名稱" SourceColumnNullMapping="false" SourceVersion="Current" />
  157. <Parameter AllowDbNull="true" AutogeneratedName="庫存數量" ColumnName="庫存數量" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@庫存數量" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  158. <Parameter AllowDbNull="true" AutogeneratedName="定價" ColumnName="定價" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@定價" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="定價" SourceColumnNullMapping="false" SourceVersion="Current" />
  159. <Parameter AllowDbNull="true" AutogeneratedName="種類" ColumnName="種類" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@種類" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="種類" SourceColumnNullMapping="false" SourceVersion="Current" />
  160. <Parameter AllowDbNull="true" AutogeneratedName="管理者編號" ColumnName="管理者編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@管理者編號" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="管理者編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  161. </Parameters>
  162. </DbCommand>
  163. </UpdateCommand>
  164. </DbSource>
  165. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQueryNumber" Modifier="Public" Name="UpdateQueryNumber" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="UpdateQueryNumber">
  166. <UpdateCommand>
  167. <DbCommand CommandType="Text" ModifiedByUser="true">
  168. <CommandText>UPDATE 商品
  169. SET 庫存數量 = @庫存數量
  170. WHERE (商品編號 = @商品編號);
  171. SELECT 商品編號, 商品名稱, 庫存數量, 定價, 種類, 管理者編號 FROM 商品 WHERE (商品編號 = @商品編號)</CommandText>
  172. <Parameters>
  173. <Parameter AllowDbNull="true" AutogeneratedName="庫存數量" ColumnName="庫存數量" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@庫存數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="庫存數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  174. <Parameter AllowDbNull="false" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.商品" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  175. </Parameters>
  176. </DbCommand>
  177. </UpdateCommand>
  178. </DbSource>
  179. </Sources>
  180. </TableAdapter>
  181. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="會員TableAdapter" GeneratorDataComponentClassName="會員TableAdapter" Name="會員" UserDataComponentName="會員TableAdapter">
  182. <MainSource>
  183. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.會員" 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">
  184. <DeleteCommand>
  185. <DbCommand CommandType="Text" ModifiedByUser="false">
  186. <CommandText>DELETE FROM [dbo].[會員] WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_帳號 = 1 AND [帳號] IS NULL) OR ([帳號] = @Original_帳號)) AND ((@IsNull_密碼 = 1 AND [密碼] IS NULL) OR ([密碼] = @Original_密碼)) AND ((@IsNull_姓名 = 1 AND [姓名] IS NULL) OR ([姓名] = @Original_姓名)) AND ((@IsNull_電話 = 1 AND [電話] IS NULL) OR ([電話] = @Original_電話)) AND ((@IsNull_住址 = 1 AND [住址] IS NULL) OR ([住址] = @Original_住址)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)))</CommandText>
  187. <Parameters>
  188. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  189. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_帳號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="true" SourceVersion="Original" />
  190. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Original" />
  191. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_密碼" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="true" SourceVersion="Original" />
  192. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Original" />
  193. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_姓名" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="true" SourceVersion="Original" />
  194. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Original" />
  195. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_電話" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="true" SourceVersion="Original" />
  196. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Original" />
  197. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_住址" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="true" SourceVersion="Original" />
  198. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Original" />
  199. <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" />
  200. <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" />
  201. </Parameters>
  202. </DbCommand>
  203. </DeleteCommand>
  204. <InsertCommand>
  205. <DbCommand CommandType="Text" ModifiedByUser="false">
  206. <CommandText>INSERT INTO [dbo].[會員] ([會員編號], [帳號], [密碼], [姓名], [電話], [住址], [email]) VALUES (@會員編號, @帳號, @密碼, @姓名, @電話, @住址, @email);
  207. SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email FROM 會員 WHERE (會員編號 = @會員編號)</CommandText>
  208. <Parameters>
  209. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  210. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Current" />
  211. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Current" />
  212. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Current" />
  213. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Current" />
  214. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Current" />
  215. <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" />
  216. </Parameters>
  217. </DbCommand>
  218. </InsertCommand>
  219. <SelectCommand>
  220. <DbCommand CommandType="Text" ModifiedByUser="false">
  221. <CommandText>SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email FROM dbo.會員</CommandText>
  222. <Parameters />
  223. </DbCommand>
  224. </SelectCommand>
  225. <UpdateCommand>
  226. <DbCommand CommandType="Text" ModifiedByUser="false">
  227. <CommandText>UPDATE [dbo].[會員] SET [會員編號] = @會員編號, [帳號] = @帳號, [密碼] = @密碼, [姓名] = @姓名, [電話] = @電話, [住址] = @住址, [email] = @email WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_帳號 = 1 AND [帳號] IS NULL) OR ([帳號] = @Original_帳號)) AND ((@IsNull_密碼 = 1 AND [密碼] IS NULL) OR ([密碼] = @Original_密碼)) AND ((@IsNull_姓名 = 1 AND [姓名] IS NULL) OR ([姓名] = @Original_姓名)) AND ((@IsNull_電話 = 1 AND [電話] IS NULL) OR ([電話] = @Original_電話)) AND ((@IsNull_住址 = 1 AND [住址] IS NULL) OR ([住址] = @Original_住址)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)));
  228. SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email FROM 會員 WHERE (會員編號 = @會員編號)</CommandText>
  229. <Parameters>
  230. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  231. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Current" />
  232. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Current" />
  233. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Current" />
  234. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Current" />
  235. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Current" />
  236. <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" />
  237. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  238. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_帳號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="true" SourceVersion="Original" />
  239. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Original" />
  240. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_密碼" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="true" SourceVersion="Original" />
  241. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Original" />
  242. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_姓名" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="true" SourceVersion="Original" />
  243. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Original" />
  244. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_電話" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="true" SourceVersion="Original" />
  245. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Original" />
  246. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_住址" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="true" SourceVersion="Original" />
  247. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Original" />
  248. <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" />
  249. <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" />
  250. </Parameters>
  251. </DbCommand>
  252. </UpdateCommand>
  253. </DbSource>
  254. </MainSource>
  255. <Mappings>
  256. <Mapping SourceColumn="會員編號" DataSetColumn="會員編號" />
  257. <Mapping SourceColumn="帳號" DataSetColumn="帳號" />
  258. <Mapping SourceColumn="密碼" DataSetColumn="密碼" />
  259. <Mapping SourceColumn="姓名" DataSetColumn="姓名" />
  260. <Mapping SourceColumn="電話" DataSetColumn="電話" />
  261. <Mapping SourceColumn="住址" DataSetColumn="住址" />
  262. <Mapping SourceColumn="email" DataSetColumn="email" />
  263. </Mappings>
  264. <Sources>
  265. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
  266. <DeleteCommand>
  267. <DbCommand CommandType="Text" ModifiedByUser="true">
  268. <CommandText>DELETE FROM 會員
  269. WHERE (會員編號 = @會員編號)</CommandText>
  270. <Parameters>
  271. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  272. </Parameters>
  273. </DbCommand>
  274. </DeleteCommand>
  275. </DbSource>
  276. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.會員" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByemail" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByemail" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillByemail">
  277. <SelectCommand>
  278. <DbCommand CommandType="Text" ModifiedByUser="true">
  279. <CommandText>SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email
  280. FROM 會員
  281. WHERE (email LIKE @nvarchar)</CommandText>
  282. <Parameters>
  283. <Parameter AllowDbNull="true" AutogeneratedName="nvarchar" ColumnName="email" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@nvarchar" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
  284. </Parameters>
  285. </DbCommand>
  286. </SelectCommand>
  287. </DbSource>
  288. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.會員" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByKeyword" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByKeyword" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByKeyword">
  289. <SelectCommand>
  290. <DbCommand CommandType="Text" ModifiedByUser="true">
  291. <CommandText>SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email
  292. FROM 會員
  293. WHERE (會員編號 LIKE @keyword) OR
  294. (帳號 LIKE @keyword) OR
  295. (密碼 LIKE @keyword) OR
  296. (姓名 LIKE @keyword) OR
  297. (電話 LIKE @keyword) OR
  298. (住址 LIKE @keyword) OR
  299. (email LIKE @keyword)</CommandText>
  300. <Parameters>
  301. <Parameter AllowDbNull="false" AutogeneratedName="keyword" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@keyword" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  302. </Parameters>
  303. </DbCommand>
  304. </SelectCommand>
  305. </DbSource>
  306. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.會員" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBysql" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillBysql" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="FillBysql">
  307. <SelectCommand>
  308. <DbCommand CommandType="Text" ModifiedByUser="true">
  309. <CommandText>SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email
  310. FROM 會員
  311. WHERE (會員編號 LIKE @sql)</CommandText>
  312. <Parameters>
  313. <Parameter AllowDbNull="false" AutogeneratedName="sql" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@sql" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  314. </Parameters>
  315. </DbCommand>
  316. </SelectCommand>
  317. </DbSource>
  318. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="InsertQuery">
  319. <InsertCommand>
  320. <DbCommand CommandType="Text" ModifiedByUser="true">
  321. <CommandText>INSERT INTO 會員
  322. (會員編號, 帳號, 密碼, 姓名, 電話, 住址, email)
  323. VALUES (@會員編號,@帳號,@密碼,@姓名,@電話,@住址,@email);
  324. SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email FROM 會員 WHERE (會員編號 = @會員編號)</CommandText>
  325. <Parameters>
  326. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  327. <Parameter AllowDbNull="true" AutogeneratedName="帳號" ColumnName="帳號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Current" />
  328. <Parameter AllowDbNull="true" AutogeneratedName="密碼" ColumnName="密碼" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Current" />
  329. <Parameter AllowDbNull="true" AutogeneratedName="姓名" ColumnName="姓名" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Current" />
  330. <Parameter AllowDbNull="true" AutogeneratedName="電話" ColumnName="電話" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Current" />
  331. <Parameter AllowDbNull="true" AutogeneratedName="住址" ColumnName="住址" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Current" />
  332. <Parameter AllowDbNull="true" AutogeneratedName="email" ColumnName="email" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
  333. </Parameters>
  334. </DbCommand>
  335. </InsertCommand>
  336. </DbSource>
  337. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateQuery" Modifier="Public" Name="UpdateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="UpdateQuery">
  338. <UpdateCommand>
  339. <DbCommand CommandType="Text" ModifiedByUser="true">
  340. <CommandText>UPDATE 會員
  341. SET 會員編號 = @會員編號, 帳號 = @帳號, 密碼 = @密碼, 姓名 = @姓名, 電話 = @電話, 住址 = @住址,
  342. email = @email
  343. WHERE (會員編號 = @會員編號);
  344. SELECT 會員編號, 帳號, 密碼, 姓名, 電話, 住址, email FROM 會員 WHERE (會員編號 = @會員編號)</CommandText>
  345. <Parameters>
  346. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  347. <Parameter AllowDbNull="true" AutogeneratedName="帳號" ColumnName="帳號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@帳號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="帳號" SourceColumnNullMapping="false" SourceVersion="Current" />
  348. <Parameter AllowDbNull="true" AutogeneratedName="密碼" ColumnName="密碼" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@密碼" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="密碼" SourceColumnNullMapping="false" SourceVersion="Current" />
  349. <Parameter AllowDbNull="true" AutogeneratedName="姓名" ColumnName="姓名" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@姓名" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="姓名" SourceColumnNullMapping="false" SourceVersion="Current" />
  350. <Parameter AllowDbNull="true" AutogeneratedName="電話" ColumnName="電話" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@電話" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="電話" SourceColumnNullMapping="false" SourceVersion="Current" />
  351. <Parameter AllowDbNull="true" AutogeneratedName="住址" ColumnName="住址" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@住址" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="住址" SourceColumnNullMapping="false" SourceVersion="Current" />
  352. <Parameter AllowDbNull="true" AutogeneratedName="email" ColumnName="email" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.會員" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@email" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="false" SourceVersion="Current" />
  353. </Parameters>
  354. </DbCommand>
  355. </UpdateCommand>
  356. </DbSource>
  357. </Sources>
  358. </TableAdapter>
  359. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="訂單TableAdapter" GeneratorDataComponentClassName="訂單TableAdapter" Name="訂單" UserDataComponentName="訂單TableAdapter">
  360. <MainSource>
  361. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.訂單" 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">
  362. <DeleteCommand>
  363. <DbCommand CommandType="Text" ModifiedByUser="false">
  364. <CommandText>DELETE FROM [dbo].[訂單] WHERE (([訂單編號] = @Original_訂單編號) AND ((@IsNull_付款方式 = 1 AND [付款方式] IS NULL) OR ([付款方式] = @Original_付款方式)) AND ((@IsNull_取貨方式 = 1 AND [取貨方式] IS NULL) OR ([取貨方式] = @Original_取貨方式)) AND ((@IsNull_訂單日期 = 1 AND [訂單日期] IS NULL) OR ([訂單日期] = @Original_訂單日期)) AND ((@IsNull_會員編號 = 1 AND [會員編號] IS NULL) OR ([會員編號] = @Original_會員編號)) AND ((@IsNull_購物車編號 = 1 AND [購物車編號] IS NULL) OR ([購物車編號] = @Original_購物車編號)))</CommandText>
  365. <Parameters>
  366. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  367. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_付款方式" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="true" SourceVersion="Original" />
  368. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_付款方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="false" SourceVersion="Original" />
  369. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_取貨方式" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="true" SourceVersion="Original" />
  370. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_取貨方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="false" SourceVersion="Original" />
  371. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂單日期" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="true" SourceVersion="Original" />
  372. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_訂單日期" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="false" SourceVersion="Original" />
  373. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_會員編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  374. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  375. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_購物車編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  376. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_購物車編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  377. </Parameters>
  378. </DbCommand>
  379. </DeleteCommand>
  380. <InsertCommand>
  381. <DbCommand CommandType="Text" ModifiedByUser="false">
  382. <CommandText>INSERT INTO [dbo].[訂單] ([訂單編號], [付款方式], [取貨方式], [訂單日期], [會員編號], [購物車編號]) VALUES (@訂單編號, @付款方式, @取貨方式, @訂單日期, @會員編號, @購物車編號);
  383. SELECT 訂單編號, 付款方式, 取貨方式, 訂單日期, 會員編號, 購物車編號 FROM 訂單 WHERE (訂單編號 = @訂單編號)</CommandText>
  384. <Parameters>
  385. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  386. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@付款方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  387. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@取貨方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  388. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@訂單日期" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="false" SourceVersion="Current" />
  389. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  390. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  391. </Parameters>
  392. </DbCommand>
  393. </InsertCommand>
  394. <SelectCommand>
  395. <DbCommand CommandType="Text" ModifiedByUser="false">
  396. <CommandText>SELECT 訂單編號, 付款方式, 取貨方式, 訂單日期, 會員編號, 購物車編號 FROM dbo.訂單</CommandText>
  397. <Parameters />
  398. </DbCommand>
  399. </SelectCommand>
  400. <UpdateCommand>
  401. <DbCommand CommandType="Text" ModifiedByUser="false">
  402. <CommandText>UPDATE [dbo].[訂單] SET [訂單編號] = @訂單編號, [付款方式] = @付款方式, [取貨方式] = @取貨方式, [訂單日期] = @訂單日期, [會員編號] = @會員編號, [購物車編號] = @購物車編號 WHERE (([訂單編號] = @Original_訂單編號) AND ((@IsNull_付款方式 = 1 AND [付款方式] IS NULL) OR ([付款方式] = @Original_付款方式)) AND ((@IsNull_取貨方式 = 1 AND [取貨方式] IS NULL) OR ([取貨方式] = @Original_取貨方式)) AND ((@IsNull_訂單日期 = 1 AND [訂單日期] IS NULL) OR ([訂單日期] = @Original_訂單日期)) AND ((@IsNull_會員編號 = 1 AND [會員編號] IS NULL) OR ([會員編號] = @Original_會員編號)) AND ((@IsNull_購物車編號 = 1 AND [購物車編號] IS NULL) OR ([購物車編號] = @Original_購物車編號)));
  403. SELECT 訂單編號, 付款方式, 取貨方式, 訂單日期, 會員編號, 購物車編號 FROM 訂單 WHERE (訂單編號 = @訂單編號)</CommandText>
  404. <Parameters>
  405. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  406. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@付款方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  407. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@取貨方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  408. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@訂單日期" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="false" SourceVersion="Current" />
  409. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  410. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  411. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  412. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_付款方式" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="true" SourceVersion="Original" />
  413. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_付款方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="付款方式" SourceColumnNullMapping="false" SourceVersion="Original" />
  414. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_取貨方式" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="true" SourceVersion="Original" />
  415. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_取貨方式" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="取貨方式" SourceColumnNullMapping="false" SourceVersion="Original" />
  416. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂單日期" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="true" SourceVersion="Original" />
  417. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_訂單日期" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="訂單日期" SourceColumnNullMapping="false" SourceVersion="Original" />
  418. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_會員編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  419. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  420. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_購物車編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  421. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="StringFixedLength" Direction="Input" ParameterName="@Original_購物車編號" Precision="0" ProviderType="NChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  422. </Parameters>
  423. </DbCommand>
  424. </UpdateCommand>
  425. </DbSource>
  426. </MainSource>
  427. <Mappings>
  428. <Mapping SourceColumn="訂單編號" DataSetColumn="訂單編號" />
  429. <Mapping SourceColumn="付款方式" DataSetColumn="付款方式" />
  430. <Mapping SourceColumn="取貨方式" DataSetColumn="取貨方式" />
  431. <Mapping SourceColumn="訂單日期" DataSetColumn="訂單日期" />
  432. <Mapping SourceColumn="會員編號" DataSetColumn="會員編號" />
  433. <Mapping SourceColumn="購物車編號" DataSetColumn="購物車編號" />
  434. </Mappings>
  435. <Sources>
  436. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
  437. <DeleteCommand>
  438. <DbCommand CommandType="Text" ModifiedByUser="true">
  439. <CommandText>DELETE FROM 訂單
  440. WHERE (訂單編號 = @訂單編號)</CommandText>
  441. <Parameters>
  442. <Parameter AllowDbNull="false" AutogeneratedName="訂單編號" ColumnName="訂單編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  443. </Parameters>
  444. </DbCommand>
  445. </DeleteCommand>
  446. </DbSource>
  447. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="InsertQuery">
  448. <InsertCommand>
  449. <DbCommand CommandType="Text" ModifiedByUser="true">
  450. <CommandText>INSERT INTO 訂單
  451. (訂單編號, 付款方式, 取貨方式, 訂單日期, 會員編號, 購物車編號)
  452. VALUES (@訂單編號,@付款方式,@取貨方式,@訂單日期,@會員編號,@購物車編號);
  453. SELECT 訂單編號, 付款方式, 取貨方式, 訂單日期, 會員編號, 購物車編號 FROM 訂單 WHERE (訂單編號 = @訂單編號)</CommandText>
  454. <Parameters>
  455. <Parameter AllowDbNull="false" AutogeneratedName="訂單編號" ColumnName="訂單編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  456. <Parameter AllowDbNull="true" AutogeneratedName="付款方式" ColumnName="付款方式" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@付款方式" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="付款方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  457. <Parameter AllowDbNull="true" AutogeneratedName="取貨方式" ColumnName="取貨方式" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@取貨方式" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="取貨方式" SourceColumnNullMapping="false" SourceVersion="Current" />
  458. <Parameter AllowDbNull="true" AutogeneratedName="訂單日期" ColumnName="訂單日期" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@訂單日期" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="訂單日期" SourceColumnNullMapping="false" SourceVersion="Current" />
  459. <Parameter AllowDbNull="true" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  460. <Parameter AllowDbNull="true" AutogeneratedName="購物車編號" ColumnName="購物車編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂單" DataTypeServer="nchar(10)" DbType="String" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NChar" Scale="0" Size="10" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  461. </Parameters>
  462. </DbCommand>
  463. </InsertCommand>
  464. </DbSource>
  465. </Sources>
  466. </TableAdapter>
  467. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="購物車TableAdapter" GeneratorDataComponentClassName="購物車TableAdapter" Name="購物車" UserDataComponentName="購物車TableAdapter">
  468. <MainSource>
  469. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.購物車" 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">
  470. <DeleteCommand>
  471. <DbCommand CommandType="Text" ModifiedByUser="false">
  472. <CommandText>DELETE FROM [dbo].[購物車] WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_運費 = 1 AND [運費] IS NULL) OR ([運費] = @Original_運費)) AND ((@IsNull_總金額 = 1 AND [總金額] IS NULL) OR ([總金額] = @Original_總金額)) AND ((@IsNull_購物車編號 = 1 AND [購物車編號] IS NULL) OR ([購物車編號] = @Original_購物車編號)))</CommandText>
  473. <Parameters>
  474. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  475. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_運費" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="true" SourceVersion="Original" />
  476. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_運費" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="false" SourceVersion="Original" />
  477. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_總金額" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="true" SourceVersion="Original" />
  478. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_總金額" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="false" SourceVersion="Original" />
  479. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_購物車編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  480. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_購物車編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  481. </Parameters>
  482. </DbCommand>
  483. </DeleteCommand>
  484. <InsertCommand>
  485. <DbCommand CommandType="Text" ModifiedByUser="false">
  486. <CommandText>INSERT INTO [dbo].[購物車] ([會員編號], [運費], [總金額], [購物車編號]) VALUES (@會員編號, @運費, @總金額, @購物車編號);
  487. SELECT 會員編號, 運費, 總金額, 購物車編號 FROM 購物車 WHERE (會員編號 = @會員編號)</CommandText>
  488. <Parameters>
  489. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  490. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@運費" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="false" SourceVersion="Current" />
  491. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@總金額" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="false" SourceVersion="Current" />
  492. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  493. </Parameters>
  494. </DbCommand>
  495. </InsertCommand>
  496. <SelectCommand>
  497. <DbCommand CommandType="Text" ModifiedByUser="false">
  498. <CommandText>SELECT 會員編號, 運費, 總金額, 購物車編號 FROM dbo.購物車</CommandText>
  499. <Parameters />
  500. </DbCommand>
  501. </SelectCommand>
  502. <UpdateCommand>
  503. <DbCommand CommandType="Text" ModifiedByUser="false">
  504. <CommandText>UPDATE [dbo].[購物車] SET [會員編號] = @會員編號, [運費] = @運費, [總金額] = @總金額, [購物車編號] = @購物車編號 WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_運費 = 1 AND [運費] IS NULL) OR ([運費] = @Original_運費)) AND ((@IsNull_總金額 = 1 AND [總金額] IS NULL) OR ([總金額] = @Original_總金額)) AND ((@IsNull_購物車編號 = 1 AND [購物車編號] IS NULL) OR ([購物車編號] = @Original_購物車編號)));
  505. SELECT 會員編號, 運費, 總金額, 購物車編號 FROM 購物車 WHERE (會員編號 = @會員編號)</CommandText>
  506. <Parameters>
  507. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  508. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@運費" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="false" SourceVersion="Current" />
  509. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@總金額" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="false" SourceVersion="Current" />
  510. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  511. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  512. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_運費" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="true" SourceVersion="Original" />
  513. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_運費" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="運費" SourceColumnNullMapping="false" SourceVersion="Original" />
  514. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_總金額" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="true" SourceVersion="Original" />
  515. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_總金額" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="總金額" SourceColumnNullMapping="false" SourceVersion="Original" />
  516. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_購物車編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  517. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_購物車編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  518. </Parameters>
  519. </DbCommand>
  520. </UpdateCommand>
  521. </DbSource>
  522. </MainSource>
  523. <Mappings>
  524. <Mapping SourceColumn="會員編號" DataSetColumn="會員編號" />
  525. <Mapping SourceColumn="運費" DataSetColumn="運費" />
  526. <Mapping SourceColumn="總金額" DataSetColumn="總金額" />
  527. <Mapping SourceColumn="購物車編號" DataSetColumn="購物車編號" />
  528. </Mappings>
  529. <Sources>
  530. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteQuery" Modifier="Public" Name="DeleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteQuery">
  531. <DeleteCommand>
  532. <DbCommand CommandType="Text" ModifiedByUser="true">
  533. <CommandText>DELETE FROM 購物車
  534. WHERE (會員編號 = @會員編號)</CommandText>
  535. <Parameters>
  536. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.購物車" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  537. </Parameters>
  538. </DbCommand>
  539. </DeleteCommand>
  540. </DbSource>
  541. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="InsertQuery">
  542. <InsertCommand>
  543. <DbCommand CommandType="Text" ModifiedByUser="true">
  544. <CommandText>INSERT INTO 購物車
  545. (會員編號, 運費, 總金額, 購物車編號)
  546. VALUES (@會員編號,@運費,@總金額,@購物車編號);
  547. SELECT 會員編號, 運費, 總金額, 購物車編號 FROM 購物車 WHERE (會員編號 = @會員編號)</CommandText>
  548. <Parameters>
  549. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.購物車" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  550. <Parameter AllowDbNull="true" AutogeneratedName="運費" ColumnName="運費" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.購物車" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@運費" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="運費" SourceColumnNullMapping="false" SourceVersion="Current" />
  551. <Parameter AllowDbNull="true" AutogeneratedName="總金額" ColumnName="總金額" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.購物車" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@總金額" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="總金額" SourceColumnNullMapping="false" SourceVersion="Current" />
  552. <Parameter AllowDbNull="true" AutogeneratedName="購物車編號" ColumnName="購物車編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.購物車" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@購物車編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="購物車編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  553. </Parameters>
  554. </DbCommand>
  555. </InsertCommand>
  556. </DbSource>
  557. </Sources>
  558. </TableAdapter>
  559. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="紀錄TableAdapter" GeneratorDataComponentClassName="紀錄TableAdapter" Name="紀錄" UserDataComponentName="紀錄TableAdapter">
  560. <MainSource>
  561. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.紀錄" 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].[紀錄] WHERE (([訂單編號] = @Original_訂單編號) AND ((@IsNull_商品編號 = 1 AND [商品編號] IS NULL) OR ([商品編號] = @Original_商品編號)) AND ((@IsNull_訂購數量 = 1 AND [訂購數量] IS NULL) OR ([訂購數量] = @Original_訂購數量)) AND ((@IsNull_價錢 = 1 AND [價錢] IS NULL) OR ([價錢] = @Original_價錢)))</CommandText>
  565. <Parameters>
  566. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂單編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  567. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  568. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  569. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂購數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  570. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  571. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_價錢" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="true" SourceVersion="Original" />
  572. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_價錢" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="false" SourceVersion="Original" />
  573. </Parameters>
  574. </DbCommand>
  575. </DeleteCommand>
  576. <InsertCommand>
  577. <DbCommand CommandType="Text" ModifiedByUser="false">
  578. <CommandText>INSERT INTO [dbo].[紀錄] ([訂單編號], [商品編號], [訂購數量], [價錢]) VALUES (@訂單編號, @商品編號, @訂購數量, @價錢);
  579. SELECT 訂單編號, 商品編號, 訂購數量, 價錢 FROM 紀錄 WHERE (訂單編號 = @訂單編號)</CommandText>
  580. <Parameters>
  581. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  582. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  583. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  584. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@價錢" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="false" SourceVersion="Current" />
  585. </Parameters>
  586. </DbCommand>
  587. </InsertCommand>
  588. <SelectCommand>
  589. <DbCommand CommandType="Text" ModifiedByUser="false">
  590. <CommandText>SELECT 訂單編號, 商品編號, 訂購數量, 價錢 FROM dbo.紀錄</CommandText>
  591. <Parameters />
  592. </DbCommand>
  593. </SelectCommand>
  594. <UpdateCommand>
  595. <DbCommand CommandType="Text" ModifiedByUser="false">
  596. <CommandText>UPDATE [dbo].[紀錄] SET [訂單編號] = @訂單編號, [商品編號] = @商品編號, [訂購數量] = @訂購數量, [價錢] = @價錢 WHERE (([訂單編號] = @Original_訂單編號) AND ((@IsNull_商品編號 = 1 AND [商品編號] IS NULL) OR ([商品編號] = @Original_商品編號)) AND ((@IsNull_訂購數量 = 1 AND [訂購數量] IS NULL) OR ([訂購數量] = @Original_訂購數量)) AND ((@IsNull_價錢 = 1 AND [價錢] IS NULL) OR ([價錢] = @Original_價錢)));
  597. SELECT 訂單編號, 商品編號, 訂購數量, 價錢 FROM 紀錄 WHERE (訂單編號 = @訂單編號)</CommandText>
  598. <Parameters>
  599. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  600. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  601. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  602. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@價錢" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="false" SourceVersion="Current" />
  603. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂單編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  604. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  605. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  606. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂購數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  607. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  608. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_價錢" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="true" SourceVersion="Original" />
  609. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_價錢" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="價錢" SourceColumnNullMapping="false" SourceVersion="Original" />
  610. </Parameters>
  611. </DbCommand>
  612. </UpdateCommand>
  613. </DbSource>
  614. </MainSource>
  615. <Mappings>
  616. <Mapping SourceColumn="訂單編號" DataSetColumn="訂單編號" />
  617. <Mapping SourceColumn="商品編號" DataSetColumn="商品編號" />
  618. <Mapping SourceColumn="訂購數量" DataSetColumn="訂購數量" />
  619. <Mapping SourceColumn="價錢" DataSetColumn="價錢" />
  620. </Mappings>
  621. <Sources>
  622. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.紀錄" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByKeyword" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByKeyword" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByKeyword">
  623. <SelectCommand>
  624. <DbCommand CommandType="Text" ModifiedByUser="true">
  625. <CommandText>SELECT 訂單編號, 商品編號, 訂購數量, 價錢
  626. FROM 紀錄
  627. WHERE (訂單編號 LIKE @keyword) OR
  628. (商品編號 LIKE @keyword) OR
  629. (訂購數量 LIKE @keyword) OR
  630. (價錢 LIKE @keyword)</CommandText>
  631. <Parameters>
  632. <Parameter AllowDbNull="false" AutogeneratedName="keyword" ColumnName="訂單編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@keyword" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  633. </Parameters>
  634. </DbCommand>
  635. </SelectCommand>
  636. </DbSource>
  637. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.紀錄" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBysql" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillBysql" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillBysql">
  638. <SelectCommand>
  639. <DbCommand CommandType="Text" ModifiedByUser="true">
  640. <CommandText>SELECT 訂單編號, 商品編號, 訂購數量, 價錢
  641. FROM 紀錄
  642. WHERE (訂單編號 LIKE @sql)</CommandText>
  643. <Parameters>
  644. <Parameter AllowDbNull="false" AutogeneratedName="sql" ColumnName="訂單編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@sql" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  645. </Parameters>
  646. </DbCommand>
  647. </SelectCommand>
  648. </DbSource>
  649. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertQuery">
  650. <InsertCommand>
  651. <DbCommand CommandType="Text" ModifiedByUser="true">
  652. <CommandText>INSERT INTO 紀錄
  653. (訂單編號, 商品編號, 訂購數量, 價錢)
  654. VALUES (@訂單編號,@商品編號,@訂購數量,@價錢);
  655. SELECT 訂單編號, 商品編號, 訂購數量, 價錢 FROM 紀錄 WHERE (訂單編號 = @訂單編號)</CommandText>
  656. <Parameters>
  657. <Parameter AllowDbNull="false" AutogeneratedName="訂單編號" ColumnName="訂單編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@訂單編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="訂單編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  658. <Parameter AllowDbNull="true" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  659. <Parameter AllowDbNull="true" AutogeneratedName="訂購數量" ColumnName="訂購數量" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  660. <Parameter AllowDbNull="true" AutogeneratedName="價錢" ColumnName="價錢" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.紀錄" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@價錢" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="價錢" SourceColumnNullMapping="false" SourceVersion="Current" />
  661. </Parameters>
  662. </DbCommand>
  663. </InsertCommand>
  664. </DbSource>
  665. </Sources>
  666. </TableAdapter>
  667. <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="訂購TableAdapter" GeneratorDataComponentClassName="訂購TableAdapter" Name="訂購" UserDataComponentName="訂購TableAdapter">
  668. <MainSource>
  669. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.訂購" 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">
  670. <DeleteCommand>
  671. <DbCommand CommandType="Text" ModifiedByUser="false">
  672. <CommandText>DELETE FROM [dbo].[訂購] WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_商品編號 = 1 AND [商品編號] IS NULL) OR ([商品編號] = @Original_商品編號)) AND ((@IsNull_訂購數量 = 1 AND [訂購數量] IS NULL) OR ([訂購數量] = @Original_訂購數量)))</CommandText>
  673. <Parameters>
  674. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  675. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  676. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  677. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂購數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  678. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  679. </Parameters>
  680. </DbCommand>
  681. </DeleteCommand>
  682. <InsertCommand>
  683. <DbCommand CommandType="Text" ModifiedByUser="false">
  684. <CommandText>INSERT INTO [dbo].[訂購] ([會員編號], [商品編號], [訂購數量]) VALUES (@會員編號, @商品編號, @訂購數量);
  685. SELECT 會員編號, 商品編號, 訂購數量 FROM 訂購 WHERE (會員編號 = @會員編號)</CommandText>
  686. <Parameters>
  687. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  688. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  689. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  690. </Parameters>
  691. </DbCommand>
  692. </InsertCommand>
  693. <SelectCommand>
  694. <DbCommand CommandType="Text" ModifiedByUser="false">
  695. <CommandText>SELECT 會員編號, 商品編號, 訂購數量 FROM dbo.訂購</CommandText>
  696. <Parameters />
  697. </DbCommand>
  698. </SelectCommand>
  699. <UpdateCommand>
  700. <DbCommand CommandType="Text" ModifiedByUser="false">
  701. <CommandText>UPDATE [dbo].[訂購] SET [會員編號] = @會員編號, [商品編號] = @商品編號, [訂購數量] = @訂購數量 WHERE (([會員編號] = @Original_會員編號) AND ((@IsNull_商品編號 = 1 AND [商品編號] IS NULL) OR ([商品編號] = @Original_商品編號)) AND ((@IsNull_訂購數量 = 1 AND [訂購數量] IS NULL) OR ([訂購數量] = @Original_訂購數量)));
  702. SELECT 會員編號, 商品編號, 訂購數量 FROM 訂購 WHERE (會員編號 = @會員編號)</CommandText>
  703. <Parameters>
  704. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  705. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  706. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  707. <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  708. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_商品編號" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="true" SourceVersion="Original" />
  709. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Original" />
  710. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_訂購數量" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="true" SourceVersion="Original" />
  711. <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Original" />
  712. </Parameters>
  713. </DbCommand>
  714. </UpdateCommand>
  715. </DbSource>
  716. </MainSource>
  717. <Mappings>
  718. <Mapping SourceColumn="會員編號" DataSetColumn="會員編號" />
  719. <Mapping SourceColumn="商品編號" DataSetColumn="商品編號" />
  720. <Mapping SourceColumn="訂購數量" DataSetColumn="訂購數量" />
  721. </Mappings>
  722. <Sources>
  723. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.訂購" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByKeyword" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillByKeyword" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="FillByKeyword">
  724. <SelectCommand>
  725. <DbCommand CommandType="Text" ModifiedByUser="true">
  726. <CommandText>SELECT 會員編號, 商品編號, 訂購數量
  727. FROM 訂購
  728. WHERE (會員編號 LIKE @keyword) OR
  729. (商品編號 LIKE @keyword) OR
  730. (訂購數量 LIKE @keyword)</CommandText>
  731. <Parameters>
  732. <Parameter AllowDbNull="false" AutogeneratedName="keyword" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂購" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@keyword" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  733. </Parameters>
  734. </DbCommand>
  735. </SelectCommand>
  736. </DbSource>
  737. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="dbo.訂購" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBysql" GenerateMethods="Fill" GenerateShortCommands="true" GeneratorSourceName="FillBysql" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillBysql">
  738. <SelectCommand>
  739. <DbCommand CommandType="Text" ModifiedByUser="true">
  740. <CommandText>SELECT 會員編號, 商品編號, 訂購數量
  741. FROM 訂購
  742. WHERE (會員編號 LIKE @sql)</CommandText>
  743. <Parameters>
  744. <Parameter AllowDbNull="false" AutogeneratedName="sql" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂購" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@sql" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  745. </Parameters>
  746. </DbCommand>
  747. </SelectCommand>
  748. </DbSource>
  749. <DbSource ConnectionRef="謎鹿ConnectionString1 (MySettings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertQuery">
  750. <InsertCommand>
  751. <DbCommand CommandType="Text" ModifiedByUser="true">
  752. <CommandText>INSERT INTO 訂購
  753. (會員編號, 商品編號, 訂購數量)
  754. VALUES (@會員編號,@商品編號,@訂購數量);
  755. SELECT 會員編號, 商品編號, 訂購數量 FROM 訂購 WHERE (會員編號 = @會員編號)</CommandText>
  756. <Parameters>
  757. <Parameter AllowDbNull="false" AutogeneratedName="會員編號" ColumnName="會員編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂購" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@會員編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="會員編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  758. <Parameter AllowDbNull="true" AutogeneratedName="商品編號" ColumnName="商品編號" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂購" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@商品編號" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="商品編號" SourceColumnNullMapping="false" SourceVersion="Current" />
  759. <Parameter AllowDbNull="true" AutogeneratedName="訂購數量" ColumnName="訂購數量" DataSourceName="[C:\USERS\奕穎\DOCUMENTS\資管\大三上\系分\謎鹿\謎鹿.MDF].dbo.訂購" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@訂購數量" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="訂購數量" SourceColumnNullMapping="false" SourceVersion="Current" />
  760. </Parameters>
  761. </DbCommand>
  762. </InsertCommand>
  763. </DbSource>
  764. </Sources>
  765. </TableAdapter>
  766. </Tables>
  767. <Sources />
  768. </DataSource>
  769. </xs:appinfo>
  770. </xs:annotation>
  771. <xs:element name="謎鹿DataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="謎鹿DataSet" msprop:Generator_UserDSName="謎鹿DataSet">
  772. <xs:complexType>
  773. <xs:choice minOccurs="0" maxOccurs="unbounded">
  774. <xs:element name="商品" msprop:Generator_TableClassName="商品DataTable" msprop:Generator_TableVarName="table商品" msprop:Generator_RowChangedName="商品RowChanged" msprop:Generator_TablePropName="商品" msprop:Generator_RowDeletingName="商品RowDeleting" msprop:Generator_RowChangingName="商品RowChanging" msprop:Generator_RowEvHandlerName="商品RowChangeEventHandler" msprop:Generator_RowDeletedName="商品RowDeleted" msprop:Generator_RowClassName="商品Row" msprop:Generator_UserTableName="商品" msprop:Generator_RowEvArgName="商品RowChangeEvent">
  775. <xs:complexType>
  776. <xs:sequence>
  777. <xs:element name="商品編號" msprop:Generator_ColumnVarNameInTable="column商品編號" msprop:Generator_ColumnPropNameInRow="商品編號" msprop:Generator_ColumnPropNameInTable="商品編號Column" msprop:Generator_UserColumnName="商品編號" type="xs:string" />
  778. <xs:element name="商品名稱" msprop:Generator_ColumnVarNameInTable="column商品名稱" msprop:Generator_ColumnPropNameInRow="商品名稱" msprop:Generator_ColumnPropNameInTable="商品名稱Column" msprop:Generator_UserColumnName="商品名稱" minOccurs="0">
  779. <xs:simpleType>
  780. <xs:restriction base="xs:string">
  781. <xs:maxLength value="10" />
  782. </xs:restriction>
  783. </xs:simpleType>
  784. </xs:element>
  785. <xs:element name="庫存數量" msprop:Generator_ColumnVarNameInTable="column庫存數量" msprop:Generator_ColumnPropNameInRow="庫存數量" msprop:Generator_ColumnPropNameInTable="庫存數量Column" msprop:Generator_UserColumnName="庫存數量" minOccurs="0">
  786. <xs:simpleType>
  787. <xs:restriction base="xs:string">
  788. <xs:maxLength value="10" />
  789. </xs:restriction>
  790. </xs:simpleType>
  791. </xs:element>
  792. <xs:element name="定價" msprop:Generator_ColumnVarNameInTable="column定價" msprop:Generator_ColumnPropNameInRow="定價" msprop:Generator_ColumnPropNameInTable="定價Column" msprop:Generator_UserColumnName="定價" minOccurs="0">
  793. <xs:simpleType>
  794. <xs:restriction base="xs:string">
  795. <xs:maxLength value="10" />
  796. </xs:restriction>
  797. </xs:simpleType>
  798. </xs:element>
  799. <xs:element name="種類" msprop:Generator_ColumnVarNameInTable="column種類" msprop:Generator_ColumnPropNameInRow="種類" msprop:Generator_ColumnPropNameInTable="種類Column" msprop:Generator_UserColumnName="種類" minOccurs="0">
  800. <xs:simpleType>
  801. <xs:restriction base="xs:string">
  802. <xs:maxLength value="10" />
  803. </xs:restriction>
  804. </xs:simpleType>
  805. </xs:element>
  806. <xs:element name="管理者編號" msprop:Generator_ColumnVarNameInTable="column管理者編號" msprop:Generator_ColumnPropNameInRow="管理者編號" msprop:Generator_ColumnPropNameInTable="管理者編號Column" msprop:Generator_UserColumnName="管理者編號" minOccurs="0">
  807. <xs:simpleType>
  808. <xs:restriction base="xs:string">
  809. <xs:maxLength value="10" />
  810. </xs:restriction>
  811. </xs:simpleType>
  812. </xs:element>
  813. </xs:sequence>
  814. </xs:complexType>
  815. </xs:element>
  816. <xs:element name="會員" msprop:Generator_TableClassName="會員DataTable" msprop:Generator_TableVarName="table會員" msprop:Generator_TablePropName="會員" msprop:Generator_RowDeletingName="會員RowDeleting" msprop:Generator_RowChangingName="會員RowChanging" msprop:Generator_RowEvHandlerName="會員RowChangeEventHandler" msprop:Generator_RowDeletedName="會員RowDeleted" msprop:Generator_UserTableName="會員" msprop:Generator_RowChangedName="會員RowChanged" msprop:Generator_RowEvArgName="會員RowChangeEvent" msprop:Generator_RowClassName="會員Row">
  817. <xs:complexType>
  818. <xs:sequence>
  819. <xs:element name="會員編號" msprop:Generator_ColumnVarNameInTable="column會員編號" msprop:Generator_ColumnPropNameInRow="會員編號" msprop:Generator_ColumnPropNameInTable="會員編號Column" msprop:Generator_UserColumnName="會員編號">
  820. <xs:simpleType>
  821. <xs:restriction base="xs:string">
  822. <xs:maxLength value="50" />
  823. </xs:restriction>
  824. </xs:simpleType>
  825. </xs:element>
  826. <xs:element name="帳號" msprop:Generator_ColumnVarNameInTable="column帳號" msprop:Generator_ColumnPropNameInRow="帳號" msprop:Generator_ColumnPropNameInTable="帳號Column" msprop:Generator_UserColumnName="帳號" minOccurs="0">
  827. <xs:simpleType>
  828. <xs:restriction base="xs:string">
  829. <xs:maxLength value="50" />
  830. </xs:restriction>
  831. </xs:simpleType>
  832. </xs:element>
  833. <xs:element name="密碼" msprop:Generator_ColumnVarNameInTable="column密碼" msprop:Generator_ColumnPropNameInRow="密碼" msprop:Generator_ColumnPropNameInTable="密碼Column" msprop:Generator_UserColumnName="密碼" minOccurs="0">
  834. <xs:simpleType>
  835. <xs:restriction base="xs:string">
  836. <xs:maxLength value="50" />
  837. </xs:restriction>
  838. </xs:simpleType>
  839. </xs:element>
  840. <xs:element name="姓名" msprop:Generator_ColumnVarNameInTable="column姓名" msprop:Generator_ColumnPropNameInRow="姓名" msprop:Generator_ColumnPropNameInTable="姓名Column" msprop:Generator_UserColumnName="姓名" minOccurs="0">
  841. <xs:simpleType>
  842. <xs:restriction base="xs:string">
  843. <xs:maxLength value="50" />
  844. </xs:restriction>
  845. </xs:simpleType>
  846. </xs:element>
  847. <xs:element name="電話" msprop:Generator_ColumnVarNameInTable="column電話" msprop:Generator_ColumnPropNameInRow="電話" msprop:Generator_ColumnPropNameInTable="電話Column" msprop:Generator_UserColumnName="電話" minOccurs="0">
  848. <xs:simpleType>
  849. <xs:restriction base="xs:string">
  850. <xs:maxLength value="50" />
  851. </xs:restriction>
  852. </xs:simpleType>
  853. </xs:element>
  854. <xs:element name="住址" msprop:Generator_ColumnVarNameInTable="column住址" msprop:Generator_ColumnPropNameInRow="住址" msprop:Generator_ColumnPropNameInTable="住址Column" msprop:Generator_UserColumnName="住址" minOccurs="0">
  855. <xs:simpleType>
  856. <xs:restriction base="xs:string">
  857. <xs:maxLength value="50" />
  858. </xs:restriction>
  859. </xs:simpleType>
  860. </xs:element>
  861. <xs:element name="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" msprop:Generator_UserColumnName="email" minOccurs="0">
  862. <xs:simpleType>
  863. <xs:restriction base="xs:string">
  864. <xs:maxLength value="50" />
  865. </xs:restriction>
  866. </xs:simpleType>
  867. </xs:element>
  868. </xs:sequence>
  869. </xs:complexType>
  870. </xs:element>
  871. <xs:element name="訂單" msprop:Generator_TableClassName="訂單DataTable" msprop:Generator_TableVarName="table訂單" msprop:Generator_TablePropName="訂單" msprop:Generator_RowDeletingName="訂單RowDeleting" msprop:Generator_RowChangingName="訂單RowChanging" msprop:Generator_RowEvHandlerName="訂單RowChangeEventHandler" msprop:Generator_RowDeletedName="訂單RowDeleted" msprop:Generator_UserTableName="訂單" msprop:Generator_RowChangedName="訂單RowChanged" msprop:Generator_RowEvArgName="訂單RowChangeEvent" msprop:Generator_RowClassName="訂單Row">
  872. <xs:complexType>
  873. <xs:sequence>
  874. <xs:element name="訂單編號" msprop:Generator_ColumnVarNameInTable="column訂單編號" msprop:Generator_ColumnPropNameInRow="訂單編號" msprop:Generator_ColumnPropNameInTable="訂單編號Column" msprop:Generator_UserColumnName="訂單編號" type="xs:string" />
  875. <xs:element name="付款方式" msprop:Generator_ColumnVarNameInTable="column付款方式" msprop:Generator_ColumnPropNameInRow="付款方式" msprop:Generator_ColumnPropNameInTable="付款方式Column" msprop:Generator_UserColumnName="付款方式" minOccurs="0">
  876. <xs:simpleType>
  877. <xs:restriction base="xs:string">
  878. <xs:maxLength value="10" />
  879. </xs:restriction>
  880. </xs:simpleType>
  881. </xs:element>
  882. <xs:element name="取貨方式" msprop:Generator_ColumnVarNameInTable="column取貨方式" msprop:Generator_ColumnPropNameInRow="取貨方式" msprop:Generator_ColumnPropNameInTable="取貨方式Column" msprop:Generator_UserColumnName="取貨方式" minOccurs="0">
  883. <xs:simpleType>
  884. <xs:restriction base="xs:string">
  885. <xs:maxLength value="10" />
  886. </xs:restriction>
  887. </xs:simpleType>
  888. </xs:element>
  889. <xs:element name="訂單日期" msprop:Generator_ColumnVarNameInTable="column訂單日期" msprop:Generator_ColumnPropNameInRow="訂單日期" msprop:Generator_ColumnPropNameInTable="訂單日期Column" msprop:Generator_UserColumnName="訂單日期" minOccurs="0">
  890. <xs:simpleType>
  891. <xs:restriction base="xs:string">
  892. <xs:maxLength value="10" />
  893. </xs:restriction>
  894. </xs:simpleType>
  895. </xs:element>
  896. <xs:element name="會員編號" msprop:Generator_ColumnVarNameInTable="column會員編號" msprop:Generator_ColumnPropNameInRow="會員編號" msprop:Generator_ColumnPropNameInTable="會員編號Column" msprop:Generator_UserColumnName="會員編號" minOccurs="0">
  897. <xs:simpleType>
  898. <xs:restriction base="xs:string">
  899. <xs:maxLength value="10" />
  900. </xs:restriction>
  901. </xs:simpleType>
  902. </xs:element>
  903. <xs:element name="購物車編號" msprop:Generator_ColumnVarNameInTable="column購物車編號" msprop:Generator_ColumnPropNameInRow="購物車編號" msprop:Generator_ColumnPropNameInTable="購物車編號Column" msprop:Generator_UserColumnName="購物車編號" minOccurs="0">
  904. <xs:simpleType>
  905. <xs:restriction base="xs:string">
  906. <xs:maxLength value="10" />
  907. </xs:restriction>
  908. </xs:simpleType>
  909. </xs:element>
  910. </xs:sequence>
  911. </xs:complexType>
  912. </xs:element>
  913. <xs:element name="購物車" msprop:Generator_TableClassName="購物車DataTable" msprop:Generator_TableVarName="table購物車" msprop:Generator_TablePropName="購物車" msprop:Generator_RowDeletingName="購物車RowDeleting" msprop:Generator_RowChangingName="購物車RowChanging" msprop:Generator_RowEvHandlerName="購物車RowChangeEventHandler" msprop:Generator_RowDeletedName="購物車RowDeleted" msprop:Generator_UserTableName="購物車" msprop:Generator_RowChangedName="購物車RowChanged" msprop:Generator_RowEvArgName="購物車RowChangeEvent" msprop:Generator_RowClassName="購物車Row">
  914. <xs:complexType>
  915. <xs:sequence>
  916. <xs:element name="會員編號" msprop:Generator_ColumnVarNameInTable="column會員編號" msprop:Generator_ColumnPropNameInRow="會員編號" msprop:Generator_ColumnPropNameInTable="會員編號Column" msprop:Generator_UserColumnName="會員編號">
  917. <xs:simpleType>
  918. <xs:restriction base="xs:string">
  919. <xs:maxLength value="50" />
  920. </xs:restriction>
  921. </xs:simpleType>
  922. </xs:element>
  923. <xs:element name="運費" msprop:Generator_ColumnVarNameInTable="column運費" msprop:Generator_ColumnPropNameInRow="運費" msprop:Generator_ColumnPropNameInTable="運費Column" msprop:Generator_UserColumnName="運費" minOccurs="0">
  924. <xs:simpleType>
  925. <xs:restriction base="xs:string">
  926. <xs:maxLength value="50" />
  927. </xs:restriction>
  928. </xs:simpleType>
  929. </xs:element>
  930. <xs:element name="總金額" msprop:Generator_ColumnVarNameInTable="column總金額" msprop:Generator_ColumnPropNameInRow="總金額" msprop:Generator_ColumnPropNameInTable="總金額Column" msprop:Generator_UserColumnName="總金額" minOccurs="0">
  931. <xs:simpleType>
  932. <xs:restriction base="xs:string">
  933. <xs:maxLength value="50" />
  934. </xs:restriction>
  935. </xs:simpleType>
  936. </xs:element>
  937. <xs:element name="購物車編號" msprop:Generator_ColumnVarNameInTable="column購物車編號" msprop:Generator_ColumnPropNameInRow="購物車編號" msprop:Generator_ColumnPropNameInTable="購物車編號Column" msprop:Generator_UserColumnName="購物車編號" minOccurs="0">
  938. <xs:simpleType>
  939. <xs:restriction base="xs:string">
  940. <xs:maxLength value="50" />
  941. </xs:restriction>
  942. </xs:simpleType>
  943. </xs:element>
  944. </xs:sequence>
  945. </xs:complexType>
  946. </xs:element>
  947. <xs:element name="紀錄" msprop:Generator_TableClassName="紀錄DataTable" msprop:Generator_TableVarName="table紀錄" msprop:Generator_RowChangedName="紀錄RowChanged" msprop:Generator_TablePropName="紀錄" msprop:Generator_RowDeletingName="紀錄RowDeleting" msprop:Generator_RowChangingName="紀錄RowChanging" msprop:Generator_RowEvHandlerName="紀錄RowChangeEventHandler" msprop:Generator_RowDeletedName="紀錄RowDeleted" msprop:Generator_RowClassName="紀錄Row" msprop:Generator_UserTableName="紀錄" msprop:Generator_RowEvArgName="紀錄RowChangeEvent">
  948. <xs:complexType>
  949. <xs:sequence>
  950. <xs:element name="訂單編號" msprop:Generator_ColumnVarNameInTable="column訂單編號" msprop:Generator_ColumnPropNameInRow="訂單編號" msprop:Generator_ColumnPropNameInTable="訂單編號Column" msprop:Generator_UserColumnName="訂單編號">
  951. <xs:simpleType>
  952. <xs:restriction base="xs:string">
  953. <xs:maxLength value="50" />
  954. </xs:restriction>
  955. </xs:simpleType>
  956. </xs:element>
  957. <xs:element name="商品編號" msprop:Generator_ColumnVarNameInTable="column商品編號" msprop:Generator_ColumnPropNameInRow="商品編號" msprop:Generator_ColumnPropNameInTable="商品編號Column" msprop:Generator_UserColumnName="商品編號" minOccurs="0">
  958. <xs:simpleType>
  959. <xs:restriction base="xs:string">
  960. <xs:maxLength value="50" />
  961. </xs:restriction>
  962. </xs:simpleType>
  963. </xs:element>
  964. <xs:element name="訂購數量" msprop:Generator_ColumnVarNameInTable="column訂購數量" msprop:Generator_ColumnPropNameInRow="訂購數量" msprop:Generator_ColumnPropNameInTable="訂購數量Column" msprop:Generator_UserColumnName="訂購數量" minOccurs="0">
  965. <xs:simpleType>
  966. <xs:restriction base="xs:string">
  967. <xs:maxLength value="50" />
  968. </xs:restriction>
  969. </xs:simpleType>
  970. </xs:element>
  971. <xs:element name="價錢" msprop:Generator_ColumnVarNameInTable="column價錢" msprop:Generator_ColumnPropNameInRow="價錢" msprop:Generator_ColumnPropNameInTable="價錢Column" msprop:Generator_UserColumnName="價錢" minOccurs="0">
  972. <xs:simpleType>
  973. <xs:restriction base="xs:string">
  974. <xs:maxLength value="50" />
  975. </xs:restriction>
  976. </xs:simpleType>
  977. </xs:element>
  978. </xs:sequence>
  979. </xs:complexType>
  980. </xs:element>
  981. <xs:element name="訂購" msprop:Generator_TableClassName="訂購DataTable" msprop:Generator_TableVarName="table訂購" msprop:Generator_RowChangedName="訂購RowChanged" msprop:Generator_TablePropName="訂購" msprop:Generator_RowDeletingName="訂購RowDeleting" msprop:Generator_RowChangingName="訂購RowChanging" msprop:Generator_RowEvHandlerName="訂購RowChangeEventHandler" msprop:Generator_RowDeletedName="訂購RowDeleted" msprop:Generator_RowClassName="訂購Row" msprop:Generator_UserTableName="訂購" msprop:Generator_RowEvArgName="訂購RowChangeEvent">
  982. <xs:complexType>
  983. <xs:sequence>
  984. <xs:element name="會員編號" msprop:Generator_ColumnVarNameInTable="column會員編號" msprop:Generator_ColumnPropNameInRow="會員編號" msprop:Generator_ColumnPropNameInTable="會員編號Column" msprop:Generator_UserColumnName="會員編號">
  985. <xs:simpleType>
  986. <xs:restriction base="xs:string">
  987. <xs:maxLength value="50" />
  988. </xs:restriction>
  989. </xs:simpleType>
  990. </xs:element>
  991. <xs:element name="商品編號" msprop:Generator_ColumnVarNameInTable="column商品編號" msprop:Generator_ColumnPropNameInRow="商品編號" msprop:Generator_ColumnPropNameInTable="商品編號Column" msprop:Generator_UserColumnName="商品編號" minOccurs="0">
  992. <xs:simpleType>
  993. <xs:restriction base="xs:string">
  994. <xs:maxLength value="50" />
  995. </xs:restriction>
  996. </xs:simpleType>
  997. </xs:element>
  998. <xs:element name="訂購數量" msprop:Generator_ColumnVarNameInTable="column訂購數量" msprop:Generator_ColumnPropNameInRow="訂購數量" msprop:Generator_ColumnPropNameInTable="訂購數量Column" msprop:Generator_UserColumnName="訂購數量" minOccurs="0">
  999. <xs:simpleType>
  1000. <xs:restriction base="xs:string">
  1001. <xs:maxLength value="50" />
  1002. </xs:restriction>
  1003. </xs:simpleType>
  1004. </xs:element>
  1005. </xs:sequence>
  1006. </xs:complexType>
  1007. </xs:element>
  1008. </xs:choice>
  1009. </xs:complexType>
  1010. <xs:unique name="Constraint1" msdata:PrimaryKey="true">
  1011. <xs:selector xpath=".//mstns:商品" />
  1012. <xs:field xpath="mstns:商品編號" />
  1013. </xs:unique>
  1014. <xs:unique name="會員_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1015. <xs:selector xpath=".//mstns:會員" />
  1016. <xs:field xpath="mstns:會員編號" />
  1017. </xs:unique>
  1018. <xs:unique name="訂單_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1019. <xs:selector xpath=".//mstns:訂單" />
  1020. <xs:field xpath="mstns:訂單編號" />
  1021. </xs:unique>
  1022. <xs:unique name="購物車_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1023. <xs:selector xpath=".//mstns:購物車" />
  1024. <xs:field xpath="mstns:會員編號" />
  1025. </xs:unique>
  1026. <xs:unique name="紀錄_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1027. <xs:selector xpath=".//mstns:紀錄" />
  1028. <xs:field xpath="mstns:訂單編號" />
  1029. </xs:unique>
  1030. <xs:unique name="訂購_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
  1031. <xs:selector xpath=".//mstns:訂購" />
  1032. <xs:field xpath="mstns:會員編號" />
  1033. </xs:unique>
  1034. </xs:element>
  1035. </xs:schema>