메일백업

This commit is contained in:
chi
2020-05-07 17:19:27 +09:00
parent ea20c93c27
commit f68c0a0ea4
18 changed files with 1289 additions and 438 deletions

View File

@@ -2264,6 +2264,10 @@ namespace FPJ0000 {
private global::System.Data.DataColumn columnqtybuy;
private global::System.Data.DataColumn columnqtyn;
private global::System.Data.DataColumn columnamtn;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public ProjectsPartDataTable() {
@@ -2505,6 +2509,22 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn qtynColumn {
get {
return this.columnqtyn;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn amtnColumn {
get {
return this.columnamtn;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -2567,7 +2587,9 @@ namespace FPJ0000 {
string ItemUnit,
bool import,
string qtyjago,
int qtybuy) {
int qtybuy,
int qtyn,
decimal amtn) {
ProjectsPartRow rowProjectsPartRow = ((ProjectsPartRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -2595,7 +2617,9 @@ namespace FPJ0000 {
ItemUnit,
import,
qtyjago,
qtybuy};
qtybuy,
qtyn,
amtn};
rowProjectsPartRow.ItemArray = columnValuesArray;
this.Rows.Add(rowProjectsPartRow);
return rowProjectsPartRow;
@@ -2651,6 +2675,8 @@ namespace FPJ0000 {
this.columnimport = base.Columns["import"];
this.columnqtyjago = base.Columns["qtyjago"];
this.columnqtybuy = base.Columns["qtybuy"];
this.columnqtyn = base.Columns["qtyn"];
this.columnamtn = base.Columns["amtn"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2712,6 +2738,10 @@ namespace FPJ0000 {
base.Columns.Add(this.columnqtyjago);
this.columnqtybuy = new global::System.Data.DataColumn("qtybuy", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnqtybuy);
this.columnqtyn = new global::System.Data.DataColumn("qtyn", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnqtyn);
this.columnamtn = new global::System.Data.DataColumn("amtn", typeof(decimal), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnamtn);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidx}, true));
this.columnidx.AutoIncrement = true;
@@ -6562,6 +6592,38 @@ namespace FPJ0000 {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public int qtyn {
get {
try {
return ((int)(this[this.tableProjectsPart.qtynColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'ProjectsPart\' 테이블의 \'qtyn\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjectsPart.qtynColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public decimal amtn {
get {
try {
return ((decimal)(this[this.tableProjectsPart.amtnColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'ProjectsPart\' 테이블의 \'amtn\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableProjectsPart.amtnColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsProjectNull() {
@@ -6837,6 +6899,30 @@ namespace FPJ0000 {
public void SetqtybuyNull() {
this[this.tableProjectsPart.qtybuyColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsqtynNull() {
return this.IsNull(this.tableProjectsPart.qtynColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetqtynNull() {
this[this.tableProjectsPart.qtynColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IsamtnNull() {
return this.IsNull(this.tableProjectsPart.amtnColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetamtnNull() {
this[this.tableProjectsPart.amtnColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -10922,6 +11008,8 @@ SELECT idx, Project, enable, name, address, memo, wuid, wdate, div FROM Projects
tableMapping.ColumnMappings.Add("import", "import");
tableMapping.ColumnMappings.Add("qtyjago", "qtyjago");
tableMapping.ColumnMappings.Add("qtybuy", "qtybuy");
tableMapping.ColumnMappings.Add("qtyn", "qtyn");
tableMapping.ColumnMappings.Add("amtn", "amtn");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -10930,8 +11018,8 @@ SELECT idx, Project, enable, name, address, memo, wuid, wdate, div FROM Projects
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = @"INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel], [ItemGroup], [ItemSid], [ItemSupply], [ItemManu], [option1], [option2], [option3], [remark], [ItemSupplyidx], [no], [ItemUnit], [import], [qtyjago], [qtybuy]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel, @ItemGroup, @ItemSid, @ItemSupply, @ItemManu, @option1, @option2, @option3, @remark, @ItemSupplyidx, @no, @ItemUnit, @import, @qtyjago, @qtybuy);
SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, ItemGroup, ItemSid, ItemSupply, ItemManu, option1, option2, option3, remark, ItemSupplyidx, no, ItemUnit, import, qtyjago, qtybuy FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY()) ORDER BY Project, no, ItemGroup, option1, ItemName";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [ProjectsPart] ([Project], [Item], [qty], [price], [amt], [jago], [memo], [wuid], [wdate], [ItemName], [ItemModel], [ItemGroup], [ItemSid], [ItemSupply], [ItemManu], [option1], [option2], [option3], [remark], [ItemSupplyidx], [no], [ItemUnit], [import], [qtyjago], [qtybuy], [qtyn], [amtn]) VALUES (@Project, @Item, @qty, @price, @amt, @jago, @memo, @wuid, @wdate, @ItemName, @ItemModel, @ItemGroup, @ItemSid, @ItemSupply, @ItemManu, @option1, @option2, @option3, @remark, @ItemSupplyidx, @no, @ItemUnit, @import, @qtyjago, @qtybuy, @qtyn, @amtn);
SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, ItemGroup, ItemSid, ItemSupply, ItemManu, option1, option2, option3, remark, ItemSupplyidx, no, ItemUnit, import, qtyjago, qtybuy, qtyn, amtn FROM ProjectsPart WHERE (idx = SCOPE_IDENTITY()) ORDER BY Project, no, ItemGroup, option1, ItemName";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Project", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -10958,14 +11046,16 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtyjago", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qtyjago", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtybuy", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qtybuy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtyn", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qtyn", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@amtn", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 0, "amtn", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE ProjectsPart
SET Project = @Project, Item = @Item, qty = @qty, price = @price, amt = @amt, jago = @jago, memo = @memo, wuid = @wuid, wdate = @wdate, ItemName = @ItemName,
ItemModel = @ItemModel, ItemGroup = @ItemGroup, ItemSid = @ItemSid, ItemSupply = @ItemSupply, ItemManu = @ItemManu, option1 = @option1, option2 = @option2, option3 = @option3,
remark = @remark, ItemSupplyidx = @ItemSupplyidx, no = @no, ItemUnit = @ItemUnit, import = @import, qtyjago = @qtyjago, qtybuy = @qtybuy
remark = @remark, ItemSupplyidx = @ItemSupplyidx, no = @no, ItemUnit = @ItemUnit, import = @import, qtyjago = @qtyjago, qtybuy = @qtybuy, qtyn = @qtyn, amtn = @amtn
WHERE (idx = @Original_idx);
SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, ItemGroup, ItemSid, ItemSupply, ItemManu, option1, option2, option3, remark, ItemSupplyidx, no, ItemUnit, import, qtyjago, qtybuy FROM ProjectsPart WHERE (idx = @idx) ORDER BY Project, no, ItemGroup, option1, ItemName";
SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, ItemGroup, ItemSid, ItemSupply, ItemManu, option1, option2, option3, remark, ItemSupplyidx, no, ItemUnit, import, qtyjago, qtybuy, qtyn, amtn FROM ProjectsPart WHERE (idx = @idx) ORDER BY Project, no, ItemGroup, option1, ItemName";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Project", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Project", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Item", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Item", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -10992,6 +11082,8 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@import", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 0, 0, "import", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtyjago", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "qtyjago", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtybuy", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "qtybuy", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qtyn", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "qtyn", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@amtn", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, "amtn", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.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.Original, false, null, "", "", ""));
}
@@ -11010,7 +11102,7 @@ SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, I
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT idx, Project, Item, qty, price, amt, jago, memo, wuid, wdate, ItemName, ItemModel, ItemGroup, ItemSid, ItemSupply, ItemManu, option1, option2, option3, remark, ItemSupplyidx, no, ItemUnit,
import, qtyjago, qtybuy
import, qtyjago, qtybuy, qtyn, amtn
FROM ProjectsPart
WHERE (Project = @prj)
ORDER BY Project, no, ItemGroup, option1, ItemName";
@@ -11144,7 +11236,9 @@ ORDER BY Project, no, ItemGroup, option1, ItemName";
string ItemUnit,
global::System.Nullable<bool> import,
string qtyjago,
global::System.Nullable<int> qtybuy) {
global::System.Nullable<int> qtybuy,
global::System.Nullable<int> qtyn,
global::System.Nullable<decimal> amtn) {
if ((Project.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Project.Value));
}
@@ -11290,6 +11384,18 @@ ORDER BY Project, no, ItemGroup, option1, ItemName";
else {
this.Adapter.InsertCommand.Parameters[24].Value = global::System.DBNull.Value;
}
if ((qtyn.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[25].Value = ((int)(qtyn.Value));
}
else {
this.Adapter.InsertCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((amtn.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[26].Value = ((decimal)(amtn.Value));
}
else {
this.Adapter.InsertCommand.Parameters[26].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -11336,6 +11442,8 @@ ORDER BY Project, no, ItemGroup, option1, ItemName";
global::System.Nullable<bool> import,
string qtyjago,
global::System.Nullable<int> qtybuy,
global::System.Nullable<int> qtyn,
global::System.Nullable<decimal> amtn,
int Original_idx,
int idx) {
if ((Project.HasValue == true)) {
@@ -11483,8 +11591,20 @@ ORDER BY Project, no, ItemGroup, option1, ItemName";
else {
this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(Original_idx));
this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(idx));
if ((qtyn.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[25].Value = ((int)(qtyn.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
if ((amtn.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((decimal)(amtn.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
}
this.Adapter.UpdateCommand.Parameters[27].Value = ((int)(Original_idx));
this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(idx));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {