적정인원보고서 수정
This commit is contained in:
182
SubProject/FCM0000/DSUser.Designer.cs
generated
182
SubProject/FCM0000/DSUser.Designer.cs
generated
@@ -365,6 +365,8 @@ namespace FCM0000 {
|
||||
|
||||
private global::System.Data.DataColumn columndevinfo;
|
||||
|
||||
private global::System.Data.DataColumn columnusemail;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public UserGroupDataTable() {
|
||||
@@ -462,6 +464,14 @@ namespace FCM0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public global::System.Data.DataColumn usemailColumn {
|
||||
get {
|
||||
return this.columnusemail;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
@@ -499,7 +509,7 @@ namespace FCM0000 {
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public UserGroupRow AddUserGroupRow(string dept, string gcode, string path_kj, int permission, bool advpurchase, bool advkisul, string managerinfo, string devinfo) {
|
||||
public UserGroupRow AddUserGroupRow(string dept, string gcode, string path_kj, int permission, bool advpurchase, bool advkisul, string managerinfo, string devinfo, bool usemail) {
|
||||
UserGroupRow rowUserGroupRow = ((UserGroupRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
dept,
|
||||
@@ -509,7 +519,8 @@ namespace FCM0000 {
|
||||
advpurchase,
|
||||
advkisul,
|
||||
managerinfo,
|
||||
devinfo};
|
||||
devinfo,
|
||||
usemail};
|
||||
rowUserGroupRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowUserGroupRow);
|
||||
return rowUserGroupRow;
|
||||
@@ -547,6 +558,7 @@ namespace FCM0000 {
|
||||
this.columnadvkisul = base.Columns["advkisul"];
|
||||
this.columnmanagerinfo = base.Columns["managerinfo"];
|
||||
this.columndevinfo = base.Columns["devinfo"];
|
||||
this.columnusemail = base.Columns["usemail"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -568,6 +580,8 @@ namespace FCM0000 {
|
||||
base.Columns.Add(this.columnmanagerinfo);
|
||||
this.columndevinfo = new global::System.Data.DataColumn("devinfo", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columndevinfo);
|
||||
this.columnusemail = new global::System.Data.DataColumn("usemail", typeof(bool), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnusemail);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columndept}, true));
|
||||
this.columndept.AllowDBNull = false;
|
||||
@@ -1895,6 +1909,22 @@ namespace FCM0000 {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool usemail {
|
||||
get {
|
||||
if (this.IsusemailNull()) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return ((bool)(this[this.tableUserGroup.usemailColumn]));
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableUserGroup.usemailColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsgcodeNull() {
|
||||
@@ -1978,6 +2008,18 @@ namespace FCM0000 {
|
||||
public void SetdevinfoNull() {
|
||||
this[this.tableUserGroup.devinfoColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public bool IsusemailNull() {
|
||||
return this.IsNull(this.tableUserGroup.usemailColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
public void SetusemailNull() {
|
||||
this[this.tableUserGroup.usemailColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -3196,10 +3238,11 @@ namespace FCM0000.DSUserTableAdapters {
|
||||
tableMapping.ColumnMappings.Add("advkisul", "advkisul");
|
||||
tableMapping.ColumnMappings.Add("managerinfo", "managerinfo");
|
||||
tableMapping.ColumnMappings.Add("devinfo", "devinfo");
|
||||
tableMapping.ColumnMappings.Add("usemail", "usemail");
|
||||
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 [UserGroup] WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)))";
|
||||
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [UserGroup] WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)) AND ((@IsNull_usemail = 1 AND [usemail] IS NULL) OR ([usemail] = @Original_usemail)))";
|
||||
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
@@ -3216,10 +3259,12 @@ namespace FCM0000.DSUserTableAdapters {
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_devinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usemail", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usemail", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", 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 [UserGroup] ([dept], [gcode], [path_kj], [permission], [advpurchase], [advkisul], [managerinfo], [devinfo]) VALUES (@dept, @gcode, @path_kj, @permission, @advpurchase, @advkisul, @managerinfo, @devinfo);
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)";
|
||||
this._adapter.InsertCommand.CommandText = @"INSERT INTO [UserGroup] ([dept], [gcode], [path_kj], [permission], [advpurchase], [advkisul], [managerinfo], [devinfo], [usemail]) VALUES (@dept, @gcode, @path_kj, @permission, @advpurchase, @advkisul, @managerinfo, @devinfo, @usemail);
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail FROM UserGroup WITH (nolock) WHERE (dept = @dept)";
|
||||
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
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, "", "", ""));
|
||||
@@ -3229,10 +3274,11 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usemail", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", 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 [UserGroup] SET [dept] = @dept, [gcode] = @gcode, [path_kj] = @path_kj, [permission] = @permission, [advpurchase] = @advpurchase, [advkisul] = @advkisul, [managerinfo] = @managerinfo, [devinfo] = @devinfo WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)));
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)";
|
||||
this._adapter.UpdateCommand.CommandText = @"UPDATE [UserGroup] SET [dept] = @dept, [gcode] = @gcode, [path_kj] = @path_kj, [permission] = @permission, [advpurchase] = @advpurchase, [advkisul] = @advkisul, [managerinfo] = @managerinfo, [devinfo] = @devinfo, [usemail] = @usemail WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)) AND ((@IsNull_usemail = 1 AND [usemail] IS NULL) OR ([usemail] = @Original_usemail)));
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail FROM UserGroup WITH (nolock) WHERE (dept = @dept)";
|
||||
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
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, "", "", ""));
|
||||
@@ -3242,6 +3288,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@advkisul", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "advkisul", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@usemail", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dept", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dept", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gcode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Original, true, 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, "", "", ""));
|
||||
@@ -3257,6 +3304,8 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_managerinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "managerinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_devinfo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_devinfo", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "devinfo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_usemail", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
|
||||
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_usemail", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "usemail", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -3273,12 +3322,12 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev" +
|
||||
"info\r\nFROM UserGroup WITH (nolock)";
|
||||
"info, usemail\r\nFROM UserGroup WITH (nolock)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "SELECT advkisul, advpurchase, dept, devinfo, gcode, managerinfo, path_kj, permis" +
|
||||
"sion\r\nFROM UserGroup WITH (nolock)\r\nWHERE (gcode = @gcode)";
|
||||
"sion, usemail\r\nFROM UserGroup WITH (nolock)\r\nWHERE (gcode = @gcode)";
|
||||
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, "", "", ""));
|
||||
}
|
||||
@@ -3376,7 +3425,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
|
||||
public virtual int Delete(string Original_dept, string Original_gcode, string Original_path_kj, global::System.Nullable<int> Original_permission, global::System.Nullable<bool> Original_advpurchase, global::System.Nullable<bool> Original_advkisul, string Original_managerinfo, string Original_devinfo) {
|
||||
public virtual int Delete(string Original_dept, string Original_gcode, string Original_path_kj, global::System.Nullable<int> Original_permission, global::System.Nullable<bool> Original_advpurchase, global::System.Nullable<bool> Original_advkisul, string Original_managerinfo, string Original_devinfo, global::System.Nullable<bool> Original_usemail) {
|
||||
if ((Original_dept == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_dept");
|
||||
}
|
||||
@@ -3439,6 +3488,14 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_devinfo));
|
||||
}
|
||||
if ((Original_usemail.HasValue == true)) {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = ((bool)(Original_usemail.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
|
||||
this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
}
|
||||
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)) {
|
||||
@@ -3459,7 +3516,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
|
||||
public virtual int Insert(string dept, string gcode, string path_kj, global::System.Nullable<int> permission, global::System.Nullable<bool> advpurchase, global::System.Nullable<bool> advkisul, string managerinfo, string devinfo) {
|
||||
public virtual int Insert(string dept, string gcode, string path_kj, global::System.Nullable<int> permission, global::System.Nullable<bool> advpurchase, global::System.Nullable<bool> advkisul, string managerinfo, string devinfo, global::System.Nullable<bool> usemail) {
|
||||
if ((dept == null)) {
|
||||
throw new global::System.ArgumentNullException("dept");
|
||||
}
|
||||
@@ -3508,6 +3565,12 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[7].Value = ((string)(devinfo));
|
||||
}
|
||||
if ((usemail.HasValue == true)) {
|
||||
this.Adapter.InsertCommand.Parameters[8].Value = ((bool)(usemail.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
|
||||
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
@@ -3537,6 +3600,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
global::System.Nullable<bool> advkisul,
|
||||
string managerinfo,
|
||||
string devinfo,
|
||||
global::System.Nullable<bool> usemail,
|
||||
string Original_dept,
|
||||
string Original_gcode,
|
||||
string Original_path_kj,
|
||||
@@ -3544,7 +3608,8 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
global::System.Nullable<bool> Original_advpurchase,
|
||||
global::System.Nullable<bool> Original_advkisul,
|
||||
string Original_managerinfo,
|
||||
string Original_devinfo) {
|
||||
string Original_devinfo,
|
||||
global::System.Nullable<bool> Original_usemail) {
|
||||
if ((dept == null)) {
|
||||
throw new global::System.ArgumentNullException("dept");
|
||||
}
|
||||
@@ -3593,67 +3658,81 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(devinfo));
|
||||
}
|
||||
if ((usemail.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(usemail.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_dept == null)) {
|
||||
throw new global::System.ArgumentNullException("Original_dept");
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_dept));
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_dept));
|
||||
}
|
||||
if ((Original_gcode == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_gcode));
|
||||
this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_gcode));
|
||||
}
|
||||
if ((Original_path_kj == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_path_kj));
|
||||
this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_path_kj));
|
||||
}
|
||||
if ((Original_permission.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_permission.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_permission.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_advpurchase.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((bool)(Original_advpurchase.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((bool)(Original_advpurchase.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_advkisul.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((bool)(Original_advkisul.Value));
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((bool)(Original_advkisul.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((Original_managerinfo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_managerinfo));
|
||||
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_managerinfo));
|
||||
}
|
||||
if ((Original_devinfo == null)) {
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_devinfo));
|
||||
this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_devinfo));
|
||||
}
|
||||
if ((Original_usemail.HasValue == true)) {
|
||||
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
|
||||
this.Adapter.UpdateCommand.Parameters[25].Value = ((bool)(Original_usemail.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
|
||||
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
|
||||
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
@@ -3675,8 +3754,25 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
|
||||
public virtual int Update(string gcode, string path_kj, global::System.Nullable<int> permission, global::System.Nullable<bool> advpurchase, global::System.Nullable<bool> advkisul, string managerinfo, string devinfo, string Original_dept, string Original_gcode, string Original_path_kj, global::System.Nullable<int> Original_permission, global::System.Nullable<bool> Original_advpurchase, global::System.Nullable<bool> Original_advkisul, string Original_managerinfo, string Original_devinfo) {
|
||||
return this.Update(Original_dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, Original_dept, Original_gcode, Original_path_kj, Original_permission, Original_advpurchase, Original_advkisul, Original_managerinfo, Original_devinfo);
|
||||
public virtual int Update(
|
||||
string gcode,
|
||||
string path_kj,
|
||||
global::System.Nullable<int> permission,
|
||||
global::System.Nullable<bool> advpurchase,
|
||||
global::System.Nullable<bool> advkisul,
|
||||
string managerinfo,
|
||||
string devinfo,
|
||||
global::System.Nullable<bool> usemail,
|
||||
string Original_dept,
|
||||
string Original_gcode,
|
||||
string Original_path_kj,
|
||||
global::System.Nullable<int> Original_permission,
|
||||
global::System.Nullable<bool> Original_advpurchase,
|
||||
global::System.Nullable<bool> Original_advkisul,
|
||||
string Original_managerinfo,
|
||||
string Original_devinfo,
|
||||
global::System.Nullable<bool> Original_usemail) {
|
||||
return this.Update(Original_dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail, Original_dept, Original_gcode, Original_path_kj, Original_permission, Original_advpurchase, Original_advkisul, Original_managerinfo, Original_devinfo, Original_usemail);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.UserGroup" 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 [UserGroup] WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)))</CommandText>
|
||||
<CommandText>DELETE FROM [UserGroup] WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)) AND ((@IsNull_usemail = 1 AND [usemail] IS NULL) OR ([usemail] = @Original_usemail)))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
@@ -29,13 +29,15 @@
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_managerinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="managerinfo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_devinfo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_devinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_usemail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_usemail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [UserGroup] ([dept], [gcode], [path_kj], [permission], [advpurchase], [advkisul], [managerinfo], [devinfo]) VALUES (@dept, @gcode, @path_kj, @permission, @advpurchase, @advkisul, @managerinfo, @devinfo);
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)</CommandText>
|
||||
<CommandText>INSERT INTO [UserGroup] ([dept], [gcode], [path_kj], [permission], [advpurchase], [advkisul], [managerinfo], [devinfo], [usemail]) VALUES (@dept, @gcode, @path_kj, @permission, @advpurchase, @advkisul, @managerinfo, @devinfo, @usemail);
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail FROM UserGroup WITH (nolock) WHERE (dept = @dept)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -45,20 +47,21 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@advkisul" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="advkisul" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@managerinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="managerinfo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@devinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@usemail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo
|
||||
<CommandText>SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail
|
||||
FROM UserGroup WITH (nolock)</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [UserGroup] SET [dept] = @dept, [gcode] = @gcode, [path_kj] = @path_kj, [permission] = @permission, [advpurchase] = @advpurchase, [advkisul] = @advkisul, [managerinfo] = @managerinfo, [devinfo] = @devinfo WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)));
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo FROM UserGroup WHERE (dept = @dept)</CommandText>
|
||||
<CommandText>UPDATE [UserGroup] SET [dept] = @dept, [gcode] = @gcode, [path_kj] = @path_kj, [permission] = @permission, [advpurchase] = @advpurchase, [advkisul] = @advkisul, [managerinfo] = @managerinfo, [devinfo] = @devinfo, [usemail] = @usemail WHERE (([dept] = @Original_dept) AND ((@IsNull_gcode = 1 AND [gcode] IS NULL) OR ([gcode] = @Original_gcode)) AND ((@IsNull_path_kj = 1 AND [path_kj] IS NULL) OR ([path_kj] = @Original_path_kj)) AND ((@IsNull_permission = 1 AND [permission] IS NULL) OR ([permission] = @Original_permission)) AND ((@IsNull_advpurchase = 1 AND [advpurchase] IS NULL) OR ([advpurchase] = @Original_advpurchase)) AND ((@IsNull_advkisul = 1 AND [advkisul] IS NULL) OR ([advkisul] = @Original_advkisul)) AND ((@IsNull_managerinfo = 1 AND [managerinfo] IS NULL) OR ([managerinfo] = @Original_managerinfo)) AND ((@IsNull_devinfo = 1 AND [devinfo] IS NULL) OR ([devinfo] = @Original_devinfo)) AND ((@IsNull_usemail = 1 AND [usemail] IS NULL) OR ([usemail] = @Original_usemail)));
|
||||
SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, devinfo, usemail FROM UserGroup WITH (nolock) WHERE (dept = @dept)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
@@ -68,6 +71,7 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@advkisul" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="advkisul" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@managerinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="managerinfo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@devinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@usemail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_dept" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="dept" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_gcode" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_gcode" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="gcode" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
@@ -83,6 +87,8 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_managerinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="managerinfo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_devinfo" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_devinfo" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="devinfo" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_usemail" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="true" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_usemail" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="usemail" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
@@ -97,12 +103,13 @@ SELECT dept, gcode, path_kj, permission, advpurchase, advkisul, managerinfo, dev
|
||||
<Mapping SourceColumn="advkisul" DataSetColumn="advkisul" />
|
||||
<Mapping SourceColumn="managerinfo" DataSetColumn="managerinfo" />
|
||||
<Mapping SourceColumn="devinfo" DataSetColumn="devinfo" />
|
||||
<Mapping SourceColumn="usemail" DataSetColumn="usemail" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="gwcs (Settings)" DbObjectName="EE.dbo.UserGroup" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetByID" GeneratorSourceName="FillByID" GetMethodModifier="Public" GetMethodName="GetByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetByID" UserSourceName="FillByID">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT advkisul, advpurchase, dept, devinfo, gcode, managerinfo, path_kj, permission
|
||||
<CommandText>SELECT advkisul, advpurchase, dept, devinfo, gcode, managerinfo, path_kj, permission, usemail
|
||||
FROM UserGroup WITH (nolock)
|
||||
WHERE (gcode = @gcode)</CommandText>
|
||||
<Parameters>
|
||||
@@ -456,10 +463,10 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
<xs:element name="DSUser" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="DSUser" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DSUser">
|
||||
<xs:complexType>
|
||||
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||
<xs:element name="UserGroup" msprop:Generator_RowClassName="UserGroupRow" msprop:Generator_RowEvHandlerName="UserGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="UserGroupRowDeleted" msprop:Generator_RowDeletingName="UserGroupRowDeleting" msprop:Generator_RowEvArgName="UserGroupRowChangeEvent" msprop:Generator_TablePropName="UserGroup" msprop:Generator_RowChangedName="UserGroupRowChanged" msprop:Generator_UserTableName="UserGroup" msprop:Generator_RowChangingName="UserGroupRowChanging" msprop:Generator_TableClassName="UserGroupDataTable" msprop:Generator_TableVarName="tableUserGroup">
|
||||
<xs:element name="UserGroup" msprop:Generator_RowEvHandlerName="UserGroupRowChangeEventHandler" msprop:Generator_RowDeletedName="UserGroupRowDeleted" msprop:Generator_RowDeletingName="UserGroupRowDeleting" msprop:Generator_RowEvArgName="UserGroupRowChangeEvent" msprop:Generator_TablePropName="UserGroup" msprop:Generator_RowChangedName="UserGroupRowChanged" msprop:Generator_UserTableName="UserGroup" msprop:Generator_RowChangingName="UserGroupRowChanging" msprop:Generator_RowClassName="UserGroupRow" msprop:Generator_TableClassName="UserGroupDataTable" msprop:Generator_TableVarName="tableUserGroup">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="dept" msprop:Generator_UserColumnName="dept" msprop:Generator_ColumnPropNameInTable="deptColumn" msprop:Generator_ColumnPropNameInRow="dept" msprop:Generator_ColumnVarNameInTable="columndept">
|
||||
<xs:element name="dept" msprop:Generator_ColumnPropNameInTable="deptColumn" msprop:Generator_ColumnPropNameInRow="dept" msprop:Generator_UserColumnName="dept" msprop:Generator_ColumnVarNameInTable="columndept">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
@@ -497,13 +504,14 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="usemail" msprop:nullValue="0" msprop:Generator_ColumnPropNameInTable="usemailColumn" msprop:Generator_ColumnVarNameInTable="columnusemail" msprop:Generator_UserColumnName="usemail" msprop:Generator_ColumnPropNameInRow="usemail" type="xs:boolean" minOccurs="0" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Users" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers">
|
||||
<xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="id" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnVarNameInTable="columnid">
|
||||
<xs:element name="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_UserColumnName="id" msprop:Generator_ColumnVarNameInTable="columnid">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="20" />
|
||||
@@ -623,15 +631,15 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="wdate" msprop:Generator_UserColumnName="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" type="xs:dateTime" />
|
||||
<xs:element name="gcode" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_ColumnVarNameInTable="columngcode" msprop:Generator_UserColumnName="gcode" minOccurs="0">
|
||||
<xs:element name="wdate" msprop:Generator_ColumnPropNameInTable="wdateColumn" msprop:Generator_ColumnPropNameInRow="wdate" msprop:Generator_UserColumnName="wdate" msprop:Generator_ColumnVarNameInTable="columnwdate" type="xs:dateTime" />
|
||||
<xs:element name="gcode" msprop:Generator_UserColumnName="gcode" msprop:Generator_ColumnPropNameInTable="gcodeColumn" msprop:Generator_ColumnPropNameInRow="gcode" msprop:Generator_ColumnVarNameInTable="columngcode" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="processs" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_ColumnVarNameInTable="columnprocesss" msprop:Generator_UserColumnName="processs" minOccurs="0">
|
||||
<xs:element name="processs" msprop:Generator_UserColumnName="processs" msprop:Generator_ColumnPropNameInTable="processsColumn" msprop:Generator_ColumnPropNameInRow="processs" msprop:Generator_ColumnVarNameInTable="columnprocesss" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="100" />
|
||||
@@ -641,10 +649,10 @@ SELECT idx, [user], gcode, purchase, holyday, project, jobreport, savecost, sche
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="Auth" msprop:Generator_RowClassName="AuthRow" msprop:Generator_RowEvHandlerName="AuthRowChangeEventHandler" msprop:Generator_RowDeletedName="AuthRowDeleted" msprop:Generator_RowDeletingName="AuthRowDeleting" msprop:Generator_RowEvArgName="AuthRowChangeEvent" msprop:Generator_TablePropName="Auth" msprop:Generator_RowChangedName="AuthRowChanged" msprop:Generator_UserTableName="Auth" msprop:Generator_RowChangingName="AuthRowChanging" msprop:Generator_TableClassName="AuthDataTable" msprop:Generator_TableVarName="tableAuth">
|
||||
<xs:element name="Auth" msprop:Generator_RowEvHandlerName="AuthRowChangeEventHandler" msprop:Generator_RowDeletedName="AuthRowDeleted" msprop:Generator_RowDeletingName="AuthRowDeleting" msprop:Generator_RowEvArgName="AuthRowChangeEvent" msprop:Generator_TablePropName="Auth" msprop:Generator_RowChangedName="AuthRowChanged" msprop:Generator_UserTableName="Auth" msprop:Generator_RowChangingName="AuthRowChanging" msprop:Generator_RowClassName="AuthRow" msprop:Generator_TableClassName="AuthDataTable" msprop:Generator_TableVarName="tableAuth">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
<xs:element name="idx" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="idxColumn" msprop:Generator_ColumnPropNameInRow="idx" msprop:Generator_UserColumnName="idx" msprop:Generator_ColumnVarNameInTable="columnidx" type="xs:int" />
|
||||
<xs:element name="user" msprop:Generator_ColumnPropNameInTable="userColumn" msprop:nullValue="_empty" msprop:Generator_ColumnPropNameInRow="user" msprop:Generator_UserColumnName="user" msprop:Generator_ColumnVarNameInTable="columnuser" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</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="-13" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-13" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:UserGroup" ZOrder="3" X="0" Y="0" Height="343" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:Users" ZOrder="2" X="210" Y="-1" Height="324" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
|
||||
190
SubProject/FCM0000/User/fUserGroupDev.Designer.cs
generated
190
SubProject/FCM0000/User/fUserGroupDev.Designer.cs
generated
@@ -30,14 +30,6 @@
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fUserGroupDev));
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType6 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType7 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType8 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.NumberCellType numberCellType2 = new FarPoint.Win.Spread.CellType.NumberCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType3 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.CheckBoxCellType checkBoxCellType4 = new FarPoint.Win.Spread.CellType.CheckBoxCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType9 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
FarPoint.Win.Spread.CellType.TextCellType textCellType10 = new FarPoint.Win.Spread.CellType.TextCellType();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dSUser = new FCM0000.DSUser();
|
||||
this.taStaff = new FCM0000.dsMSSQLTableAdapters.StaffTableAdapter();
|
||||
@@ -64,18 +56,25 @@
|
||||
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.권한설정ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
|
||||
this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
|
||||
this.bsStaff = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.ta = new FCM0000.DSUserTableAdapters.UserGroupTableAdapter();
|
||||
this.dv1 = new System.Windows.Forms.DataGridView();
|
||||
this.deptDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.gcodeDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.pathkjDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.permissionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.advpurchaseDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.advkisulDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.managerinfoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.devinfoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.usemailDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dSUser)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bn)).BeginInit();
|
||||
this.bn.SuspendLayout();
|
||||
this.cm1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsStaff)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// bs
|
||||
@@ -117,14 +116,14 @@
|
||||
this.toolStripLabel2,
|
||||
this.tbFind,
|
||||
this.btFind});
|
||||
this.bn.Location = new System.Drawing.Point(0, 570);
|
||||
this.bn.Location = new System.Drawing.Point(0, 614);
|
||||
this.bn.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
|
||||
this.bn.MoveLastItem = this.bindingNavigatorMoveLastItem;
|
||||
this.bn.MoveNextItem = this.bindingNavigatorMoveNextItem;
|
||||
this.bn.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
|
||||
this.bn.Name = "bn";
|
||||
this.bn.PositionItem = this.bindingNavigatorPositionItem;
|
||||
this.bn.Size = new System.Drawing.Size(910, 25);
|
||||
this.bn.Size = new System.Drawing.Size(999, 25);
|
||||
this.bn.TabIndex = 0;
|
||||
this.bn.Text = "bindingNavigator1";
|
||||
//
|
||||
@@ -297,83 +296,95 @@
|
||||
this.권한설정ToolStripMenuItem.Text = "권한설정";
|
||||
this.권한설정ToolStripMenuItem.Click += new System.EventHandler(this.권한설정ToolStripMenuItem_Click);
|
||||
//
|
||||
// fpSpread1
|
||||
//
|
||||
this.fpSpread1.AccessibleDescription = "";
|
||||
this.fpSpread1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.fpSpread1.Location = new System.Drawing.Point(0, 0);
|
||||
this.fpSpread1.Name = "fpSpread1";
|
||||
this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
|
||||
this.fpSpread1_Sheet1});
|
||||
this.fpSpread1.Size = new System.Drawing.Size(910, 570);
|
||||
this.fpSpread1.TabIndex = 2;
|
||||
//
|
||||
// fpSpread1_Sheet1
|
||||
//
|
||||
this.fpSpread1_Sheet1.Reset();
|
||||
this.fpSpread1_Sheet1.SheetName = "Sheet1";
|
||||
// Formulas and custom names must be loaded with R1C1 reference style
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
|
||||
this.fpSpread1_Sheet1.ColumnCount = 8;
|
||||
this.fpSpread1_Sheet1.ActiveColumnIndex = -1;
|
||||
this.fpSpread1_Sheet1.ActiveRowIndex = -1;
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 0).Value = "부서명";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 1).Value = "부서코드";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Cells.Get(0, 3).Value = "권한";
|
||||
this.fpSpread1_Sheet1.ColumnHeader.Rows.Get(0).Height = 38F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).CellType = textCellType6;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).DataField = "dept";
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).Label = "부서명";
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(0).Width = 151F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).CellType = textCellType7;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).DataField = "gcode";
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).Label = "부서코드";
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(1).Width = 151F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).CellType = textCellType8;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).DataField = "path_kj";
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Visible = false;
|
||||
this.fpSpread1_Sheet1.Columns.Get(2).Width = 151F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
numberCellType2.DecimalPlaces = 0;
|
||||
numberCellType2.LeadingZero = FarPoint.Win.Spread.CellType.LeadingZero.Yes;
|
||||
numberCellType2.MaximumValue = 2147483647D;
|
||||
numberCellType2.MinimumValue = -2147483648D;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).CellType = numberCellType2;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).DataField = "permission";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Label = "권한";
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
this.fpSpread1_Sheet1.Columns.Get(3).Width = 88F;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).CellType = checkBoxCellType3;
|
||||
this.fpSpread1_Sheet1.Columns.Get(4).DataField = "advpurchase";
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).CellType = checkBoxCellType4;
|
||||
this.fpSpread1_Sheet1.Columns.Get(5).DataField = "advkisul";
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).CellType = textCellType9;
|
||||
this.fpSpread1_Sheet1.Columns.Get(6).DataField = "managerinfo";
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).CellType = textCellType10;
|
||||
this.fpSpread1_Sheet1.Columns.Get(7).DataField = "devinfo";
|
||||
this.fpSpread1_Sheet1.DataAutoSizeColumns = false;
|
||||
this.fpSpread1_Sheet1.DataSource = this.bs;
|
||||
this.fpSpread1_Sheet1.RowHeader.Columns.Default.Resizable = false;
|
||||
this.fpSpread1_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
|
||||
//
|
||||
// ta
|
||||
//
|
||||
this.ta.ClearBeforeFill = true;
|
||||
//
|
||||
// dv1
|
||||
//
|
||||
this.dv1.AllowUserToAddRows = false;
|
||||
this.dv1.AutoGenerateColumns = false;
|
||||
this.dv1.ColumnHeadersHeight = 35;
|
||||
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.deptDataGridViewTextBoxColumn,
|
||||
this.gcodeDataGridViewTextBoxColumn,
|
||||
this.pathkjDataGridViewTextBoxColumn,
|
||||
this.permissionDataGridViewTextBoxColumn,
|
||||
this.advpurchaseDataGridViewCheckBoxColumn,
|
||||
this.advkisulDataGridViewCheckBoxColumn,
|
||||
this.managerinfoDataGridViewTextBoxColumn,
|
||||
this.devinfoDataGridViewTextBoxColumn,
|
||||
this.usemailDataGridViewCheckBoxColumn});
|
||||
this.dv1.ContextMenuStrip = this.cm1;
|
||||
this.dv1.DataSource = this.bs;
|
||||
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dv1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dv1.Name = "dv1";
|
||||
this.dv1.RowTemplate.Height = 23;
|
||||
this.dv1.Size = new System.Drawing.Size(999, 614);
|
||||
this.dv1.TabIndex = 1;
|
||||
//
|
||||
// deptDataGridViewTextBoxColumn
|
||||
//
|
||||
this.deptDataGridViewTextBoxColumn.DataPropertyName = "dept";
|
||||
this.deptDataGridViewTextBoxColumn.HeaderText = "dept";
|
||||
this.deptDataGridViewTextBoxColumn.Name = "deptDataGridViewTextBoxColumn";
|
||||
//
|
||||
// gcodeDataGridViewTextBoxColumn
|
||||
//
|
||||
this.gcodeDataGridViewTextBoxColumn.DataPropertyName = "gcode";
|
||||
this.gcodeDataGridViewTextBoxColumn.HeaderText = "gcode";
|
||||
this.gcodeDataGridViewTextBoxColumn.Name = "gcodeDataGridViewTextBoxColumn";
|
||||
//
|
||||
// pathkjDataGridViewTextBoxColumn
|
||||
//
|
||||
this.pathkjDataGridViewTextBoxColumn.DataPropertyName = "path_kj";
|
||||
this.pathkjDataGridViewTextBoxColumn.HeaderText = "path_kj";
|
||||
this.pathkjDataGridViewTextBoxColumn.Name = "pathkjDataGridViewTextBoxColumn";
|
||||
//
|
||||
// permissionDataGridViewTextBoxColumn
|
||||
//
|
||||
this.permissionDataGridViewTextBoxColumn.DataPropertyName = "permission";
|
||||
this.permissionDataGridViewTextBoxColumn.HeaderText = "permission";
|
||||
this.permissionDataGridViewTextBoxColumn.Name = "permissionDataGridViewTextBoxColumn";
|
||||
//
|
||||
// advpurchaseDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.advpurchaseDataGridViewCheckBoxColumn.DataPropertyName = "advpurchase";
|
||||
this.advpurchaseDataGridViewCheckBoxColumn.HeaderText = "advpurchase";
|
||||
this.advpurchaseDataGridViewCheckBoxColumn.Name = "advpurchaseDataGridViewCheckBoxColumn";
|
||||
//
|
||||
// advkisulDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.advkisulDataGridViewCheckBoxColumn.DataPropertyName = "advkisul";
|
||||
this.advkisulDataGridViewCheckBoxColumn.HeaderText = "advkisul";
|
||||
this.advkisulDataGridViewCheckBoxColumn.Name = "advkisulDataGridViewCheckBoxColumn";
|
||||
//
|
||||
// managerinfoDataGridViewTextBoxColumn
|
||||
//
|
||||
this.managerinfoDataGridViewTextBoxColumn.DataPropertyName = "managerinfo";
|
||||
this.managerinfoDataGridViewTextBoxColumn.HeaderText = "managerinfo";
|
||||
this.managerinfoDataGridViewTextBoxColumn.Name = "managerinfoDataGridViewTextBoxColumn";
|
||||
//
|
||||
// devinfoDataGridViewTextBoxColumn
|
||||
//
|
||||
this.devinfoDataGridViewTextBoxColumn.DataPropertyName = "devinfo";
|
||||
this.devinfoDataGridViewTextBoxColumn.HeaderText = "devinfo";
|
||||
this.devinfoDataGridViewTextBoxColumn.Name = "devinfoDataGridViewTextBoxColumn";
|
||||
//
|
||||
// usemailDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.usemailDataGridViewCheckBoxColumn.DataPropertyName = "usemail";
|
||||
this.usemailDataGridViewCheckBoxColumn.HeaderText = "usemail";
|
||||
this.usemailDataGridViewCheckBoxColumn.Name = "usemailDataGridViewCheckBoxColumn";
|
||||
//
|
||||
// fUserGroupDev
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(910, 595);
|
||||
this.ClientSize = new System.Drawing.Size(999, 639);
|
||||
this.ContextMenuStrip = this.cm1;
|
||||
this.Controls.Add(this.fpSpread1);
|
||||
this.Controls.Add(this.dv1);
|
||||
this.Controls.Add(this.bn);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.Name = "fUserGroupDev";
|
||||
@@ -385,9 +396,8 @@
|
||||
this.bn.ResumeLayout(false);
|
||||
this.bn.PerformLayout();
|
||||
this.cm1.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsStaff)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -410,7 +420,6 @@
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
|
||||
private System.Windows.Forms.ToolStripButton customsBindingNavigatorSaveItem;
|
||||
private System.Windows.Forms.ContextMenuStrip cm1;
|
||||
private FarPoint.Win.Spread.FpSpread fpSpread1;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripLabel toolStripLabel2;
|
||||
private System.Windows.Forms.ToolStripTextBox tbFind;
|
||||
@@ -422,8 +431,17 @@
|
||||
private dsMSSQLTableAdapters.StaffTableAdapter taStaff;
|
||||
private DSUser dSUser;
|
||||
private DSUserTableAdapters.UserGroupTableAdapter ta;
|
||||
private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem 권한설정ToolStripMenuItem;
|
||||
private System.Windows.Forms.DataGridView dv1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn deptDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn gcodeDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn pathkjDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn permissionDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn advpurchaseDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn advkisulDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn managerinfoDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn devinfoDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn usemailDataGridViewCheckBoxColumn;
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace FCM0000
|
||||
refreshData();
|
||||
this.dSUser.UserGroup.TableNewRow += Customs_TableNewRow;
|
||||
}
|
||||
|
||||
|
||||
void Customs_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
//e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
@@ -39,14 +39,15 @@ namespace FCM0000
|
||||
try
|
||||
{
|
||||
this.ta.Fill(this.dSUser.UserGroup);
|
||||
FPUtil.ColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
|
||||
|
||||
}catch (Exception ex)
|
||||
dv1.AutoResizeColumns();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
FCOMMON.Util.MsgE(ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void customsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
@@ -56,7 +57,7 @@ namespace FCM0000
|
||||
{
|
||||
FCOMMON.Util.MsgI("변경된 내역이 없습니다.");
|
||||
}
|
||||
else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.",cnt));
|
||||
else FCOMMON.Util.MsgI(string.Format("{0} 건의 자료가 업데이트 되었습니다.", cnt));
|
||||
|
||||
}
|
||||
|
||||
@@ -67,10 +68,7 @@ namespace FCM0000
|
||||
|
||||
private void autoResizeColummsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
|
||||
|
||||
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
|
||||
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
|
||||
dv1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
private void btFind_Click(object sender, EventArgs e)
|
||||
@@ -107,31 +105,15 @@ namespace FCM0000
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter) btFind.PerformClick();
|
||||
}
|
||||
|
||||
private void autoToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.fpSpread1.ActiveSheet.DataAutoSizeColumns = true;
|
||||
|
||||
for (int i = 0; i < this.fpSpread1.ActiveSheet.Rows.Count; i++)
|
||||
this.fpSpread1.ActiveSheet.SetRowHeight(i, 25);
|
||||
}
|
||||
|
||||
private void resetToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (FarPoint.Win.Spread.Column col in this.fpSpread1.ActiveSheet.Columns)
|
||||
{
|
||||
col.Width = 100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void saveToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1);
|
||||
//FCOMMON.Util.FPColsizeSave(this.fpSpread1, fn_fpcolsize1);
|
||||
}
|
||||
|
||||
private void loadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
|
||||
//FCOMMON.Util.FPColSizeLoad(ref this.fpSpread1, fn_fpcolsize1);
|
||||
}
|
||||
|
||||
|
||||
@@ -142,8 +124,8 @@ namespace FCM0000
|
||||
var dr = drv.Row as DSUser.UserGroupRow;
|
||||
if (dr.RowState == DataRowState.Added || dr.RowState == DataRowState.Detached || dr.RowState == DataRowState.Deleted) this.bs.RemoveCurrent();
|
||||
|
||||
var dlg =FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?");
|
||||
if(dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
var dlg = FCOMMON.Util.MsgQ("다음 자료를 삭제하시겠습니까?");
|
||||
if (dlg == System.Windows.Forms.DialogResult.Yes)
|
||||
{
|
||||
this.bs.RemoveCurrent();
|
||||
}
|
||||
@@ -152,7 +134,7 @@ namespace FCM0000
|
||||
//private int selcectIDX = -1;
|
||||
private void bs_CurrentChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void 권한설정ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -161,13 +143,13 @@ namespace FCM0000
|
||||
if (drv == null) return;
|
||||
var dr = drv.Row as DSUser.UserGroupRow;
|
||||
var f = new fUserGroupPermission(dr.permission);
|
||||
if(f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
dr.permission = f.permission;
|
||||
dr.EndEdit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
wgAADsIBFShKgAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
|
||||
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
|
||||
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
|
||||
@@ -148,7 +148,7 @@
|
||||
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wgAADsIBFShKgAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
@@ -159,7 +159,7 @@
|
||||
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
wgAADsIBFShKgAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
@@ -168,7 +168,7 @@
|
||||
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
wgAADsIBFShKgAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
@@ -177,7 +177,7 @@
|
||||
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
wgAADsIBFShKgAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
@@ -188,7 +188,7 @@
|
||||
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
wgAADsIBFShKgAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
|
||||
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
|
||||
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
|
||||
@@ -200,7 +200,7 @@
|
||||
<data name="customsBindingNavigatorSaveItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
|
||||
wgAADsIBFShKgAAAAExJREFUOE9joAr49u3bf1IxVCsEgAWC58Dxh/cf4RhZDETHTNiHaQgpBoAwzBCo
|
||||
dtINAGGiDUDGyGpoawAxeNSAQWkAORiqnRLAwAAA9EMMU8Daa3MAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
@@ -238,9 +238,6 @@
|
||||
vmv/Akgg2IMBDgsSdJwcAEICDhoECjDAmQIFBQouXNiwQYPOgqgLBgQAOw==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="fpSpread1_Sheet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>551, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsStaff.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>222, 17</value>
|
||||
</metadata>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using FarPoint.Win;
|
||||
using FCOMMON;
|
||||
using GrapeCity.Win.Spread.InputMan.CellType;
|
||||
using NetOffice.Attributes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
@@ -243,14 +245,30 @@ namespace FPJ0000.JobReport_
|
||||
col = 2;
|
||||
var orTypeName = baseData.Where(t => t.svalue != "휴가" && string.IsNullOrEmpty(t.svalue) == false).OrderBy(t => t.svalue).GroupBy(t => t.svalue);
|
||||
this.fpSpread1.ActiveSheetIndex = 0;
|
||||
var maxcol = 6;
|
||||
bool useOther = false;
|
||||
foreach (var item in orTypeName)
|
||||
{
|
||||
var dr = item.FirstOrDefault();
|
||||
this.fpSpread1.Sheets[0].Cells[6, col++].Value = dr.svalue;
|
||||
//col += 1;
|
||||
|
||||
if (col == maxcol + 1) //엑셀파일 특성상 5개가 최고이다
|
||||
{
|
||||
this.fpSpread1.Sheets[0].Cells[6, col - 1].Value = "[ Other ]";
|
||||
useOther = true;
|
||||
}
|
||||
else if (col > maxcol + 1)
|
||||
{
|
||||
useOther = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.fpSpread1.Sheets[0].Cells[6, col].Value = dr.svalue;
|
||||
}
|
||||
col++;
|
||||
}
|
||||
|
||||
for (int i = col; i <= 6; i++)
|
||||
//항목이 6개 미만일 경우 제목을 * 로 변경해준다
|
||||
for (int i = col; i <= maxcol; i++)
|
||||
this.fpSpread1.Sheets[0].Cells[6, i].Value = "*";
|
||||
|
||||
System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo("ko-KR", false);
|
||||
@@ -272,75 +290,84 @@ namespace FPJ0000.JobReport_
|
||||
foreach (var prcitem in prclist)
|
||||
{
|
||||
this.progressBar2.Value += 1;
|
||||
var item = baseData.Where(t => t.type == prcitem.memo); //해당 프로세스에 해당하는 아이템을 가져온다
|
||||
//}
|
||||
if (prcitem.memo == null) prcitem.memo = string.Empty;
|
||||
if (prcitem.memo.StartsWith("ASM Feeder Center"))
|
||||
Console.WriteLine("sdf");
|
||||
var item = baseData.Where(t => t.type.Replace(" ","") == prcitem.memo.Replace(" ","")); //해당 프로세스에 해당하는 아이템을 가져온다
|
||||
|
||||
//foreach (var item in orProcess)
|
||||
//{
|
||||
var processName = prcitem.memo; // item.FirstOrDefault().process;
|
||||
//프로세스 이름 확인
|
||||
if (prcitem.memo == null) prcitem.memo = string.Empty;
|
||||
var processName = prcitem.memo.Trim();
|
||||
this.fpSpread1.Sheets[0].Cells[row, 1].Value = processName;
|
||||
|
||||
if(processName== "Documentation (문서작업)")
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//2번부터는 데이터를 넣어야 한다
|
||||
double sumOt = 0.0;
|
||||
//double holytime = 0.0;
|
||||
int coldata = 2;
|
||||
for (int i = 2; i <= 6; i++)
|
||||
var sumvalue_hrs = 0.0;
|
||||
var sumvalue_ot = 0.0;
|
||||
|
||||
for (int i = 2; i <= (useOther ? maxcol - 1 : maxcol); i++) //외부엑셀을 쓰다보니 열갯수가 5개로 제한되어있다.
|
||||
{
|
||||
if (item.Any() == false)
|
||||
if (item.Any() == false) //자료가없다면 0으로 채운다
|
||||
{
|
||||
//자료가없다면 0으로 채운다
|
||||
fpSpread1.Sheets[0].Cells[row, coldata].Value = null;
|
||||
fpSpread1.Sheets[0].Cells[row, i].Value = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
var colData = fpSpread1.Sheets[0].Cells[6, i].Value;
|
||||
var colName = string.Empty;// fpSpread1.Sheets[0].Cells[6, i].Value.ToString();
|
||||
if (colData != null) colName = colData.ToString();
|
||||
var colData = fpSpread1.Sheets[0].Cells[6, i].Value; //해당 열의 제목을 취함
|
||||
var colName = colData?.ToString() ?? string.Empty;// string.Empty;// fpSpread1.Sheets[0].Cells[6, i].Value.ToString();
|
||||
|
||||
//이 이름에 해당하는 데이터의 시간을 가져온다
|
||||
double ot = 0.0;
|
||||
double hrs = 0.0;
|
||||
if (colName != "*" && String.IsNullOrEmpty(colName) == false)
|
||||
if (colName != "*" && colName.isEmpty() == false)
|
||||
{
|
||||
//double holytime = 0.0;
|
||||
var timeList = item.Where(t => t.svalue == colName);
|
||||
//해당 이름에 해당하는 데이트 취합
|
||||
var timeList = item.Where(t => t.svalue.Replace(" ","") == colName.Replace(" ",""));
|
||||
if (timeList != null)
|
||||
{
|
||||
hrs = (double)timeList.Sum(t => t.hrs);
|
||||
ot = (double)timeList.Sum(t => t.ot);
|
||||
sumOt += ot;
|
||||
sumvalue_hrs += hrs;
|
||||
sumvalue_ot += ot;
|
||||
}
|
||||
}
|
||||
if (ot + hrs == 0.0) fpSpread1.Sheets[0].Cells[row, coldata].Value = null;
|
||||
else fpSpread1.Sheets[0].Cells[row, coldata].Value = ot + hrs; //없음으로한다
|
||||
if (ot + hrs == 0.0) fpSpread1.Sheets[0].Cells[row, i].Value = null; //값이 없는 경우는 nul 처리
|
||||
else fpSpread1.Sheets[0].Cells[row, i].Value = ot + hrs;
|
||||
}
|
||||
|
||||
|
||||
coldata += 1;
|
||||
}
|
||||
|
||||
//other 칸이 활성화되었다면 총량에서 뺴야한다 (lee jong myoung)
|
||||
if (useOther)
|
||||
{
|
||||
var tot_hr = item.Sum(t => t.hrs);
|
||||
var tot_ot = item.Sum(t => t.ot);
|
||||
var othervalue = (tot_hr + tot_ot) - (sumvalue_hrs + sumvalue_ot); //total - displayvalue
|
||||
if (othervalue == 0.0) fpSpread1.Sheets[0].Cells[row, maxcol].Value = null; //값이 없는 경우는 nul 처리
|
||||
else fpSpread1.Sheets[0].Cells[row, maxcol].Value = othervalue;
|
||||
}
|
||||
|
||||
sumOt = item.Sum(t => t.ot);
|
||||
|
||||
fpSpread1.Sheets[0].Cells[row, 7].CellType = numberCellType1;
|
||||
fpSpread1.Sheets[0].Cells[row, 7].ParseFormatString = "N1";
|
||||
fpSpread1.Sheets[0].Cells[row, 8].CellType = numberCellType1;
|
||||
fpSpread1.Sheets[0].Cells[row, 8].ParseFormatString = "N1";
|
||||
|
||||
|
||||
|
||||
fpSpread1.Sheets[0].Cells[row, 7].Formula = string.Format("SUM(C{0}:G{0})+K{0}+J{0}", row + 1);
|
||||
fpSpread1.Sheets[0].Cells[row, 7].Formula = string.Format("SUM(C{0}:G{0})+K{0}", row + 1);
|
||||
fpSpread1.Sheets[0].Cells[row, 8].Formula = string.Format("H{0}/$I$4", row + 1);
|
||||
//H8 /$I$4
|
||||
|
||||
if (sumOt == 0.0) fpSpread1.Sheets[0].Cells[row, 9].Value = null; //OT합계
|
||||
else fpSpread1.Sheets[0].Cells[row, 9].Value = sumOt; //OT합계
|
||||
|
||||
|
||||
|
||||
// process 의 휴가시간을 다시 계산한다.
|
||||
var 휴가데이터 = baseData.Where(t => t.process == processName && t.svalue == "휴가");
|
||||
if(processName == "휴가")
|
||||
{
|
||||
|
||||
}
|
||||
var 휴가데이터 = baseData.Where(t => t.process.Replace(" ","") == processName.Replace(" ","") && t.svalue.Replace(" ", "") == "휴가");
|
||||
if (휴가데이터 == null || 휴가데이터.Count() < 1)
|
||||
{
|
||||
fpSpread1.Sheets[0].Cells[row, 10].Value = null;// 0.0; //휴가시간
|
||||
@@ -354,11 +381,12 @@ namespace FPJ0000.JobReport_
|
||||
fpSpread1.Sheets[0].Cells[row, i].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
|
||||
fpSpread1.Sheets[0].Cells[row, i].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
|
||||
}
|
||||
|
||||
|
||||
row += 1;
|
||||
}
|
||||
|
||||
var total_value = baseData.Sum(t => t.hrs) + baseData.Sum(t => t.ot);
|
||||
|
||||
|
||||
//합계데이터
|
||||
fpSpread1.Sheets[0].Cells[row, 1].Value = "합계";
|
||||
fpSpread1.Sheets[0].Cells[row, 1].BackColor = Color.LightGray;
|
||||
@@ -388,110 +416,6 @@ namespace FPJ0000.JobReport_
|
||||
|
||||
this.fpSpread1.Sheets[0].RowCount = row + 1;
|
||||
|
||||
|
||||
|
||||
|
||||
// this.ta.Fill(this.dsReport.JobReportDay, tbMon.Text, FCOMMON.info.Login.gcode);
|
||||
// //this.reportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout);
|
||||
// //this.reportViewer1.ZoomMode = Microsoft.Reporting.WinForms.ZoomMode.PageWidth;
|
||||
// //this.reportViewer1.RefreshReport();
|
||||
|
||||
// //그리드뷰 생성
|
||||
// this.dataGridView1.Rows.Clear();
|
||||
// this.dataGridView1.Columns.Clear();
|
||||
|
||||
// var Process = tbProcess.Text.Trim();
|
||||
// if (Process == "%" || tbProcess.SelectedIndex == 0) Process = "";
|
||||
|
||||
// var wekklist = new string[] { "일","월","화","수","목","금","토" };
|
||||
|
||||
// //날짜에 해당하는 열을 먼저 생성한다
|
||||
// dataGridView1.Columns.Add("dvcu_damdang", "사원명");
|
||||
//// dataGridView1.Columns.Add("dvcu_process", "공정");
|
||||
// var daylist = dsReport.JobReportDay.OrderBy(t=>t.pdate).GroupBy(t => t.pdate);
|
||||
// foreach (var dayitem in daylist)
|
||||
// {
|
||||
// var dtValue = DateTime.Parse(dayitem.Key);
|
||||
// if(dtValue.DayOfWeek == DayOfWeek.Saturday || dtValue.DayOfWeek == DayOfWeek.Sunday)
|
||||
// {
|
||||
// var week = wekklist[(int)dtValue.DayOfWeek];
|
||||
// this.dataGridView1.Columns.Add("dvcu_pdate", dayitem.Key.Substring(8, 2) + "(" + week.ToString() + ")");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.dataGridView1.Columns.Add("dvcu_pdate", dayitem.Key.Substring(8, 2) );
|
||||
// }
|
||||
|
||||
// this.dataGridView1.Columns[this.dataGridView1.Columns.Count -1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
||||
// }
|
||||
// dataGridView1.Columns.Add("dvcu_sum", "합계");
|
||||
// this.dataGridView1.Columns[this.dataGridView1.Columns.Count - 1].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
||||
|
||||
|
||||
// foreach (var item in dsReport.JobReportDay.Where(t=>t.processs.Contains(Process)).OrderBy(t => t.uname + t.uid).GroupBy(t => t.uname))
|
||||
// {
|
||||
// //사용자별로 데이터를 가져온다.
|
||||
// var username = item.Key;
|
||||
// var userid = item.FirstOrDefault().uid;
|
||||
// List<string> rowdata = new List<string>();
|
||||
// rowdata.Add(username);
|
||||
// // rowdata.Add(item.FirstOrDefault().processs);
|
||||
|
||||
// //이 사용자의 데이터를 날짜별로 정렬해서 가져온다.
|
||||
// var sum = 0.0;
|
||||
// var sumOT = 0.0;
|
||||
// for (int i = 1; i < this.dataGridView1.Columns.Count-1; i++)
|
||||
// {
|
||||
// var col = this.dataGridView1.Columns[i];
|
||||
// var dayStr = col.HeaderText.Substring(0, 2);
|
||||
// var daydata = dsReport.JobReportDay.Where(t => t.uid == userid && t.pdate.EndsWith(dayStr)).FirstOrDefault();
|
||||
// if (daydata != null)
|
||||
// {
|
||||
// sum += daydata.hrs;
|
||||
// sumOT += daydata.ot;
|
||||
// rowdata.Add((daydata.hrs.ToString() + "+" + daydata.ot.ToString()));
|
||||
// }
|
||||
// else rowdata.Add("--");
|
||||
// }
|
||||
// rowdata.Add(sum.ToString() + "+" + sumOT.ToString());
|
||||
// this.dataGridView1.Rows.Add(rowdata.ToArray());
|
||||
// }
|
||||
// foreach(DataGridViewRow dvrow in this.dataGridView1.Rows)
|
||||
// {
|
||||
// for(int i = 1;i < this.dataGridView1.ColumnCount-1;i++)
|
||||
// {
|
||||
// var cellvalue = "--";
|
||||
// if(dvrow.Cells[i].Value != null) cellvalue= dvrow.Cells[i].Value.ToString();
|
||||
// if (cellvalue == "--") dvrow.Cells[i].Style.ForeColor = Color.Gray;
|
||||
// else
|
||||
// {
|
||||
// var datasplbu = cellvalue.Split('+');
|
||||
// double hrs;
|
||||
// double ot;
|
||||
// if (double.TryParse(datasplbu[1], out ot) == false) ot = 0;
|
||||
|
||||
// if(double.TryParse(datasplbu[0],out hrs))
|
||||
// {
|
||||
// if (hrs > 8.0) dvrow.Cells[i].Style.ForeColor = Color.Blue;
|
||||
// else if (hrs < 8.0) dvrow.Cells[i].Style.ForeColor = Color.Red;
|
||||
// else
|
||||
// {
|
||||
// if (ot == 0)
|
||||
// dvrow.Cells[i].Style.ForeColor = Color.Black;
|
||||
// else
|
||||
// dvrow.Cells[i].Style.ForeColor = Color.Magenta;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// FCOMMON.Util.MsgE("숫자변경실패 " + cellvalue);
|
||||
// dvrow.Cells[i].Style.ForeColor = Color.Red;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// }
|
||||
// this.dataGridView1.AutoResizeColumns();
|
||||
}
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user