154 lines
3.8 KiB
C#
154 lines
3.8 KiB
C#
using AppData;
|
|
using MongoDB.Driver.Search;
|
|
using NKC_SDK;
|
|
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Web.UI;
|
|
|
|
namespace NKC_WF.site
|
|
{
|
|
public partial class WebForm1 : BasePage
|
|
{
|
|
#region Protected Fields
|
|
|
|
/// <summary>
|
|
/// Folder REMOTA x copia verso SQL
|
|
/// </summary>
|
|
protected string _SqlCopyDir = memLayer.ML.CRS("_SqlCopyDir");
|
|
|
|
/// <summary>
|
|
/// Folder x SQL import
|
|
/// </summary>
|
|
protected string _SqlImportDir = memLayer.ML.CRS("_SqlImportDir");
|
|
|
|
/// <summary>
|
|
/// Path base x nesting
|
|
/// </summary>
|
|
protected string cadBasePath = $"{memLayer.ML.CRS("nestBasePath")}{memLayer.ML.CRS("drawingFolder")}/";
|
|
|
|
/// <summary>
|
|
/// Path base x server
|
|
/// </summary>
|
|
protected string srvCadBasePath = $"{memLayer.ML.CRS("servBasePath")}{memLayer.ML.CRS("drawingFolder")}/";
|
|
|
|
#endregion Protected Fields
|
|
|
|
#region Private Methods
|
|
|
|
private void Cmp_batchList_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
doUpdate();
|
|
}
|
|
|
|
private void Cmp_fileUpload_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
doUpdate();
|
|
}
|
|
|
|
|
|
protected void ddlModel_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
doUpdate();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// evento modifica testo
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void txtOrder_TextChanged(object sender, EventArgs e)
|
|
{
|
|
string sVal = "*";
|
|
if (txtOrder.Text.Length > 2)
|
|
{
|
|
sVal = txtOrder.Text;
|
|
}
|
|
cmp_OrderSearch.CodOrder = sVal;
|
|
}
|
|
|
|
/// <summary>
|
|
/// evento modifica testo
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void txtPart_TextChanged(object sender, EventArgs e)
|
|
{
|
|
string sVal = "*";
|
|
if (txtPart.Text.Length > 2)
|
|
{
|
|
sVal = txtPart.Text;
|
|
}
|
|
cmp_OrderSearch.CodPart = sVal;
|
|
}
|
|
/// <summary>
|
|
/// evento modifica testo
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void txtModel_TextChanged(object sender, EventArgs e)
|
|
{
|
|
string sVal = "*";
|
|
if (txtModel.Text.Length > 2)
|
|
{
|
|
sVal = txtModel.Text;
|
|
}
|
|
cmp_OrderSearch.CodModel = sVal;
|
|
}
|
|
|
|
|
|
|
|
#endregion Private Methods
|
|
|
|
#region Protected Methods
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
((SiteMaster)this.Master).showSearch = false;
|
|
cmp_numRow.numRow = 20;
|
|
cmp_OrderSearch.numRow = cmp_numRow.numRow;
|
|
doUpdate();
|
|
}
|
|
|
|
cmp_numRow.eh_doRefresh += Cmp_numRow_eh_doRefresh; ;
|
|
}
|
|
|
|
private void Cmp_numRow_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
// recupero num righe ed aggiorno...
|
|
cmp_OrderSearch.numRow = cmp_numRow.numRow;
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Public Methods
|
|
|
|
/// <summary>
|
|
/// Update interfaccia
|
|
/// </summary>
|
|
public void doUpdate()
|
|
{
|
|
#if false
|
|
cmp_batchList.doUpdate();
|
|
#endif
|
|
}
|
|
|
|
#endregion Public Methods
|
|
|
|
|
|
/// <summary>
|
|
/// esegue ricerca effettiva + display
|
|
/// </summary>
|
|
protected void doSearch()
|
|
{
|
|
|
|
}
|
|
|
|
private string reqDest = "";
|
|
|
|
}
|
|
} |