database query : add with(nolock)
This commit is contained in:
436
SubProject/FPM0000/DSMssql.Designer.cs
generated
436
SubProject/FPM0000/DSMssql.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -87,7 +87,7 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process, SupplierNo, CurrentQty, MHA, Division, BadQty, Price, PriceUnit, CostCenter, Memo, EnrDate, Enrollee
|
||||
FROM SPMaster
|
||||
FROM SPMaster WITH (nolock)
|
||||
WHERE (Division = @division)
|
||||
ORDER BY PartName</CommandText>
|
||||
<Parameters>
|
||||
@@ -191,8 +191,8 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process, SupplierNo, CurrentQty, MHA, Division, BadQty, Price, PriceUnit, CostCenter, Memo, EnrDate, Enrollee
|
||||
FROM SPMaster
|
||||
order by Division,PartName</CommandText>
|
||||
FROM SPMaster WITH (nolock)
|
||||
ORDER BY Division, PartName</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -203,9 +203,9 @@ order by Division,PartName</CommandText>
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.SPMaster" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT Division
|
||||
FROM SPMaster
|
||||
FROM SPMaster WITH (nolock)
|
||||
GROUP BY Division
|
||||
ORDER BY Division</CommandText>
|
||||
<Parameters />
|
||||
@@ -223,116 +223,116 @@ ORDER BY Division</CommandText>
|
||||
</DataSource>
|
||||
</xs:appinfo>
|
||||
</xs:annotation>
|
||||
<xs:element name="DSMssql" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSMssql" msprop:Generator_UserDSName="DSMssql">
|
||||
<xs:element name="DSMssql" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_UserDSName="DSMssql" msprop:Generator_DataSetName="DSMssql">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="SPMaster" msprop:Generator_TableClassName="SPMasterDataTable" msprop:Generator_TableVarName="tableSPMaster" msprop:Generator_TablePropName="SPMaster" msprop:Generator_RowDeletingName="SPMasterRowDeleting" msprop:Generator_RowChangingName="SPMasterRowChanging" msprop:Generator_RowEvHandlerName="SPMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="SPMasterRowDeleted" msprop:Generator_UserTableName="SPMaster" msprop:Generator_RowChangedName="SPMasterRowChanged" msprop:Generator_RowEvArgName="SPMasterRowChangeEvent" msprop:Generator_RowClassName="SPMasterRow">
|
||||
<xs:element name="SPMaster" msprop:Generator_RowClassName="SPMasterRow" msprop:Generator_RowEvHandlerName="SPMasterRowChangeEventHandler" msprop:Generator_RowDeletedName="SPMasterRowDeleted" msprop:Generator_RowDeletingName="SPMasterRowDeleting" msprop:Generator_RowEvArgName="SPMasterRowChangeEvent" msprop:Generator_TablePropName="SPMaster" msprop:Generator_RowChangedName="SPMasterRowChanged" msprop:Generator_RowChangingName="SPMasterRowChanging" msprop:Generator_TableClassName="SPMasterDataTable" msprop:Generator_UserTableName="SPMaster" msprop:Generator_TableVarName="tableSPMaster">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
|
||||
<xs:element name="CtrlNo" msprop:Generator_ColumnVarNameInTable="columnCtrlNo" msprop:Generator_ColumnPropNameInRow="CtrlNo" msprop:Generator_ColumnPropNameInTable="CtrlNoColumn" msprop:Generator_UserColumnName="CtrlNo" minOccurs="0">
|
||||
<xs:element name="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_UserColumnName="ID" type="xs:int" />
|
||||
<xs:element name="CtrlNo" msprop:Generator_ColumnPropNameInRow="CtrlNo" msprop:Generator_ColumnPropNameInTable="CtrlNoColumn" msprop:Generator_ColumnVarNameInTable="columnCtrlNo" msprop:Generator_UserColumnName="CtrlNo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="SIDNo" msprop:Generator_ColumnVarNameInTable="columnSIDNo" msprop:Generator_ColumnPropNameInRow="SIDNo" msprop:Generator_ColumnPropNameInTable="SIDNoColumn" msprop:Generator_UserColumnName="SIDNo" minOccurs="0">
|
||||
<xs:element name="SIDNo" msprop:Generator_ColumnPropNameInRow="SIDNo" msprop:Generator_ColumnPropNameInTable="SIDNoColumn" msprop:Generator_ColumnVarNameInTable="columnSIDNo" msprop:Generator_UserColumnName="SIDNo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Storage" msprop:Generator_ColumnVarNameInTable="columnStorage" msprop:Generator_ColumnPropNameInRow="Storage" msprop:Generator_ColumnPropNameInTable="StorageColumn" msprop:Generator_UserColumnName="Storage" minOccurs="0">
|
||||
<xs:element name="Storage" msprop:Generator_ColumnPropNameInRow="Storage" msprop:Generator_ColumnPropNameInTable="StorageColumn" msprop:Generator_ColumnVarNameInTable="columnStorage" msprop:Generator_UserColumnName="Storage" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Location" msprop:Generator_ColumnVarNameInTable="columnLocation" msprop:Generator_ColumnPropNameInRow="Location" msprop:Generator_ColumnPropNameInTable="LocationColumn" msprop:Generator_UserColumnName="Location" minOccurs="0">
|
||||
<xs:element name="Location" msprop:Generator_ColumnPropNameInRow="Location" msprop:Generator_ColumnPropNameInTable="LocationColumn" msprop:Generator_ColumnVarNameInTable="columnLocation" msprop:Generator_UserColumnName="Location" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="UseEqmt" msprop:Generator_ColumnVarNameInTable="columnUseEqmt" msprop:Generator_ColumnPropNameInRow="UseEqmt" msprop:Generator_ColumnPropNameInTable="UseEqmtColumn" msprop:Generator_UserColumnName="UseEqmt" minOccurs="0">
|
||||
<xs:element name="UseEqmt" msprop:Generator_ColumnPropNameInRow="UseEqmt" msprop:Generator_ColumnPropNameInTable="UseEqmtColumn" msprop:Generator_ColumnVarNameInTable="columnUseEqmt" msprop:Generator_UserColumnName="UseEqmt" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="PartName" msprop:Generator_ColumnVarNameInTable="columnPartName" msprop:Generator_ColumnPropNameInRow="PartName" msprop:Generator_ColumnPropNameInTable="PartNameColumn" msprop:Generator_UserColumnName="PartName" minOccurs="0">
|
||||
<xs:element name="PartName" msprop:Generator_ColumnPropNameInRow="PartName" msprop:Generator_ColumnPropNameInTable="PartNameColumn" msprop:Generator_ColumnVarNameInTable="columnPartName" msprop:Generator_UserColumnName="PartName" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="PartNo" msprop:Generator_ColumnVarNameInTable="columnPartNo" msprop:Generator_ColumnPropNameInRow="PartNo" msprop:Generator_ColumnPropNameInTable="PartNoColumn" msprop:Generator_UserColumnName="PartNo" minOccurs="0">
|
||||
<xs:element name="PartNo" msprop:Generator_ColumnPropNameInRow="PartNo" msprop:Generator_ColumnPropNameInTable="PartNoColumn" msprop:Generator_ColumnVarNameInTable="columnPartNo" msprop:Generator_UserColumnName="PartNo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Process" msprop:Generator_ColumnVarNameInTable="columnProcess" msprop:Generator_ColumnPropNameInRow="Process" msprop:Generator_ColumnPropNameInTable="ProcessColumn" msprop:Generator_UserColumnName="Process" minOccurs="0">
|
||||
<xs:element name="Process" msprop:Generator_ColumnPropNameInRow="Process" msprop:Generator_ColumnPropNameInTable="ProcessColumn" msprop:Generator_ColumnVarNameInTable="columnProcess" msprop:Generator_UserColumnName="Process" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="SupplierNo" msprop:Generator_ColumnVarNameInTable="columnSupplierNo" msprop:Generator_ColumnPropNameInRow="SupplierNo" msprop:Generator_ColumnPropNameInTable="SupplierNoColumn" msprop:Generator_UserColumnName="SupplierNo" minOccurs="0">
|
||||
<xs:element name="SupplierNo" msprop:Generator_ColumnPropNameInRow="SupplierNo" msprop:Generator_ColumnPropNameInTable="SupplierNoColumn" msprop:Generator_ColumnVarNameInTable="columnSupplierNo" msprop:Generator_UserColumnName="SupplierNo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CurrentQty" msprop:Generator_ColumnVarNameInTable="columnCurrentQty" msprop:Generator_ColumnPropNameInRow="CurrentQty" msprop:Generator_ColumnPropNameInTable="CurrentQtyColumn" msprop:Generator_UserColumnName="CurrentQty" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="MHA" msprop:Generator_ColumnVarNameInTable="columnMHA" msprop:Generator_ColumnPropNameInRow="MHA" msprop:Generator_ColumnPropNameInTable="MHAColumn" msprop:Generator_UserColumnName="MHA" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="Division" msprop:Generator_ColumnVarNameInTable="columnDivision" msprop:Generator_ColumnPropNameInRow="Division" msprop:Generator_ColumnPropNameInTable="DivisionColumn" msprop:Generator_UserColumnName="Division" minOccurs="0">
|
||||
<xs:element name="CurrentQty" msprop:Generator_ColumnPropNameInRow="CurrentQty" msprop:Generator_ColumnPropNameInTable="CurrentQtyColumn" msprop:Generator_ColumnVarNameInTable="columnCurrentQty" msprop:Generator_UserColumnName="CurrentQty" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="MHA" msprop:Generator_ColumnPropNameInRow="MHA" msprop:Generator_ColumnPropNameInTable="MHAColumn" msprop:Generator_ColumnVarNameInTable="columnMHA" msprop:Generator_UserColumnName="MHA" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="Division" msprop:Generator_ColumnPropNameInRow="Division" msprop:Generator_ColumnPropNameInTable="DivisionColumn" msprop:Generator_ColumnVarNameInTable="columnDivision" msprop:Generator_UserColumnName="Division" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="BadQty" msprop:Generator_ColumnVarNameInTable="columnBadQty" msprop:Generator_ColumnPropNameInRow="BadQty" msprop:Generator_ColumnPropNameInTable="BadQtyColumn" msprop:Generator_UserColumnName="BadQty" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="Price" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" msprop:Generator_UserColumnName="Price" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="PriceUnit" msprop:Generator_ColumnVarNameInTable="columnPriceUnit" msprop:Generator_ColumnPropNameInRow="PriceUnit" msprop:Generator_ColumnPropNameInTable="PriceUnitColumn" msprop:Generator_UserColumnName="PriceUnit" minOccurs="0">
|
||||
<xs:element name="BadQty" msprop:Generator_ColumnPropNameInRow="BadQty" msprop:Generator_ColumnPropNameInTable="BadQtyColumn" msprop:Generator_ColumnVarNameInTable="columnBadQty" msprop:Generator_UserColumnName="BadQty" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="Price" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ColumnPropNameInTable="PriceColumn" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_UserColumnName="Price" type="xs:decimal" minOccurs="0" />
|
||||
<xs:element name="PriceUnit" msprop:Generator_ColumnPropNameInRow="PriceUnit" msprop:Generator_ColumnPropNameInTable="PriceUnitColumn" msprop:Generator_ColumnVarNameInTable="columnPriceUnit" msprop:Generator_UserColumnName="PriceUnit" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CostCenter" msprop:Generator_ColumnVarNameInTable="columnCostCenter" msprop:Generator_ColumnPropNameInRow="CostCenter" msprop:Generator_ColumnPropNameInTable="CostCenterColumn" msprop:Generator_UserColumnName="CostCenter" minOccurs="0">
|
||||
<xs:element name="CostCenter" msprop:Generator_ColumnPropNameInRow="CostCenter" msprop:Generator_ColumnPropNameInTable="CostCenterColumn" msprop:Generator_ColumnVarNameInTable="columnCostCenter" msprop:Generator_UserColumnName="CostCenter" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Memo" msprop:Generator_ColumnVarNameInTable="columnMemo" msprop:Generator_ColumnPropNameInRow="Memo" msprop:Generator_ColumnPropNameInTable="MemoColumn" msprop:Generator_UserColumnName="Memo" minOccurs="0">
|
||||
<xs:element name="Memo" msprop:Generator_ColumnPropNameInRow="Memo" msprop:Generator_ColumnPropNameInTable="MemoColumn" msprop:Generator_ColumnVarNameInTable="columnMemo" msprop:Generator_UserColumnName="Memo" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="EnrDate" msprop:Generator_ColumnVarNameInTable="columnEnrDate" msprop:Generator_ColumnPropNameInRow="EnrDate" msprop:Generator_ColumnPropNameInTable="EnrDateColumn" msprop:Generator_UserColumnName="EnrDate" minOccurs="0">
|
||||
<xs:element name="EnrDate" msprop:Generator_ColumnPropNameInRow="EnrDate" msprop:Generator_ColumnPropNameInTable="EnrDateColumn" msprop:Generator_ColumnVarNameInTable="columnEnrDate" msprop:Generator_UserColumnName="EnrDate" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Enrollee" msprop:Generator_ColumnVarNameInTable="columnEnrollee" msprop:Generator_ColumnPropNameInRow="Enrollee" msprop:Generator_ColumnPropNameInTable="EnrolleeColumn" msprop:Generator_UserColumnName="Enrollee" minOccurs="0">
|
||||
<xs:element name="Enrollee" msprop:Generator_ColumnPropNameInRow="Enrollee" msprop:Generator_ColumnPropNameInTable="EnrolleeColumn" msprop:Generator_ColumnVarNameInTable="columnEnrollee" msprop:Generator_UserColumnName="Enrollee" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
@@ -342,10 +342,10 @@ ORDER BY Division</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="DivList" msprop:Generator_TableClassName="DivListDataTable" msprop:Generator_TableVarName="tableDivList" msprop:Generator_RowChangedName="DivListRowChanged" msprop:Generator_TablePropName="DivList" msprop:Generator_RowDeletingName="DivListRowDeleting" msprop:Generator_RowChangingName="DivListRowChanging" msprop:Generator_RowEvHandlerName="DivListRowChangeEventHandler" msprop:Generator_RowDeletedName="DivListRowDeleted" msprop:Generator_RowClassName="DivListRow" msprop:Generator_UserTableName="DivList" msprop:Generator_RowEvArgName="DivListRowChangeEvent">
|
||||
<xs:element name="DivList" msprop:Generator_RowEvHandlerName="DivListRowChangeEventHandler" msprop:Generator_RowDeletedName="DivListRowDeleted" msprop:Generator_RowDeletingName="DivListRowDeleting" msprop:Generator_RowEvArgName="DivListRowChangeEvent" msprop:Generator_TablePropName="DivList" msprop:Generator_RowChangedName="DivListRowChanged" msprop:Generator_RowChangingName="DivListRowChanging" msprop:Generator_TableClassName="DivListDataTable" msprop:Generator_RowClassName="DivListRow" msprop:Generator_TableVarName="tableDivList" msprop:Generator_UserTableName="DivList">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="Division" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Division" msprop:Generator_ColumnVarNameInTable="columnDivision" msprop:Generator_ColumnPropNameInTable="DivisionColumn" msprop:Generator_UserColumnName="Division">
|
||||
<xs:element name="Division" msprop:Generator_ColumnPropNameInTable="DivisionColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="Division" msprop:Generator_UserColumnName="Division" msprop:Generator_ColumnVarNameInTable="columnDivision" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="200" />
|
||||
|
||||
Reference in New Issue
Block a user