...
This commit is contained in:
89
Project/Dev/fDisableItem.Designer.cs
generated
Normal file
89
Project/Dev/fDisableItem.Designer.cs
generated
Normal file
@@ -0,0 +1,89 @@
|
||||
|
||||
namespace Project.Dev
|
||||
{
|
||||
partial class fDisableItem
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fDisableItem));
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.progressBar1 = new System.Windows.Forms.ProgressBar();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.textBox1.Location = new System.Drawing.Point(0, 0);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal;
|
||||
this.textBox1.Size = new System.Drawing.Size(269, 405);
|
||||
this.textBox1.TabIndex = 0;
|
||||
this.textBox1.Text = resources.GetString("textBox1.Text");
|
||||
//
|
||||
// progressBar1
|
||||
//
|
||||
this.progressBar1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.progressBar1.Location = new System.Drawing.Point(0, 405);
|
||||
this.progressBar1.Name = "progressBar1";
|
||||
this.progressBar1.Size = new System.Drawing.Size(800, 45);
|
||||
this.progressBar1.TabIndex = 1;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(295, 12);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(178, 56);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "disable";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// fDisableItem
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.progressBar1);
|
||||
this.Name = "fDisableItem";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "fDisableItem";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.ProgressBar progressBar1;
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
56
Project/Dev/fDisableItem.cs
Normal file
56
Project/Dev/fDisableItem.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project.Dev
|
||||
{
|
||||
public partial class fDisableItem : Form
|
||||
{
|
||||
public fDisableItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
var lines = this.textBox1.Text.Replace("\r", "").Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
var dlg = Util.MsgQ($"{lines.Length} 건의 아이템 비활성화를 진행 할까요?");
|
||||
if (dlg != DialogResult.Yes) return;
|
||||
|
||||
this.progressBar1.Minimum = 0;
|
||||
this.progressBar1.Maximum = lines.Length;
|
||||
this.progressBar1.Value = 0;
|
||||
|
||||
var cn = new System.Data.SqlClient.SqlConnection(Properties.Settings.Default.gwcs);
|
||||
var cmd = new System.Data.SqlClient.SqlCommand("", cn);
|
||||
cn.Open();
|
||||
var cnt = 0;
|
||||
foreach(var item in lines)
|
||||
{
|
||||
this.progressBar1.Value += 1;
|
||||
if (item.StartsWith("10") == false) continue;
|
||||
var sql = $"update items set [disable]= 1 where [sid] = '{item.Trim()}' and gcode = '{FCOMMON.info.Login.gcode}'";
|
||||
cmd.CommandText = sql;
|
||||
cnt += cmd.ExecuteNonQuery();
|
||||
if (this.progressBar1.Value % 50 == 0)
|
||||
{
|
||||
this.Text = $"{cnt}/{progressBar1.Maximum}";
|
||||
Application.DoEvents();
|
||||
}
|
||||
}
|
||||
cmd.Dispose();
|
||||
cn.Close();
|
||||
Util.MsgI("ok = " + cnt.ToString());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
5358
Project/Dev/fDisableItem.resx
Normal file
5358
Project/Dev/fDisableItem.resx
Normal file
File diff suppressed because it is too large
Load Diff
@@ -277,6 +277,12 @@
|
||||
<DependentUpon>DataSet1.xsd</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Device\Barcode.cs" />
|
||||
<Compile Include="Dev\fDisableItem.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Dev\fDisableItem.Designer.cs">
|
||||
<DependentUpon>fDisableItem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Dialog\AccessDB.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -572,6 +578,9 @@
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Util.cs" />
|
||||
<EmbeddedResource Include="Dev\fDisableItem.resx">
|
||||
<DependentUpon>fDisableItem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Dialog\AccessDB.resx">
|
||||
<DependentUpon>AccessDB.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
60
Project/fMain.Designer.cs
generated
60
Project/fMain.Designer.cs
generated
@@ -126,6 +126,8 @@
|
||||
this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.아이템비활성화하기ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.cmTab.SuspendLayout();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
@@ -247,14 +249,14 @@
|
||||
//
|
||||
this.codesToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("codesToolStripMenuItem.Image")));
|
||||
this.codesToolStripMenuItem.Name = "codesToolStripMenuItem";
|
||||
this.codesToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.codesToolStripMenuItem.Size = new System.Drawing.Size(153, 24);
|
||||
this.codesToolStripMenuItem.Text = "공용코드";
|
||||
this.codesToolStripMenuItem.Click += new System.EventHandler(this.codesToolStripMenuItem_Click);
|
||||
//
|
||||
// itemsToolStripMenuItem
|
||||
//
|
||||
this.itemsToolStripMenuItem.Name = "itemsToolStripMenuItem";
|
||||
this.itemsToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.itemsToolStripMenuItem.Size = new System.Drawing.Size(153, 24);
|
||||
this.itemsToolStripMenuItem.Text = "품목정보";
|
||||
this.itemsToolStripMenuItem.Click += new System.EventHandler(this.itemsToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -265,7 +267,7 @@
|
||||
this.myAccouserToolStripMenuItem,
|
||||
this.권한설정ToolStripMenuItem});
|
||||
this.userInfoToolStripMenuItem.Name = "userInfoToolStripMenuItem";
|
||||
this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.userInfoToolStripMenuItem.Size = new System.Drawing.Size(153, 24);
|
||||
this.userInfoToolStripMenuItem.Text = "사용자";
|
||||
//
|
||||
// userAccountToolStripMenuItem
|
||||
@@ -292,14 +294,14 @@
|
||||
// customerToolStripMenuItem
|
||||
//
|
||||
this.customerToolStripMenuItem.Name = "customerToolStripMenuItem";
|
||||
this.customerToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.customerToolStripMenuItem.Size = new System.Drawing.Size(153, 24);
|
||||
this.customerToolStripMenuItem.Text = "업체정보";
|
||||
this.customerToolStripMenuItem.Click += new System.EventHandler(this.customerToolStripMenuItem_Click);
|
||||
//
|
||||
// mn_kuntae
|
||||
//
|
||||
this.mn_kuntae.Name = "mn_kuntae";
|
||||
this.mn_kuntae.Size = new System.Drawing.Size(180, 24);
|
||||
this.mn_kuntae.Size = new System.Drawing.Size(153, 24);
|
||||
this.mn_kuntae.Text = "월별 근무표";
|
||||
this.mn_kuntae.Click += new System.EventHandler(this.월별근무표ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -307,7 +309,7 @@
|
||||
//
|
||||
this.메일양식ToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("메일양식ToolStripMenuItem.Image")));
|
||||
this.메일양식ToolStripMenuItem.Name = "메일양식ToolStripMenuItem";
|
||||
this.메일양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.메일양식ToolStripMenuItem.Size = new System.Drawing.Size(153, 24);
|
||||
this.메일양식ToolStripMenuItem.Text = "메일 양식";
|
||||
this.메일양식ToolStripMenuItem.Click += new System.EventHandler(this.메일양식ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -386,21 +388,21 @@
|
||||
// 목록ToolStripMenuItem1
|
||||
//
|
||||
this.목록ToolStripMenuItem1.Name = "목록ToolStripMenuItem1";
|
||||
this.목록ToolStripMenuItem1.Size = new System.Drawing.Size(180, 24);
|
||||
this.목록ToolStripMenuItem1.Size = new System.Drawing.Size(134, 24);
|
||||
this.목록ToolStripMenuItem1.Text = "목록";
|
||||
this.목록ToolStripMenuItem1.Click += new System.EventHandler(this.목록ToolStripMenuItem1_Click);
|
||||
//
|
||||
// 자동입력ToolStripMenuItem
|
||||
//
|
||||
this.자동입력ToolStripMenuItem.Name = "자동입력ToolStripMenuItem";
|
||||
this.자동입력ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.자동입력ToolStripMenuItem.Size = new System.Drawing.Size(134, 24);
|
||||
this.자동입력ToolStripMenuItem.Text = "자동입력";
|
||||
this.자동입력ToolStripMenuItem.Click += new System.EventHandler(this.자동입력ToolStripMenuItem_Click);
|
||||
//
|
||||
// 양식ToolStripMenuItem
|
||||
//
|
||||
this.양식ToolStripMenuItem.Name = "양식ToolStripMenuItem";
|
||||
this.양식ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.양식ToolStripMenuItem.Size = new System.Drawing.Size(134, 24);
|
||||
this.양식ToolStripMenuItem.Text = "양식";
|
||||
this.양식ToolStripMenuItem.Click += new System.EventHandler(this.양식ToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -603,39 +605,39 @@
|
||||
// 메모장ToolStripMenuItem
|
||||
//
|
||||
this.메모장ToolStripMenuItem.Name = "메모장ToolStripMenuItem";
|
||||
this.메모장ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.메모장ToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.메모장ToolStripMenuItem.Text = "메모장";
|
||||
this.메모장ToolStripMenuItem.Click += new System.EventHandler(this.메모장ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem4
|
||||
//
|
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4";
|
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(177, 6);
|
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(146, 6);
|
||||
//
|
||||
// 패치내역ToolStripMenuItem1
|
||||
//
|
||||
this.패치내역ToolStripMenuItem1.Name = "패치내역ToolStripMenuItem1";
|
||||
this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(180, 24);
|
||||
this.패치내역ToolStripMenuItem1.Size = new System.Drawing.Size(149, 24);
|
||||
this.패치내역ToolStripMenuItem1.Text = "패치 내역";
|
||||
this.패치내역ToolStripMenuItem1.Click += new System.EventHandler(this.패치내역ToolStripMenuItem1_Click);
|
||||
//
|
||||
// 메일내역ToolStripMenuItem
|
||||
//
|
||||
this.메일내역ToolStripMenuItem.Name = "메일내역ToolStripMenuItem";
|
||||
this.메일내역ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.메일내역ToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.메일내역ToolStripMenuItem.Text = "메일 내역";
|
||||
this.메일내역ToolStripMenuItem.Click += new System.EventHandler(this.메일내역ToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripMenuItem3
|
||||
//
|
||||
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(177, 6);
|
||||
this.toolStripMenuItem3.Size = new System.Drawing.Size(146, 6);
|
||||
//
|
||||
// minutesToolStripMenuItem
|
||||
//
|
||||
this.minutesToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink;
|
||||
this.minutesToolStripMenuItem.Name = "minutesToolStripMenuItem";
|
||||
this.minutesToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.minutesToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.minutesToolStripMenuItem.Text = "회의록";
|
||||
this.minutesToolStripMenuItem.Visible = false;
|
||||
this.minutesToolStripMenuItem.Click += new System.EventHandler(this.minutesToolStripMenuItem_Click);
|
||||
@@ -644,7 +646,7 @@
|
||||
//
|
||||
this.requestITemToolStripMenuItem.ForeColor = System.Drawing.Color.HotPink;
|
||||
this.requestITemToolStripMenuItem.Name = "requestITemToolStripMenuItem";
|
||||
this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.requestITemToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.requestITemToolStripMenuItem.Text = "견적요청";
|
||||
this.requestITemToolStripMenuItem.Visible = false;
|
||||
this.requestITemToolStripMenuItem.Click += new System.EventHandler(this.requestITemToolStripMenuItem_Click);
|
||||
@@ -653,7 +655,7 @@
|
||||
//
|
||||
this.freeBoardToolStripMenuItem.Enabled = false;
|
||||
this.freeBoardToolStripMenuItem.Name = "freeBoardToolStripMenuItem";
|
||||
this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.freeBoardToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.freeBoardToolStripMenuItem.Text = "Free Board";
|
||||
this.freeBoardToolStripMenuItem.Visible = false;
|
||||
//
|
||||
@@ -661,7 +663,7 @@
|
||||
//
|
||||
this.bugReportToolStripMenuItem.Enabled = false;
|
||||
this.bugReportToolStripMenuItem.Name = "bugReportToolStripMenuItem";
|
||||
this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.bugReportToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.bugReportToolStripMenuItem.Text = "Bug Report";
|
||||
this.bugReportToolStripMenuItem.Visible = false;
|
||||
//
|
||||
@@ -669,7 +671,7 @@
|
||||
//
|
||||
this.todoListToolStripMenuItem.Enabled = false;
|
||||
this.todoListToolStripMenuItem.Name = "todoListToolStripMenuItem";
|
||||
this.todoListToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.todoListToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.todoListToolStripMenuItem.Text = "Todo List";
|
||||
this.todoListToolStripMenuItem.Visible = false;
|
||||
this.todoListToolStripMenuItem.Click += new System.EventHandler(this.todoListToolStripMenuItem_Click);
|
||||
@@ -678,7 +680,7 @@
|
||||
//
|
||||
this.메일전송ToolStripMenuItem.ForeColor = System.Drawing.Color.Red;
|
||||
this.메일전송ToolStripMenuItem.Name = "메일전송ToolStripMenuItem";
|
||||
this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(180, 24);
|
||||
this.메일전송ToolStripMenuItem.Size = new System.Drawing.Size(149, 24);
|
||||
this.메일전송ToolStripMenuItem.Text = "메일전송";
|
||||
this.메일전송ToolStripMenuItem.Visible = false;
|
||||
this.메일전송ToolStripMenuItem.Click += new System.EventHandler(this.메일전송ToolStripMenuItem_Click);
|
||||
@@ -725,7 +727,9 @@
|
||||
this.pMP데이터베이스업데이트ToolStripMenuItem,
|
||||
this.mailBackupToolStripMenuItem,
|
||||
this.accessDBToolStripMenuItem,
|
||||
this.메일자동발신테스트ToolStripMenuItem});
|
||||
this.메일자동발신테스트ToolStripMenuItem,
|
||||
this.toolStripMenuItem5,
|
||||
this.아이템비활성화하기ToolStripMenuItem});
|
||||
this.btDev.ForeColor = System.Drawing.Color.Blue;
|
||||
this.btDev.Image = ((System.Drawing.Image)(resources.GetObject("btDev.Image")));
|
||||
this.btDev.Name = "btDev";
|
||||
@@ -946,6 +950,18 @@
|
||||
this.toolStripButton2.Text = "품목정보";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
|
||||
//
|
||||
// toolStripMenuItem5
|
||||
//
|
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5";
|
||||
this.toolStripMenuItem5.Size = new System.Drawing.Size(275, 6);
|
||||
//
|
||||
// 아이템비활성화하기ToolStripMenuItem
|
||||
//
|
||||
this.아이템비활성화하기ToolStripMenuItem.Name = "아이템비활성화하기ToolStripMenuItem";
|
||||
this.아이템비활성화하기ToolStripMenuItem.Size = new System.Drawing.Size(278, 24);
|
||||
this.아이템비활성화하기ToolStripMenuItem.Text = "아이템 비활성화하기";
|
||||
this.아이템비활성화하기ToolStripMenuItem.Click += new System.EventHandler(this.아이템비활성화하기ToolStripMenuItem_Click);
|
||||
//
|
||||
// fMain
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1074,6 +1090,8 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 출근부출력ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 휴가신청ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem10;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem5;
|
||||
private System.Windows.Forms.ToolStripMenuItem 아이템비활성화하기ToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1081,5 +1081,11 @@ namespace Project
|
||||
if (!ShowForm(formkey))
|
||||
AddForm(formkey, new FPJ0000.fHolyRequest());
|
||||
}
|
||||
|
||||
private void 아이템비활성화하기ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new Dev.fDisableItem();
|
||||
f.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user