104 lines
2.2 KiB
C#
104 lines
2.2 KiB
C#
using MagData;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MP_MAG.WebUserControls
|
|
{
|
|
public partial class cmp_OrderListByUdc : BaseUserControl
|
|
{
|
|
#region Public Properties
|
|
|
|
public int PackListID
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfPackListID.Value, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
hfPackListID.Value = $"{value}";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Ordine selezionato
|
|
/// </summary>
|
|
public int SelOrdID
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
if (grView.SelectedIndex >= 0)
|
|
{
|
|
int.TryParse(grView.SelectedValue.ToString(), out answ);
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
public string UdcSel
|
|
{
|
|
get
|
|
{
|
|
return hfUdc.Value;
|
|
}
|
|
set
|
|
{
|
|
hfUdc.Value = value;
|
|
doUpdate();
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Methods
|
|
|
|
private void Cmp_OrderListAdd_eh_addNew(object sender, EventArgs e)
|
|
{
|
|
resetSelezione();
|
|
}
|
|
|
|
private void resetSelezione()
|
|
{
|
|
grView.SelectedIndex = -1;
|
|
grView.DataBind();
|
|
raiseReset();
|
|
}
|
|
|
|
#endregion Private Methods
|
|
|
|
#region Protected Methods
|
|
|
|
/// <summary>
|
|
/// comando reset
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void lbtReset_Click(object sender, EventArgs e)
|
|
{
|
|
resetSelezione();
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Public Methods
|
|
|
|
public void doUpdate()
|
|
{
|
|
// calcolo il codcliente
|
|
grView.DataBind();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |