continuo bozza modifica x gestione ODL provvisorio

This commit is contained in:
Samuele E. Locatelli
2018-07-18 18:48:08 +02:00
parent 10bf242d4f
commit 40b3206296
10 changed files with 169 additions and 49 deletions
+1
View File
@@ -1,5 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_newODL.ascx.cs" Inherits="MoonProTablet.WebUserControls.cmp_newODL" %>
<asp:HiddenField runat="server" ID="hfIdxMacchina" />
<div class="" runat="server" id="divDetail">
<div class="row my-2 textCondens font-weight-bold">
<div class="col-6 pr-0">
+25 -3
View File
@@ -1,4 +1,5 @@
using System;
using MapoDb;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -22,6 +23,20 @@ namespace MoonProTablet.WebUserControls
}
}
/// <summary>
/// idxMacchina selezionata
/// </summary>
public string idxMacchina
{
get
{
return hfIdxMacchina.Value;
}
set
{
hfIdxMacchina.Value = value;
}
}
/// <summary>
/// imposta valori std
/// </summary>
private void setDefaults()
@@ -34,8 +49,15 @@ namespace MoonProTablet.WebUserControls
protected void lbtCreaOdlProvv_Click(object sender, EventArgs e)
{
// effettua creazione ODL provvisorio e riporta a parent...
int numPz = 1;
int.TryParse(txtNumPz.Text, out numPz);
int numMin = 0;
int numSec = 0;
int.TryParse(txtTC_min.Text, out numMin);
int.TryParse(txtTC_sec.Text, out numSec);
decimal tCiclo = numMin + ((decimal)numSec) / 60;
// !!!FARE!!!
//DataLayer.obj.taODL.insertProvv(ddlArticolo.SelectedValue, idxMacchina, numPz, tCiclo, txtNote.Text.Trim());
// invio email notifica creazione ODL PROVVISORIO (da riconciliare...)
+9
View File
@@ -12,6 +12,15 @@ namespace MoonProTablet.WebUserControls {
public partial class cmp_newODL {
/// <summary>
/// Controllo hfIdxMacchina.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hfIdxMacchina;
/// <summary>
/// Controllo divDetail.
/// </summary>
+1 -1
View File
@@ -64,7 +64,7 @@
</div>
</div>
<div class="row pb-3">
<div class="col-sm-12">
<div class="col-sm-12" runat="server" id="divOdlProvv">
<div class="card">
<div class="card-header p-0">
<div class="row">
+2
View File
@@ -38,6 +38,7 @@ namespace MoonProTablet.WebUserControls
{
memLayer.ML.setSessionVal(string.Format("idxMacchina-{0}", uid), value);
hfIdxMacchina.Value = value;
cmp_newODL.idxMacchina = value;
}
}
/// <summary>
@@ -125,6 +126,7 @@ namespace MoonProTablet.WebUserControls
checkBtnStatus();
chkCloseOdl.Checked = memLayer.ML.cdvb("chkCloseOdl");
chkCloseOdl.Visible = memLayer.ML.cdvb("showChkCloseOdl");
divOdlProvv.Visible = memLayer.ML.cdvb("showOdlProvv");
}
/// <summary>
/// Sistema CSS x status enabled/disabled
+9
View File
@@ -156,6 +156,15 @@ namespace MoonProTablet.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtSplitODL;
/// <summary>
/// Controllo divOdlProvv.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divOdlProvv;
/// <summary>
/// Controllo lbtShowCreaOdlProvv.
/// </summary>