diff --git a/Project/DataClasses1.dbml b/Project/DataClasses1.dbml
new file mode 100644
index 0000000..eff27d6
--- /dev/null
+++ b/Project/DataClasses1.dbml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Project/DataClasses1.dbml.layout b/Project/DataClasses1.dbml.layout
new file mode 100644
index 0000000..ff833d2
--- /dev/null
+++ b/Project/DataClasses1.dbml.layout
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Project/DataClasses1.designer.cs b/Project/DataClasses1.designer.cs
new file mode 100644
index 0000000..dcfe32c
--- /dev/null
+++ b/Project/DataClasses1.designer.cs
@@ -0,0 +1,576 @@
+#pragma warning disable 1591
+//------------------------------------------------------------------------------
+//
+// 이 코드는 도구를 사용하여 생성되었습니다.
+// 런타임 버전:4.0.30319.42000
+//
+// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
+// 이러한 변경 내용이 손실됩니다.
+//
+//------------------------------------------------------------------------------
+
+namespace Project
+{
+ using System.Data.Linq;
+ using System.Data.Linq.Mapping;
+ using System.Data;
+ using System.Collections.Generic;
+ using System.Reflection;
+ using System.Linq;
+ using System.Linq.Expressions;
+ using System.ComponentModel;
+ using System;
+
+
+ [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="EE")]
+ public partial class DataClasses1DataContext : System.Data.Linq.DataContext
+ {
+
+ private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
+
+ #region 확장성 메서드 정의
+ partial void OnCreated();
+ partial void InsertUserGroup(UserGroup instance);
+ partial void UpdateUserGroup(UserGroup instance);
+ partial void DeleteUserGroup(UserGroup instance);
+ #endregion
+
+ public DataClasses1DataContext() :
+ base(global::Project.Properties.Settings.Default.gwcs, mappingSource)
+ {
+ OnCreated();
+ }
+
+ public DataClasses1DataContext(string connection) :
+ base(connection, mappingSource)
+ {
+ OnCreated();
+ }
+
+ public DataClasses1DataContext(System.Data.IDbConnection connection) :
+ base(connection, mappingSource)
+ {
+ OnCreated();
+ }
+
+ public DataClasses1DataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
+ base(connection, mappingSource)
+ {
+ OnCreated();
+ }
+
+ public DataClasses1DataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
+ base(connection, mappingSource)
+ {
+ OnCreated();
+ }
+
+ public System.Data.Linq.Table UserGroup
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
+ public System.Data.Linq.Table vGroupUser
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.UserGroup")]
+ public partial class UserGroup : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _dept;
+
+ private string _gcode;
+
+ private string _path_kj;
+
+ private System.Nullable _advpurchase;
+
+ private System.Nullable _permission;
+
+ #region 확장성 메서드 정의
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OndeptChanging(string value);
+ partial void OndeptChanged();
+ partial void OngcodeChanging(string value);
+ partial void OngcodeChanged();
+ partial void Onpath_kjChanging(string value);
+ partial void Onpath_kjChanged();
+ partial void OnadvpurchaseChanging(System.Nullable value);
+ partial void OnadvpurchaseChanged();
+ partial void OnpermissionChanging(System.Nullable value);
+ partial void OnpermissionChanged();
+ #endregion
+
+ public UserGroup()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_dept", DbType="VarChar(100) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string dept
+ {
+ get
+ {
+ return this._dept;
+ }
+ set
+ {
+ if ((this._dept != value))
+ {
+ this.OndeptChanging(value);
+ this.SendPropertyChanging();
+ this._dept = value;
+ this.SendPropertyChanged("dept");
+ this.OndeptChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_gcode", DbType="VarChar(10)")]
+ public string gcode
+ {
+ get
+ {
+ return this._gcode;
+ }
+ set
+ {
+ if ((this._gcode != value))
+ {
+ this.OngcodeChanging(value);
+ this.SendPropertyChanging();
+ this._gcode = value;
+ this.SendPropertyChanged("gcode");
+ this.OngcodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_path_kj", DbType="NVarChar(100)")]
+ public string path_kj
+ {
+ get
+ {
+ return this._path_kj;
+ }
+ set
+ {
+ if ((this._path_kj != value))
+ {
+ this.Onpath_kjChanging(value);
+ this.SendPropertyChanging();
+ this._path_kj = value;
+ this.SendPropertyChanged("path_kj");
+ this.Onpath_kjChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_advpurchase", DbType="Bit")]
+ public System.Nullable advpurchase
+ {
+ get
+ {
+ return this._advpurchase;
+ }
+ set
+ {
+ if ((this._advpurchase != value))
+ {
+ this.OnadvpurchaseChanging(value);
+ this.SendPropertyChanging();
+ this._advpurchase = value;
+ this.SendPropertyChanged("advpurchase");
+ this.OnadvpurchaseChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_permission", DbType="Int")]
+ public System.Nullable permission
+ {
+ get
+ {
+ return this._permission;
+ }
+ set
+ {
+ if ((this._permission != value))
+ {
+ this.OnpermissionChanging(value);
+ this.SendPropertyChanging();
+ this._permission = value;
+ this.SendPropertyChanged("permission");
+ this.OnpermissionChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.vGroupUser")]
+ public partial class vGroupUser
+ {
+
+ private string _gcode;
+
+ private System.Nullable _level;
+
+ private string _name;
+
+ private string _nameE;
+
+ private string _dept;
+
+ private string _grade;
+
+ private string _email;
+
+ private string _tel;
+
+ private string _indate;
+
+ private string _outdate;
+
+ private string _hp;
+
+ private string _place;
+
+ private string _ads_employNo;
+
+ private string _ads_title;
+
+ private string _ads_created;
+
+ private string _memo;
+
+ private string _processs;
+
+ private string _id;
+
+ public vGroupUser()
+ {
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_gcode", DbType="VarChar(10) NOT NULL", CanBeNull=false)]
+ public string gcode
+ {
+ get
+ {
+ return this._gcode;
+ }
+ set
+ {
+ if ((this._gcode != value))
+ {
+ this._gcode = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="[level]", Storage="_level", DbType="SmallInt")]
+ public System.Nullable level
+ {
+ get
+ {
+ return this._level;
+ }
+ set
+ {
+ if ((this._level != value))
+ {
+ this._level = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_name", DbType="NVarChar(100)")]
+ public string name
+ {
+ get
+ {
+ return this._name;
+ }
+ set
+ {
+ if ((this._name != value))
+ {
+ this._name = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_nameE", DbType="NVarChar(100)")]
+ public string nameE
+ {
+ get
+ {
+ return this._nameE;
+ }
+ set
+ {
+ if ((this._nameE != value))
+ {
+ this._nameE = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_dept", DbType="VarChar(100)")]
+ public string dept
+ {
+ get
+ {
+ return this._dept;
+ }
+ set
+ {
+ if ((this._dept != value))
+ {
+ this._dept = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_grade", DbType="VarChar(10)")]
+ public string grade
+ {
+ get
+ {
+ return this._grade;
+ }
+ set
+ {
+ if ((this._grade != value))
+ {
+ this._grade = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_email", DbType="VarChar(100)")]
+ public string email
+ {
+ get
+ {
+ return this._email;
+ }
+ set
+ {
+ if ((this._email != value))
+ {
+ this._email = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tel", DbType="VarChar(20)")]
+ public string tel
+ {
+ get
+ {
+ return this._tel;
+ }
+ set
+ {
+ if ((this._tel != value))
+ {
+ this._tel = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_indate", DbType="VarChar(20)")]
+ public string indate
+ {
+ get
+ {
+ return this._indate;
+ }
+ set
+ {
+ if ((this._indate != value))
+ {
+ this._indate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_outdate", DbType="VarChar(20)")]
+ public string outdate
+ {
+ get
+ {
+ return this._outdate;
+ }
+ set
+ {
+ if ((this._outdate != value))
+ {
+ this._outdate = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_hp", DbType="VarChar(20)")]
+ public string hp
+ {
+ get
+ {
+ return this._hp;
+ }
+ set
+ {
+ if ((this._hp != value))
+ {
+ this._hp = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_place", DbType="VarChar(100)")]
+ public string place
+ {
+ get
+ {
+ return this._place;
+ }
+ set
+ {
+ if ((this._place != value))
+ {
+ this._place = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ads_employNo", DbType="VarChar(50)")]
+ public string ads_employNo
+ {
+ get
+ {
+ return this._ads_employNo;
+ }
+ set
+ {
+ if ((this._ads_employNo != value))
+ {
+ this._ads_employNo = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ads_title", DbType="NVarChar(100)")]
+ public string ads_title
+ {
+ get
+ {
+ return this._ads_title;
+ }
+ set
+ {
+ if ((this._ads_title != value))
+ {
+ this._ads_title = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ads_created", DbType="VarChar(50)")]
+ public string ads_created
+ {
+ get
+ {
+ return this._ads_created;
+ }
+ set
+ {
+ if ((this._ads_created != value))
+ {
+ this._ads_created = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_memo", DbType="NVarChar(255)")]
+ public string memo
+ {
+ get
+ {
+ return this._memo;
+ }
+ set
+ {
+ if ((this._memo != value))
+ {
+ this._memo = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_processs", DbType="NVarChar(100)")]
+ public string processs
+ {
+ get
+ {
+ return this._processs;
+ }
+ set
+ {
+ if ((this._processs != value))
+ {
+ this._processs = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_id", DbType="VarChar(20)")]
+ public string id
+ {
+ get
+ {
+ return this._id;
+ }
+ set
+ {
+ if ((this._id != value))
+ {
+ this._id = value;
+ }
+ }
+ }
+ }
+}
+#pragma warning restore 1591
diff --git a/Project/Dialog/fLogin.Designer.cs b/Project/Dialog/fLogin.Designer.cs
index b49e109..0f33998 100644
--- a/Project/Dialog/fLogin.Designer.cs
+++ b/Project/Dialog/fLogin.Designer.cs
@@ -38,6 +38,8 @@
this.tbPW = new System.Windows.Forms.TextBox();
this.panel2 = new System.Windows.Forms.Panel();
this.btLogin = new System.Windows.Forms.Button();
+ this.cmbDept = new System.Windows.Forms.ComboBox();
+ this.label3 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@@ -56,6 +58,8 @@
// panel1
//
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(244)))));
+ this.panel1.Controls.Add(this.cmbDept);
+ this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.linkLabel2);
this.panel1.Controls.Add(this.tbID);
this.panel1.Controls.Add(this.label2);
@@ -65,7 +69,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(488, 276);
+ this.panel1.Size = new System.Drawing.Size(488, 377);
this.panel1.TabIndex = 0;
//
// linkLabel2
@@ -74,7 +78,7 @@
this.linkLabel2.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.linkLabel2.ForeColor = System.Drawing.Color.DodgerBlue;
this.linkLabel2.LinkColor = System.Drawing.Color.DodgerBlue;
- this.linkLabel2.Location = new System.Drawing.Point(13, 247);
+ this.linkLabel2.Location = new System.Drawing.Point(13, 335);
this.linkLabel2.Name = "linkLabel2";
this.linkLabel2.Size = new System.Drawing.Size(243, 15);
this.linkLabel2.TabIndex = 7;
@@ -86,7 +90,7 @@
//
this.tbID.Font = new System.Drawing.Font("Calibri", 20.25F);
this.tbID.FormattingEnabled = true;
- this.tbID.Location = new System.Drawing.Point(16, 125);
+ this.tbID.Location = new System.Drawing.Point(16, 213);
this.tbID.Name = "tbID";
this.tbID.Size = new System.Drawing.Size(460, 41);
this.tbID.TabIndex = 3;
@@ -96,7 +100,7 @@
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("맑은 고딕", 9F);
this.label2.ForeColor = System.Drawing.Color.Gray;
- this.label2.Location = new System.Drawing.Point(13, 181);
+ this.label2.Location = new System.Drawing.Point(13, 269);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(31, 15);
this.label2.TabIndex = 4;
@@ -107,7 +111,7 @@
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.Gray;
- this.label1.Location = new System.Drawing.Point(13, 108);
+ this.label1.Location = new System.Drawing.Point(13, 196);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(55, 15);
this.label1.TabIndex = 2;
@@ -116,7 +120,7 @@
// tbPW
//
this.tbPW.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.tbPW.Location = new System.Drawing.Point(16, 199);
+ this.tbPW.Location = new System.Drawing.Point(16, 287);
this.tbPW.Name = "tbPW";
this.tbPW.PasswordChar = '●';
this.tbPW.Size = new System.Drawing.Size(460, 40);
@@ -128,7 +132,7 @@
this.panel2.BackColor = System.Drawing.SystemColors.Control;
this.panel2.Controls.Add(this.btLogin);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.panel2.Location = new System.Drawing.Point(0, 276);
+ this.panel2.Location = new System.Drawing.Point(0, 377);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(488, 34);
this.panel2.TabIndex = 6;
@@ -144,11 +148,32 @@
this.btLogin.UseVisualStyleBackColor = true;
this.btLogin.Click += new System.EventHandler(this.button1_Click);
//
+ // cmbDept
+ //
+ this.cmbDept.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.cmbDept.Font = new System.Drawing.Font("Calibri", 20.25F);
+ this.cmbDept.FormattingEnabled = true;
+ this.cmbDept.Location = new System.Drawing.Point(16, 136);
+ this.cmbDept.Name = "cmbDept";
+ this.cmbDept.Size = new System.Drawing.Size(460, 41);
+ this.cmbDept.TabIndex = 9;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.ForeColor = System.Drawing.Color.Gray;
+ this.label3.Location = new System.Drawing.Point(13, 119);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(31, 15);
+ this.label3.TabIndex = 8;
+ this.label3.Text = "부서";
+ //
// fLogin
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.OrangeRed;
- this.ClientSize = new System.Drawing.Size(488, 310);
+ this.ClientSize = new System.Drawing.Size(488, 411);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2);
this.Font = new System.Drawing.Font("Calibri", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@@ -177,5 +202,7 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox tbID;
private System.Windows.Forms.LinkLabel linkLabel2;
+ private System.Windows.Forms.ComboBox cmbDept;
+ private System.Windows.Forms.Label label3;
}
}
\ No newline at end of file
diff --git a/Project/Dialog/fLogin.cs b/Project/Dialog/fLogin.cs
index 9f8a5e0..7b61e67 100644
--- a/Project/Dialog/fLogin.cs
+++ b/Project/Dialog/fLogin.cs
@@ -28,7 +28,16 @@ namespace Project.Dialog
if (item != "") tbID.Items.Add(item);
if (tbID.Items.Count > 0) tbID.SelectedIndex = 0;
- //var dlist = Pub.setting.lastdept.Split(';');
+ //그룹목록가져오기
+ var tagrp = new dsMSSQLTableAdapters.UserGroupTableAdapter();
+ var grplist = tagrp.GetData();
+ this.cmbDept.DataSource = grplist;
+ this.cmbDept.DisplayMember = "dept";
+ this.cmbDept.ValueMember = "gcode";
+
+ //마지막으로사용한 부서이름
+ if (Pub.setting.lastdpt.isEmpty()) this.cmbDept.SelectedIndex = -1;
+ else this.cmbDept.Text =Pub.setting.lastdpt;
//foreach (var item in dlist)
// if (item != "") this.cmbDept.Items.Add(item);
//if (cmbDept.Items.Count > 0) cmbDept.SelectedIndex = 0;
@@ -52,6 +61,12 @@ namespace Project.Dialog
tbPW.Focus();
return;
}
+ if(cmbDept.SelectedIndex < 0)
+ {
+ FCOMMON.Util.MsgE("소속 부서를 선택하세요");
+ cmbDept.Focus();
+ return;
+ }
List idlist = new List();
idlist.Add(tbID.Text.Trim());
@@ -72,8 +87,10 @@ namespace Project.Dialog
//foreach(var item in deptlist)
// vdeptlist += ";" + item;
+ var gCode = this.cmbDept.SelectedValue.ToString();// as dsMSSQL.UserGroupRow;
+
Pub.setting.lastid = vuserlist;// tbID.Text.Trim();
- // Pub.setting.lastdept = vdeptlist;
+ Pub.setting.lastdpt = cmbDept.Text; //부서저장 201006
Pub.setting.Save();
var encpass = Pub.MakePasswordEnc(tbPW.Text.Trim());
@@ -95,15 +112,17 @@ namespace Project.Dialog
//이사용자의 부서 코드확인
var userdr = users.Rows[0] as dsMSSQL.UsersRow;
- //if (userdr.level < 9 && userdr.dept != cmbDept.Text)
- //{
- // Util.MsgE("입력한 사용자는 지정한 부서에 접속할 권한이 없습니다");
- // return;
- //}
+ var taGrpUser = new dsMSSQLTableAdapters.EETGW_GroupUserTableAdapter();
+ var Exist = taGrpUser.ExistCheck(gCode, userdr.id) > 0;
+ if (userdr.level < 9 && Exist==false)
+ {
+ Util.MsgE("입력한 사용자는 지정한 부서에 접속할 권한이 없습니다");
+ return;
+ }
FCOMMON.info.Login.no = userdr.id;
FCOMMON.info.Login.nameK = userdr.name;
- FCOMMON.info.Login.dept = userdr.dept;// cmbDept.Text;
+ FCOMMON.info.Login.dept = cmbDept.Text;// userdr.dept;// cmbDept.Text;
FCOMMON.info.Login.level = userdr.level;
FCOMMON.info.Login.email = userdr.email;
FCOMMON.info.Login.nameE = userdr.nameE;
@@ -112,7 +131,7 @@ namespace Project.Dialog
FCOMMON.info.Login.title = userdr.ads_title;
var gcode = FCOMMON.DBM.ExecuteScalar("select isnull(gcode,'NOGCODE') from UserGroup where dept ='" + userdr.dept + "'");
var gperm = FCOMMON.DBM.ExecuteScalar("select isnull(permission,0) from UserGroup where dept ='" + userdr.dept + "'");
- FCOMMON.info.Login.gcode = gcode;
+ FCOMMON.info.Login.gcode = gCode;// gcode;
FCOMMON.info.Login.process = userdr.processs;
FCOMMON.info.Login.permission = 0;
FCOMMON.info.Login.gpermission = int.Parse(gperm);
diff --git a/Project/EETGW.csproj b/Project/EETGW.csproj
index 2039640..aad7926 100644
--- a/Project/EETGW.csproj
+++ b/Project/EETGW.csproj
@@ -136,6 +136,7 @@
+
@@ -157,6 +158,11 @@
+
+ True
+ True
+ DataClasses1.dbml
+
True
True
@@ -364,6 +370,14 @@
True
+
+ MSLinqToSQLGenerator
+ DataClasses1.designer.cs
+ Designer
+
+
+ DataClasses1.dbml
+
DataSet1.xsd
@@ -484,6 +498,8 @@
StaffLayoutCtl
-
+
+
+
\ No newline at end of file
diff --git a/Project/History.txt b/Project/History.txt
index 3195078..e50c668 100644
--- a/Project/History.txt
+++ b/Project/History.txt
@@ -1,4 +1,5 @@
-200921 chi 파트리스트 저장시 sid 의 공백이 제거되게함
+201007 chi 부서로그인 기능 추가, 구매내역 메일 보내기 기능
+200921 chi 파트리스트 저장시 sid 의 공백이 제거되게함
200812 chi 1일최대근무시간 8시간 적용
200730 chi 파트리스트에 입력되는 단가 자릿수 증가
200618 chi 사용자 정보 변경 기능 수정 (저장에서 오류가 있었음)
diff --git a/Project/Properties/AssemblyInfo.cs b/Project/Properties/AssemblyInfo.cs
index 24aac2f..a74869b 100644
--- a/Project/Properties/AssemblyInfo.cs
+++ b/Project/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("20.09.07.1700")]
-[assembly: AssemblyFileVersion("20.09.07.1700")]
+[assembly: AssemblyVersion("20.10.12.1100")]
+[assembly: AssemblyFileVersion("20.10.12.1100")]
diff --git a/Project/Setting.cs b/Project/Setting.cs
index 7ea92ae..451d157 100644
--- a/Project/Setting.cs
+++ b/Project/Setting.cs
@@ -60,7 +60,7 @@ namespace Project
[Browsable(false)]
public string lastid { get; set; }
[Browsable(false)]
- public string lastdept { get; set; }
+ public string lastdpt { get; set; }
public int CamIndex { get; set; }
[DisplayName("Tool Bar")]
@@ -85,7 +85,7 @@ namespace Project
if (Language.isEmpty()) Language = "Kor";
if (Password_Setup.isEmpty()) Password_Setup = "0000";
if (Password_User.isEmpty()) Password_User = "9999";
- if (lastdept == "") lastdept = "제조본부 장비기술팀 K4장비기술1파트";
+ //if (lastdept == "") lastdept = "제조본부 장비기술팀 K4장비기술1파트";
var str_toolbar = Xml.get_Data("enum", "HideToolbar", "0");
this.HideToolbar = (eToolPosition)int.Parse(str_toolbar);
diff --git a/Project/_Common/fUserList.cs b/Project/_Common/fUserList.cs
index 4fbd36a..e6fb57c 100644
--- a/Project/_Common/fUserList.cs
+++ b/Project/_Common/fUserList.cs
@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Project._Common
{
- public partial class fUserList : FCOMMON.fBase
+ public partial class fUserList : FCOMMON.fBase
{
public fUserList()
{
@@ -36,8 +36,8 @@ namespace Project._Common
private void __Load(object sender, EventArgs e)
{
var form = this as Form;
- Pub.SetFormStatus(ref form, this.Name , true);
- this.Show();
+ Pub.SetFormStatus(ref form, this.Name, true);
+ this.Show();
Application.DoEvents();
cmbdept.Enabled = FCOMMON.info.Login.level > 9;
@@ -46,7 +46,7 @@ namespace Project._Common
{
this.dvc_id.Visible = true;
this.btDevel.Visible = true;
- this.dv1.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2;
+ this.dv1.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2;
}
else
{
@@ -59,18 +59,25 @@ namespace Project._Common
this.usersBindingNavigatorSaveItem.Enabled = false;
this.bindingNavigatorAddNewItem.Enabled = false;
this.bindingNavigatorDeleteItem.Enabled = false;
-
+
}
-
+
//부서목록 업데이트
+ var db = new DataClasses1DataContext();
+ var GrpList = db.UserGroup.Where(t => t.gcode != null && t.permission != null && t.gcode != "" && t.permission > 0);
+
+ //var tagrp = new dsMSSQLTableAdapters.UserGroupTableAdapter();
+ //var grplist = tagrp.GetData();
+
this.cmbdept.Items.Clear();
- var deptList = FCOMMON.DBM.getGroupList("dept", "users");
- foreach (var item in deptList)
- this.cmbdept.Items.Add(item);
+
+ //var deptList = FCOMMON.DBM.getGroupList("dept", "users");
+ foreach (var item in GrpList)
+ this.cmbdept.Items.Add(item.dept);
this.cmbdept.Text = FCOMMON.info.Login.dept;
btRef.PerformClick();
-
+
}
private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
@@ -85,12 +92,12 @@ namespace Project._Common
var drv = this.bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as dsMSSQL.UsersRow;
-
+
var f = new fNewID(dr.id);
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
var newid = f.tbIDN.Text.Trim();
- if(this.dsMSSQL.Users.Select("id='" + newid + "'").Length != 0)
+ if (this.dsMSSQL.Users.Select("id='" + newid + "'").Length != 0)
{
Util.MsgE("Exist id - error");
return;
@@ -146,8 +153,8 @@ namespace Project._Common
private void 한글이름분리ToolStripMenuItem_Click(object sender, EventArgs e)
{
-
- foreach(dsMSSQL.UsersRow dr in this.dsMSSQL.Users.Rows)
+
+ foreach (dsMSSQL.UsersRow dr in this.dsMSSQL.Users.Rows)
{
var name = dr.name;
var newname = name.Split(' ')[0];
@@ -161,8 +168,17 @@ namespace Project._Common
//read data
if (tbProcess.Text.Trim() == "") tbProcess.Text = "%";
this.dsMSSQL.Users.Clear();
- this.ta.Fill(this.dsMSSQL.Users, this.cmbdept.Text, tbProcess.Text.Trim());
- this.dsMSSQL.Users.AcceptChanges();
+
+ var db = new DataClasses1DataContext();
+ if(tbProcess.Text.Trim() != "" && tbProcess.Text.Trim() != "%")
+ this.bs.DataSource = db.vGroupUser.Where(t => t.dept == this.cmbdept.Text && t.processs.Contains(tbProcess.Text.Trim()));
+ else
+ this.bs.DataSource = db.vGroupUser.Where(t => t.dept == this.cmbdept.Text);
+
+
+
+ //this.ta.Fill(this.dsMSSQL.Users, this.cmbdept.Text, tbProcess.Text.Trim());
+ //this.dsMSSQL.Users.AcceptChanges();
this.dv1.AutoResizeColumns();
}
diff --git a/Project/dsMSSQL.Designer.cs b/Project/dsMSSQL.Designer.cs
index c0f8206..0a273c5 100644
--- a/Project/dsMSSQL.Designer.cs
+++ b/Project/dsMSSQL.Designer.cs
@@ -38,6 +38,8 @@ namespace Project {
private SPMasterDataTable tableSPMaster;
+ private EETGW_GroupUserDataTable tableEETGW_GroupUser;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -87,6 +89,9 @@ namespace Project {
if ((ds.Tables["SPMaster"] != null)) {
base.Tables.Add(new SPMasterDataTable(ds.Tables["SPMaster"]));
}
+ if ((ds.Tables["EETGW_GroupUser"] != null)) {
+ base.Tables.Add(new EETGW_GroupUserDataTable(ds.Tables["EETGW_GroupUser"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -175,6 +180,16 @@ namespace Project {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public EETGW_GroupUserDataTable EETGW_GroupUser {
+ get {
+ return this.tableEETGW_GroupUser;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -263,6 +278,9 @@ namespace Project {
if ((ds.Tables["SPMaster"] != null)) {
base.Tables.Add(new SPMasterDataTable(ds.Tables["SPMaster"]));
}
+ if ((ds.Tables["EETGW_GroupUser"] != null)) {
+ base.Tables.Add(new EETGW_GroupUserDataTable(ds.Tables["EETGW_GroupUser"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -338,6 +356,12 @@ namespace Project {
this.tableSPMaster.InitVars();
}
}
+ this.tableEETGW_GroupUser = ((EETGW_GroupUserDataTable)(base.Tables["EETGW_GroupUser"]));
+ if ((initTable == true)) {
+ if ((this.tableEETGW_GroupUser != null)) {
+ this.tableEETGW_GroupUser.InitVars();
+ }
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -362,6 +386,8 @@ namespace Project {
base.Tables.Add(this.tableUserGroup);
this.tableSPMaster = new SPMasterDataTable();
base.Tables.Add(this.tableSPMaster);
+ this.tableEETGW_GroupUser = new EETGW_GroupUserDataTable();
+ base.Tables.Add(this.tableEETGW_GroupUser);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -406,6 +432,12 @@ namespace Project {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private bool ShouldSerializeEETGW_GroupUser() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -482,6 +514,9 @@ namespace Project {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public delegate void SPMasterRowChangeEventHandler(object sender, SPMasterRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public delegate void EETGW_GroupUserRowChangeEventHandler(object sender, EETGW_GroupUserRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -3598,6 +3633,345 @@ namespace Project {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class EETGW_GroupUserDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnidx;
+
+ private global::System.Data.DataColumn columngcode;
+
+ private global::System.Data.DataColumn columnuid;
+
+ private global::System.Data.DataColumn columnlevel;
+
+ private global::System.Data.DataColumn columnwuid;
+
+ private global::System.Data.DataColumn columnwdate;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserDataTable() {
+ this.TableName = "EETGW_GroupUser";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal EETGW_GroupUserDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected EETGW_GroupUserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn idxColumn {
+ get {
+ return this.columnidx;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn gcodeColumn {
+ get {
+ return this.columngcode;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn uidColumn {
+ get {
+ return this.columnuid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn levelColumn {
+ get {
+ return this.columnlevel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn wuidColumn {
+ get {
+ return this.columnwuid;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataColumn wdateColumn {
+ get {
+ return this.columnwdate;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRow this[int index] {
+ get {
+ return ((EETGW_GroupUserRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public event EETGW_GroupUserRowChangeEventHandler EETGW_GroupUserRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void AddEETGW_GroupUserRow(EETGW_GroupUserRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRow AddEETGW_GroupUserRow(string gcode, string uid, short level, string wuid, System.DateTime wdate) {
+ EETGW_GroupUserRow rowEETGW_GroupUserRow = ((EETGW_GroupUserRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ gcode,
+ uid,
+ level,
+ wuid,
+ wdate};
+ rowEETGW_GroupUserRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowEETGW_GroupUserRow);
+ return rowEETGW_GroupUserRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRow FindByidx(int idx) {
+ return ((EETGW_GroupUserRow)(this.Rows.Find(new object[] {
+ idx})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ EETGW_GroupUserDataTable cln = ((EETGW_GroupUserDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new EETGW_GroupUserDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal void InitVars() {
+ this.columnidx = base.Columns["idx"];
+ this.columngcode = base.Columns["gcode"];
+ this.columnuid = base.Columns["uid"];
+ this.columnlevel = base.Columns["level"];
+ this.columnwuid = base.Columns["wuid"];
+ this.columnwdate = base.Columns["wdate"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitClass() {
+ this.columnidx = new global::System.Data.DataColumn("idx", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnidx);
+ this.columngcode = new global::System.Data.DataColumn("gcode", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columngcode);
+ this.columnuid = new global::System.Data.DataColumn("uid", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnuid);
+ this.columnlevel = new global::System.Data.DataColumn("level", typeof(short), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnlevel);
+ this.columnwuid = new global::System.Data.DataColumn("wuid", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwuid);
+ this.columnwdate = new global::System.Data.DataColumn("wdate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnwdate);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnidx}, true));
+ 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.columngcode.AllowDBNull = false;
+ this.columngcode.MaxLength = 10;
+ this.columnuid.AllowDBNull = false;
+ this.columnuid.MaxLength = 20;
+ this.columnwuid.AllowDBNull = false;
+ this.columnwuid.MaxLength = 20;
+ this.columnwdate.AllowDBNull = false;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRow NewEETGW_GroupUserRow() {
+ return ((EETGW_GroupUserRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new EETGW_GroupUserRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(EETGW_GroupUserRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.EETGW_GroupUserRowChanged != null)) {
+ this.EETGW_GroupUserRowChanged(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.EETGW_GroupUserRowChanging != null)) {
+ this.EETGW_GroupUserRowChanging(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.EETGW_GroupUserRowDeleted != null)) {
+ this.EETGW_GroupUserRowDeleted(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.EETGW_GroupUserRowDeleting != null)) {
+ this.EETGW_GroupUserRowDeleting(this, new EETGW_GroupUserRowChangeEvent(((EETGW_GroupUserRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void RemoveEETGW_GroupUserRow(EETGW_GroupUserRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ dsMSSQL ds = new dsMSSQL();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "EETGW_GroupUserDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -5945,6 +6319,104 @@ namespace Project {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class EETGW_GroupUserRow : global::System.Data.DataRow {
+
+ private EETGW_GroupUserDataTable tableEETGW_GroupUser;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal EETGW_GroupUserRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tableEETGW_GroupUser = ((EETGW_GroupUserDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public int idx {
+ get {
+ return ((int)(this[this.tableEETGW_GroupUser.idxColumn]));
+ }
+ set {
+ this[this.tableEETGW_GroupUser.idxColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string gcode {
+ get {
+ return ((string)(this[this.tableEETGW_GroupUser.gcodeColumn]));
+ }
+ set {
+ this[this.tableEETGW_GroupUser.gcodeColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string uid {
+ get {
+ return ((string)(this[this.tableEETGW_GroupUser.uidColumn]));
+ }
+ set {
+ this[this.tableEETGW_GroupUser.uidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public short level {
+ get {
+ try {
+ return ((short)(this[this.tableEETGW_GroupUser.levelColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("\'EETGW_GroupUser\' 테이블의 \'level\' 열의 값이 DBNull입니다.", e);
+ }
+ }
+ set {
+ this[this.tableEETGW_GroupUser.levelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public string wuid {
+ get {
+ return ((string)(this[this.tableEETGW_GroupUser.wuidColumn]));
+ }
+ set {
+ this[this.tableEETGW_GroupUser.wuidColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public System.DateTime wdate {
+ get {
+ return ((global::System.DateTime)(this[this.tableEETGW_GroupUser.wdateColumn]));
+ }
+ set {
+ this[this.tableEETGW_GroupUser.wdateColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool IslevelNull() {
+ return this.IsNull(this.tableEETGW_GroupUser.levelColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public void SetlevelNull() {
+ this[this.tableEETGW_GroupUser.levelColumn] = global::System.Convert.DBNull;
+ }
+ }
+
///
///Row event argument class
///
@@ -6182,6 +6654,40 @@ namespace Project {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public class EETGW_GroupUserRowChangeEvent : global::System.EventArgs {
+
+ private EETGW_GroupUserRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRowChangeEvent(EETGW_GroupUserRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace Project.dsMSSQLTableAdapters {
@@ -11523,6 +12029,485 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class EETGW_GroupUserTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public EETGW_GroupUserTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "EETGW_GroupUser";
+ tableMapping.ColumnMappings.Add("idx", "idx");
+ tableMapping.ColumnMappings.Add("gcode", "gcode");
+ tableMapping.ColumnMappings.Add("uid", "uid");
+ tableMapping.ColumnMappings.Add("level", "level");
+ tableMapping.ColumnMappings.Add("wuid", "wuid");
+ tableMapping.ColumnMappings.Add("wdate", "wdate");
+ this._adapter.TableMappings.Add(tableMapping);
+ this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
+ this._adapter.DeleteCommand.Connection = this.Connection;
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [EETGW_GroupUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [EETGW_GroupUser] ([gcode], [uid], [level], [wuid], [wdate]) VALUES (" +
+ "@gcode, @uid, @level, @wuid, @wdate);\r\nSELECT idx, gcode, uid, level, wuid, wdat" +
+ "e FROM EETGW_GroupUser WHERE (idx = SCOPE_IDENTITY())";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", 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 [EETGW_GroupUser] SET [gcode] = @gcode, [uid] = @uid, [level] = @level, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
+SELECT idx, gcode, uid, level, wuid, wdate FROM EETGW_GroupUser WHERE (idx = @idx)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idx", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gcode", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_uid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_level", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_level", global::System.Data.SqlDbType.SmallInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "level", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wuid", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wuid", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_wdate", global::System.Data.SqlDbType.SmallDateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "wdate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::Project.Properties.Settings.Default.gwcs;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ private void InitCommandCollection() {
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT idx, gcode, uid, level, wuid, wdate\r\nFROM EETGW_GroupUser\r\nWHERE (gc" +
+ "ode = @gcode)";
+ this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "SELECT COUNT(*) FROM EETGW_GroupUser\r\nwhere gcode =@gcode\r\nand uid = @uid";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@uid", global::System.Data.SqlDbType.VarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, "uid", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+ public virtual int Fill(dsMSSQL.EETGW_GroupUserDataTable dataTable, string gcode) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((gcode == null)) {
+ throw new global::System.ArgumentNullException("gcode");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
+ }
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual dsMSSQL.EETGW_GroupUserDataTable GetData(string gcode) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((gcode == null)) {
+ throw new global::System.ArgumentNullException("gcode");
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[0].Value = ((string)(gcode));
+ }
+ dsMSSQL.EETGW_GroupUserDataTable dataTable = new dsMSSQL.EETGW_GroupUserDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsMSSQL.EETGW_GroupUserDataTable dataTable) {
+ return this.Adapter.Update(dataTable);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(dsMSSQL dataSet) {
+ return this.Adapter.Update(dataSet, "EETGW_GroupUser");
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow dataRow) {
+ return this.Adapter.Update(new global::System.Data.DataRow[] {
+ dataRow});
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int Update(global::System.Data.DataRow[] dataRows) {
+ return this.Adapter.Update(dataRows);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
+ public virtual int Delete(int Original_idx, string Original_gcode, string Original_uid, global::System.Nullable Original_level, string Original_wuid, System.DateTime Original_wdate) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idx));
+ if ((Original_gcode == null)) {
+ throw new global::System.ArgumentNullException("Original_gcode");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_gcode));
+ }
+ if ((Original_uid == null)) {
+ throw new global::System.ArgumentNullException("Original_uid");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_uid));
+ }
+ if ((Original_level.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((short)(Original_level.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTime)(Original_wdate));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
+ if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.DeleteCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.DeleteCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
+ public virtual int Insert(string gcode, string uid, global::System.Nullable level, string wuid, System.DateTime wdate) {
+ if ((gcode == null)) {
+ throw new global::System.ArgumentNullException("gcode");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((string)(gcode));
+ }
+ if ((uid == null)) {
+ throw new global::System.ArgumentNullException("uid");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(uid));
+ }
+ if ((level.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((short)(level.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(wuid));
+ }
+ this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(wdate));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
+ if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.InsertCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.InsertCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string gcode, string uid, global::System.Nullable level, string wuid, System.DateTime wdate, int Original_idx, string Original_gcode, string Original_uid, global::System.Nullable Original_level, string Original_wuid, System.DateTime Original_wdate, int idx) {
+ if ((gcode == null)) {
+ throw new global::System.ArgumentNullException("gcode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(gcode));
+ }
+ if ((uid == null)) {
+ throw new global::System.ArgumentNullException("uid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(uid));
+ }
+ if ((level.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((short)(level.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ if ((wuid == null)) {
+ throw new global::System.ArgumentNullException("wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(wdate));
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_idx));
+ if ((Original_gcode == null)) {
+ throw new global::System.ArgumentNullException("Original_gcode");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_gcode));
+ }
+ if ((Original_uid == null)) {
+ throw new global::System.ArgumentNullException("Original_uid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_uid));
+ }
+ if ((Original_level.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((short)(Original_level.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
+ }
+ if ((Original_wuid == null)) {
+ throw new global::System.ArgumentNullException("Original_wuid");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_wuid));
+ }
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_wdate));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(idx));
+ global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
+ if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ this.Adapter.UpdateCommand.Connection.Open();
+ }
+ try {
+ int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
+ return returnValue;
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ this.Adapter.UpdateCommand.Connection.Close();
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
+ public virtual int Update(string gcode, string uid, global::System.Nullable level, string wuid, System.DateTime wdate, int Original_idx, string Original_gcode, string Original_uid, global::System.Nullable Original_level, string Original_wuid, System.DateTime Original_wdate) {
+ return this.Update(gcode, uid, level, wuid, wdate, Original_idx, Original_gcode, Original_uid, Original_level, Original_wuid, Original_wdate, Original_idx);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual global::System.Nullable ExistCheck(string gcode, string uid) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((gcode == null)) {
+ throw new global::System.ArgumentNullException("gcode");
+ }
+ else {
+ command.Parameters[0].Value = ((string)(gcode));
+ }
+ if ((uid == null)) {
+ throw new global::System.ArgumentNullException("uid");
+ }
+ else {
+ command.Parameters[1].Value = ((string)(uid));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ object returnValue;
+ try {
+ returnValue = command.ExecuteScalar();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ if (((returnValue == null)
+ || (returnValue.GetType() == typeof(global::System.DBNull)))) {
+ return new global::System.Nullable();
+ }
+ else {
+ return new global::System.Nullable(((int)(returnValue)));
+ }
+ }
+ }
+
///
///Represents the connection and commands used to retrieve and save data.
///
@@ -11648,6 +12633,8 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
private SPMasterTableAdapter _sPMasterTableAdapter;
+ private EETGW_GroupUserTableAdapter _eETGW_GroupUserTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -11761,6 +12748,20 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
+ [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
+ "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
+ "a", "System.Drawing.Design.UITypeEditor")]
+ public EETGW_GroupUserTableAdapter EETGW_GroupUserTableAdapter {
+ get {
+ return this._eETGW_GroupUserTableAdapter;
+ }
+ set {
+ this._eETGW_GroupUserTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -11808,6 +12809,10 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
&& (this._sPMasterTableAdapter.Connection != null))) {
return this._sPMasterTableAdapter.Connection;
}
+ if (((this._eETGW_GroupUserTableAdapter != null)
+ && (this._eETGW_GroupUserTableAdapter.Connection != null))) {
+ return this._eETGW_GroupUserTableAdapter.Connection;
+ }
return null;
}
set {
@@ -11842,6 +12847,9 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
if ((this._sPMasterTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -11916,6 +12924,15 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._eETGW_GroupUserTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -11982,6 +12999,14 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._eETGW_GroupUserTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -11992,6 +13017,14 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private int UpdateDeletedRows(dsMSSQL dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.EETGW_GroupUser.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._eETGW_GroupUserTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._sPMasterTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.SPMaster.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -12115,6 +13148,10 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
&& (this.MatchTableAdapterConnection(this._sPMasterTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
}
+ if (((this._eETGW_GroupUserTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._eETGW_GroupUserTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("TableAdapterManager에서 관리하는 모든 TableAdapter에는 동일한 연결 문자열을 사용해야 합니다.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager에 연결 정보가 없습니다. 각 TableAdapterManager TableAdapter 속성을 올바른 Tabl" +
@@ -12209,6 +13246,15 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
adaptersWithAcceptChangesDuringUpdate.Add(this._sPMasterTableAdapter.Adapter);
}
}
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ revertConnections.Add(this._eETGW_GroupUserTableAdapter, this._eETGW_GroupUserTableAdapter.Connection);
+ this._eETGW_GroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._eETGW_GroupUserTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._eETGW_GroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._eETGW_GroupUserTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._eETGW_GroupUserTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -12295,6 +13341,10 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
this._sPMasterTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._sPMasterTableAdapter]));
this._sPMasterTableAdapter.Transaction = null;
}
+ if ((this._eETGW_GroupUserTableAdapter != null)) {
+ this._eETGW_GroupUserTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._eETGW_GroupUserTableAdapter]));
+ this._eETGW_GroupUserTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/Project/dsMSSQL.xsd b/Project/dsMSSQL.xsd
index 8b31b8d..fc9a50c 100644
--- a/Project/dsMSSQL.xsd
+++ b/Project/dsMSSQL.xsd
@@ -931,6 +931,93 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
+
+
+
+
+
+ DELETE FROM [EETGW_GroupUser] WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate))
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INSERT INTO [EETGW_GroupUser] ([gcode], [uid], [level], [wuid], [wdate]) VALUES (@gcode, @uid, @level, @wuid, @wdate);
+SELECT idx, gcode, uid, level, wuid, wdate FROM EETGW_GroupUser WHERE (idx = SCOPE_IDENTITY())
+
+
+
+
+
+
+
+
+
+
+
+ SELECT idx, gcode, uid, level, wuid, wdate
+FROM EETGW_GroupUser
+WHERE (gcode = @gcode)
+
+
+
+
+
+
+
+ UPDATE [EETGW_GroupUser] SET [gcode] = @gcode, [uid] = @uid, [level] = @level, [wuid] = @wuid, [wdate] = @wdate WHERE (([idx] = @Original_idx) AND ([gcode] = @Original_gcode) AND ([uid] = @Original_uid) AND ((@IsNull_level = 1 AND [level] IS NULL) OR ([level] = @Original_level)) AND ([wuid] = @Original_wuid) AND ([wdate] = @Original_wdate));
+SELECT idx, gcode, uid, level, wuid, wdate FROM EETGW_GroupUser WHERE (idx = @idx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ SELECT COUNT(*) FROM EETGW_GroupUser
+where gcode =@gcode
+and uid = @uid
+
+
+
+
+
+
+
+
+
@@ -1493,6 +1580,36 @@ WHERE (idx = @idx)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1523,5 +1640,9 @@ WHERE (idx = @idx)
+
+
+
+
\ No newline at end of file
diff --git a/Project/dsMSSQL.xss b/Project/dsMSSQL.xss
index ab90d6d..af05147 100644
--- a/Project/dsMSSQL.xss
+++ b/Project/dsMSSQL.xss
@@ -6,14 +6,15 @@
-->
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file