구매 목록의 상태 핕터에 <=Received 항목 추가
This commit is contained in:
@@ -90,8 +90,10 @@ namespace FEQ0000
|
||||
cmbState.Items.Add("-- 전체 --");
|
||||
foreach (var item in stList)
|
||||
cmbState.Items.Add(item.Value);
|
||||
cmbState.Items.Add("<=Received");
|
||||
this.cmbState.SelectedIndex = 0; //all기본 - 양진원
|
||||
|
||||
|
||||
//일반사용자의경우에는 상태를 변경하지 못한다.
|
||||
int curLevel = Math.Max(FCOMMON.info.Login.level, FCOMMON.DBM.getAuth(FCOMMON.DBM.eAutoType.purchase));
|
||||
if (curLevel >= 5)
|
||||
@@ -146,7 +148,17 @@ namespace FEQ0000
|
||||
if(tbRequest.Text.Trim() != "")
|
||||
cmd.CommandText += " and (isnull(request,'') like @req or isnull(receive,'') like @req)";
|
||||
|
||||
if (cmbState.SelectedIndex != 0) cmd.CommandText += " and isnull([state],'') like @st";
|
||||
if (cmbState.SelectedIndex != 0)
|
||||
{
|
||||
if(cmbState.Text.ToUpper() == "<=RECEIVED")
|
||||
{
|
||||
cmd.CommandText += " and isnull([state],'') in ('','---','Approving','PR','PO')";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmd.CommandText += " and isnull([state],'') like @st";
|
||||
}
|
||||
}
|
||||
// else cmd.CommandText += " and (state < '04' or state > '07')";
|
||||
cmd.CommandText += " ORDER BY " + dateField + " DESC, idx DESC";
|
||||
|
||||
@@ -718,5 +730,11 @@ namespace FEQ0000
|
||||
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user