This commit is contained in:
chi
2022-07-22 08:34:33 +09:00
parent f96c853911
commit a883d6fe1e
18 changed files with 3597 additions and 2829 deletions

View File

@@ -1129,7 +1129,8 @@ namespace Project
"서버 : " + MaxVerstion + "\n" +
"현재 : " + curversion);
}
} else Util.MsgE("버젼 확인 불가");
}
else Util.MsgE("버젼 확인 불가");
}
private void ToolStripMenuItem_Click(object sender, EventArgs e)
@@ -1168,5 +1169,37 @@ namespace Project
Application.Exit();
//this.Close();
}
private void sPR설정ToolStripMenuItem_Click(object sender, EventArgs e)
{
var lines = Clipboard.GetText().Replace("\r", "").Split('\n');
List<string> items = new List<string>();
foreach (var lin in lines)
{
if (string.IsNullOrEmpty(lin)) continue;
if (lin.Length == 9) items.Add(lin.Trim());
}
var dlg = FCOMMON.Util.MsgQ($"{lines.Length} 건의 자료를 SPR로 설정할까요?");
if (dlg != DialogResult.Yes) return;
var cn = FCOMMON.DBM.getCn();
cn.Open();
var cmd = new System.Data.SqlClient.SqlCommand("", cn);
var cnt = 0;
foreach (var item in items)
{
var sql = $"update Items set Storage = 'SPR' where gcode = '{FCOMMON.info.Login.gcode}' and sid='{item}'";
cmd.CommandText = sql;
cnt += cmd.ExecuteNonQuery();
if (cnt % 25 == 0)
{
this.Text = $"{cnt}/{items.Count}";
Application.DoEvents();
}
}
cn.Close();
FCOMMON.Util.MsgI($"{cnt}건의 자료가 변경 되었습니다");
}
}
}