diff --git a/MP-ADM/WebUserControls/mod_gestPromODL.ascx b/MP-ADM/WebUserControls/mod_gestPromODL.ascx index 5d58585a..f8e12b63 100644 --- a/MP-ADM/WebUserControls/mod_gestPromODL.ascx +++ b/MP-ADM/WebUserControls/mod_gestPromODL.ascx @@ -74,8 +74,8 @@ DataKeyNames="IdxPromessa" DataSourceID="ods" Width="100%"> - - + <%----%> + @@ -149,7 +149,7 @@ - +
(m:s) diff --git a/MP-ADM/WebUserControls/mod_gestPromODL.ascx.cs b/MP-ADM/WebUserControls/mod_gestPromODL.ascx.cs index c465f2f5..a86e717f 100644 --- a/MP-ADM/WebUserControls/mod_gestPromODL.ascx.cs +++ b/MP-ADM/WebUserControls/mod_gestPromODL.ascx.cs @@ -364,7 +364,7 @@ namespace MP_ADM.WebUserControls mod_newPromessaODL.Visible = true; divEditQta.Visible = false; lbtNewPODL.Visible = false; - grView.SelectedIndex = -1; + //grView.SelectedIndex = -1; grView.DataBind(); } diff --git a/MP-ADM/WebUserControls/mod_newPromessaODL.ascx.cs b/MP-ADM/WebUserControls/mod_newPromessaODL.ascx.cs index 6f1a0895..6cb4864d 100644 --- a/MP-ADM/WebUserControls/mod_newPromessaODL.ascx.cs +++ b/MP-ADM/WebUserControls/mod_newPromessaODL.ascx.cs @@ -1,6 +1,7 @@ using MapoDb; using SteamWare; using System; +using System.Globalization; using System.Web.UI; namespace MP_ADM.WebUserControls @@ -49,7 +50,7 @@ namespace MP_ADM.WebUserControls else { divTCmc.Visible = true; - txtTCmc.Text = "1.00"; + txtTCmc.Text = "1.0000"; } memLayer.ML.emptySessionVal("idxProm2Clone"); memLayer.ML.emptySessionVal("idxProm2Edit"); @@ -125,7 +126,7 @@ namespace MP_ADM.WebUserControls } else { - decimal.TryParse(txtTCmc.Text.Replace(".", ","), out TCiclo); + TCiclo= decimal.Parse(txtTCmc.Text, CultureInfo.InvariantCulture); } pzPallet = Convert.ToInt32(txtPzPallet.Text.Trim()); attiv = chkAttiv.Checked; @@ -219,7 +220,7 @@ namespace MP_ADM.WebUserControls } else { - txtTCmc.Text = rigaOdl.TCAssegnato.ToString("N3"); + txtTCmc.Text = rigaOdl.TCAssegnato.ToString("N4", CultureInfo.InvariantCulture); } txtPzPallet.Text = rigaOdl.PzPallet.ToString(); } @@ -283,7 +284,7 @@ namespace MP_ADM.WebUserControls } else { - txtTCmc.Text = rPODL.TCAssegnato.ToString("N3"); + txtTCmc.Text = rPODL.TCAssegnato.ToString("N4", CultureInfo.InvariantCulture); } ddlMacchine.SelectedValue = rPODL.IdxMacchina; txtKeyExt.Text = rPODL.KeyRichiesta;