qrmode 에서 wms rcv 태그 인식되게 함

This commit is contained in:
ChiKyun Kim
2025-08-06 10:05:24 +09:00
parent a7bc964b5c
commit c17296101a
89 changed files with 8051 additions and 6661 deletions

View File

@@ -421,13 +421,21 @@ namespace Project {
private global::System.Data.DataColumn columncode;
private global::System.Data.DataColumn columnpre;
private global::System.Data.DataColumn columnidx;
private global::System.Data.DataColumn columnpos;
private global::System.Data.DataColumn columnMatchEx;
private global::System.Data.DataColumn columnlen;
private global::System.Data.DataColumn columnMatchIndex;
private global::System.Data.DataColumn columnexp;
private global::System.Data.DataColumn columnGroupIndex;
private global::System.Data.DataColumn columnReplaceEx;
private global::System.Data.DataColumn columnReplaceStr;
private global::System.Data.DataColumn columnvarName;
private global::System.Data.DataColumn columnRemark;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
@@ -472,33 +480,65 @@ namespace Project {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn preColumn {
public global::System.Data.DataColumn idxColumn {
get {
return this.columnpre;
return this.columnidx;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn posColumn {
public global::System.Data.DataColumn MatchExColumn {
get {
return this.columnpos;
return this.columnMatchEx;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn lenColumn {
public global::System.Data.DataColumn MatchIndexColumn {
get {
return this.columnlen;
return this.columnMatchIndex;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn expColumn {
public global::System.Data.DataColumn GroupIndexColumn {
get {
return this.columnexp;
return this.columnGroupIndex;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn ReplaceExColumn {
get {
return this.columnReplaceEx;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn ReplaceStrColumn {
get {
return this.columnReplaceStr;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn varNameColumn {
get {
return this.columnvarName;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public global::System.Data.DataColumn RemarkColumn {
get {
return this.columnRemark;
}
}
@@ -539,14 +579,18 @@ namespace Project {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public Component_Reel_CustRuleRow AddComponent_Reel_CustRuleRow(string code, string pre, string pos, int len, string exp) {
public Component_Reel_CustRuleRow AddComponent_Reel_CustRuleRow(string code, string MatchEx, int MatchIndex, int GroupIndex, string ReplaceEx, string ReplaceStr, string varName, string Remark) {
Component_Reel_CustRuleRow rowComponent_Reel_CustRuleRow = ((Component_Reel_CustRuleRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
code,
pre,
pos,
len,
exp};
null,
MatchEx,
MatchIndex,
GroupIndex,
ReplaceEx,
ReplaceStr,
varName,
Remark};
rowComponent_Reel_CustRuleRow.ItemArray = columnValuesArray;
this.Rows.Add(rowComponent_Reel_CustRuleRow);
return rowComponent_Reel_CustRuleRow;
@@ -577,10 +621,14 @@ namespace Project {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
internal void InitVars() {
this.columncode = base.Columns["code"];
this.columnpre = base.Columns["pre"];
this.columnpos = base.Columns["pos"];
this.columnlen = base.Columns["len"];
this.columnexp = base.Columns["exp"];
this.columnidx = base.Columns["idx"];
this.columnMatchEx = base.Columns["MatchEx"];
this.columnMatchIndex = base.Columns["MatchIndex"];
this.columnGroupIndex = base.Columns["GroupIndex"];
this.columnReplaceEx = base.Columns["ReplaceEx"];
this.columnReplaceStr = base.Columns["ReplaceStr"];
this.columnvarName = base.Columns["varName"];
this.columnRemark = base.Columns["Remark"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -588,22 +636,40 @@ namespace Project {
private void InitClass() {
this.columncode = new global::System.Data.DataColumn("code", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columncode);
this.columnpre = new global::System.Data.DataColumn("pre", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnpre);
this.columnpos = new global::System.Data.DataColumn("pos", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnpos);
this.columnlen = new global::System.Data.DataColumn("len", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnlen);
this.columnexp = new global::System.Data.DataColumn("exp", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnexp);
this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnidx);
this.columnMatchEx = new global::System.Data.DataColumn("MatchEx", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMatchEx);
this.columnMatchIndex = new global::System.Data.DataColumn("MatchIndex", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnMatchIndex);
this.columnGroupIndex = new global::System.Data.DataColumn("GroupIndex", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnGroupIndex);
this.columnReplaceEx = new global::System.Data.DataColumn("ReplaceEx", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnReplaceEx);
this.columnReplaceStr = new global::System.Data.DataColumn("ReplaceStr", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnReplaceStr);
this.columnvarName = new global::System.Data.DataColumn("varName", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnvarName);
this.columnRemark = new global::System.Data.DataColumn("Remark", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRemark);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columncode}, true));
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint2", new global::System.Data.DataColumn[] {
this.columnidx}, false));
this.columncode.AllowDBNull = false;
this.columncode.Unique = true;
this.columncode.MaxLength = 10;
this.columnpre.MaxLength = 20;
this.columnpos.MaxLength = 20;
this.columnexp.MaxLength = 100;
this.columnidx.AutoIncrement = true;
this.columnidx.AutoIncrementSeed = -1;
this.columnidx.AutoIncrementStep = -1;
this.columnidx.AllowDBNull = false;
this.columnidx.ReadOnly = true;
this.columnidx.Unique = true;
this.columnMatchEx.MaxLength = 200;
this.columnReplaceEx.MaxLength = 200;
this.columnReplaceStr.MaxLength = 200;
this.columnvarName.MaxLength = 50;
this.columnRemark.MaxLength = 255;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -957,6 +1023,7 @@ namespace Project {
this.columnPartNo.AllowDBNull = false;
this.columnPartNo.MaxLength = 100;
this.columnPrintPosition.MaxLength = 10;
this.columnRemark.AllowDBNull = false;
this.columnRemark.MaxLength = 100;
}
@@ -2054,114 +2121,209 @@ namespace Project {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string pre {
public int idx {
get {
if (this.IspreNull()) {
return string.Empty;
return ((int)(this[this.tableComponent_Reel_CustRule.idxColumn]));
}
set {
this[this.tableComponent_Reel_CustRule.idxColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string MatchEx {
get {
try {
return ((string)(this[this.tableComponent_Reel_CustRule.MatchExColumn]));
}
else {
return ((string)(this[this.tableComponent_Reel_CustRule.preColumn]));
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'MatchEx\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.preColumn] = value;
this[this.tableComponent_Reel_CustRule.MatchExColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string pos {
public int MatchIndex {
get {
if (this.IsposNull()) {
return string.Empty;
try {
return ((int)(this[this.tableComponent_Reel_CustRule.MatchIndexColumn]));
}
else {
return ((string)(this[this.tableComponent_Reel_CustRule.posColumn]));
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'MatchIndex\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.posColumn] = value;
this[this.tableComponent_Reel_CustRule.MatchIndexColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public int len {
public int GroupIndex {
get {
if (this.IslenNull()) {
return 0;
try {
return ((int)(this[this.tableComponent_Reel_CustRule.GroupIndexColumn]));
}
else {
return ((int)(this[this.tableComponent_Reel_CustRule.lenColumn]));
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'GroupIndex\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.lenColumn] = value;
this[this.tableComponent_Reel_CustRule.GroupIndexColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string exp {
public string ReplaceEx {
get {
if (this.IsexpNull()) {
return string.Empty;
try {
return ((string)(this[this.tableComponent_Reel_CustRule.ReplaceExColumn]));
}
else {
return ((string)(this[this.tableComponent_Reel_CustRule.expColumn]));
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'ReplaceEx\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.expColumn] = value;
this[this.tableComponent_Reel_CustRule.ReplaceExColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IspreNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.preColumn);
public string ReplaceStr {
get {
try {
return ((string)(this[this.tableComponent_Reel_CustRule.ReplaceStrColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'ReplaceStr\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.ReplaceStrColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetpreNull() {
this[this.tableComponent_Reel_CustRule.preColumn] = global::System.Convert.DBNull;
public string varName {
get {
try {
return ((string)(this[this.tableComponent_Reel_CustRule.varNameColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'varName\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.varNameColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsposNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.posColumn);
public string Remark {
get {
try {
return ((string)(this[this.tableComponent_Reel_CustRule.RemarkColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("\'Component_Reel_CustRule\' 테이블의 \'Remark\' 열의 값이 DBNull입니다.", e);
}
}
set {
this[this.tableComponent_Reel_CustRule.RemarkColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetposNull() {
this[this.tableComponent_Reel_CustRule.posColumn] = global::System.Convert.DBNull;
public bool IsMatchExNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.MatchExColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IslenNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.lenColumn);
public void SetMatchExNull() {
this[this.tableComponent_Reel_CustRule.MatchExColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetlenNull() {
this[this.tableComponent_Reel_CustRule.lenColumn] = global::System.Convert.DBNull;
public bool IsMatchIndexNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.MatchIndexColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsexpNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.expColumn);
public void SetMatchIndexNull() {
this[this.tableComponent_Reel_CustRule.MatchIndexColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetexpNull() {
this[this.tableComponent_Reel_CustRule.expColumn] = global::System.Convert.DBNull;
public bool IsGroupIndexNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.GroupIndexColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetGroupIndexNull() {
this[this.tableComponent_Reel_CustRule.GroupIndexColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsReplaceExNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.ReplaceExColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetReplaceExNull() {
this[this.tableComponent_Reel_CustRule.ReplaceExColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsReplaceStrNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.ReplaceStrColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetReplaceStrNull() {
this[this.tableComponent_Reel_CustRule.ReplaceStrColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsvarNameNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.varNameColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetvarNameNull() {
this[this.tableComponent_Reel_CustRule.varNameColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsRemarkNull() {
return this.IsNull(this.tableComponent_Reel_CustRule.RemarkColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetRemarkNull() {
this[this.tableComponent_Reel_CustRule.RemarkColumn] = global::System.Convert.DBNull;
}
}
@@ -2264,12 +2426,7 @@ namespace Project {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public string Remark {
get {
if (this.IsRemarkNull()) {
return string.Empty;
}
else {
return ((string)(this[this.tableComponent_Reel_SIDInfo.RemarkColumn]));
}
return ((string)(this[this.tableComponent_Reel_SIDInfo.RemarkColumn]));
}
set {
this[this.tableComponent_Reel_SIDInfo.RemarkColumn] = value;
@@ -2311,18 +2468,6 @@ namespace Project {
public void SetPrintPositionNull() {
this[this.tableComponent_Reel_SIDInfo.PrintPositionColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public bool IsRemarkNull() {
return this.IsNull(this.tableComponent_Reel_SIDInfo.RemarkColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
public void SetRemarkNull() {
this[this.tableComponent_Reel_SIDInfo.RemarkColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -2990,10 +3135,14 @@ namespace Project.DSListTableAdapters {
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Component_Reel_CustRule";
tableMapping.ColumnMappings.Add("code", "code");
tableMapping.ColumnMappings.Add("pre", "pre");
tableMapping.ColumnMappings.Add("pos", "pos");
tableMapping.ColumnMappings.Add("len", "len");
tableMapping.ColumnMappings.Add("exp", "exp");
tableMapping.ColumnMappings.Add("idx", "idx");
tableMapping.ColumnMappings.Add("MatchEx", "MatchEx");
tableMapping.ColumnMappings.Add("MatchIndex", "MatchIndex");
tableMapping.ColumnMappings.Add("GroupIndex", "GroupIndex");
tableMapping.ColumnMappings.Add("ReplaceEx", "ReplaceEx");
tableMapping.ColumnMappings.Add("ReplaceStr", "ReplaceStr");
tableMapping.ColumnMappings.Add("varName", "varName");
tableMapping.ColumnMappings.Add("Remark", "Remark");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -3010,15 +3159,17 @@ namespace Project.DSListTableAdapters {
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_exp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exp", 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 [Component_Reel_CustRule] ([code], [pre], [pos], [len], [exp]) VALUES" +
" (@code, @pre, @pos, @len, @exp);\r\nSELECT code, pre, pos, len, exp FROM Componen" +
"t_Reel_CustRule WHERE (code = @code)";
this._adapter.InsertCommand.CommandText = @"INSERT INTO [K4EE_Component_Reel_CustRule] ([code], [MatchEx], [MatchIndex], [GroupIndex], [ReplaceEx], [ReplaceStr], [varName], [Remark]) VALUES (@code, @MatchEx, @MatchIndex, @GroupIndex, @ReplaceEx, @ReplaceStr, @varName, @Remark);
SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varName, Remark FROM K4EE_Component_Reel_CustRule WHERE (idx = SCOPE_IDENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@code", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "code", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pre", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pre", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@pos", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "pos", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@len", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "len", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@exp", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "exp", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatchEx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatchEx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatchIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MatchIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GroupIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GroupIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplaceEx", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplaceEx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ReplaceStr", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ReplaceStr", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@varName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "varName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Remark", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Remark", 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 [Component_Reel_CustRule] SET [code] = @code, [pre] = @pre, [pos] = @pos, [len] = @len, [exp] = @exp WHERE (([code] = @Original_code) AND ((@IsNull_pre = 1 AND [pre] IS NULL) OR ([pre] = @Original_pre)) AND ((@IsNull_pos = 1 AND [pos] IS NULL) OR ([pos] = @Original_pos)) AND ((@IsNull_len = 1 AND [len] IS NULL) OR ([len] = @Original_len)) AND ((@IsNull_exp = 1 AND [exp] IS NULL) OR ([exp] = @Original_exp)));
@@ -3053,7 +3204,8 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT Component_Reel_CustRule.*\r\nFROM Component_Reel_CustRule";
this._commandCollection[0].CommandText = "SELECT idx, code, MatchEx, MatchIndex, GroupIndex, ReplaceEx, ReplaceStr, varNam" +
"e, Remark\r\nFROM K4EE_Component_Reel_CustRule";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
}
@@ -3173,36 +3325,54 @@ SELECT code, pre, pos, len, exp FROM Component_Reel_CustRule WHERE (code = @code
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string code, string pre, string pos, global::System.Nullable<int> len, string exp) {
public virtual int Insert(string code, string MatchEx, global::System.Nullable<int> MatchIndex, global::System.Nullable<int> GroupIndex, string ReplaceEx, string ReplaceStr, string varName, string Remark) {
if ((code == null)) {
throw new global::System.ArgumentNullException("code");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(code));
}
if ((pre == null)) {
if ((MatchEx == null)) {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(pre));
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(MatchEx));
}
if ((pos == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
if ((MatchIndex.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[2].Value = ((int)(MatchIndex.Value));
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(pos));
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
if ((len.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(len.Value));
if ((GroupIndex.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[3].Value = ((int)(GroupIndex.Value));
}
else {
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((exp == null)) {
if ((ReplaceEx == null)) {
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(exp));
this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ReplaceEx));
}
if ((ReplaceStr == null)) {
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ReplaceStr));
}
if ((varName == null)) {
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(varName));
}
if ((Remark == null)) {
this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Remark));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -3513,12 +3683,12 @@ SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark FROM C
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT SID, CustCode, CustName, VenderName, PartNo, PrintPosition, Remark\r\nFROM " +
" Component_Reel_SIDInfo\r\nWHERE (SID = @sid) AND (CustCode = @custcode) AND (" +
"PartNo = @partno)";
" K4EE_Component_Reel_SIDInfo\r\nWHERE (SID = @sid) AND (CustCode = @custcode) " +
"AND (PartNo = @partno)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@custcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "CustCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@partno", global::System.Data.SqlDbType.VarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sid", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, "SID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@custcode", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "CustCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@partno", global::System.Data.SqlDbType.NVarChar, 100, global::System.Data.ParameterDirection.Input, 0, 0, "PartNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4092,8 +4262,8 @@ SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idx, M101, M103, M106, M108, M103_2, M101_2, Chk, SIDFrom, SIDTo, Remark\r" +
"\nFROM Component_Reel_SIDConv\r\nWHERE (SIDFrom = @sidfrom) AND (SIDTo = @sidt" +
"o)";
"\nFROM K4EE_Component_Reel_SIDConv\r\nWHERE (SIDFrom = @sidfrom) AND (SIDTo = " +
"@sidto)";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sidfrom", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "SIDFrom", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sidto", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "SIDTo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));