aggiunta funzione puntuale x data uploader

refresh online con url locale corretto
installato in RigaSRV02
This commit is contained in:
Samuele E. Locatelli
2015-09-17 17:44:34 +02:00
parent 159e4ea990
commit 941fe4b2cf
26 changed files with 261 additions and 47 deletions
+56 -1
View File
@@ -11,7 +11,62 @@ namespace DataUploader
{
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
anno = DateTime.Now.Year;
DOC = "OC000000";
}
}
protected void btnUpload_Click(object sender, EventArgs e)
{
caricaDoc();
}
public int anno
{
get
{
int answ = DateTime.Now.Year;
try
{
answ = Convert.ToInt32(txtAnno.Text.Trim());
}
catch
{ }
return answ;
}
set
{
txtAnno.Text = value.ToString();
}
}
public string DOC
{
get
{
string answ = "";
try
{
answ = txtDoc.Text.Trim();
}
catch
{ }
return answ;
}
set
{
txtDoc.Text = value;
}
}
private void caricaDoc()
{
if (txtDoc.Text.Trim() != "")
{
Response.Redirect(string.Format("SyncDoc.aspx?DOC={0}&Anno={1}", DOC, anno));
}
}
}
}