장비목록 그룹별 분리

This commit is contained in:
chi
2023-01-09 09:37:52 +09:00
parent a1332a2720
commit 32b5059af8
15 changed files with 830 additions and 383 deletions

View File

@@ -19,12 +19,12 @@ namespace FEQ0000
List<string> retval = new List<string>();
var cn = getCn();
cn.Open();
var sql = "select {0} from {1} where isnull({0},'') != '' group by {0} order by {0}";
var sql = "select {0} from {1} where gcode='" + FCOMMON.info.Login.gcode + "' and isnull({0},'') != '' group by {0} order by {0}";
if (GroupColumn.IndexOf("+") == -1)
sql = string.Format(sql, "[" + GroupColumn + "]", table);
else
sql = string.Format(sql, GroupColumn , table);
sql = string.Format(sql, GroupColumn, table);
var cmd = new System.Data.SqlClient.SqlCommand(sql, cn);

View File

@@ -33,7 +33,7 @@ namespace FEQ0000
try
{
ta.Fill(this.dsEQ.EquipmentFilter, eqfiletertype);
ta.Fill(this.dsEQ.EquipmentFilter, eqfiletertype, FCOMMON.info.Login.gcode);
//필터목록을 미리 가져온다.
//var fn = "eqfilter.xml";

View File

@@ -26,13 +26,14 @@ namespace FEQ0000
e.Row["type"] = this.divtype;
e.Row["wuid"] = FCOMMON.info.Login.no;
e.Row["wdate"] = DateTime.Now;
e.Row["gcode"] = FCOMMON.info.Login.gcode;
}
private void EQfilter_Load(object sender, EventArgs e)
{
try
{
ta.Fill(this.dsEQ.EquipmentFilter, divtype);
ta.Fill(this.dsEQ.EquipmentFilter, divtype, FCOMMON.info.Login.gcode);
}
catch (Exception ex)
{

View File

@@ -86,6 +86,7 @@
this.radexpa = new System.Windows.Forms.RadioButton();
this.radexpn = new System.Windows.Forms.RadioButton();
this.panel1 = new System.Windows.Forms.Panel();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
@@ -108,7 +109,6 @@
this.07ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.tam = new FEQ0000.dsEQTableAdapters.TableAdapterManager();
this.taAll = new FEQ0000.dsEQTableAdapters.EETGW_EquipmentTableAdapter();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
this.bn.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dv)).BeginInit();
@@ -164,6 +164,7 @@
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(65, 22);
this.bindingNavigatorAddNewItem.Text = "Add(&A)";
this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
//
// bindingNavigatorCountItem
//
@@ -613,6 +614,17 @@
this.panel1.TabIndex = 2;
this.panel1.Visible = false;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(21, 64);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(52, 12);
this.linkLabel1.TabIndex = 16;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "Process";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.radioButton1);
@@ -735,7 +747,7 @@
// applyToolStripMenuItem
//
this.applyToolStripMenuItem.Name = "applyToolStripMenuItem";
this.applyToolStripMenuItem.Size = new System.Drawing.Size(172, 22);
this.applyToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.applyToolStripMenuItem.Text = "Apply";
this.applyToolStripMenuItem.Click += new System.EventHandler(this.applyToolStripMenuItem_Click);
//
@@ -819,17 +831,6 @@
//
this.taAll.ClearBeforeFill = true;
//
// linkLabel1
//
this.linkLabel1.AutoSize = true;
this.linkLabel1.Location = new System.Drawing.Point(21, 64);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(52, 12);
this.linkLabel1.TabIndex = 16;
this.linkLabel1.TabStop = true;
this.linkLabel1.Text = "Process";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// fEquipment
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);

View File

@@ -100,8 +100,8 @@ namespace FEQ0000
var taDateList = new dsEQTableAdapters.EqDateListTableAdapter();
DataTable dtList = null;
if (dataType == eTabletype.ALL) dtList = taDateList.GetData();
else dtList = taDateList.GetData();
if (dataType == eTabletype.ALL) dtList = taDateList.GetData(FCOMMON.info.Login.gcode);
else dtList = taDateList.GetData(FCOMMON.info.Login.gcode);
this.cmbDate.Items.Clear();
if (dtList != null)
@@ -483,7 +483,7 @@ namespace FEQ0000
var ucnt = 0;
var taLIne = new dsEQTableAdapters.LineCodeTableAdapter();
var dtLineCode = taLIne.GetData();
var dtLineCode = taLIne.GetData(FCOMMON.info.Login.gcode);
this.prb1.Maximum = this.dsEQ.EETGW_Equipment.Count;
@@ -540,6 +540,11 @@ namespace FEQ0000
{
}
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
{
}
}
}

