..
This commit is contained in:
@@ -12,6 +12,7 @@ using NetOffice;
|
||||
using Outlook = NetOffice.OutlookApi;
|
||||
using NetOffice.OutlookApi.Enums;
|
||||
using FEQ0000.Purchase;
|
||||
using FCOMMON;
|
||||
|
||||
namespace FEQ0000
|
||||
{
|
||||
@@ -209,6 +210,14 @@ namespace FEQ0000
|
||||
cmd.CommandText += " and (isnull(dbo.getusername(request),'') like @req or isnull(dbo.getusername(receive),'') like @req)";
|
||||
}
|
||||
|
||||
if (tbManager.Text.isEmpty() == false)
|
||||
{
|
||||
cmd.CommandText += $" and purchase_manager like '%{tbManager.Text.Replace("'", "''")}%'";
|
||||
}
|
||||
if (tbAdmin.Text.isEmpty() == false)
|
||||
{
|
||||
cmd.CommandText += $" and purchase_admin like '%{tbAdmin.Text.Replace("'", "''")}%'";
|
||||
}
|
||||
|
||||
if (cmbState.SelectedIndex != 0)
|
||||
{
|
||||
@@ -456,7 +465,15 @@ namespace FEQ0000
|
||||
else
|
||||
newdr.request = FCOMMON.info.Login.no;
|
||||
|
||||
repeat:
|
||||
|
||||
|
||||
var t1 = DBM.getCodeByCode("65", "01");
|
||||
var t2 = DBM.getCodeByCode("66", "01");
|
||||
newdr.purchase_manager = t1.title;
|
||||
newdr.purchase_admin = t2.title;
|
||||
|
||||
|
||||
repeat:
|
||||
|
||||
bool repeat = false;
|
||||
DialogResult dlg;
|
||||
|
||||
Reference in New Issue
Block a user