10-08
This commit is contained in:
82
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
82
SubProject/FEQ0000/dsPurchase.Designer.cs
generated
@@ -2125,56 +2125,36 @@ SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale,
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid,
|
||||
wdate, import, pumidx, dbo.getCodeName('04', state) AS stateName
|
||||
FROM Purchase
|
||||
WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(request, '') LIKE @request OR
|
||||
ISNULL(receive, '') LIKE @request) AND (ISNULL(state, '') LIKE @state)
|
||||
ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@request", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@state", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "DELETE FROM [Purchase] WHERE import = 1";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = @"SELECT idx, pdate, state, process, receive, sc, request, sid, pumname, pumscale, pumunit, pumqty, pumprice, pumamt, supply, supplyidx, project, projectidx, asset, edate, indate, po, dept, wuid,
|
||||
wdate, import, pumidx, dbo.getCodeName('04', state) AS stateName
|
||||
FROM Purchase
|
||||
where pdate between @sd and @ed
|
||||
ORDER BY pdate DESC, idx DESC";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sd", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ed", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "pdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(dsPurchase.PurchaseDataTable dataTable, string sd, string ed, string request, string state) {
|
||||
public virtual int Fill(dsPurchase.PurchaseDataTable dataTable) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((sd == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
|
||||
}
|
||||
if ((ed == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
||||
}
|
||||
if ((request == null)) {
|
||||
throw new global::System.ArgumentNullException("request");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(request));
|
||||
}
|
||||
if ((state == null)) {
|
||||
throw new global::System.ArgumentNullException("state");
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(state));
|
||||
}
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
@@ -2186,8 +2166,19 @@ ORDER BY pdate DESC, idx DESC";
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual dsPurchase.PurchaseDataTable GetData(string sd, string ed, string request, string state) {
|
||||
public virtual dsPurchase.PurchaseDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
|
||||
public virtual int FillDate(dsPurchase.PurchaseDataTable dataTable, string sd, string ed) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((sd == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -2200,17 +2191,30 @@ ORDER BY pdate DESC, idx DESC";
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
||||
}
|
||||
if ((request == null)) {
|
||||
throw new global::System.ArgumentNullException("request");
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
int returnValue = this.Adapter.Fill(dataTable);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual dsPurchase.PurchaseDataTable GetDate(string sd, string ed) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((sd == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(request));
|
||||
this.Adapter.SelectCommand.Parameters[0].Value = ((string)(sd));
|
||||
}
|
||||
if ((state == null)) {
|
||||
throw new global::System.ArgumentNullException("state");
|
||||
if ((ed == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(state));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(ed));
|
||||
}
|
||||
dsPurchase.PurchaseDataTable dataTable = new dsPurchase.PurchaseDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
|
||||
Reference in New Issue
Block a user