View File

@@ -234,9 +234,6 @@
<metadata name="dsEQ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>83, 17</value>
</metadata>
<metadata name="dsEQ.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>83, 17</value>
</metadata>
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>236, 17</value>
</metadata>
@@ -247,6 +244,17 @@
IAxiQ4WJB6MGDJQBgfU7xcKa9lwvmXPtZcmCGy/aN7/5D8IgNkgMJAdSA1WOHfjXrxdI6jt5uHPru//d
2z+AMYgNEgPJQZXhB6Hlu/mToYaANfefPAQSg0oTBwIq1gmnTjyzP3XCyf0h9TuEoMKkAZBGgpqj2vb7
xHQcbCUHg/QypE44tQQWWKRikF6G2K4juSAGOTi260guAHNTC7nWY2FZAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE4SURBVDhPnZJLS8NAFIVHf2dbzGRt95pidOqirqoi7mzR
SlNBok4K6k5dtabJKmspERcF0aUPCmPudaY05mH0wIHLnPudYWBIloQgC4PTkjmwy2swy+NiAsDv69ZD
YE7Bfl+zCpeYprno8aWTcbAxFS8dAYYZziCTa+lC2InD8yWuo/UySyDwL2hvHLAErAwlsJN4Dr6Z61Ye
rAw7I067sxIYRg7tFoGVsSRisGRol42ncP1ThXfXW2KzXsW50zLEcbuGc51VMVN7k3Dv4/6sskrc83jB
zWVDMFlweGCIo9Z3AWPL4vaqES+wKyv4DI/T5utj802Fvxl2gUFYyeP69nO4/54GzDsVVvIcupNXAhlc
JNfTlVWCcJTJtXz9LPkTrORzbRfAf8Eg+CRDu1Rzo38y+3UJEfIFvRLocMoRAWoAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButton2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -261,17 +269,6 @@
qg0Blmw9kwplYgWxnftNMqacvpA+9cz56M49mNG4aMfpHCgTK1i16grb5sNX+4C4F8SGCiPA4u2n1Bdv
O527ePtpSagQCthy/HrnvRcf/oPw1mPXMfMCCMzZcIR34fYz7ou2nwlFxxsPXd0IMwBkGFQL8QDVC1fY
AOn3LwMH9jJlAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButton7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE3SURBVDhPnZJLS8NAFIVHf2dbzGRt95pidOKirqoi7qxo
pakgUScFdaeuWtNklb004kIQXfqgMOZeZ0pjHkYPHLjMud8ZBobkSQgyNzipmAOnugKzPC4nAIK+bt+H
qxNw0Nfs0iWmac77fOF4HLKJeOkIMMxwBplcyxbCbhKeLfFcrZdbAkFwTnvj0ErBylACO6nn4Ju5bhfB
yrAz4rQ7LYFh5NJuGVgZS2IGS4ZO1XiM1j5VeHu1IdatOs6dtiGO9hs4W6yOmdp7inY+7k5ry8Q7SxZc
XzQFkwUHe4Y4bH8XMLYobi6byQKntoTP8DltvT603lT4m2EXGISVfK5vPke771nArDNhJd+lW0UlkMFF
cj1beSUIx5lcK9bPkj/BSgHXtgH8FwyCTzJ0Kg0v/ifTX5cSIV8KkOiKQK+J5QAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripButton4.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@@ -289,14 +286,14 @@
<data name="btRefresh.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGkSURBVDhPlZNNSwJBHIctKiJ6vQR9gujUV+i7BNGlU0S3
BqQwK7V8WVtX23JNLW1rt02tzaTwLUrR0FOFnYoy6xJRZE67MZKrS9YDv8v8/s8wwzCKeqjI7SG9ex/T
U36H3hnQqLGdflT9jgpb7zF6g75A5v41XYBQTOqxBJnEZUHYiAAANKHRWoSy0ezhg8mH4rdYnVDy5nPR
6cfQeC1aBzsazeU+5ORyuEQuryRcA0iRQjBhWk6qTCr/CXXrvgWkSFkNnIbkpOpgW0ESKVJsbJSTEyqT
EqJ3HxiRIkVj9ynPbt9kxXL47NWLyuwZQoqUsSWqk/DyT3KiGPF1TG6eRuNSACBb50l6b/EgVjTvnDyf
371L5EjmumjaODycnMW7kPIDMBrbNWvMsWWLL81ZPZ4RHG8zuAJTVi6yZ2PDsWXmmNY4fMMKCBuQ8gPQ
kd06O3vEhNNwfsW7K8jNqKrPOGbvXaLYOBu5gAskzQOw2YKq+kxrqT4DtZvkYhkoHD80obZ2oOpvqAmv
hYtnoXgC8QOh5b+jNNsHZ3A3Ll4DLf0DheILn/WXKCs8OcIAAAAASUVORK5CYII=
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGjSURBVDhPlZNNSwJBHIctKiJ6vQR9gujUV/C7BNGlU0S3
BqQwy5c0W9tW23JNLbetXdeXXE0KTaMUDT0leCt6v0QUWdNujNjakvXA7zK//zPMMIyqEVpyV23x7mMW
KuSyuMMGHbY3iKrf0WKbfVY6FgwXrp/z9xBKyd19QDZzcS9uRAAAWtDoT8Sy2eYTYtmbypdYn3im/L7o
DmFo/CdGFzd2XC6/KcnV8JnyrYbwDCFFDsEmGCXpe3K379C0GdQjRc56+CSuJNUH24mRSJHj4I55JeF7
cmIs3ogVKXIMzqDm9PJFUaxGKJaetDafGilyxs1UN0ELD0qiFOl1lr0Cg8blAEC2L5BMwBRJVWx7R49n
V68yOVkoVZa3otGpObwHKTWA1dpp2GAPcTryMW/3+UZxvGPJE56288mAg0ukVthDxuAKjqggbEJKDWAi
e01O7oBN5OHCGu0X5VZUNWYCc/abKS7NJc+hnmQEALbbUNWYGSM1sET5s3yqAMXjxyd19i5U/Q0dQa/y
6SKUTiB9ILT8dzQ25/As7sWla6Clf6BSfQKRtJchBF/ltgAAAABJRU5ErkJggg==
</value>
</data>
<data name="toolStripDropDownButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@@ -196,7 +196,7 @@ namespace FEQ0000
private void button2_Click(object sender, EventArgs e)
{
var ta = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = ta.GetData();
var lineTd = ta.GetData(FCOMMON.info.Login.gcode);
lineTd.AcceptChanges();
//12,13
foreach (DataRow dr in dt.Rows)
@@ -255,7 +255,7 @@ namespace FEQ0000
//라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData();
var lineTd = taLine.GetData(FCOMMON.info.Login.gcode);
lineTd.AcceptChanges();
dt.Clear();
@@ -270,7 +270,7 @@ namespace FEQ0000
if (dlg == DialogResult.Yes)
{
var taE = new dsEQTableAdapters.EETGW_EquipmentTableAdapter();
taE.DeleteData(dateStr);
taE.DeleteData(dateStr, FCOMMON.info.Login.gcode);
}
//12,13
@@ -327,6 +327,7 @@ namespace FEQ0000
//신규추가한다.
var newli = lineTd.NewLineCodeRow();
newli.code = linecode;
newli.gcode = FCOMMON.info.Login.gcode;
newli.team = lineT;
newli.part = lineP;
newli.memo = linedesc;
@@ -364,6 +365,7 @@ namespace FEQ0000
newdr["memo"] = string.Empty;
newdr["flag"] = rcsflag; //rcs flag 210325
newdr["version"] = version; //210810
newdr["gcode"] = FCOMMON.info.Login.gcode;
if (grp2.ToUpper() == "BUMP") newdr["param1"] = "8\"";
else newdr["param1"] = string.Empty;

View File

@@ -67,6 +67,7 @@ namespace FEQ0000
newdr.Remark = dr.memo;
newdr.plant = dr.plant;
newdr.grp2 = dr.grp2;
newdr.gcode = FCOMMON.info.Login.gcode;
dtSum.AddvEquStockAllRow(newdr);
}
}

