This commit is contained in:
chi
2022-01-05 10:52:02 +09:00
parent 8530c104f2
commit fff64fa703
8 changed files with 564 additions and 188 deletions

View File

@@ -306,7 +306,14 @@ namespace FEQ0000
if (this.cmbType.SelectedIndex != 0 && !cmbType.Text.isEmpty())
{
if (!newWhere.isEmpty()) newWhere += " and ";
newWhere += "[type]='" + cmbType.Text + "'";
var lists = cmbType.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
if(lists.Length == 1)
newWhere += "[type]='" + cmbType.Text + "'";
else
{
newWhere += "[type] in ('" + string.Join("','", lists) + "')";
}
}
if (!this.tbSearch.Text.isEmpty())
{
@@ -495,16 +502,41 @@ namespace FEQ0000
}
}
}
FCOMMON.Util.MsgI($"{ucnt} 건의 자료가 변경 되었습니다. 적용하려면 '저장' 버튼을 누르세요");
}
private void groupBox2_Enter(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var list = new List<string>();
foreach (string item in cmbType.Items)
{
if (item.StartsWith("--")) continue;
if (string.IsNullOrEmpty(item) == false) list.Add(item);
}
var curlist = new string[] { };
if(cmbType.Text.StartsWith("--")==false && cmbType.Text.Length > 0) //뭔가 선택했다
{
curlist = cmbType.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
}
var f = new FCOMMON.fSelectProcess(list.ToArray(),curlist);
if (f.ShowDialog() == DialogResult.OK)
{
this.cmbType.Text = string.Join(",", f.values);
btRefresh.PerformClick();
}
}
private void cmbType_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
}