diff --git a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx index bd1feab1..0d033828 100644 --- a/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx +++ b/GMW/GMW/WebUserControls/mod_anagBlocchi.ascx @@ -1,11 +1,12 @@ -<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagBlocchi.ascx.cs" Inherits="GMW.WebUserControls.mod_anagBlocchi" %> +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagBlocchi.ascx.cs" + Inherits="GMW.WebUserControls.mod_anagBlocchi" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
+
+
+ |
+ |
|
|
|
|
|
@@ -21,14 +28,12 @@
|
|
- |
- ||
| @@ -39,8 +44,8 @@ | |||
| + | |||
|
|
@@ -54,8 +59,8 @@ | ||
| + | |||
|
|
diff --git a/GMW/GMW/WebUserControls/mod_confMag.ascx.cs b/GMW/GMW/WebUserControls/mod_confMag.ascx.cs
index c2d55a86..fc71c2b3 100644
--- a/GMW/GMW/WebUserControls/mod_confMag.ascx.cs
+++ b/GMW/GMW/WebUserControls/mod_confMag.ascx.cs
@@ -14,12 +14,22 @@ namespace GMW.WebUserControls
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
+ }
+
+ public void doUpdate()
+ {
+ bindControlli();
+ }
+
+ protected override void bindControlli()
+ {
fixLabels();
fixValues();
}
private void fixValues()
{
+ lblTotaleImpieghi.Text = traduci("lblTotaleImpieghi");
lblTotCelleDaTipo.Text = traduci("lblTotCelleDaTipo");
lblTotCelleDaBlocchi.Text = traduci("lblTotCelleDaBlocchi");
lblDettImpieghiBlocchi.Text = traduci("lblDettImpieghiBlocchi");
@@ -31,16 +41,61 @@ namespace GMW.WebUserControls
private void fixLabels()
{
+ showImpieghiTotali();
+ showImpieghiBlocco();
+ }
+
+ private void showImpieghiBlocco()
+ {
+ // calcolo valori: attive assegnate
+ int? celleAttiveAss = 0;
+ utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, 1, ref celleAttiveAss);
+ if (!celleAttiveAss.HasValue) celleAttiveAss = 0;
+ // calcolo valori: attive assegnate
+ int? celleAttiveNonAss = 0;
+ utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), true, 0, ref celleAttiveNonAss);
+ if (!celleAttiveNonAss.HasValue) celleAttiveNonAss = 0;
+
+ // calcolo valori: NON attive assegnate
+ int? celleNonAttiveAss = 0;
+ utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, 1, ref celleNonAttiveAss);
+ if (!celleNonAttiveAss.HasValue) celleNonAttiveAss = 0;
+ // calcolo valori: NONattive assegnate
+ int? celleNonAttiveNonAss = 0;
+ utils.obj.taSTP.stp_ContaCelleBlocco(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), false, 0, ref celleNonAttiveNonAss);
+ if (!celleNonAttiveNonAss.HasValue) celleNonAttiveNonAss = 0;
+ // altri valori
+ lblAssAtt.Text = celleAttiveAss.ToString();
+ lblAssInatt.Text = celleNonAttiveAss.ToString();
+ lblNonAssAtt.Text = celleAttiveNonAss.ToString();
+ lblNonAssInatt.Text = celleNonAttiveNonAss.ToString();
+ }
+
+ private void showImpieghiTotali()
+ {
+ // calcolo valori
int? totCelleTipo = 0;
utils.obj.taSTP.stp_ContaCelle4Tipo(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCelleTipo);
- lblNumCelleDaTipo.Text = totCelleTipo.ToString();
+ if (!totCelleTipo.HasValue) totCelleTipo = 0;
int? totCelleBlocchi = 0;
utils.obj.taSTP.stp_ContaCelle4Blocchi(memLayer.ML.confReadString("CodCS"), memLayer.ML.StringSessionObj("CodMag_sel"), ref totCelleBlocchi);
+ if (!totCelleBlocchi.HasValue) totCelleBlocchi = 0;
+ // controllo cosa inserire nel check...
+ Style ctrlStyle = new Style();
+ if (totCelleBlocchi == totCelleTipo)
+ {
+ ctrlStyle.CssClass = "valOk";
+ }
+ else
+ {
+ ctrlStyle.CssClass = "valKo";
+ }
+ // applico style
+ lblNumCelleDaTipo.ApplyStyle(ctrlStyle);
+ lblNumCelleDaBlocchi.ApplyStyle(ctrlStyle);
+ // inserisco valori
+ lblNumCelleDaTipo.Text = totCelleTipo.ToString();
lblNumCelleDaBlocchi.Text = totCelleBlocchi.ToString();
- lblAssAtt.Text = "0";
- lblAssInatt.Text = "0";
- lblNonAssAtt.Text = "0";
- lblNonAssInatt.Text = "0";
}
}
}
\ No newline at end of file
diff --git a/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs b/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
index 818b83a9..30e8600b 100644
--- a/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
+++ b/GMW/GMW/WebUserControls/mod_confMag.ascx.designer.cs
@@ -13,6 +13,15 @@ namespace GMW.WebUserControls {
public partial class mod_confMag {
+ /// |
|
+
|
diff --git a/GMW/GMW/anagMagazzini.aspx.cs b/GMW/GMW/anagMagazzini.aspx.cs
index 6e5a7733..e1c95f9c 100644
--- a/GMW/GMW/anagMagazzini.aspx.cs
+++ b/GMW/GMW/anagMagazzini.aspx.cs
@@ -13,6 +13,18 @@ namespace GMW
{
mod_anagMagazzini1.eh_selValore += new EventHandler(mod_anagMagazzini1_eh_selValore);
mod_anagMagazzini1.eh_resetSelezione += new EventHandler(mod_anagMagazzini1_eh_resetSelezione);
+ mod_anagBlocchi1.eh_nuovoValore += new EventHandler(mod_anagBlocchi1_eh_nuovoValore);
+ mod_tipoCella1.eh_nuovoValore += new EventHandler(mod_tipoCella1_eh_nuovoValore);
+ }
+
+ void mod_tipoCella1_eh_nuovoValore(object sender, EventArgs e)
+ {
+ mod_confMag1.doUpdate();
+ }
+
+ void mod_anagBlocchi1_eh_nuovoValore(object sender, EventArgs e)
+ {
+ mod_confMag1.doUpdate();
}
void mod_anagMagazzini1_eh_resetSelezione(object sender, EventArgs e)
@@ -24,9 +36,11 @@ namespace GMW
void mod_anagMagazzini1_eh_selValore(object sender, EventArgs e)
{
- // mostro i 3 moduli aggiuntivi!
+ // mostro i moduli aggiuntivi!
pnlMagStat.Visible = true;
pnlMagConf.Visible = true;
+ // chiamo update esplicito calcoli
+ mod_confMag1.doUpdate();
}
}
}
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index dfecd6a9..479ecdba 100644
Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ
diff --git a/GMW/GMW/bin/GMW_data.dll b/GMW/GMW/bin/GMW_data.dll
index 65975314..41925ffa 100644
Binary files a/GMW/GMW/bin/GMW_data.dll and b/GMW/GMW/bin/GMW_data.dll differ
diff --git a/GMW/GMW/images/ShowDetail.png b/GMW/GMW/images/ShowDetail.png
new file mode 100644
index 00000000..251350ec
Binary files /dev/null and b/GMW/GMW/images/ShowDetail.png differ
diff --git a/GMW/GMW/images/createChildObj.png b/GMW/GMW/images/createChildObj.png
new file mode 100644
index 00000000..c95f6b15
Binary files /dev/null and b/GMW/GMW/images/createChildObj.png differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index dfecd6a9..479ecdba 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ
diff --git a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache
index 858fff69..c5706d3f 100644
Binary files a/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache and b/GMW/GMW/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/GMW/GMW_data/DS_Utility.Designer.cs b/GMW/GMW_data/DS_Utility.Designer.cs
index d9d142e1..3c4649fa 100644
--- a/GMW/GMW_data/DS_Utility.Designer.cs
+++ b/GMW/GMW_data/DS_Utility.Designer.cs
@@ -820,7 +820,7 @@ namespace GMW_data.DS_UtilityTableAdapters {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.IDbCommand[2];
+ this._commandCollection = new global::System.Data.IDbCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[0])).CommandText = "dbo.stp_ContaCelle4Tipo";
@@ -837,6 +837,30 @@ namespace GMW_data.DS_UtilityTableAdapters {
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[1])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandText = "dbo.stp_ContaCelleBlocco";
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).CommandType = global::System.Data.CommandType.StoredProcedure;
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMag", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FiltAttive", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PosAssegnata", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[2])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandText = "dbo.stp_ContaDeltaCelleBlocco";
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).CommandType = global::System.Data.CommandType.StoredProcedure;
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[3])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DeltaCelle", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Connection = new global::System.Data.SqlClient.SqlConnection(global::GMW_data.Properties.Settings.Default.GMWConnectionString);
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandText = "dbo.stp_celleCreaMancantiBlocco";
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).CommandType = global::System.Data.CommandType.StoredProcedure;
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ ((global::System.Data.SqlClient.SqlCommand)(this._commandCollection[4])).Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxBlocco", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -930,6 +954,137 @@ namespace GMW_data.DS_UtilityTableAdapters {
}
return returnValue;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int stp_ContaCelleBlocco(string CodCS, string CodMag, global::System.Nullable+ |