View File

@@ -233,7 +233,7 @@ namespace FEQ0000
//라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData();
var lineTd = taLine.GetData(FCOMMON.info.Login.gcode);
lineTd.AcceptChanges();
dt.Clear();

View File

@@ -240,7 +240,7 @@ namespace FEQ0000
//라인코드를 읽어서 값을 기록해준다.
var taLine = new dsEQTableAdapters.LineCodeTableAdapter();
var lineTd = taLine.GetData();
var lineTd = taLine.GetData(FCOMMON.info.Login.gcode);
lineTd.AcceptChanges();
dt.Clear();

File diff suppressed because it is too large Load Diff

View File

@@ -22,9 +22,12 @@
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT pdate
FROM EETGW_Equipment
WHERE (gcode = @gcode)
GROUP BY pdate
ORDER BY pdate DESC</CommandText>
<Parameters />
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
@@ -39,7 +42,7 @@ ORDER BY pdate DESC</CommandText>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EquipmentFilter" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [EquipmentFilter] WHERE (([idx] = @Original_idx) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)))</CommandText>
<CommandText>DELETE FROM [EquipmentFilter] WHERE (([idx] = @Original_idx) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="type" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -52,13 +55,15 @@ ORDER BY pdate DESC</CommandText>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_wdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [EquipmentFilter] ([type], [Title], [Filter], [Apply], [memo], [wuid], [wdate]) VALUES (@type, @Title, @Filter, @Apply, @memo, @wuid, @wdate);
SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter WHERE (idx = SCOPE_IDENTITY()) ORDER BY Title</CommandText>
<CommandText>INSERT INTO [EquipmentFilter] ([type], [Title], [Filter], [Apply], [memo], [wuid], [wdate], [gcode]) VALUES (@type, @Title, @Filter, @Apply, @memo, @wuid, @wdate, @gcode);
SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate, gcode FROM EquipmentFilter WHERE (idx = SCOPE_IDENTITY()) ORDER BY Title</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@type" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="type" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -67,24 +72,26 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate
<CommandText>SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate, gcode
FROM EquipmentFilter
WHERE (type = @type)
WHERE (type = @type) AND (gcode = @gcode)
ORDER BY Title</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="type" ColumnName="type" DataSourceName="EE.dbo.EquipmentFilter" DataTypeServer="varchar(1)" DbType="AnsiString" Direction="Input" ParameterName="@type" Precision="0" ProviderType="VarChar" Scale="0" Size="1" SourceColumn="type" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EquipmentFilter" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [EquipmentFilter] SET [type] = @type, [Title] = @Title, [Filter] = @Filter, [Apply] = @Apply, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)));
SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter WHERE (idx = @idx) ORDER BY Title</CommandText>
<CommandText>UPDATE [EquipmentFilter] SET [type] = @type, [Title] = @Title, [Filter] = @Filter, [Apply] = @Apply, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_Title = 1 AND [Title] IS NULL) OR ([Title] = @Original_Title)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ((@IsNull_wuid = 1 AND [wuid] IS NULL) OR ([wuid] = @Original_wuid)) AND ((@IsNull_wdate = 1 AND [wdate] IS NULL) OR ([wdate] = @Original_wdate)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)));
SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate, gcode FROM EquipmentFilter WHERE (idx = @idx) ORDER BY Title</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@type" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="type" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Title" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Title" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -93,6 +100,7 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@memo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="memo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_type" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="type" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_type" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="type" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -104,6 +112,8 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_wdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.EquipmentFilter" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
@@ -119,6 +129,7 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<Mapping SourceColumn="memo" DataSetColumn="memo" />
<Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings>
<Sources />
</TableAdapter>
@@ -127,7 +138,7 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.LineCode" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [LineCode] WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)))</CommandText>
<CommandText>DELETE FROM [LineCode] WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_code" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -146,13 +157,15 @@ SELECT idx, type, Title, Filter, Apply, memo, wuid, wdate FROM EquipmentFilter W
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_grp2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_grp2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [LineCode] ([code], [team], [part], [plant], [except], [memo], [wuid], [wdate], [grp2]) VALUES (@code, @team, @part, @plant, @except, @memo, @wuid, @wdate, @grp2);
SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM LineCode WHERE (idx = SCOPE_IDENTITY())</CommandText>
<CommandText>INSERT INTO [LineCode] ([code], [team], [part], [plant], [except], [memo], [wuid], [wdate], [grp2], [gcode]) VALUES (@code, @team, @part, @plant, @except, @memo, @wuid, @wdate, @grp2, @gcode);
SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2, gcode FROM LineCode WHERE (idx = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@team" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="team" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -163,20 +176,24 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2
FROM LineCode</CommandText>
<Parameters />
<CommandText>SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2, gcode
FROM LineCode
WHERE (gcode = @gcode)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.LineCode" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [LineCode] SET [code] = @code, [team] = @team, [part] = @part, [plant] = @plant, [except] = @except, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [grp2] = @grp2 WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)));
SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM LineCode WHERE (idx = @idx)</CommandText>
<CommandText>UPDATE [LineCode] SET [code] = @code, [team] = @team, [part] = @part, [plant] = @plant, [except] = @except, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [grp2] = @grp2, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_code = 1 AND [code] IS NULL) OR ([code] = @Original_code)) AND ((@IsNull_team = 1 AND [team] IS NULL) OR ([team] = @Original_team)) AND ((@IsNull_part = 1 AND [part] IS NULL) OR ([part] = @Original_part)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)));
SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2, gcode FROM LineCode WHERE (idx = @idx)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@team" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="team" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -187,6 +204,7 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@grp2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_code" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_code" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="code" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -204,6 +222,8 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_grp2" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_grp2" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="grp2" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.LineCode" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
@@ -221,6 +241,7 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="plant" DataSetColumn="plant" />
<Mapping SourceColumn="grp2" DataSetColumn="grp2" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings>
<Sources />
</TableAdapter>
@@ -229,7 +250,7 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EETGW_Equipment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [EETGW_Equipment] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_flag = 1 AND [flag] IS NULL) OR ([flag] = @Original_flag)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_ing = 1 AND [ing] IS NULL) OR ([ing] = @Original_ing)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_lineT = 1 AND [lineT] IS NULL) OR ([lineT] = @Original_lineT)) AND ((@IsNull_lineP = 1 AND [lineP] IS NULL) OR ([lineP] = @Original_lineP)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_param1 = 1 AND [param1] IS NULL) OR ([param1] = @Original_param1)) AND ((@IsNull_primary = 1 AND [primary] IS NULL) OR ([primary] = @Original_primary)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_version = 1 AND [version] IS NULL) OR ([version] = @Original_version)))</CommandText>
<CommandText>DELETE FROM [EETGW_Equipment] WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_flag = 1 AND [flag] IS NULL) OR ([flag] = @Original_flag)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_ing = 1 AND [ing] IS NULL) OR ([ing] = @Original_ing)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_lineT = 1 AND [lineT] IS NULL) OR ([lineT] = @Original_lineT)) AND ((@IsNull_lineP = 1 AND [lineP] IS NULL) OR ([lineP] = @Original_lineP)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_param1 = 1 AND [param1] IS NULL) OR ([param1] = @Original_param1)) AND ((@IsNull_primary = 1 AND [primary] IS NULL) OR ([primary] = @Original_primary)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_version = 1 AND [version] IS NULL) OR ([version] = @Original_version)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" />
@@ -272,13 +293,15 @@ SELECT idx, code, team, part, plant, [except], memo, wuid, wdate, grp2 FROM Line
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_version" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_version" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [EETGW_Equipment] ([pdate], [asset], [grp], [type], [flag], [plant], [grp2], [ing], [model], [linecode], [lineT], [lineP], [serial], [manu], [param1], [primary], [except], [memo], [wuid], [wdate], [version]) VALUES (@pdate, @asset, @grp, @type, @flag, @plant, @grp2, @ing, @model, @linecode, @lineT, @lineP, @serial, @manu, @param1, @primary, @except, @memo, @wuid, @wdate, @version);
SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version FROM EETGW_Equipment WHERE (idx = SCOPE_IDENTITY())</CommandText>
<CommandText>INSERT INTO [EETGW_Equipment] ([pdate], [asset], [grp], [type], [flag], [plant], [grp2], [ing], [model], [linecode], [lineT], [lineP], [serial], [manu], [param1], [primary], [except], [memo], [wuid], [wdate], [version], [gcode]) VALUES (@pdate, @asset, @grp, @type, @flag, @plant, @grp2, @ing, @model, @linecode, @lineT, @lineP, @serial, @manu, @param1, @primary, @except, @memo, @wuid, @wdate, @version, @gcode);
SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version, gcode FROM EETGW_Equipment WHERE (idx = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -301,23 +324,25 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@version" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version
<CommandText>SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version, gcode
FROM EETGW_Equipment
WHERE (pdate = @pdate)</CommandText>
WHERE (pdate = @pdate) AND (gcode = @gcode)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [EETGW_Equipment] SET [pdate] = @pdate, [asset] = @asset, [grp] = @grp, [type] = @type, [flag] = @flag, [plant] = @plant, [grp2] = @grp2, [ing] = @ing, [model] = @model, [linecode] = @linecode, [lineT] = @lineT, [lineP] = @lineP, [serial] = @serial, [manu] = @manu, [param1] = @param1, [primary] = @primary, [except] = @except, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [version] = @version WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_flag = 1 AND [flag] IS NULL) OR ([flag] = @Original_flag)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_ing = 1 AND [ing] IS NULL) OR ([ing] = @Original_ing)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_lineT = 1 AND [lineT] IS NULL) OR ([lineT] = @Original_lineT)) AND ((@IsNull_lineP = 1 AND [lineP] IS NULL) OR ([lineP] = @Original_lineP)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_param1 = 1 AND [param1] IS NULL) OR ([param1] = @Original_param1)) AND ((@IsNull_primary = 1 AND [primary] IS NULL) OR ([primary] = @Original_primary)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_version = 1 AND [version] IS NULL) OR ([version] = @Original_version)));
SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version FROM EETGW_Equipment WHERE (idx = @idx)</CommandText>
<CommandText>UPDATE [EETGW_Equipment] SET [pdate] = @pdate, [asset] = @asset, [grp] = @grp, [type] = @type, [flag] = @flag, [plant] = @plant, [grp2] = @grp2, [ing] = @ing, [model] = @model, [linecode] = @linecode, [lineT] = @lineT, [lineP] = @lineP, [serial] = @serial, [manu] = @manu, [param1] = @param1, [primary] = @primary, [except] = @except, [memo] = @memo, [wuid] = @wuid, [wdate] = @wdate, [version] = @version, [gcode] = @gcode WHERE (([idx] = @Original_idx) AND ((@IsNull_pdate = 1 AND [pdate] IS NULL) OR ([pdate] = @Original_pdate)) AND ((@IsNull_asset = 1 AND [asset] IS NULL) OR ([asset] = @Original_asset)) AND ((@IsNull_grp = 1 AND [grp] IS NULL) OR ([grp] = @Original_grp)) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_flag = 1 AND [flag] IS NULL) OR ([flag] = @Original_flag)) AND ((@IsNull_plant = 1 AND [plant] IS NULL) OR ([plant] = @Original_plant)) AND ((@IsNull_grp2 = 1 AND [grp2] IS NULL) OR ([grp2] = @Original_grp2)) AND ((@IsNull_ing = 1 AND [ing] IS NULL) OR ([ing] = @Original_ing)) AND ((@IsNull_model = 1 AND [model] IS NULL) OR ([model] = @Original_model)) AND ((@IsNull_linecode = 1 AND [linecode] IS NULL) OR ([linecode] = @Original_linecode)) AND ((@IsNull_lineT = 1 AND [lineT] IS NULL) OR ([lineT] = @Original_lineT)) AND ((@IsNull_lineP = 1 AND [lineP] IS NULL) OR ([lineP] = @Original_lineP)) AND ((@IsNull_serial = 1 AND [serial] IS NULL) OR ([serial] = @Original_serial)) AND ((@IsNull_manu = 1 AND [manu] IS NULL) OR ([manu] = @Original_manu)) AND ((@IsNull_param1 = 1 AND [param1] IS NULL) OR ([param1] = @Original_param1)) AND ((@IsNull_primary = 1 AND [primary] IS NULL) OR ([primary] = @Original_primary)) AND ((@IsNull_except = 1 AND [except] IS NULL) OR ([except] = @Original_except)) AND ((@IsNull_memo = 1 AND [memo] IS NULL) OR ([memo] = @Original_memo)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate) AND ((@IsNull_version = 1 AND [version] IS NULL) OR ([version] = @Original_version)) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)));
SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, lineT, lineP, serial, manu, param1, [primary], [except], memo, wuid, wdate, version, gcode FROM EETGW_Equipment WHERE (idx = @idx)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@asset" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="asset" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -340,6 +365,7 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@wuid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="wuid" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@version" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idx" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_pdate" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -381,6 +407,8 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_version" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_version" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="version" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
@@ -410,9 +438,10 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
<Mapping SourceColumn="wuid" DataSetColumn="wuid" />
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
<Mapping SourceColumn="version" DataSetColumn="version" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings>
<Sources>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteData" Modifier="Public" Name="DeleteData" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteData">
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteData" Modifier="Public" Name="DeleteData" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteData">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>DELETE FROM [EETGW_Equipment] WHERE pdate = @pdate</CommandText>
@@ -421,6 +450,16 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
</Parameters>
</DbCommand>
</DeleteCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>DELETE FROM EETGW_Equipment
WHERE (pdate = @pdate) AND (gcode = @gcode)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_Equipment" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
@@ -428,12 +467,13 @@ SELECT idx, pdate, asset, grp, type, flag, plant, grp2, ing, model, linecode, li
<MainSource>
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.vEquStockAll" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT pdate, grp, manu, model, linecode, lineT, lineP, cnt, Remark, plant, grp2
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT pdate, grp, manu, model, linecode, lineT, lineP, cnt, Remark, plant, grp2, gcode
FROM vEquStockAll
WHERE (pdate = @pdate)</CommandText>
WHERE (pdate = @pdate) AND (gcode = @gcode)</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="pdate" ColumnName="pdate" DataSourceName="EE.dbo.vEquStockAll" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@pdate" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="pdate" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.vEquStockAll" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -451,6 +491,7 @@ WHERE (pdate = @pdate)</CommandText>
<Mapping SourceColumn="Remark" DataSetColumn="Remark" />
<Mapping SourceColumn="plant" DataSetColumn="plant" />
<Mapping SourceColumn="grp2" DataSetColumn="grp2" />
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
</Mappings>
<Sources />
</TableAdapter>
@@ -462,10 +503,10 @@ WHERE (pdate = @pdate)</CommandText>
<xs:element name="dsEQ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsEQ" msprop:Generator_UserDSName="dsEQ">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="EqDateList" msprop:Generator_TableClassName="EqDateListDataTable" msprop:Generator_TableVarName="tableEqDateList" msprop:Generator_TablePropName="EqDateList" msprop:Generator_RowDeletingName="EqDateListRowDeleting" msprop:Generator_RowChangingName="EqDateListRowChanging" msprop:Generator_RowEvHandlerName="EqDateListRowChangeEventHandler" msprop:Generator_RowDeletedName="EqDateListRowDeleted" msprop:Generator_UserTableName="EqDateList" msprop:Generator_RowChangedName="EqDateListRowChanged" msprop:Generator_RowEvArgName="EqDateListRowChangeEvent" msprop:Generator_RowClassName="EqDateListRow">
<xs:element name="EqDateList" msprop:Generator_TableClassName="EqDateListDataTable" msprop:Generator_TableVarName="tableEqDateList" msprop:Generator_RowChangedName="EqDateListRowChanged" msprop:Generator_TablePropName="EqDateList" msprop:Generator_RowDeletingName="EqDateListRowDeleting" msprop:Generator_RowChangingName="EqDateListRowChanging" msprop:Generator_RowEvHandlerName="EqDateListRowChangeEventHandler" msprop:Generator_RowDeletedName="EqDateListRowDeleted" msprop:Generator_RowClassName="EqDateListRow" msprop:Generator_UserTableName="EqDateList" msprop:Generator_RowEvArgName="EqDateListRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate">
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="20" />
@@ -475,7 +516,7 @@ WHERE (pdate = @pdate)</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EquipmentFilter" msprop:Generator_TableClassName="EquipmentFilterDataTable" msprop:Generator_TableVarName="tableEquipmentFilter" msprop:Generator_TablePropName="EquipmentFilter" msprop:Generator_RowDeletingName="EquipmentFilterRowDeleting" msprop:Generator_RowChangingName="EquipmentFilterRowChanging" msprop:Generator_RowEvHandlerName="EquipmentFilterRowChangeEventHandler" msprop:Generator_RowDeletedName="EquipmentFilterRowDeleted" msprop:Generator_UserTableName="EquipmentFilter" msprop:Generator_RowChangedName="EquipmentFilterRowChanged" msprop:Generator_RowEvArgName="EquipmentFilterRowChangeEvent" msprop:Generator_RowClassName="EquipmentFilterRow">
<xs:element name="EquipmentFilter" msprop:Generator_TableClassName="EquipmentFilterDataTable" msprop:Generator_TableVarName="tableEquipmentFilter" msprop:Generator_RowChangedName="EquipmentFilterRowChanged" msprop:Generator_TablePropName="EquipmentFilter" msprop:Generator_RowDeletingName="EquipmentFilterRowDeleting" msprop:Generator_RowChangingName="EquipmentFilterRowChanging" msprop:Generator_RowEvHandlerName="EquipmentFilterRowChangeEventHandler" msprop:Generator_RowDeletedName="EquipmentFilterRowDeleted" msprop:Generator_RowClassName="EquipmentFilterRow" msprop:Generator_UserTableName="EquipmentFilter" msprop:Generator_RowEvArgName="EquipmentFilterRowChangeEvent">
<xs:complexType>
<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" />
@@ -522,10 +563,17 @@ WHERE (pdate = @pdate)</CommandText>
</xs:simpleType>
</xs:element>
<xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" minOccurs="0" />
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LineCode" msprop:Generator_TableClassName="LineCodeDataTable" msprop:Generator_TableVarName="tableLineCode" msprop:Generator_RowChangedName="LineCodeRowChanged" msprop:Generator_TablePropName="LineCode" msprop:Generator_RowDeletingName="LineCodeRowDeleting" msprop:Generator_RowChangingName="LineCodeRowChanging" msprop:Generator_RowEvHandlerName="LineCodeRowChangeEventHandler" msprop:Generator_RowDeletedName="LineCodeRowDeleted" msprop:Generator_RowClassName="LineCodeRow" msprop:Generator_UserTableName="LineCode" msprop:Generator_RowEvArgName="LineCodeRowChangeEvent">
<xs:element name="LineCode" msprop:Generator_TableClassName="LineCodeDataTable" msprop:Generator_TableVarName="tableLineCode" msprop:Generator_TablePropName="LineCode" msprop:Generator_RowDeletingName="LineCodeRowDeleting" msprop:Generator_RowChangingName="LineCodeRowChanging" msprop:Generator_RowEvHandlerName="LineCodeRowChangeEventHandler" msprop:Generator_RowDeletedName="LineCodeRowDeleted" msprop:Generator_UserTableName="LineCode" msprop:Generator_RowChangedName="LineCodeRowChanged" msprop:Generator_RowEvArgName="LineCodeRowChangeEvent" msprop:Generator_RowClassName="LineCodeRow">
<xs:complexType>
<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" />
@@ -580,10 +628,17 @@ WHERE (pdate = @pdate)</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="EETGW_Equipment" msprop:Generator_TableClassName="EETGW_EquipmentDataTable" msprop:Generator_TableVarName="tableEETGW_Equipment" msprop:Generator_RowChangedName="EETGW_EquipmentRowChanged" msprop:Generator_TablePropName="EETGW_Equipment" msprop:Generator_RowDeletingName="EETGW_EquipmentRowDeleting" msprop:Generator_RowChangingName="EETGW_EquipmentRowChanging" msprop:Generator_RowEvHandlerName="EETGW_EquipmentRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_EquipmentRowDeleted" msprop:Generator_RowClassName="EETGW_EquipmentRow" msprop:Generator_UserTableName="EETGW_Equipment" msprop:Generator_RowEvArgName="EETGW_EquipmentRowChangeEvent">
<xs:element name="EETGW_Equipment" msprop:Generator_TableClassName="EETGW_EquipmentDataTable" msprop:Generator_TableVarName="tableEETGW_Equipment" msprop:Generator_TablePropName="EETGW_Equipment" msprop:Generator_RowDeletingName="EETGW_EquipmentRowDeleting" msprop:Generator_RowChangingName="EETGW_EquipmentRowChanging" msprop:Generator_RowEvHandlerName="EETGW_EquipmentRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_EquipmentRowDeleted" msprop:Generator_UserTableName="EETGW_Equipment" msprop:Generator_RowChangedName="EETGW_EquipmentRowChanged" msprop:Generator_RowEvArgName="EETGW_EquipmentRowChangeEvent" msprop:Generator_RowClassName="EETGW_EquipmentRow">
<xs:complexType>
<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" />
@@ -703,17 +758,24 @@ WHERE (pdate = @pdate)</CommandText>
</xs:simpleType>
</xs:element>
<xs:element name="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_UserColumnName="wdate" type="xs:dateTime" />
<xs:element name="version" msprop:Generator_ColumnVarNameInTable="columnversion" msprop:Generator_ColumnPropNameInRow="version" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInTable="versionColumn" msprop:Generator_UserColumnName="version" minOccurs="0">
<xs:element name="version" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="version" msprop:Generator_ColumnVarNameInTable="columnversion" msprop:Generator_ColumnPropNameInTable="versionColumn" msprop:Generator_UserColumnName="version" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="vEquStockAll" msprop:Generator_TableClassName="vEquStockAllDataTable" msprop:Generator_TableVarName="tablevEquStockAll" msprop:Generator_TablePropName="vEquStockAll" msprop:Generator_RowDeletingName="vEquStockAllRowDeleting" msprop:Generator_RowChangingName="vEquStockAllRowChanging" msprop:Generator_RowEvHandlerName="vEquStockAllRowChangeEventHandler" msprop:Generator_RowDeletedName="vEquStockAllRowDeleted" msprop:Generator_UserTableName="vEquStockAll" msprop:Generator_RowChangedName="vEquStockAllRowChanged" msprop:Generator_RowEvArgName="vEquStockAllRowChangeEvent" msprop:Generator_RowClassName="vEquStockAllRow">
<xs:element name="vEquStockAll" msprop:Generator_TableClassName="vEquStockAllDataTable" msprop:Generator_TableVarName="tablevEquStockAll" msprop:Generator_RowChangedName="vEquStockAllRowChanged" msprop:Generator_TablePropName="vEquStockAll" msprop:Generator_RowDeletingName="vEquStockAllRowDeleting" msprop:Generator_RowChangingName="vEquStockAllRowChanging" msprop:Generator_RowEvHandlerName="vEquStockAllRowChangeEventHandler" msprop:Generator_RowDeletedName="vEquStockAllRowDeleted" msprop:Generator_RowClassName="vEquStockAllRow" msprop:Generator_UserTableName="vEquStockAll" msprop:Generator_RowEvArgName="vEquStockAllRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="pdate" msprop:Generator_ColumnVarNameInTable="columnpdate" msprop:Generator_ColumnPropNameInRow="pdate" msprop:Generator_ColumnPropNameInTable="pdateColumn" msprop:Generator_UserColumnName="pdate" minOccurs="0">
@@ -787,6 +849,13 @@ WHERE (pdate = @pdate)</CommandText>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>