47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using CMS_SC_Data;
|
|
using SteamWare;
|
|
using System;
|
|
using System.Web.UI;
|
|
|
|
namespace CMS_SC
|
|
{
|
|
public partial class SchemaCollMacc : System.Web.UI.Page
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
btnAddNew.DataBind();
|
|
acMacchina.DataBind();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// url base area services
|
|
/// </summary>
|
|
public string serviceUrl(string method)
|
|
{
|
|
return string.Format("{0}/WS_data.asmx/{1}", memLayer.ML.confReadString("serviceUrl"), method);
|
|
}
|
|
/// <summary>
|
|
/// wrapper traduzione
|
|
/// </summary>
|
|
/// <param name="lemma"></param>
|
|
/// <returns></returns>
|
|
public string traduci(string lemma)
|
|
{
|
|
return user_std.UtSn.Traduci(lemma);
|
|
}
|
|
|
|
|
|
protected void btnAddNew_Click(object sender, EventArgs e)
|
|
{
|
|
if (acMacchina.valore != "")
|
|
{
|
|
// seleziono macchina --> verifico se non ci sia scheda, se non c'è creo --> vado ad elenco con filtro su macchina e posso editare...
|
|
DtProxy.man.taED.insertQuery(acMacchina.valore, user_std.UtSn.utente);
|
|
// rimando ad elenco con filtro su matricola...
|
|
Response.Redirect(string.Format("ElencoSchede?Matricola={0}", acMacchina.valore));
|
|
}
|
|
}
|
|
}
|
|
} |