89 lines
1.9 KiB
C#
89 lines
1.9 KiB
C#
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace NKC_WF.WebUserControls
|
|
{
|
|
public partial class cmp_orderExtList : BaseUserControl
|
|
{
|
|
#region Public Properties
|
|
|
|
public int BatchId
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfBatchId.Value, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
hfBatchId.Value = $"{value}";
|
|
}
|
|
}
|
|
|
|
public bool enableMove
|
|
{
|
|
get
|
|
{
|
|
bool answ = false;
|
|
bool.TryParse(hfMoveEnab.Value, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
if (hfMoveEnab.Value != $"{value}")
|
|
{
|
|
hfMoveEnab.Value = $"{value}";
|
|
grView.DataBind();
|
|
}
|
|
}
|
|
}
|
|
|
|
public int SelOrderId
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(grView.SelectedDataKey["OrdID"].ToString(), out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Public Methods
|
|
|
|
public void doUpdate()
|
|
{
|
|
grView.DataBind();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
#region Protected Properties
|
|
|
|
protected string moveCss
|
|
{
|
|
get => enableMove ? "btn btn-danger btn-sm py-0" : "btn btn-secondary disabled btn-sm py-0";
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
raiseEvent();
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
doUpdate();
|
|
}
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |