88 lines
1.9 KiB
C#
88 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace MoonProTablet.WebUserControls
|
|
{
|
|
public partial class cmp_selOdlOrd : BaseUserControl
|
|
{
|
|
#region Protected Properties
|
|
|
|
protected int numRec
|
|
{
|
|
get
|
|
{
|
|
int answ = 10;
|
|
int.TryParse(txtNumLast.Text.Trim(), out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
txtNumLast.Text = $"{value}";
|
|
}
|
|
}
|
|
|
|
protected int reqOdl
|
|
{
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(ddlOdl.SelectedValue, out answ);
|
|
return answ;
|
|
}
|
|
set
|
|
{
|
|
ddlOdl.SelectedValue= $"{value}";
|
|
}
|
|
}
|
|
|
|
protected int searchOdl
|
|
{
|
|
get
|
|
{
|
|
return SteamWare.memLayer.ML.IntSessionObj("keySearchOdl");
|
|
}
|
|
set
|
|
{
|
|
SteamWare.memLayer.ML.setSessionVal("keySearchOdl", value);
|
|
}
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected void lbtResetOdl_Click(object sender, EventArgs e)
|
|
{
|
|
searchOdl = 0;
|
|
reqOdl = 0;
|
|
}
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
numRec = 10;
|
|
}
|
|
}
|
|
|
|
protected void txtNumLast_TextChanged(object sender, EventArgs e)
|
|
{
|
|
}
|
|
|
|
protected void txtOdl_TextChanged(object sender, EventArgs e)
|
|
{
|
|
searchOdl = reqOdl;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
protected void ddlOdl_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
searchOdl = reqOdl;
|
|
}
|
|
}
|
|
} |