업무일지 리포트 추가

This commit is contained in:
chikyun.kim
2019-05-07 14:11:57 +09:00
parent 1b487e8c5d
commit a9888ebf39
60 changed files with 8953 additions and 10776 deletions

View File

@@ -2220,10 +2220,12 @@ ORDER BY pdate DESC, idx DESC";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "DELETE FROM Purchase\r\nWHERE (import = 1) AND (pdate BETWEEN @sd AND @ed)";
this._commandCollection[1].CommandText = "DELETE FROM Purchase\r\nWHERE (import = 1) AND (pdate BETWEEN @sd AND @ed) AND (wu" +
"id = @userid)";
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1].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.Original, false, null, "", "", ""));
this._commandCollection[1].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.Original, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@userid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = @"SELECT asset, bigo, dept, edate, idx, import, indate, isdel, manuproc, orderno, pdate, po, process, project, projectidx, pumamt, pumidx, pumname, pumprice, pumqty, pumscale, pumunit, receive, request, sc, sid, state, supply, supplyidx, wdate, wuid FROM Purchase WHERE (pdate BETWEEN @sd AND @ed) AND (ISNULL(isdel, 0) = 0) ORDER BY pdate DESC, idx DESC";
@@ -3039,7 +3041,7 @@ ORDER BY pdate DESC, idx DESC";
[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")]
public virtual int DeleteImport(string sd, string ed) {
public virtual int DeleteImport(string sd, string ed, string userid) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((sd == null)) {
command.Parameters[0].Value = global::System.DBNull.Value;
@@ -3053,6 +3055,12 @@ ORDER BY pdate DESC, idx DESC";
else {
command.Parameters[1].Value = ((string)(ed));
}
if ((userid == null)) {
throw new global::System.ArgumentNullException("userid");
}
else {
command.Parameters[2].Value = ((string)(userid));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {