sid 목록 가져오기 기능 . 일부 수정

This commit is contained in:
chi
2020-06-05 08:09:44 +09:00
parent 96d6628404
commit 2053ff952b
10 changed files with 1511 additions and 1223 deletions

View File

@@ -9823,7 +9823,7 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() { private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp" + this._commandCollection[0].CommandText = "SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp" +
@@ -9846,7 +9846,14 @@ SELECT idx, name, sid, model, manu, supply, price, memo, wuid, wdate, cate, supp
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection; this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid this._commandCollection[3].CommandText = "SELECT COUNT(*) FROM Items\r\nwhere gcode = @gcode and sid = @sid and isnull(sid,\'\'" +
") <> \'\'";
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "sid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid
FROM Items FROM Items
WHERE (sid IN WHERE (sid IN
(SELECT sid (SELECT sid
@@ -9854,43 +9861,43 @@ WHERE (sid IN
GROUP BY sid GROUP BY sid
HAVING (COUNT(*) > 1))) AND (ISNULL(sid, '') <> '') AND (gcode = @gcode) AND (ISNULL(cate, '') LIKE @cate) HAVING (COUNT(*) > 1))) AND (ISNULL(sid, '') <> '') AND (gcode = @gcode) AND (ISNULL(cate, '') LIKE @cate)
ORDER BY sid, name, idx"; ORDER BY sid, name, idx";
this._commandCollection[3].CommandType = global::System.Data.CommandType.Text; this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection; this._commandCollection[5].Connection = this.Connection;
this._commandCollection[4].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid this._commandCollection[5].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid
FROM Items FROM Items
WHERE (gcode = @code) AND (ISNULL(cate, N'') LIKE @cate) AND (ISNULL(name, N'') LIKE @search OR WHERE (gcode = @code) AND (ISNULL(cate, N'') LIKE @cate) AND (ISNULL(name, N'') LIKE @search OR
ISNULL(model, N'') LIKE @search OR ISNULL(model, N'') LIKE @search OR
ISNULL(sid, N'') LIKE @search OR ISNULL(sid, N'') LIKE @search OR
ISNULL(manu, N'') LIKE @search) ISNULL(manu, N'') LIKE @search)
ORDER BY name, idx"; ORDER BY name, idx";
this._commandCollection[4].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
this._commandCollection[5].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (ISNULL(name, N'') LIKE @search OR ISNULL(sid, N'') LIKE @search OR ISNULL(manu, N'') LIKE @search OR ISNULL(supply, N'') LIKE @search OR ISNULL(model, N'') LIKE @search OR ISNULL(memo, N'') LIKE @search) AND (gcode = @gcode) ORDER BY name, idx";
this._commandCollection[5].CommandType = global::System.Data.CommandType.Text; this._commandCollection[5].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cate", global::System.Data.SqlDbType.VarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[6].Connection = this.Connection; this._commandCollection[6].Connection = this.Connection;
this._commandCollection[6].CommandText = "SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, na" + this._commandCollection[6].CommandText = @"SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, name, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (ISNULL(name, N'') LIKE @search OR ISNULL(sid, N'') LIKE @search OR ISNULL(manu, N'') LIKE @search OR ISNULL(supply, N'') LIKE @search OR ISNULL(model, N'') LIKE @search OR ISNULL(memo, N'') LIKE @search) AND (gcode = @gcode) ORDER BY name, idx";
"me, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (id" +
"x = @idx)";
this._commandCollection[6].CommandType = global::System.Data.CommandType.Text; this._commandCollection[6].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@search", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection; this._commandCollection[7].Connection = this.Connection;
this._commandCollection[7].CommandText = "SELECT ISNULL(idx, - 1) AS Expr1\r\nFROM Items\r\nWHERE (gcode = @gcode) AND (I" + this._commandCollection[7].CommandText = "SELECT bparam1, cate, disable, gcode, idx, import, iparam1, manu, memo, model, na" +
"SNULL(name, N\'\') = @name) AND (ISNULL(model, N\'\') = @model)"; "me, price, scale, sid, supply, supplyidx, unit, wdate, wuid FROM Items WHERE (id" +
"x = @idx)";
this._commandCollection[7].CommandType = global::System.Data.CommandType.Text; this._commandCollection[7].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@model", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8].Connection = this.Connection;
this._commandCollection[8].CommandText = "SELECT ISNULL(idx, - 1) AS Expr1\r\nFROM Items\r\nWHERE (gcode = @gcode) AND (I" +
"SNULL(name, N\'\') = @name) AND (ISNULL(model, N\'\') = @model)";
this._commandCollection[8].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@model", global::System.Data.SqlDbType.NVarChar, 1024, global::System.Data.ParameterDirection.Input, 0, 0, "", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9934,7 +9941,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillDupCheck(dsMSSQL.ItemsDataTable dataTable, string gcode, string cate) { public virtual int FillDupCheck(dsMSSQL.ItemsDataTable dataTable, string gcode, string cate) {
this.Adapter.SelectCommand = this.CommandCollection[3]; this.Adapter.SelectCommand = this.CommandCollection[4];
if ((gcode == null)) { if ((gcode == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
@@ -9959,7 +9966,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.ItemsDataTable GetDupCheck(string gcode, string cate) { public virtual dsMSSQL.ItemsDataTable GetDupCheck(string gcode, string cate) {
this.Adapter.SelectCommand = this.CommandCollection[3]; this.Adapter.SelectCommand = this.CommandCollection[4];
if ((gcode == null)) { if ((gcode == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
@@ -9982,7 +9989,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillNoImage(dsMSSQL.ItemsDataTable dataTable, string code, string cate, string search) { public virtual int FillNoImage(dsMSSQL.ItemsDataTable dataTable, string code, string cate, string search) {
this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand = this.CommandCollection[5];
if ((code == null)) { if ((code == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
@@ -10013,7 +10020,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.ItemsDataTable GetNoImage(string code, string cate, string search) { public virtual dsMSSQL.ItemsDataTable GetNoImage(string code, string cate, string search) {
this.Adapter.SelectCommand = this.CommandCollection[4]; this.Adapter.SelectCommand = this.CommandCollection[5];
if ((code == null)) { if ((code == null)) {
this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value;
} }
@@ -10042,7 +10049,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, false)]
public virtual int FillSearch(dsMSSQL.ItemsDataTable dataTable, string search, string gcode) { public virtual int FillSearch(dsMSSQL.ItemsDataTable dataTable, string search, string gcode) {
this.Adapter.SelectCommand = this.CommandCollection[5]; this.Adapter.SelectCommand = this.CommandCollection[6];
if ((search == null)) { if ((search == null)) {
throw new global::System.ArgumentNullException("search"); throw new global::System.ArgumentNullException("search");
} }
@@ -10067,7 +10074,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.ItemsDataTable GetSearch(string search, string gcode) { public virtual dsMSSQL.ItemsDataTable GetSearch(string search, string gcode) {
this.Adapter.SelectCommand = this.CommandCollection[5]; this.Adapter.SelectCommand = this.CommandCollection[6];
if ((search == null)) { if ((search == null)) {
throw new global::System.ArgumentNullException("search"); throw new global::System.ArgumentNullException("search");
} }
@@ -10090,7 +10097,7 @@ ORDER BY name, idx";
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual dsMSSQL.ItemsDataTable GetbyIDX(int idx) { public virtual dsMSSQL.ItemsDataTable GetbyIDX(int idx) {
this.Adapter.SelectCommand = this.CommandCollection[6]; this.Adapter.SelectCommand = this.CommandCollection[7];
this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx)); this.Adapter.SelectCommand.Parameters[0].Value = ((int)(idx));
dsMSSQL.ItemsDataTable dataTable = new dsMSSQL.ItemsDataTable(); dsMSSQL.ItemsDataTable dataTable = new dsMSSQL.ItemsDataTable();
this.Adapter.Fill(dataTable); this.Adapter.Fill(dataTable);
@@ -10510,11 +10517,51 @@ ORDER BY name, idx";
} }
} }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual global::System.Nullable<int> ExistSID(string gcode, string sid) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((gcode == null)) {
command.Parameters[0].Value = global::System.DBNull.Value;
}
else {
command.Parameters[0].Value = ((string)(gcode));
}
if ((sid == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(sid));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
object returnValue;
try {
returnValue = command.ExecuteScalar();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
if (((returnValue == null)
|| (returnValue.GetType() == typeof(global::System.DBNull)))) {
return new global::System.Nullable<int>();
}
else {
return new global::System.Nullable<int>(((int)(returnValue)));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual global::System.Nullable<int> ReadIDX(string gcode, string name, string model) { public virtual global::System.Nullable<int> ReadIDX(string gcode, string name, string model) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8];
if ((gcode == null)) { if ((gcode == null)) {
command.Parameters[0].Value = global::System.DBNull.Value; command.Parameters[0].Value = global::System.DBNull.Value;
} }

View File

@@ -144,6 +144,18 @@ where gcode = @gcode and isnull(replace(name,' ','') + replace(model,' ',''),'')
</DbCommand> </DbCommand>
</SelectCommand> </SelectCommand>
</DbSource> </DbSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="ExistSID" Modifier="Public" Name="ExistSID" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="ExistSID">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT COUNT(*) FROM Items
where gcode = @gcode and sid = @sid and isnull(sid,'') &lt;&gt; ''</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.Items" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="sid" ColumnName="sid" DataSourceName="EE.dbo.Items" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@sid" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="sid" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Items" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillDupCheck" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDupCheck" GeneratorSourceName="FillDupCheck" GetMethodModifier="Public" GetMethodName="GetDupCheck" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDupCheck" UserSourceName="FillDupCheck"> <DbSource ConnectionRef="gwcs (Settings)" DbObjectName="GroupWare.dbo.Items" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillDupCheck" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDupCheck" GeneratorSourceName="FillDupCheck" GetMethodModifier="Public" GetMethodName="GetDupCheck" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDupCheck" UserSourceName="FillDupCheck">
<SelectCommand> <SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true"> <DbCommand CommandType="Text" ModifiedByUser="true">
@@ -1423,7 +1435,7 @@ ORDER BY pdate</CommandText>
<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_DataSetName="dsMSSQL" msprop:Generator_UserDSName="dsMSSQL">
<xs:complexType> <xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Items" msprop:Generator_TableClassName="ItemsDataTable" msprop:Generator_TableVarName="tableItems" msprop:Generator_TablePropName="Items" msprop:Generator_RowDeletingName="ItemsRowDeleting" msprop:Generator_RowChangingName="ItemsRowChanging" msprop:Generator_RowEvHandlerName="ItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="ItemsRowDeleted" msprop:Generator_UserTableName="Items" msprop:Generator_RowChangedName="ItemsRowChanged" msprop:Generator_RowEvArgName="ItemsRowChangeEvent" msprop:Generator_RowClassName="ItemsRow"> <xs:element name="Items" msprop:Generator_TableClassName="ItemsDataTable" msprop:Generator_TableVarName="tableItems" msprop:Generator_RowChangedName="ItemsRowChanged" msprop:Generator_TablePropName="Items" msprop:Generator_RowDeletingName="ItemsRowDeleting" msprop:Generator_RowChangingName="ItemsRowChanging" msprop:Generator_RowEvHandlerName="ItemsRowChangeEventHandler" msprop:Generator_RowDeletedName="ItemsRowDeleted" msprop:Generator_RowClassName="ItemsRow" msprop:Generator_UserTableName="Items" msprop:Generator_RowEvArgName="ItemsRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1514,7 +1526,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Common" msprop:Generator_TableClassName="CommonDataTable" msprop:Generator_TableVarName="tableCommon" msprop:Generator_TablePropName="Common" msprop:Generator_RowDeletingName="CommonRowDeleting" msprop:Generator_RowChangingName="CommonRowChanging" msprop:Generator_RowEvHandlerName="CommonRowChangeEventHandler" msprop:Generator_RowDeletedName="CommonRowDeleted" msprop:Generator_UserTableName="Common" msprop:Generator_RowChangedName="CommonRowChanged" msprop:Generator_RowEvArgName="CommonRowChangeEvent" msprop:Generator_RowClassName="CommonRow"> <xs:element name="Common" msprop:Generator_TableClassName="CommonDataTable" msprop:Generator_TableVarName="tableCommon" msprop:Generator_RowChangedName="CommonRowChanged" msprop:Generator_TablePropName="Common" msprop:Generator_RowDeletingName="CommonRowDeleting" msprop:Generator_RowChangingName="CommonRowChanging" msprop:Generator_RowEvHandlerName="CommonRowChangeEventHandler" msprop:Generator_RowDeletedName="CommonRowDeleted" msprop:Generator_RowClassName="CommonRow" msprop:Generator_UserTableName="Common" msprop:Generator_RowEvArgName="CommonRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1566,7 +1578,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_UserTableName="Board" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_RowEvArgName="BoardRowChangeEvent" msprop:Generator_RowClassName="BoardRow"> <xs:element name="Board" msprop:Generator_TableClassName="BoardDataTable" msprop:Generator_TableVarName="tableBoard" msprop:Generator_RowChangedName="BoardRowChanged" msprop:Generator_TablePropName="Board" msprop:Generator_RowDeletingName="BoardRowDeleting" msprop:Generator_RowChangingName="BoardRowChanging" msprop:Generator_RowEvHandlerName="BoardRowChangeEventHandler" msprop:Generator_RowDeletedName="BoardRowDeleted" msprop:Generator_RowClassName="BoardRow" msprop:Generator_UserTableName="Board" msprop:Generator_RowEvArgName="BoardRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1634,7 +1646,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="RequestItem" msprop:Generator_TableClassName="RequestItemDataTable" msprop:Generator_TableVarName="tableRequestItem" msprop:Generator_TablePropName="RequestItem" msprop:Generator_RowDeletingName="RequestItemRowDeleting" msprop:Generator_RowChangingName="RequestItemRowChanging" msprop:Generator_RowEvHandlerName="RequestItemRowChangeEventHandler" msprop:Generator_RowDeletedName="RequestItemRowDeleted" msprop:Generator_UserTableName="RequestItem" msprop:Generator_RowChangedName="RequestItemRowChanged" msprop:Generator_RowEvArgName="RequestItemRowChangeEvent" msprop:Generator_RowClassName="RequestItemRow"> <xs:element name="RequestItem" msprop:Generator_TableClassName="RequestItemDataTable" msprop:Generator_TableVarName="tableRequestItem" msprop:Generator_RowChangedName="RequestItemRowChanged" msprop:Generator_TablePropName="RequestItem" msprop:Generator_RowDeletingName="RequestItemRowDeleting" msprop:Generator_RowChangingName="RequestItemRowChanging" msprop:Generator_RowEvHandlerName="RequestItemRowChangeEventHandler" msprop:Generator_RowDeletedName="RequestItemRowDeleted" msprop:Generator_RowClassName="RequestItemRow" msprop:Generator_UserTableName="RequestItem" msprop:Generator_RowEvArgName="RequestItemRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1723,7 +1735,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Customs" msprop:Generator_TableClassName="CustomsDataTable" msprop:Generator_TableVarName="tableCustoms" msprop:Generator_TablePropName="Customs" msprop:Generator_RowDeletingName="CustomsRowDeleting" msprop:Generator_RowChangingName="CustomsRowChanging" msprop:Generator_RowEvHandlerName="CustomsRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomsRowDeleted" msprop:Generator_UserTableName="Customs" msprop:Generator_RowChangedName="CustomsRowChanged" msprop:Generator_RowEvArgName="CustomsRowChangeEvent" msprop:Generator_RowClassName="CustomsRow"> <xs:element name="Customs" msprop:Generator_TableClassName="CustomsDataTable" msprop:Generator_TableVarName="tableCustoms" msprop:Generator_RowChangedName="CustomsRowChanged" msprop:Generator_TablePropName="Customs" msprop:Generator_RowDeletingName="CustomsRowDeleting" msprop:Generator_RowChangingName="CustomsRowChanging" msprop:Generator_RowEvHandlerName="CustomsRowChangeEventHandler" msprop:Generator_RowDeletedName="CustomsRowDeleted" msprop:Generator_RowClassName="CustomsRow" msprop:Generator_UserTableName="Customs" msprop:Generator_RowEvArgName="CustomsRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1836,7 +1848,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Staff" msprop:Generator_TableClassName="StaffDataTable" msprop:Generator_TableVarName="tableStaff" msprop:Generator_TablePropName="Staff" msprop:Generator_RowDeletingName="StaffRowDeleting" msprop:Generator_RowChangingName="StaffRowChanging" msprop:Generator_RowEvHandlerName="StaffRowChangeEventHandler" msprop:Generator_RowDeletedName="StaffRowDeleted" msprop:Generator_UserTableName="Staff" msprop:Generator_RowChangedName="StaffRowChanged" msprop:Generator_RowEvArgName="StaffRowChangeEvent" msprop:Generator_RowClassName="StaffRow"> <xs:element name="Staff" msprop:Generator_TableClassName="StaffDataTable" msprop:Generator_TableVarName="tableStaff" msprop:Generator_RowChangedName="StaffRowChanged" msprop:Generator_TablePropName="Staff" msprop:Generator_RowDeletingName="StaffRowDeleting" msprop:Generator_RowChangingName="StaffRowChanging" msprop:Generator_RowEvHandlerName="StaffRowChangeEventHandler" msprop:Generator_RowDeletedName="StaffRowDeleted" msprop:Generator_RowClassName="StaffRow" msprop:Generator_UserTableName="Staff" msprop:Generator_RowEvArgName="StaffRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -1901,7 +1913,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent" msprop:Generator_RowClassName="PurchaseRow"> <xs:element name="Purchase" msprop:Generator_TableClassName="PurchaseDataTable" msprop:Generator_TableVarName="tablePurchase" msprop:Generator_RowChangedName="PurchaseRowChanged" msprop:Generator_TablePropName="Purchase" msprop:Generator_RowDeletingName="PurchaseRowDeleting" msprop:Generator_RowChangingName="PurchaseRowChanging" msprop:Generator_RowEvHandlerName="PurchaseRowChangeEventHandler" msprop:Generator_RowDeletedName="PurchaseRowDeleted" msprop:Generator_RowClassName="PurchaseRow" msprop:Generator_UserTableName="Purchase" msprop:Generator_RowEvArgName="PurchaseRowChangeEvent">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -2042,7 +2054,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_RowClassName="ProjectsRow" msprop:Generator_UserTableName="Projects" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent"> <xs:element name="Projects" msprop:Generator_TableClassName="ProjectsDataTable" msprop:Generator_TableVarName="tableProjects" msprop:Generator_TablePropName="Projects" msprop:Generator_RowDeletingName="ProjectsRowDeleting" msprop:Generator_RowChangingName="ProjectsRowChanging" msprop:Generator_RowEvHandlerName="ProjectsRowChangeEventHandler" msprop:Generator_RowDeletedName="ProjectsRowDeleted" msprop:Generator_UserTableName="Projects" msprop:Generator_RowChangedName="ProjectsRowChanged" msprop:Generator_RowEvArgName="ProjectsRowChangeEvent" msprop:Generator_RowClassName="ProjectsRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="ddate" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ddate" msprop:Generator_ColumnVarNameInTable="columnddate" msprop:Generator_ColumnPropNameInTable="ddateColumn" msprop:Generator_UserColumnName="ddate" minOccurs="0"> <xs:element name="ddate" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="ddate" msprop:Generator_ColumnVarNameInTable="columnddate" msprop:Generator_ColumnPropNameInTable="ddateColumn" msprop:Generator_UserColumnName="ddate" minOccurs="0">
@@ -2141,7 +2153,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="HolidayLIst" msprop:Generator_TableClassName="HolidayLIstDataTable" msprop:Generator_TableVarName="tableHolidayLIst" msprop:Generator_RowChangedName="HolidayLIstRowChanged" msprop:Generator_TablePropName="HolidayLIst" msprop:Generator_RowDeletingName="HolidayLIstRowDeleting" msprop:Generator_RowChangingName="HolidayLIstRowChanging" msprop:Generator_RowEvHandlerName="HolidayLIstRowChangeEventHandler" msprop:Generator_RowDeletedName="HolidayLIstRowDeleted" msprop:Generator_RowClassName="HolidayLIstRow" msprop:Generator_UserTableName="HolidayLIst" msprop:Generator_RowEvArgName="HolidayLIstRowChangeEvent"> <xs:element name="HolidayLIst" msprop:Generator_TableClassName="HolidayLIstDataTable" msprop:Generator_TableVarName="tableHolidayLIst" msprop:Generator_TablePropName="HolidayLIst" msprop:Generator_RowDeletingName="HolidayLIstRowDeleting" msprop:Generator_RowChangingName="HolidayLIstRowChanging" msprop:Generator_RowEvHandlerName="HolidayLIstRowChangeEventHandler" msprop:Generator_RowDeletedName="HolidayLIstRowDeleted" msprop:Generator_UserTableName="HolidayLIst" msprop:Generator_RowChangedName="HolidayLIstRowChanged" msprop:Generator_RowEvArgName="HolidayLIstRowChangeEvent" msprop:Generator_RowClassName="HolidayLIstRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />
@@ -2171,7 +2183,7 @@ ORDER BY pdate</CommandText>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
<xs:element name="InventoryUser" msprop:Generator_TableClassName="InventoryUserDataTable" msprop:Generator_TableVarName="tableInventoryUser" msprop:Generator_RowChangedName="InventoryUserRowChanged" msprop:Generator_TablePropName="InventoryUser" msprop:Generator_RowDeletingName="InventoryUserRowDeleting" msprop:Generator_RowChangingName="InventoryUserRowChanging" msprop:Generator_RowEvHandlerName="InventoryUserRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryUserRowDeleted" msprop:Generator_RowClassName="InventoryUserRow" msprop:Generator_UserTableName="InventoryUser" msprop:Generator_RowEvArgName="InventoryUserRowChangeEvent"> <xs:element name="InventoryUser" msprop:Generator_TableClassName="InventoryUserDataTable" msprop:Generator_TableVarName="tableInventoryUser" msprop:Generator_TablePropName="InventoryUser" msprop:Generator_RowDeletingName="InventoryUserRowDeleting" msprop:Generator_RowChangingName="InventoryUserRowChanging" msprop:Generator_RowEvHandlerName="InventoryUserRowChangeEventHandler" msprop:Generator_RowDeletedName="InventoryUserRowDeleted" msprop:Generator_UserTableName="InventoryUser" msprop:Generator_RowChangedName="InventoryUserRowChanged" msprop:Generator_RowEvArgName="InventoryUserRowChangeEvent" msprop:Generator_RowClassName="InventoryUserRow">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" /> <xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidx" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_UserColumnName="idx" type="xs:int" />

View File

@@ -6,7 +6,7 @@
</autogenerated>--> </autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-12" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> <DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-12" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes> <Shapes>
<Shape ID="DesignTable:Items" ZOrder="10" X="48" Y="30" Height="647" Width="291" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="387" /> <Shape ID="DesignTable:Items" ZOrder="10" X="48" Y="30" Height="647" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="387" />
<Shape ID="DesignTable:Common" ZOrder="9" X="431" Y="70" Height="267" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" /> <Shape ID="DesignTable:Common" ZOrder="9" X="431" Y="70" Height="267" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:Board" ZOrder="8" X="982" Y="70" Height="305" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:Board" ZOrder="8" X="982" Y="70" Height="305" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:RequestItem" ZOrder="7" X="1499" Y="70" Height="324" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" /> <Shape ID="DesignTable:RequestItem" ZOrder="7" X="1499" Y="70" Height="324" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />

View File

@@ -36,6 +36,11 @@
this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.nudDispRowMin = new System.Windows.Forms.NumericUpDown();
this.nudDispRowMax = new System.Windows.Forms.NumericUpDown();
this.label8 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox(); this.checkBox1 = new System.Windows.Forms.CheckBox();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
@@ -47,10 +52,12 @@
this.nudE = new System.Windows.Forms.NumericUpDown(); this.nudE = new System.Windows.Forms.NumericUpDown();
this.nudS = new System.Windows.Forms.NumericUpDown(); this.nudS = new System.Windows.Forms.NumericUpDown();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.nudSheetNo = new System.Windows.Forms.NumericUpDown();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.bn = new System.Windows.Forms.BindingNavigator(this.components); this.bn = new System.Windows.Forms.BindingNavigator(this.components);
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FCM0000.dsMSSQL();
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel(); this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
@@ -61,19 +68,18 @@
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.progressBar1 = new System.Windows.Forms.ToolStripProgressBar();
this.bs = new System.Windows.Forms.BindingSource(this.components);
this.dsMSSQL = new FCM0000.dsMSSQL();
this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter(); this.ta = new FCM0000.dsMSSQLTableAdapters.ItemsTableAdapter();
this.textBox2 = new System.Windows.Forms.TextBox(); this.progressBar1 = new System.Windows.Forms.ProgressBar();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nudDispRowMin)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudDispRowMax)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudCE)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCE)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudCS)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCS)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudE)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudE)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nudS)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudS)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.nudSheetNo)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout(); this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
@@ -86,6 +92,7 @@
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(170, 21); this.textBox1.Size = new System.Drawing.Size(170, 21);
this.textBox1.TabIndex = 1; this.textBox1.TabIndex = 1;
this.textBox1.Text = "d:\\temp\\SIDList.xlsx";
// //
// linkLabel1 // linkLabel1
// //
@@ -121,7 +128,7 @@
// //
// button3 // button3
// //
this.button3.Location = new System.Drawing.Point(525, 35); this.button3.Location = new System.Drawing.Point(457, 65);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(102, 21); this.button3.Size = new System.Drawing.Size(102, 21);
this.button3.TabIndex = 6; this.button3.TabIndex = 6;
@@ -131,6 +138,10 @@
// //
// panel1 // panel1
// //
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.nudDispRowMin);
this.panel1.Controls.Add(this.nudDispRowMax);
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.textBox2); this.panel1.Controls.Add(this.textBox2);
this.panel1.Controls.Add(this.checkBox1); this.panel1.Controls.Add(this.checkBox1);
this.panel1.Controls.Add(this.numericUpDown2); this.panel1.Controls.Add(this.numericUpDown2);
@@ -143,7 +154,7 @@
this.panel1.Controls.Add(this.nudE); this.panel1.Controls.Add(this.nudE);
this.panel1.Controls.Add(this.nudS); this.panel1.Controls.Add(this.nudS);
this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.numericUpDown1); this.panel1.Controls.Add(this.nudSheetNo);
this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.button3); this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.textBox1); this.panel1.Controls.Add(this.textBox1);
@@ -156,10 +167,72 @@
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint); this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
// //
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(455, 40);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(14, 12);
this.label7.TabIndex = 24;
this.label7.Text = "~";
//
// nudDispRowMin
//
this.nudDispRowMin.Location = new System.Drawing.Point(406, 36);
this.nudDispRowMin.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.nudDispRowMin.Name = "nudDispRowMin";
this.nudDispRowMin.Size = new System.Drawing.Size(45, 21);
this.nudDispRowMin.TabIndex = 23;
this.nudDispRowMin.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudDispRowMin.Value = new decimal(new int[] {
2,
0,
0,
0});
//
// nudDispRowMax
//
this.nudDispRowMax.Location = new System.Drawing.Point(474, 36);
this.nudDispRowMax.Maximum = new decimal(new int[] {
65535,
0,
0,
0});
this.nudDispRowMax.Name = "nudDispRowMax";
this.nudDispRowMax.Size = new System.Drawing.Size(45, 21);
this.nudDispRowMax.TabIndex = 22;
this.nudDispRowMax.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudDispRowMax.Value = new decimal(new int[] {
20,
0,
0,
0});
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(284, 40);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(115, 12);
this.label8.TabIndex = 21;
this.label8.Text = "Row(Display) Rage";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(646, 13);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(170, 21);
this.textBox2.TabIndex = 20;
this.textBox2.Text = "D";
//
// checkBox1 // checkBox1
// //
this.checkBox1.AutoSize = true; this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(474, 66); this.checkBox1.Location = new System.Drawing.Point(324, 67);
this.checkBox1.Name = "checkBox1"; this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(127, 16); this.checkBox1.Size = new System.Drawing.Size(127, 16);
this.checkBox1.TabIndex = 19; this.checkBox1.TabIndex = 19;
@@ -168,7 +241,7 @@
// //
// numericUpDown2 // numericUpDown2
// //
this.numericUpDown2.Location = new System.Drawing.Point(406, 63); this.numericUpDown2.Location = new System.Drawing.Point(193, 36);
this.numericUpDown2.Maximum = new decimal(new int[] { this.numericUpDown2.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
@@ -187,7 +260,7 @@
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(312, 67); this.label6.Location = new System.Drawing.Point(99, 40);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(87, 12); this.label6.Size = new System.Drawing.Size(87, 12);
this.label6.TabIndex = 17; this.label6.TabIndex = 17;
@@ -250,7 +323,7 @@
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(455, 40); this.label3.Location = new System.Drawing.Point(195, 69);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(14, 12); this.label3.Size = new System.Drawing.Size(14, 12);
this.label3.TabIndex = 10; this.label3.TabIndex = 10;
@@ -258,14 +331,14 @@
// //
// nudE // nudE
// //
this.nudE.Location = new System.Drawing.Point(474, 36); this.nudE.Location = new System.Drawing.Point(215, 65);
this.nudE.Maximum = new decimal(new int[] { this.nudE.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
0, 0,
0}); 0});
this.nudE.Name = "nudE"; this.nudE.Name = "nudE";
this.nudE.Size = new System.Drawing.Size(45, 21); this.nudE.Size = new System.Drawing.Size(91, 21);
this.nudE.TabIndex = 9; this.nudE.TabIndex = 9;
this.nudE.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.nudE.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.nudE.Value = new decimal(new int[] { this.nudE.Value = new decimal(new int[] {
@@ -276,7 +349,7 @@
// //
// nudS // nudS
// //
this.nudS.Location = new System.Drawing.Point(406, 36); this.nudS.Location = new System.Drawing.Point(146, 65);
this.nudS.Maximum = new decimal(new int[] { this.nudS.Maximum = new decimal(new int[] {
65535, 65535,
0, 0,
@@ -295,24 +368,24 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(329, 40); this.label2.Location = new System.Drawing.Point(39, 69);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(70, 12); this.label2.Size = new System.Drawing.Size(101, 12);
this.label2.TabIndex = 7; this.label2.TabIndex = 7;
this.label2.Text = "Row Range"; this.label2.Text = "Row(Save) Rage";
// //
// numericUpDown1 // numericUpDown1
// //
this.numericUpDown1.Location = new System.Drawing.Point(261, 9); this.nudSheetNo.Location = new System.Drawing.Point(261, 9);
this.numericUpDown1.Maximum = new decimal(new int[] { this.nudSheetNo.Maximum = new decimal(new int[] {
10, 10,
0, 0,
0, 0,
0}); 0});
this.numericUpDown1.Name = "numericUpDown1"; this.nudSheetNo.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(45, 21); this.nudSheetNo.Size = new System.Drawing.Size(45, 21);
this.numericUpDown1.TabIndex = 3; this.nudSheetNo.TabIndex = 3;
this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.nudSheetNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
// //
// label1 // label1
// //
@@ -341,8 +414,7 @@
this.bindingNavigatorMoveLastItem, this.bindingNavigatorMoveLastItem,
this.bindingNavigatorSeparator2, this.bindingNavigatorSeparator2,
this.bindingNavigatorAddNewItem, this.bindingNavigatorAddNewItem,
this.bindingNavigatorDeleteItem, this.bindingNavigatorDeleteItem});
this.progressBar1});
this.bn.Location = new System.Drawing.Point(0, 632); this.bn.Location = new System.Drawing.Point(0, 632);
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem; this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem; this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
@@ -363,6 +435,16 @@
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22); this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
this.bindingNavigatorAddNewItem.Text = "새로 추가"; this.bindingNavigatorAddNewItem.Text = "새로 추가";
// //
// bs
//
this.bs.DataMember = "Items";
this.bs.DataSource = this.dsMSSQL;
//
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// bindingNavigatorCountItem // bindingNavigatorCountItem
// //
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem"; this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
@@ -439,39 +521,24 @@
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2"; this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25); this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
// //
// progressBar1
//
this.progressBar1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(200, 22);
//
// bs
//
this.bs.DataMember = "Items";
this.bs.DataSource = this.dsMSSQL;
//
// dsMSSQL
//
this.dsMSSQL.DataSetName = "dsMSSQL";
this.dsMSSQL.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// ta // ta
// //
this.ta.ClearBeforeFill = true; this.ta.ClearBeforeFill = true;
// //
// textBox2 // progressBar1
// //
this.textBox2.Location = new System.Drawing.Point(646, 13); this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.textBox2.Name = "textBox2"; this.progressBar1.Location = new System.Drawing.Point(0, 616);
this.textBox2.Size = new System.Drawing.Size(170, 21); this.progressBar1.Name = "progressBar1";
this.textBox2.TabIndex = 20; this.progressBar1.Size = new System.Drawing.Size(906, 16);
this.textBox2.Text = "D"; this.progressBar1.TabIndex = 3;
// //
// fMaterial_Import // fMaterial_Import
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(906, 657); this.ClientSize = new System.Drawing.Size(906, 657);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.dataGridView1); this.Controls.Add(this.dataGridView1);
this.Controls.Add(this.bn); this.Controls.Add(this.bn);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
@@ -481,12 +548,14 @@
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.nudDispRowMin)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudDispRowMax)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudCE)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCE)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudCS)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudCS)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudE)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudE)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nudS)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudS)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.nudSheetNo)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bn)).EndInit();
this.bn.ResumeLayout(false); this.bn.ResumeLayout(false);
this.bn.PerformLayout(); this.bn.PerformLayout();
@@ -517,10 +586,9 @@
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem; private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2; private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
private System.Windows.Forms.ToolStripProgressBar progressBar1;
private System.Windows.Forms.BindingSource bs; private System.Windows.Forms.BindingSource bs;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.NumericUpDown numericUpDown1; private System.Windows.Forms.NumericUpDown nudSheetNo;
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.NumericUpDown nudE; private System.Windows.Forms.NumericUpDown nudE;
@@ -535,5 +603,10 @@
private dsMSSQL dsMSSQL; private dsMSSQL dsMSSQL;
private dsMSSQLTableAdapters.ItemsTableAdapter ta; private dsMSSQLTableAdapters.ItemsTableAdapter ta;
private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.NumericUpDown nudDispRowMin;
private System.Windows.Forms.NumericUpDown nudDispRowMax;
private System.Windows.Forms.Label label8;
} }
} }

View File

@@ -42,16 +42,18 @@ namespace FCM0000
textBox1.Text = od.FileName; textBox1.Text = od.FileName;
} }
libxl.Book book;// = new libxl.BinBook();
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
int ColumnNameNo = (int)numericUpDown2.Value; int ColumnNameNo = (int)numericUpDown2.Value;
if(textBox1.Text.isEmpty()) if (textBox1.Text.isEmpty())
{ {
FCOMMON.Util.MsgE("파일을 선택하세요"); FCOMMON.Util.MsgE("파일을 선택하세요");
textBox1.Focus(); textBox1.Focus();
return; return;
} }
if(!System.IO.File.Exists(textBox1.Text)) if (!System.IO.File.Exists(textBox1.Text))
{ {
FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다."); FCOMMON.Util.MsgE("입력하신 파일이 존재하지 않습니다.");
textBox1.Focus(); textBox1.Focus();
@@ -63,29 +65,33 @@ namespace FCM0000
dtExcel.Rows.Clear(); dtExcel.Rows.Clear();
dtExcel.AcceptChanges(); dtExcel.AcceptChanges();
dtExcel.Columns.Add("SID"); dtExcel.Columns.Add("SID");
dtExcel.Columns.Add("Cate"); dtExcel.Columns.Add("Delete");
dtExcel.Columns.Add("Name"); dtExcel.Columns.Add("Name");
dtExcel.Columns.Add("Model"); dtExcel.Columns.Add("Model");
dtExcel.Columns.Add("Unit");
dtExcel.Columns.Add("Memo"); dtExcel.Columns.Add("Memo");
dtExcel.Columns.Add("Delete");
dtExcel.Columns.Add("Name0");
dtExcel.Columns.Add("Name1");
dtExcel.Columns.Add("Name2");
libxl.Book book;// = new libxl.BinBook();
if(book == null)
{
book = new libxl.XmlBook(); book = new libxl.XmlBook();
book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey); book.setKey(FCOMMON.info.libxlCompany, FCOMMON.info.libxlKey);
}
try try
{ {
book.load(textBox1.Text); book.load(textBox1.Text);
}catch (Exception ex) }
catch (Exception ex)
{ {
FCOMMON.Util.MsgE(ex.Message); FCOMMON.Util.MsgE(ex.Message);
return; return;
} }
int sheetNum = (int)numericUpDown1.Value; int sheetNum = (int)nudSheetNo.Value;
if (sheetNum >= book.sheetCount()) if (sheetNum >= book.sheetCount())
{ {
FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다."); FCOMMON.Util.MsgE("입력한 시트 번호는 존재하지 않습니다.");
@@ -95,13 +101,21 @@ namespace FCM0000
var sheet = book.getSheet(sheetNum); var sheet = book.getSheet(sheetNum);
var MaxRow = sheet.lastRow(); var MaxRow = sheet.lastRow();
var MinRow = sheet.firstRow(); var MinRow = sheet.firstRow();
if (MaxRow > nudE.Maximum)
{
nudE.Maximum = MaxRow;
nudS.Maximum = MaxRow;
}
nudE.Value = MaxRow; //엑셀에서읽어지는 최대값을 설정
MaxRow = (int)Math.Min(MaxRow, nudE.Value-1); MinRow = (int)Math.Max(MinRow, this.nudDispRowMin.Value - 1);
MinRow = (int)Math.Max(MinRow, nudS.Value-1); MaxRow = (int)Math.Min(MaxRow, this.nudDispRowMax.Value - 1);
if(MinRow <= (ColumnNameNo-1))
if (MinRow <= (ColumnNameNo - 1))
{ {
FCOMMON.Util.MsgI("시작줄을 제목줄 보다 커야 합니다. 자동으로 +1 증가합니다."); FCOMMON.Util.MsgI("시작줄을 제목줄 보다 커야 합니다. 자동으로 +1 증가합니다.");
MinRow = ColumnNameNo ; MinRow = ColumnNameNo;
nudS.Value = MinRow;
} }
@@ -116,34 +130,40 @@ namespace FCM0000
try{ try
{
for (int r = MinRow; r <= MaxRow; r++) for (int r = MinRow; r <= MaxRow; r++)
{ {
var v_sid = sheet.readStr(r, 0); var v_sid = sheet.readStr(r, 0);
var v_cate = sheet.readStr(r, 4); var v_cate = sheet.readStr(r, 4);
var v_memo = sheet.readStr(r, 23); var v_memo = sheet.readStr(r, 23);
//이름
var v_name = sheet.readStr(r, 21);
if (v_name.isEmpty()) v_name = sheet.readStr(r, 2);
if (v_name.isEmpty()) v_name = sheet.readStr(r, 1);
//모델
var v_model = sheet.readStr(r, 22); var v_model = sheet.readStr(r, 22);
var v_name0 = sheet.readStr(r, 21); if (v_model.isEmpty()) v_model = sheet.readStr(r, 1);
var v_name1 = sheet.readStr(r, 2); if (v_model.isEmpty()) v_model = sheet.readStr(r, 2);
var v_name2 = sheet.readStr(r, 1);
//삭제여부
var v_del = sheet.readStr(r, 8); var v_del = sheet.readStr(r, 8);
var v_name = v_name0;
if (v_name == "") v_name = v_name1; //이름이나 sid가없으면 처리하지 않음
if (v_name == "") v_name = v_name2;
if (v_name.Trim() == "") continue; //품명과 sid 없는 건 제외 if (v_name.Trim() == "") continue; //품명과 sid 없는 건 제외
if (v_sid.Trim() == "") continue; if (v_sid.Trim() == "") continue;
DataRow dr = dtExcel.NewRow(); DataRow dr = dtExcel.NewRow();
dr["sid"] = v_sid; dr["sid"] = v_sid;
dr["cate"] = v_cate;
dr["memo"] = v_memo;
dr["model"] = v_model;
dr["name"] = v_name;
dr["name0"] = v_name0;
dr["name1"] = v_name1;
dr["name2"] = v_name2;
dr["delete"] = v_del; dr["delete"] = v_del;
dr["name"] = v_name;
dr["model"] = v_model;
dr["unit"] = v_cate;
dr["memo"] = v_memo;
if (dr != null) if (dr != null)
{ {
dtExcel.Rows.Add(dr); dtExcel.Rows.Add(dr);
@@ -151,18 +171,18 @@ namespace FCM0000
} }
dtExcel.AcceptChanges(); dtExcel.AcceptChanges();
} }
catch(Exception ex) catch (Exception ex)
{ {
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message); FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
} }
// //
book = null; // book = null;
this.bs.DataSource = dtExcel; this.bs.DataSource = dtExcel;
this.dataGridView1.DataSource = dtExcel; this.dataGridView1.DataSource = dtExcel;
this.bn.BindingSource = this.bs; this.bn.BindingSource = this.bs;
if(this.bs.Count < 1) if (this.bs.Count < 1)
{ {
FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다."); FCOMMON.Util.MsgE("입력된 자료가 없습니다.\n\n지정된 엑셀의 1번째 칸에 값이 없다면 입력되지 않습니다.");
} }
@@ -171,7 +191,7 @@ namespace FCM0000
private void button3_Click(object sender, EventArgs e) private void button3_Click(object sender, EventArgs e)
{ {
if(dtExcel == null || dtExcel.Rows.Count < 1) if (dtExcel == null || dtExcel.Rows.Count < 1)
{ {
FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다."); FCOMMON.Util.MsgE("등록 가능한 자료가 없습니다.");
return; return;
@@ -191,46 +211,127 @@ namespace FCM0000
dt.AcceptChanges(); dt.AcceptChanges();
this.progressBar1.Value = 0; this.progressBar1.Value = 0;
this.progressBar1.Maximum = dtExcel.Rows.Count; this.progressBar1.Maximum = (int)nudE.Value; // dtExcel.Rows.Count;
if (checkBox1.Checked) ta.DeleteImport(textBox2.Text, FCOMMON.info.Login.gcode); if (checkBox1.Checked) ta.DeleteImport(textBox2.Text, FCOMMON.info.Login.gcode);
int dup = 0;
int add = 0;
int cnt = 0; int cnt = 0;
int err = 0;
//12,13 //12,13
foreach (DataRow dr in dtExcel.Rows)
try
{
var sheet = book.getSheet((int)nudSheetNo.Value);
var MinRow = (int)nudS.Value;
var MaxRow = (int)nudE.Value;
for (int r = MinRow; r <= MaxRow; r++)
{ {
cnt += 1; cnt += 1;
if(cnt % 1000 == 0) if (this.progressBar1.Value < this.progressBar1.Maximum)
{
ta.Update((dsMSSQL.ItemsDataTable)dt);
dt.AcceptChanges();
Application.DoEvents();
}
this.progressBar1.Value += 1; this.progressBar1.Value += 1;
//데이터추가 //화면 업데이트
var newdr = dt.NewRow() as dsMSSQL.ItemsRow; this.Text = string.Format("{0}/{1} : {2:N2}% 추가:{3},오류:{4},넘김:{5}", progressBar1.Value, progressBar1.Maximum, ((progressBar1.Value * 1.0) / progressBar1.Maximum) * 100.0,add,err,dup);
if (dr[0] == DBNull.Value) continue; //nullerror
if (dr[2].ToString().Length > 180) continue; //너무긴것도 뺸다.
newdr.sid = dr[0].ToString(); Application.DoEvents();
newdr.cate = dr[1].ToString();
newdr.name = dr[2].ToString(); var v_sid = sheet.readStr(r, 0);
newdr.model = dr[3].ToString(); v_sid = v_sid.Replace("_", "").Replace("-", "").Replace(" ", "").Replace(".", "");
newdr.memo = dr[4].ToString();
if(dr[5].ToString() == "X") newdr.disable=true; var v_cate = sheet.readStr(r, 4);
else newdr.disable =false; var v_memo = sheet.readStr(r, 23);
newdr.wuid = "DEV";
newdr.wdate =DateTime.Now; //이름
newdr.unit = "--"; var v_name = sheet.readStr(r, 2);
newdr.import = textBox2.Text; //if (v_name.isEmpty()) v_name = sheet.readStr(r, 2);
dt.Rows.Add(newdr); if (v_name.isEmpty()) v_name = sheet.readStr(r, 1);
//모델
var v_model = sheet.readStr(r, 22);
if (v_model.isEmpty()) v_model = sheet.readStr(r, 1);
if (v_model.isEmpty()) v_model = sheet.readStr(r, 2);
//삭제여부
var v_del = sheet.readStr(r, 8);
//이름이나 sid가없으면 처리하지 않음
if (v_name.Trim().isEmpty()) continue; //품명과 sid 없는 건 제외
if (v_sid.Trim().isEmpty()) continue;
//이 sid 의 중복검사
//중복은 처리하지 않는다.
if (ta.ExistSID("EET1P", v_sid) > 0)
{
dup += 1;
continue;
} }
ta.Update((dsMSSQL.ItemsDataTable)dt); try
dt.AcceptChanges(); {
//데이터추가
var newdr = dt.NewRow() as dsMSSQL.ItemsRow;
if (v_name.Length > 180) v_name = v_name.ToString().Substring(0, 170); // continue; //너무긴것도 뺸다.
//dtExcel.Columns.Add("SID");
//dtExcel.Columns.Add("Delete");
//dtExcel.Columns.Add("Name");
//dtExcel.Columns.Add("Model");
//dtExcel.Columns.Add("Unit");
//dtExcel.Columns.Add("Memo");
newdr.sid = v_sid;
if (v_del == "X") newdr.disable = true;
else newdr.disable = false;
newdr.name = v_name.Trim();
newdr.cate = v_cate.Trim();
newdr.unit = newdr.cate;
newdr.price = 0;
newdr.model = v_model.Trim();
newdr.memo = v_memo.Trim();
newdr.scale = 1;
newdr.gcode = "EET1P";
newdr.wuid = "DEV";
newdr.wdate = DateTime.Now;
//newdr.unit = "--";
newdr.import = textBox2.Text;
ta.Update(newdr);
newdr.Delete();
add += 1;
}
catch (Exception ex)
{
err += 1;
}
Application.DoEvents();
//DataRow dr = dtExcel.NewRow();
//dr["sid"] = v_sid;
//dr["delete"] = v_del;
//dr["name"] = v_name;
//dr["model"] = v_model;
//dr["unit"] = v_cate;
//dr["memo"] = v_memo;
//실제 추가한다
}
FCOMMON.Util.MsgI("Save OK\n중복:" + dup.ToString() + "\n전체:" + cnt.ToString() + "\n에러:" + err.ToString());
}
catch (Exception ex)
{
FCOMMON.Util.MsgE("불러오는 중 오류 발생\n" + ex.Message);
}
FCOMMON.Util.MsgI("Save OK");
} }
private void panel1_Paint(object sender, PaintEventArgs e) private void panel1_Paint(object sender, PaintEventArgs e)

View File

@@ -191,6 +191,9 @@
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg== 8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="dsMSSQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>147, 17</value>
</metadata>
<metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ta.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>252, 17</value> <value>252, 17</value>
</metadata> </metadata>

View File

@@ -43,27 +43,28 @@
FarPoint.Win.Spread.FlatFocusIndicatorRenderer flatFocusIndicatorRenderer1 = new FarPoint.Win.Spread.FlatFocusIndicatorRenderer(); FarPoint.Win.Spread.FlatFocusIndicatorRenderer flatFocusIndicatorRenderer1 = new FarPoint.Win.Spread.FlatFocusIndicatorRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer1 = new FarPoint.Win.Spread.FlatScrollBarRenderer(); FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer1 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer2 = new FarPoint.Win.Spread.FlatScrollBarRenderer(); FarPoint.Win.Spread.FlatScrollBarRenderer flatScrollBarRenderer2 = new FarPoint.Win.Spread.FlatScrollBarRenderer();
FarPoint.Win.Spread.CellType.TextCellType textCellType21 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType1 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType22 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType2 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType19 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType1 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType23 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType3 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType24 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType25 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType5 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType26 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType20 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType21 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType3 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType22 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType4 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType23 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType5 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType24 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType6 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType25 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType7 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType27 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType28 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType29 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.TextCellType textCellType30 = new FarPoint.Win.Spread.CellType.TextCellType(); FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType26 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType8 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.CellType.NumberCellType numberCellType27 = new FarPoint.Win.Spread.CellType.NumberCellType(); FarPoint.Win.Spread.CellType.NumberCellType numberCellType9 = new FarPoint.Win.Spread.CellType.NumberCellType();
FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo3 = new FarPoint.Win.Spread.NoPrinterPrintInfo(); FarPoint.Win.Spread.NoPrinterPrintInfo noPrinterPrintInfo1 = new FarPoint.Win.Spread.NoPrinterPrintInfo();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.button2 = new System.Windows.Forms.Button();
this.radSortGrp = new System.Windows.Forms.RadioButton(); this.radSortGrp = new System.Windows.Forms.RadioButton();
this.radSortNo = new System.Windows.Forms.RadioButton(); this.radSortNo = new System.Windows.Forms.RadioButton();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
@@ -103,6 +104,7 @@
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton(); this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton7 = new System.Windows.Forms.ToolStripButton(); this.toolStripButton7 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel();
@@ -119,8 +121,6 @@
this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter(); this.taPart = new FPJ0000.dsPRJTableAdapters.ProjectsPartTableAdapter();
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread(); this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView(); this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
this.button2 = new System.Windows.Forms.Button();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
pdateLabel = new System.Windows.Forms.Label(); pdateLabel = new System.Windows.Forms.Label();
requestLabel = new System.Windows.Forms.Label(); requestLabel = new System.Windows.Forms.Label();
reqstaffLabel = new System.Windows.Forms.Label(); reqstaffLabel = new System.Windows.Forms.Label();
@@ -266,6 +266,19 @@
this.panel1.Size = new System.Drawing.Size(1246, 97); this.panel1.Size = new System.Drawing.Size(1246, 97);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// button2
//
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
this.button2.Location = new System.Drawing.Point(1090, 10);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(98, 78);
this.button2.TabIndex = 30;
this.button2.Text = "저장(&S)";
this.button2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// radSortGrp // radSortGrp
// //
this.radSortGrp.AutoSize = true; this.radSortGrp.AutoSize = true;
@@ -631,6 +644,11 @@
this.toolStripButton2.Text = "비용요약"; this.toolStripButton2.Text = "비용요약";
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click);
// //
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
//
// toolStripButton7 // toolStripButton7
// //
this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image"))); this.toolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton7.Image")));
@@ -803,94 +821,94 @@
this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.Parent = "ColumnHeaderFlat"; this.fpSpread1_Sheet1.ColumnHeader.DefaultStyle.Parent = "ColumnHeaderFlat";
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 36F; this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 36F;
this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(0).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType21; this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType1;
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "ItemGroup"; this.fpSpread1_Sheet1.Columns.Get(0).DataField = "ItemGroup";
this.fpSpread1_Sheet1.Columns.Get(0).Label = "중분류"; this.fpSpread1_Sheet1.Columns.Get(0).Label = "중분류";
this.fpSpread1_Sheet1.Columns.Get(0).Width = 89F; this.fpSpread1_Sheet1.Columns.Get(0).Width = 89F;
this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(1).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType22; this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType2;
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "option1"; this.fpSpread1_Sheet1.Columns.Get(1).DataField = "option1";
this.fpSpread1_Sheet1.Columns.Get(1).Label = "소분류"; this.fpSpread1_Sheet1.Columns.Get(1).Label = "소분류";
this.fpSpread1_Sheet1.Columns.Get(1).Width = 86F; this.fpSpread1_Sheet1.Columns.Get(1).Width = 86F;
numberCellType19.DecimalPlaces = 0; numberCellType1.DecimalPlaces = 0;
numberCellType19.NegativeRed = true; numberCellType1.NegativeRed = true;
numberCellType19.NullDisplay = "--"; numberCellType1.NullDisplay = "--";
this.fpSpread1_Sheet1.Columns.Get(2).CellType = numberCellType19; this.fpSpread1_Sheet1.Columns.Get(2).CellType = numberCellType1;
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "no"; this.fpSpread1_Sheet1.Columns.Get(2).DataField = "no";
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Label = "번호"; this.fpSpread1_Sheet1.Columns.Get(2).Label = "번호";
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(2).Width = 79F; this.fpSpread1_Sheet1.Columns.Get(2).Width = 79F;
this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType23; this.fpSpread1_Sheet1.Columns.Get(3).CellType = textCellType3;
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "ItemSid"; this.fpSpread1_Sheet1.Columns.Get(3).DataField = "ItemSid";
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID"; this.fpSpread1_Sheet1.Columns.Get(3).Label = "SID";
this.fpSpread1_Sheet1.Columns.Get(3).Tag = "sid"; this.fpSpread1_Sheet1.Columns.Get(3).Tag = "sid";
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(4).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType24; this.fpSpread1_Sheet1.Columns.Get(4).CellType = textCellType4;
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "ItemName"; this.fpSpread1_Sheet1.Columns.Get(4).DataField = "ItemName";
this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(4).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(4).Label = "품명"; this.fpSpread1_Sheet1.Columns.Get(4).Label = "품명";
this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(4).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F; this.fpSpread1_Sheet1.Columns.Get(4).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType25; this.fpSpread1_Sheet1.Columns.Get(5).CellType = textCellType5;
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "ItemModel"; this.fpSpread1_Sheet1.Columns.Get(5).DataField = "ItemModel";
this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(5).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(5).Label = "규격"; this.fpSpread1_Sheet1.Columns.Get(5).Label = "규격";
this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(5).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(5).Width = 99F; this.fpSpread1_Sheet1.Columns.Get(5).Width = 99F;
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType26; this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType6;
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "ItemUnit"; this.fpSpread1_Sheet1.Columns.Get(6).DataField = "ItemUnit";
this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(6).Label = "단위"; this.fpSpread1_Sheet1.Columns.Get(6).Label = "단위";
this.fpSpread1_Sheet1.Columns.Get(6).Tag = "unit"; this.fpSpread1_Sheet1.Columns.Get(6).Tag = "unit";
this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(6).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType20.DecimalPlaces = 0; numberCellType2.DecimalPlaces = 0;
numberCellType20.MaximumValue = 10000000D; numberCellType2.MaximumValue = 10000000D;
numberCellType20.MinimumValue = -10000000D; numberCellType2.MinimumValue = -10000000D;
numberCellType20.NegativeRed = true; numberCellType2.NegativeRed = true;
numberCellType20.NullDisplay = "0"; numberCellType2.NullDisplay = "0";
numberCellType20.ShowSeparator = true; numberCellType2.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType20; this.fpSpread1_Sheet1.Columns.Get(7).CellType = numberCellType2;
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "price"; this.fpSpread1_Sheet1.Columns.Get(7).DataField = "price";
this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(7).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(7).Label = "단가"; this.fpSpread1_Sheet1.Columns.Get(7).Label = "단가";
this.fpSpread1_Sheet1.Columns.Get(7).Tag = "price"; this.fpSpread1_Sheet1.Columns.Get(7).Tag = "price";
this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(7).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(8).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
numberCellType21.DecimalPlaces = 0; numberCellType3.DecimalPlaces = 0;
numberCellType21.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes; numberCellType3.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
numberCellType21.MaximumValue = 2147483647D; numberCellType3.MaximumValue = 2147483647D;
numberCellType21.MinimumValue = -2147483648D; numberCellType3.MinimumValue = -2147483648D;
numberCellType21.NegativeRed = true; numberCellType3.NegativeRed = true;
numberCellType21.Separator = ","; numberCellType3.Separator = ",";
numberCellType21.ShowSeparator = true; numberCellType3.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType21; this.fpSpread1_Sheet1.Columns.Get(8).CellType = numberCellType3;
this.fpSpread1_Sheet1.Columns.Get(8).DataField = "qty"; this.fpSpread1_Sheet1.Columns.Get(8).DataField = "qty";
this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(8).Label = "1대 수량"; this.fpSpread1_Sheet1.Columns.Get(8).Label = "1대 수량";
this.fpSpread1_Sheet1.Columns.Get(8).Tag = "qty"; this.fpSpread1_Sheet1.Columns.Get(8).Tag = "qty";
this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(8).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType22.DecimalPlaces = 0; numberCellType4.DecimalPlaces = 0;
numberCellType22.NegativeRed = true; numberCellType4.NegativeRed = true;
numberCellType22.Separator = ","; numberCellType4.Separator = ",";
numberCellType22.ShowSeparator = true; numberCellType4.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType22; this.fpSpread1_Sheet1.Columns.Get(9).CellType = numberCellType4;
this.fpSpread1_Sheet1.Columns.Get(9).DataField = "qtyn"; this.fpSpread1_Sheet1.Columns.Get(9).DataField = "qtyn";
this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(9).Label = "N대 수량"; this.fpSpread1_Sheet1.Columns.Get(9).Label = "N대 수량";
this.fpSpread1_Sheet1.Columns.Get(9).Tag = "qtyn"; this.fpSpread1_Sheet1.Columns.Get(9).Tag = "qtyn";
this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(9).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(10).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
numberCellType23.DecimalPlaces = 0; numberCellType5.DecimalPlaces = 0;
numberCellType23.MaximumValue = 9999999999999.99D; numberCellType5.MaximumValue = 9999999999999.99D;
numberCellType23.MinimumValue = -9999999999999.99D; numberCellType5.MinimumValue = -9999999999999.99D;
numberCellType23.NegativeRed = true; numberCellType5.NegativeRed = true;
numberCellType23.NullDisplay = "--"; numberCellType5.NullDisplay = "--";
numberCellType23.Separator = ","; numberCellType5.Separator = ",";
numberCellType23.ShowSeparator = true; numberCellType5.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType23; this.fpSpread1_Sheet1.Columns.Get(10).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(10).DataField = "amt"; this.fpSpread1_Sheet1.Columns.Get(10).DataField = "amt";
this.fpSpread1_Sheet1.Columns.Get(10).Formula = "RC[-3]*RC[-2]"; this.fpSpread1_Sheet1.Columns.Get(10).Formula = "RC[-3]*RC[-2]";
this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(10).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
@@ -898,36 +916,36 @@
this.fpSpread1_Sheet1.Columns.Get(10).Tag = "amt"; this.fpSpread1_Sheet1.Columns.Get(10).Tag = "amt";
this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(10).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(11).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.fpSpread1_Sheet1.Columns.Get(11).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType23; this.fpSpread1_Sheet1.Columns.Get(11).CellType = numberCellType5;
this.fpSpread1_Sheet1.Columns.Get(11).DataField = "amtn"; this.fpSpread1_Sheet1.Columns.Get(11).DataField = "amtn";
this.fpSpread1_Sheet1.Columns.Get(11).Formula = "RC[-4]*RC[-2]"; this.fpSpread1_Sheet1.Columns.Get(11).Formula = "RC[-4]*RC[-2]";
this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right; this.fpSpread1_Sheet1.Columns.Get(11).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
this.fpSpread1_Sheet1.Columns.Get(11).Label = "N대 금액"; this.fpSpread1_Sheet1.Columns.Get(11).Label = "N대 금액";
this.fpSpread1_Sheet1.Columns.Get(11).Tag = "amtn"; this.fpSpread1_Sheet1.Columns.Get(11).Tag = "amtn";
this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(11).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType24.DecimalPlaces = 0; numberCellType6.DecimalPlaces = 0;
numberCellType24.NegativeRed = true; numberCellType6.NegativeRed = true;
numberCellType24.NullDisplay = "--"; numberCellType6.NullDisplay = "--";
numberCellType24.Separator = ","; numberCellType6.Separator = ",";
numberCellType24.ShowSeparator = true; numberCellType6.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType24; this.fpSpread1_Sheet1.Columns.Get(12).CellType = numberCellType6;
this.fpSpread1_Sheet1.Columns.Get(12).DataField = "qtyjago"; this.fpSpread1_Sheet1.Columns.Get(12).DataField = "qtyjago";
this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(12).Label = "PMP재고"; this.fpSpread1_Sheet1.Columns.Get(12).Label = "PMP재고";
this.fpSpread1_Sheet1.Columns.Get(12).Tag = "pmp"; this.fpSpread1_Sheet1.Columns.Get(12).Tag = "pmp";
this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(12).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
numberCellType25.DecimalPlaces = 0; numberCellType7.DecimalPlaces = 0;
numberCellType25.NegativeRed = true; numberCellType7.NegativeRed = true;
numberCellType25.NullDisplay = "--"; numberCellType7.NullDisplay = "--";
numberCellType25.Separator = ","; numberCellType7.Separator = ",";
numberCellType25.ShowSeparator = true; numberCellType7.ShowSeparator = true;
this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType25; this.fpSpread1_Sheet1.Columns.Get(13).CellType = numberCellType7;
this.fpSpread1_Sheet1.Columns.Get(13).DataField = "qtybuy"; this.fpSpread1_Sheet1.Columns.Get(13).DataField = "qtybuy";
this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(13).Label = "구매수량"; this.fpSpread1_Sheet1.Columns.Get(13).Label = "구매수량";
this.fpSpread1_Sheet1.Columns.Get(13).Tag = "buy"; this.fpSpread1_Sheet1.Columns.Get(13).Tag = "buy";
this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(13).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType27; this.fpSpread1_Sheet1.Columns.Get(14).CellType = textCellType7;
this.fpSpread1_Sheet1.Columns.Get(14).DataField = "ItemManu"; this.fpSpread1_Sheet1.Columns.Get(14).DataField = "ItemManu";
this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(14).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(14).Label = "제조사"; this.fpSpread1_Sheet1.Columns.Get(14).Label = "제조사";
@@ -935,28 +953,28 @@
this.fpSpread1_Sheet1.Columns.Get(14).Width = 113F; this.fpSpread1_Sheet1.Columns.Get(14).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(15).AllowAutoFilter = true; this.fpSpread1_Sheet1.Columns.Get(15).AllowAutoFilter = true;
this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.fpSpread1_Sheet1.Columns.Get(15).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType28; this.fpSpread1_Sheet1.Columns.Get(15).CellType = textCellType8;
this.fpSpread1_Sheet1.Columns.Get(15).DataField = "ItemSupply"; this.fpSpread1_Sheet1.Columns.Get(15).DataField = "ItemSupply";
this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(15).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(15).ImeMode = System.Windows.Forms.ImeMode.Hangul; this.fpSpread1_Sheet1.Columns.Get(15).ImeMode = System.Windows.Forms.ImeMode.Hangul;
this.fpSpread1_Sheet1.Columns.Get(15).Label = "공급사"; this.fpSpread1_Sheet1.Columns.Get(15).Label = "공급사";
this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(15).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(15).Width = 113F; this.fpSpread1_Sheet1.Columns.Get(15).Width = 113F;
this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType29; this.fpSpread1_Sheet1.Columns.Get(16).CellType = textCellType9;
this.fpSpread1_Sheet1.Columns.Get(16).DataField = "option2"; this.fpSpread1_Sheet1.Columns.Get(16).DataField = "option2";
this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(16).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(16).Label = "납기일"; this.fpSpread1_Sheet1.Columns.Get(16).Label = "납기일";
this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(16).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType30; this.fpSpread1_Sheet1.Columns.Get(17).CellType = textCellType10;
this.fpSpread1_Sheet1.Columns.Get(17).DataField = "memo"; this.fpSpread1_Sheet1.Columns.Get(17).DataField = "memo";
this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left; this.fpSpread1_Sheet1.Columns.Get(17).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Left;
this.fpSpread1_Sheet1.Columns.Get(17).Label = "비고"; this.fpSpread1_Sheet1.Columns.Get(17).Label = "비고";
this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center; this.fpSpread1_Sheet1.Columns.Get(17).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType26; this.fpSpread1_Sheet1.Columns.Get(18).CellType = numberCellType8;
this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Item"; this.fpSpread1_Sheet1.Columns.Get(18).DataField = "Item";
this.fpSpread1_Sheet1.Columns.Get(18).Tag = "item"; this.fpSpread1_Sheet1.Columns.Get(18).Tag = "item";
this.fpSpread1_Sheet1.Columns.Get(18).Visible = false; this.fpSpread1_Sheet1.Columns.Get(18).Visible = false;
this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType27; this.fpSpread1_Sheet1.Columns.Get(19).CellType = numberCellType9;
this.fpSpread1_Sheet1.Columns.Get(19).DataField = "ItemSupplyidx"; this.fpSpread1_Sheet1.Columns.Get(19).DataField = "ItemSupplyidx";
this.fpSpread1_Sheet1.Columns.Get(19).Visible = false; this.fpSpread1_Sheet1.Columns.Get(19).Visible = false;
this.fpSpread1_Sheet1.DataAutoCellTypes = false; this.fpSpread1_Sheet1.DataAutoCellTypes = false;
@@ -970,11 +988,11 @@
this.fpSpread1_Sheet1.FilterBarHeaderStyle.Parent = "FilterBarHeaderFlat"; this.fpSpread1_Sheet1.FilterBarHeaderStyle.Parent = "FilterBarHeaderFlat";
this.fpSpread1_Sheet1.PrintInfo.Footer = "EET Groupware - Alpha -"; this.fpSpread1_Sheet1.PrintInfo.Footer = "EET Groupware - Alpha -";
this.fpSpread1_Sheet1.PrintInfo.Header = "PartList"; this.fpSpread1_Sheet1.PrintInfo.Header = "PartList";
noPrinterPrintInfo3.Bounds = new System.Drawing.Rectangle(0, 0, 816, 1148); noPrinterPrintInfo1.Bounds = new System.Drawing.Rectangle(0, 0, 816, 1148);
noPrinterPrintInfo3.HardMarginX = 0F; noPrinterPrintInfo1.HardMarginX = 0F;
noPrinterPrintInfo3.HardMarginY = 0F; noPrinterPrintInfo1.HardMarginY = 0F;
noPrinterPrintInfo3.SupportColor = true; noPrinterPrintInfo1.SupportColor = true;
this.fpSpread1_Sheet1.PrintInfo.NoPrinterSetting = noPrinterPrintInfo3; this.fpSpread1_Sheet1.PrintInfo.NoPrinterSetting = noPrinterPrintInfo1;
this.fpSpread1_Sheet1.PrintInfo.PdfSecurity = null; this.fpSpread1_Sheet1.PrintInfo.PdfSecurity = null;
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false; this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
this.fpSpread1_Sheet1.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty; this.fpSpread1_Sheet1.RowHeader.DefaultStyle.BackColor = System.Drawing.Color.Empty;
@@ -987,24 +1005,6 @@
this.fpSpread1_Sheet1.TitleInfo.Value = "Partlist"; this.fpSpread1_Sheet1.TitleInfo.Value = "Partlist";
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1; this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
// //
// button2
//
this.button2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
this.button2.Location = new System.Drawing.Point(1090, 10);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(98, 78);
this.button2.TabIndex = 30;
this.button2.Text = "저장(&S)";
this.button2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25);
//
// fPartList // fPartList
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -479,7 +479,7 @@ namespace FPJ0000
var cnt_ok = 0; var cnt_ok = 0;
var cnt_no = 0; var cnt_no = 0;
var cnt_ng = 0; var cnt_ng = 0;
var cnt_reduce = 0; // var cnt_reduce = 0;
foreach (dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows) foreach (dsPRJ.ProjectsPartRow dr in this.dsPRJ.ProjectsPart.Rows)
{ {
if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) continue; if (dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) continue;
@@ -517,14 +517,14 @@ namespace FPJ0000
{ {
cnt_ng += 1; cnt_ng += 1;
dr.qtyjago = "{" + db.Count.ToString() + "}"; dr.qtyjago = "{" + db.Count.ToString() + "}";
dr.qtybuy = qty; //dr.qtybuy = qty;
} }
else if (db.Count == 1 && db[0].qty != 0) else if (db.Count == 1 && db[0].qty != 0)
{ {
cnt_ok += 1; cnt_ok += 1;
dr.qtyjago = db[0].qty.ToString(); //재고수량 dr.qtyjago = db[0].qty.ToString(); //재고수량
dr.qtybuy = Math.Max(qty - db[0].qty, 0); //dr.qtybuy = Math.Max(qty - db[0].qty, 0);
cnt_reduce += (qty - dr.qtybuy); //cnt_reduce += (qty - dr.qtybuy);
} }
else else
@@ -532,7 +532,7 @@ namespace FPJ0000
//pmp에 자료 없다 //pmp에 자료 없다
cnt_no += 1; cnt_no += 1;
dr.qtyjago = "--"; dr.qtyjago = "--";
dr.qtybuy = qty; //dr.qtybuy = qty;
} }
dr.EndEdit(); dr.EndEdit();
} }
@@ -547,8 +547,7 @@ namespace FPJ0000
var msg = string.Format("PMP 검색결과 현황\n" + var msg = string.Format("PMP 검색결과 현황\n" +
"검색완료 : {0}\n" + "검색완료 : {0}\n" +
"복수확인 : {1}\n" + "복수확인 : {1}\n" +
"확인불가 : {2}\n" + "확인불가 : {2}" , cnt_ok, cnt_ng, cnt_no);
"신규 구매 감소 : {3}", cnt_ok, cnt_ng, cnt_no, cnt_reduce);
FCOMMON.Util.MsgI(msg); FCOMMON.Util.MsgI(msg);
} }

