..
This commit is contained in:
34
Project/DataClasses1.dbml
Normal file
34
Project/DataClasses1.dbml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><Database Name="EE" Class="DataClasses1DataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007">
|
||||
<Connection Mode="AppSettings" ConnectionString="Data Source=10.131.15.18;Initial Catalog=EE;Persist Security Info=True;User ID=eeuser" SettingsObjectName="Project.Properties.Settings" SettingsPropertyName="gwcs" Provider="System.Data.SqlClient" />
|
||||
<Table Name="dbo.UserGroup" Member="UserGroup">
|
||||
<Type Name="UserGroup">
|
||||
<Column Name="dept" Type="System.String" DbType="VarChar(100) NOT NULL" IsPrimaryKey="true" CanBeNull="false" />
|
||||
<Column Name="gcode" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
|
||||
<Column Name="path_kj" Type="System.String" DbType="NVarChar(100)" CanBeNull="true" />
|
||||
<Column Name="advpurchase" Type="System.Boolean" DbType="Bit" CanBeNull="true" />
|
||||
<Column Name="permission" Type="System.Int32" DbType="Int" CanBeNull="true" />
|
||||
</Type>
|
||||
</Table>
|
||||
<Table Name="dbo.vGroupUser" Member="vGroupUser">
|
||||
<Type Name="vGroupUser">
|
||||
<Column Name="gcode" Type="System.String" DbType="VarChar(10) NOT NULL" CanBeNull="false" />
|
||||
<Column Name="[level]" Member="level" Type="System.Int16" DbType="SmallInt" CanBeNull="true" />
|
||||
<Column Name="name" Type="System.String" DbType="NVarChar(100)" CanBeNull="true" />
|
||||
<Column Name="nameE" Type="System.String" DbType="NVarChar(100)" CanBeNull="true" />
|
||||
<Column Name="dept" Type="System.String" DbType="VarChar(100)" CanBeNull="true" />
|
||||
<Column Name="grade" Type="System.String" DbType="VarChar(10)" CanBeNull="true" />
|
||||
<Column Name="email" Type="System.String" DbType="VarChar(100)" CanBeNull="true" />
|
||||
<Column Name="tel" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
|
||||
<Column Name="indate" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
|
||||
<Column Name="outdate" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
|
||||
<Column Name="hp" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
|
||||
<Column Name="place" Type="System.String" DbType="VarChar(100)" CanBeNull="true" />
|
||||
<Column Name="ads_employNo" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
|
||||
<Column Name="ads_title" Type="System.String" DbType="NVarChar(100)" CanBeNull="true" />
|
||||
<Column Name="ads_created" Type="System.String" DbType="VarChar(50)" CanBeNull="true" />
|
||||
<Column Name="memo" Type="System.String" DbType="NVarChar(255)" CanBeNull="true" />
|
||||
<Column Name="processs" Type="System.String" DbType="NVarChar(100)" CanBeNull="true" />
|
||||
<Column Name="id" Type="System.String" DbType="VarChar(20)" CanBeNull="true" />
|
||||
</Type>
|
||||
</Table>
|
||||
</Database>
|
||||
18
Project/DataClasses1.dbml.layout
Normal file
18
Project/DataClasses1.dbml.layout
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ordesignerObjectsDiagram dslVersion="1.0.0.0" absoluteBounds="0, 0, 11, 8.5" name="DataClasses1">
|
||||
<DataContextMoniker Name="/DataClasses1DataContext" />
|
||||
<nestedChildShapes>
|
||||
<classShape Id="486a7958-9de9-4b1b-b914-8d09e15675ba" absoluteBounds="2.625, 2.625, 2, 1.7708968098958331">
|
||||
<DataClassMoniker Name="/DataClasses1DataContext/UserGroup" />
|
||||
<nestedChildShapes>
|
||||
<elementListCompartment Id="4a357cd8-d050-4b32-958a-c51511d5a1b5" absoluteBounds="2.64, 3.085, 1.9700000000000002, 1.2108968098958333" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
|
||||
</nestedChildShapes>
|
||||
</classShape>
|
||||
<classShape Id="838b3622-14a7-484e-ba99-0c14d626efcb" absoluteBounds="5, 2.125, 2, 4.2708154296875">
|
||||
<DataClassMoniker Name="/DataClasses1DataContext/vGroupUser" />
|
||||
<nestedChildShapes>
|
||||
<elementListCompartment Id="8dd6b41e-f39d-4833-a216-88cdea23b90b" absoluteBounds="5.015, 2.585, 1.9700000000000002, 3.7108154296875" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />
|
||||
</nestedChildShapes>
|
||||
</classShape>
|
||||
</nestedChildShapes>
|
||||
</ordesignerObjectsDiagram>
|
||||
576
Project/DataClasses1.designer.cs
generated
Normal file
576
Project/DataClasses1.designer.cs
generated
Normal file
@@ -0,0 +1,576 @@
|
||||
#pragma warning disable 1591
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 이 코드는 도구를 사용하여 생성되었습니다.
|
||||
// 런타임 버전:4.0.30319.42000
|
||||
//
|
||||
// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면
|
||||
// 이러한 변경 내용이 손실됩니다.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
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> UserGroup
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<UserGroup>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<vGroupUser> vGroupUser
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<vGroupUser>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[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<bool> _advpurchase;
|
||||
|
||||
private System.Nullable<int> _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<bool> value);
|
||||
partial void OnadvpurchaseChanged();
|
||||
partial void OnpermissionChanging(System.Nullable<int> 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<bool> 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<int> 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<short> _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<short> 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
|
||||
43
Project/Dialog/fLogin.Designer.cs
generated
43
Project/Dialog/fLogin.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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<string> idlist = new List<string>();
|
||||
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);
|
||||
|
||||
@@ -136,6 +136,7 @@
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Data.Linq" />
|
||||
<Reference Include="System.DirectoryServices" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Net" />
|
||||
@@ -157,6 +158,11 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CResult.cs" />
|
||||
<Compile Include="DataClasses1.designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>DataClasses1.dbml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DataSet1.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
@@ -364,6 +370,14 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="app.config" />
|
||||
<None Include="DataClasses1.dbml">
|
||||
<Generator>MSLinqToSQLGenerator</Generator>
|
||||
<LastGenOutput>DataClasses1.designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
<None Include="DataClasses1.dbml.layout">
|
||||
<DependentUpon>DataClasses1.dbml</DependentUpon>
|
||||
</None>
|
||||
<None Include="DataSet1.xsc">
|
||||
<DependentUpon>DataSet1.xsd</DependentUpon>
|
||||
</None>
|
||||
@@ -484,6 +498,8 @@
|
||||
<Name>StaffLayoutCtl</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -1,4 +1,5 @@
|
||||
200921 chi 파트리스트 저장시 sid 의 공백이 제거되게함
|
||||
201007 chi 부서로그인 기능 추가, 구매내역 메일 보내기 기능
|
||||
200921 chi 파트리스트 저장시 sid 의 공백이 제거되게함
|
||||
200812 chi 1일최대근무시간 8시간 적용
|
||||
200730 chi 파트리스트에 입력되는 단가 자릿수 증가
|
||||
200618 chi 사용자 정보 변경 기능 수정 (저장에서 오류가 있었음)
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Project._Common
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
var form = this as Form;
|
||||
Pub.SetFormStatus(ref form, this.Name , true);
|
||||
Pub.SetFormStatus(ref form, this.Name, true);
|
||||
this.Show();
|
||||
Application.DoEvents();
|
||||
|
||||
@@ -63,10 +63,17 @@ namespace Project._Common
|
||||
}
|
||||
|
||||
//부서목록 업데이트
|
||||
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();
|
||||
@@ -90,7 +97,7 @@ namespace Project._Common
|
||||
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;
|
||||
@@ -147,7 +154,7 @@ 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();
|
||||
}
|
||||
|
||||
|
||||
1050
Project/dsMSSQL.Designer.cs
generated
1050
Project/dsMSSQL.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -931,6 +931,93 @@ SELECT ID, CtrlNo, SIDNo, Storage, Location, UseEqmt, PartName, PartNo, Process,
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EETGW_GroupUserTableAdapter" GeneratorDataComponentClassName="EETGW_GroupUserTableAdapter" Name="EETGW_GroupUser" UserDataComponentName="EETGW_GroupUserTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.EETGW_GroupUser" 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_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))</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="false" 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="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_level" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" 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="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_wdate" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="wdate" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>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())</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" 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="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<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" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT idx, gcode, uid, level, wuid, wdate
|
||||
FROM EETGW_GroupUser
|
||||
WHERE (gcode = @gcode)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_GroupUser" 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_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)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" 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="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<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="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="false" 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="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_uid" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_level" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int16" Direction="Input" ParameterName="@Original_level" Precision="0" ProviderType="SmallInt" Scale="0" Size="0" SourceColumn="level" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" 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="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="false" AutogeneratedName="idx" ColumnName="idx" DataSourceName="EE.dbo.EETGW_GroupUser" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idx" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="idx" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idx" DataSetColumn="idx" />
|
||||
<Mapping SourceColumn="gcode" DataSetColumn="gcode" />
|
||||
<Mapping SourceColumn="uid" DataSetColumn="uid" />
|
||||
<Mapping SourceColumn="level" DataSetColumn="level" />
|
||||
<Mapping SourceColumn="wuid" DataSetColumn="wuid" />
|
||||
<Mapping SourceColumn="wdate" DataSetColumn="wdate" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="ExistCheck" Modifier="Public" Name="ExistCheck" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="ExistCheck">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT COUNT(*) FROM EETGW_GroupUser
|
||||
where gcode =@gcode
|
||||
and uid = @uid</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="gcode" ColumnName="gcode" DataSourceName="EE.dbo.EETGW_GroupUser" DataTypeServer="varchar(10)" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="uid" ColumnName="uid" DataSourceName="EE.dbo.EETGW_GroupUser" DataTypeServer="varchar(20)" DbType="AnsiString" Direction="Input" ParameterName="@uid" Precision="0" ProviderType="VarChar" Scale="0" Size="20" SourceColumn="uid" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetItemName" MethodsParameterType="CLR" Modifier="Public" Name="GetItemName" QueryType="Scalar" ScalarCallRetval="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetItemName">
|
||||
@@ -1493,6 +1580,36 @@ WHERE (idx = @idx)</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="EETGW_GroupUser" msprop:Generator_TableClassName="EETGW_GroupUserDataTable" msprop:Generator_TableVarName="tableEETGW_GroupUser" msprop:Generator_RowChangedName="EETGW_GroupUserRowChanged" msprop:Generator_TablePropName="EETGW_GroupUser" msprop:Generator_RowDeletingName="EETGW_GroupUserRowDeleting" msprop:Generator_RowChangingName="EETGW_GroupUserRowChanging" msprop:Generator_RowEvHandlerName="EETGW_GroupUserRowChangeEventHandler" msprop:Generator_RowDeletedName="EETGW_GroupUserRowDeleted" msprop:Generator_RowClassName="EETGW_GroupUserRow" msprop:Generator_UserTableName="EETGW_GroupUser" msprop:Generator_RowEvArgName="EETGW_GroupUserRowChangeEvent">
|
||||
<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" />
|
||||
<xs:element name="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_UserColumnName="gcode">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="uid" msprop:Generator_ColumnVarNameInTable="columnuid" msprop:Generator_ColumnPropNameInRow="uid" msprop:Generator_ColumnPropNameInTable="uidColumn" msprop:Generator_UserColumnName="uid">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="level" msprop:Generator_ColumnVarNameInTable="columnlevel" msprop:Generator_ColumnPropNameInRow="level" msprop:Generator_ColumnPropNameInTable="levelColumn" msprop:Generator_UserColumnName="level" type="xs:short" minOccurs="0" />
|
||||
<xs:element name="wuid" msprop:Generator_ColumnVarNameInTable="columnwuid" msprop:Generator_ColumnPropNameInRow="wuid" msprop:Generator_ColumnPropNameInTable="wuidColumn" msprop:Generator_UserColumnName="wuid">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
</xs:restriction>
|
||||
</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:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -1523,5 +1640,9 @@ WHERE (idx = @idx)</CommandText>
|
||||
<xs:selector xpath=".//mstns:SPMaster" />
|
||||
<xs:field xpath="mstns:ID" />
|
||||
</xs:unique>
|
||||
<xs:unique name="EETGW_GroupUser_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:EETGW_GroupUser" />
|
||||
<xs:field xpath="mstns:idx" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
</xs:schema>
|
||||
@@ -6,14 +6,15 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-21" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:Users" ZOrder="3" X="39" Y="89" Height="651" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="429" />
|
||||
<Shape ID="DesignTable:Projects" ZOrder="8" X="208" Y="0" Height="149" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="59" />
|
||||
<Shape ID="DesignTable:Items" ZOrder="7" X="205" Y="174" Height="476" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:Inventory" ZOrder="6" X="389" Y="17" Height="362" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="292" />
|
||||
<Shape ID="DesignTable:LineCode" ZOrder="5" X="586" Y="429" Height="224" Width="189" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="156" />
|
||||
<Shape ID="DesignTable:UserGroup" ZOrder="2" X="396" Y="394" Height="263" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="173" />
|
||||
<Shape ID="DesignTable:SPMaster" ZOrder="1" X="772" Y="337" Height="324" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="4" X="673" Y="48" Height="220" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:Users" ZOrder="4" X="958" Y="53" Height="651" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="429" />
|
||||
<Shape ID="DesignTable:Projects" ZOrder="9" X="208" Y="0" Height="149" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="59" />
|
||||
<Shape ID="DesignTable:Items" ZOrder="8" X="205" Y="174" Height="476" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:Inventory" ZOrder="7" X="389" Y="17" Height="362" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="292" />
|
||||
<Shape ID="DesignTable:LineCode" ZOrder="6" X="586" Y="429" Height="224" Width="189" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="156" />
|
||||
<Shape ID="DesignTable:UserGroup" ZOrder="3" X="396" Y="394" Height="263" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="173" />
|
||||
<Shape ID="DesignTable:SPMaster" ZOrder="2" X="772" Y="337" Height="324" Width="200" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:EETGW_GroupUser" ZOrder="1" X="861" Y="34" Height="267" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignSources:QueriesTableAdapter" ZOrder="5" X="673" Y="48" Height="220" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Reference in New Issue
Block a user