Files
NKC/NKC_WF/WebUserControls/cmp_searchItems.ascx.cs
T
2020-08-27 10:56:40 +02:00

54 lines
1.4 KiB
C#

using SteamWare;
using System;
using System.Web.UI.WebControls;
namespace NKC_WF.WebUserControls
{
public partial class cmp_searchItems : BaseUserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string itemDtmx
{
get
{
return hfItemDtmx.Value;
}
set
{
if (!string.IsNullOrEmpty(value))
{
hfItemDtmx.Value = value;
frmView.DataBind();
}
else
{
frmView.Visible = false;
}
}
}
protected void lbtSetScrap_Click(object sender, EventArgs e)
{
int ItemId = 0;
// recupero button
try
{
LinkButton lbt = (LinkButton)sender;
int.TryParse(lbt.CommandArgument, out ItemId);
}
catch
{ }
//int.TryParse(grView.SelectedValue.ToString(), out ItemId);
if (ItemId > 0)
{
// SCRAP x item selezionato...
DLMan.taIL.updateStatus(ItemId, 990, PlaceId);
lgInfo($"cmp_searchItem | SCRAP | Status --> 990 | itemIdSelected: {ItemId} | PlaceId: {PlaceId}");
raiseEvent();
}
}
}
}