View File

@@ -148,45 +148,51 @@
<value>False</value> <value>False</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAG
7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFNSURBVFhH7ZLN
S8MwGIf7Z3sXvHSIIlU2u01oL0rXzTm/ceuGzM+rB0FchTEQbx1MwUrllbTLIV3bZUknyQPPpdD+HtIo
kkVRXGsMm8YN0Xbj2QvdLDV9s977mUfDdnxwXbO/KoVWAU2nw65eD16evIBk/2IUuWd1grcPj0qj3g3u
Ou5nRW1to/lkeAfCdzNFsghcUfVI/HkYCEJkWT3WUEY8eQWC9447SYzMMxC8bb/O/t15B4IzI5chEIyN
XJZA0NrtuShrCovAOJMCoQVlTfnXgQ/OexS4pZ8E+v7lXFatqz+L5hlxJzRzIG9lIK0ykNZUgZp5FJw6
j1yELXw7VSC8yAvYwrdlYFbECHTHixVHjBNkiRiBpHtEI44YJ8gSMQJJ94hGHDFOkCUykJZUgTurteFB
qTsI3SjX/MPz/jcPYQvfhhaUJaFEUX4B8Gv8C+/jmnoAAAAASUVORK5CYII=
</value>
</data>
<data name="button1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="button1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
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 txiKQUsjZwAAAABJRU5ErkJggg==
</value> </value>
</data> </data>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>100, 17</value> <value>100, 17</value>
</metadata> </metadata>
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>100, 17</value>
</metadata>
<metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="dsPRJ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
@@ -305,21 +311,21 @@
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
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
</value> </value>
</data> </data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -342,20 +348,20 @@
<data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
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
IBAIfgI33aDRLdfyBgAAAABJRU5ErkJggg== EAj+ABQBoLtReJTrAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -403,16 +409,4 @@
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>614, 18</value> <value>614, 18</value>
</metadata> </metadata>
<data name="button2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAABuwAAAbsAR51ODUAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwa
AAABTUlEQVRYR+2SzUvDMBiH+2d7F7x0iCJVNrtNaC9K1805v3HrhszPqwdBXIUxEG8dTMFK5ZW0yyFd
22VJJ8kDz6XQ/h7SKJJFUVxrDJvGDdF249kL3Sw1fbPe+5lHw3Z8cF2zvyqFVgFNp8OuXg9enryAZP9i
FLlndYK3D49Ko94N7jruZ0VtbaP5ZHgHwnczRbIIXFH1SPx5GAhCZFk91lBGPHkFgveOO0mMzDMQvG2/
zv7deQeCMyOXIRCMjVyWQNDa7bkoawqLwDiTAqEFZU3514EPznsUuKWfBPr+5VxWras/i+YZcSc0cyBv
ZSCtMpDWVIGaeRScOo9chC18O1UgvMgL2MK3ZWBWxAh0x4sVR4wTZIkYgaR7RCOOGCfIEjECSfeIRhwx
TpAlMpCWVIE7q7XhQak7CN0o1/zD8/43D2EL34YWlCWhRFF+AfBr/Avv45p6AAAAAElFTkSuQmCC
</value>
</data>
</root> </root>

