This commit is contained in:
atvstdla
2025-09-29 17:38:12 +09:00
parent 1ebbb83866
commit 5a2eeed3c4
24 changed files with 1698 additions and 1490 deletions

View File

@@ -120,6 +120,13 @@ namespace Project
if (chk.Tag == null) continue;
chk.Click += Chk_Option_Check;
}
foreach (var c in grpApplyWMSinfo.Controls)
{
if (c.GetType() != typeof(CheckBox)) continue;
var chk = c as CheckBox;
if (chk.Tag == null) continue;
chk.Click += Chk_WMSinfo_Check;
}
foreach (var c in grpApplySidinfo.Controls)
{
if (c.GetType() != typeof(CheckBox)) continue;
@@ -154,6 +161,17 @@ namespace Project
bs_CurrentChanged_1(null, null);
}
private void Chk_WMSinfo_Check(object sender, EventArgs e)
{
var drv = bs.Current as DataRowView;
if (drv == null) return;
var dr = drv.Row as DataSet1.OPModelRow;
var chk = sender as CheckBox;
dr.vWMSInfo = UTIL.SetBitState(dr.vWMSInfo, int.Parse(chk.Tag.ToString()), chk.Checked);
dr.EndEdit();
bs_CurrentChanged_1(null, null);
}
private void Chk_Sidinfo_Check(object sender, EventArgs e)
{
var drv = bs.Current as DataRowView;
@@ -427,6 +445,14 @@ namespace Project
var val = UTIL.GetBitState(dr.vOption, int.Parse(chk.Tag.ToString()));
if (chk.Checked != val) chk.Checked = val;
}
foreach (var c in grpApplyWMSinfo.Controls)
{
if (c.GetType() != typeof(CheckBox)) continue;
var chk = c as CheckBox;
if (chk.Tag == null) continue;
var val = UTIL.GetBitState(dr.vWMSInfo, int.Parse(chk.Tag.ToString()));
if (chk.Checked != val) chk.Checked = val;
}
foreach (var c in grpApplySidinfo.Controls)
{
if (c.GetType() != typeof(CheckBox)) continue;
@@ -515,6 +541,10 @@ namespace Project
{
grpapplyjob.Enabled = chk.Checked;
}
if (chk.Name.Equals(chkApplyWMSInfo.Name))
{
grpApplyWMSinfo.Enabled = chk.Checked;
}
if (chk.Name.Equals(chkApplySidInfo.Name))
{
grpApplySidinfo.Enabled = chk.Checked;
@@ -523,6 +553,7 @@ namespace Project
{
GrpSidConvData.Enabled = chk.Checked;
}
}
private void btConvOk_Click(object sender, EventArgs e)