View File

@@ -63,6 +63,7 @@ namespace FPJ0000
int grp2cnt = 0; int grp2cnt = 0;
int spanStart = 0; int spanStart = 0;
int spanStart2 = -1; int spanStart2 = -1;
int cnt = 0;
this.fpSpread1_Sheet1.RowCount = 0; this.fpSpread1_Sheet1.RowCount = 0;
this.fpSpread1.SuspendLayout(); this.fpSpread1.SuspendLayout();
@@ -71,8 +72,8 @@ namespace FPJ0000
sum3 += dr.amt; sum3 += dr.amt;
if (first) if (first)
{ {
grp1 = dr.ItemGroup; grp1 = dr.ItemGroup.Trim();
grp2 = dr.option1; grp2 = dr.option1.Trim();
//한줄추가한다 //한줄추가한다
this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1); this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
@@ -80,6 +81,7 @@ namespace FPJ0000
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = grp2; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = grp2;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = dr.ItemSupply; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = dr.ItemSupply;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = dr.amt; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = dr.amt;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
sum = dr.amt; sum = dr.amt;
sum2 = dr.amt; sum2 = dr.amt;
first = false; first = false;
@@ -87,11 +89,40 @@ namespace FPJ0000
} }
else else
{ {
if (grp1 != dr.ItemGroup) if (grp1 != dr.ItemGroup.Trim())
{
//소계항목이 남아있다면?
if (grp2cnt > 1)
{ {
//소계를 추가한다
this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1); this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "소계(" + grp1 + ")"; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "소계(" + grp2 + ")";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum2;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
grp2cnt = 0;
//소분류가 변경되었으므로 처음 줄부터 지금 줄까지 스팬을 건다
if (spanStart2 != -1)
{
var spanRows3 = (this.fpSpread1_Sheet1.RowCount - spanStart2 - 1);
if (spanRows3 > 1)
{
this.fpSpread1_Sheet1.Cells[spanStart2, 1].RowSpan = spanRows3;
this.fpSpread1_Sheet1.Cells[spanStart2, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
}
}
}
//중분류 합계를 추가한다
this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "합계(" + grp1 + ")";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum;
@@ -109,12 +140,12 @@ namespace FPJ0000
spanStart2 = this.fpSpread1_Sheet1.RowCount; spanStart2 = this.fpSpread1_Sheet1.RowCount;
sum = 0; sum = 0;
sum2 = 0; sum2 = 0;
grp1 = dr.ItemGroup; grp1 = dr.ItemGroup.Trim();
grp2 = dr.option1; grp2 = dr.option1.Trim();
} }
if (grp2 != dr.option1) if (grp2 != dr.option1.Trim())
{ {
//소계를 추가한다 //소계를 추가한다
//그룹이 바뀌엇지만 항목이 1보다 클 때 처맇낟 //그룹이 바뀌엇지만 항목이 1보다 클 때 처맇낟
@@ -125,9 +156,10 @@ namespace FPJ0000
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "소계(" + grp2 + ")" ; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "소계(" + grp2 + ")" ;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum2; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum2;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].BackColor = Color.FromArgb(220, 220, 220); this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].BackColor = Color.FromArgb(220, 220, 220); this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].BackColor = Color.FromArgb(220, 220, 220); this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
grp2cnt = 0; grp2cnt = 0;
//소분류가 변경되었으므로 처음 줄부터 지금 줄까지 스팬을 건다 //소분류가 변경되었으므로 처음 줄부터 지금 줄까지 스팬을 건다
@@ -139,16 +171,12 @@ namespace FPJ0000
this.fpSpread1_Sheet1.Cells[spanStart2, 1].RowSpan = spanRows3; this.fpSpread1_Sheet1.Cells[spanStart2, 1].RowSpan = spanRows3;
this.fpSpread1_Sheet1.Cells[spanStart2, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center; this.fpSpread1_Sheet1.Cells[spanStart2, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
} }
} }
} }
spanStart2 = this.fpSpread1_Sheet1.RowCount; spanStart2 = this.fpSpread1_Sheet1.RowCount;
sum2 = 0; sum2 = 0;
grp2 = dr.option1; grp2 = dr.option1.Trim();
grp2cnt = 1;
} }
else grp2cnt += 1; else grp2cnt += 1;
@@ -157,6 +185,8 @@ namespace FPJ0000
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = grp2; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = grp2;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = dr.ItemSupply; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = dr.ItemSupply;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = dr.amt; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = dr.amt;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
cnt++;
sum += dr.amt; sum += dr.amt;
sum2 += dr.amt; sum2 += dr.amt;
@@ -165,10 +195,38 @@ namespace FPJ0000
} }
//소계항목이 남아있다면?
if (grp2cnt > 1)
{
this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "소계(" + grp2 + ")";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum2;
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].BackColor = Color.FromArgb(240, 240, 240);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
grp2cnt = 0;
//소분류가 변경되었으므로 처음 줄부터 지금 줄까지 스팬을 건다
if (spanStart2 != -1)
{
var spanRows3 = (this.fpSpread1_Sheet1.RowCount - spanStart2 - 1);
if (spanRows3 > 1)
{
this.fpSpread1_Sheet1.Cells[spanStart2, 1].RowSpan = spanRows3;
this.fpSpread1_Sheet1.Cells[spanStart2, 1].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
}
}
}
//마지막 중분류 소계를 추가한다 //마지막 중분류 소계를 추가한다
this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1); this.fpSpread1_Sheet1.Rows.Add(this.fpSpread1_Sheet1.RowCount, 1);
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "계(" + grp1 + ")"; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 0].Value = "계(" + grp1 + ")";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 1].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum;
@@ -184,6 +242,7 @@ namespace FPJ0000
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = ""; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 2].Value = "";
this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum3; this.fpSpread1_Sheet1.Cells[this.fpSpread1_Sheet1.RowCount - 1, 3].Value = sum3;
this.fpSpread1_Sheet1.Rows[this.fpSpread1_Sheet1.RowCount - 1].BackColor = Color.LightSkyBlue; this.fpSpread1_Sheet1.Rows[this.fpSpread1_Sheet1.RowCount - 1].BackColor = Color.LightSkyBlue;
this.fpSpread1.ResumeLayout(); this.fpSpread1.ResumeLayout();
} }