update installer

update GMW_data x metodi helper x funzioni spostamento, caricamento...

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@165 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-07-29 08:21:12 +00:00
parent 065033e573
commit 560b2f2ca7
27 changed files with 870 additions and 688 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -62,7 +62,7 @@
<add key="appName" value="GMW" />
<add key="SiteName" value="Ambivere"/>
<add key="mainRev" value="1.0" />
<add key="minRev" value="150" />
<add key="minRev" value="155" />
<add key="copyRight" value="SteamWare © 2010" />
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
+7 -2
View File
@@ -77,7 +77,8 @@
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnQta" OnClick="btnQta_Click" />
[ALT-U]<br />
<asp:Button runat="server" ID="btnQta" OnClick="btnQta_Click" AccessKey="U" />
<asp:ConfirmButtonExtender ID="cbeQta" runat="server" TargetControlID="btnQta" />
</td>
</tr>
@@ -101,7 +102,8 @@
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnSposta" OnClick="btnSposta_Click1" />
[ALT-W]<br />
<asp:Button runat="server" ID="btnSposta" OnClick="btnSposta_Click1" AccessKey="W" />
<asp:ConfirmButtonExtender ID="cbeSposta" runat="server" TargetControlID="btnSposta">
</asp:ConfirmButtonExtender>
</td>
@@ -109,5 +111,8 @@
</table>
</asp:Panel>
</td>
<td valign="top" align="center">
<asp:Label ID="lblErrore" runat="server" CssClass="erroreMid" />
</td>
</tr>
</table>
+23 -8
View File
@@ -146,6 +146,7 @@ namespace GMW.WebUserControls
// sistemo labels e buttons
lblQta.Text = traduci("lblQta");
lblNewPos.Text = traduci("lblNewPos");
lblErrore.Text = traduci("ErroreCellaDestOccupata");
btnQta.Text = traduci("btnQta");
btnSposta.Text = traduci("btnSposta");
cbeQta.ConfirmText = traduci("confermaRettificaQta");
@@ -192,7 +193,7 @@ namespace GMW.WebUserControls
/// <param name="e"></param>
protected void btnSposta_Click1(object sender, EventArgs e)
{
// ricavo il valore dell'UDC cliccato...
// ricavo il valore dell'UDC cliccato...
string UDC = memLayer.ML.StringSessionObj(string.Format("{0}_sel", _idxGridView));
int IdxCellaFrom = 0;
try
@@ -202,20 +203,33 @@ namespace GMW.WebUserControls
catch
{ }
int IdxCellaTo = 0;
bool cellaToOk = false;
try
{
IdxCellaTo = MagClass.magazzino.taCelle.getByCodCella(txtNewCella.Text)[0].IdxCella;
DS_magazzino.CelleRow rowCella = MagClass.magazzino.taCelle.getByCodCella(txtNewCella.Text)[0];
IdxCellaTo = rowCella.IdxCella;
// controllo che la cella di destinazione NON sia bloccata
cellaToOk = rowCella.Attiva;
}
catch
{ }
if (IdxCellaFrom > 0 && IdxCellaTo > 0)
{ }
if (cellaToOk)
{
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaFrom, IdxCellaTo);
// controllo che sia valido x fare l'operazione
if (IdxCellaFrom > 0 && IdxCellaTo > 0)
{
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaFrom, IdxCellaTo);
}
azzeraPostUpdate();
if (eh_nuovoValore != null)
{
eh_nuovoValore(this, new EventArgs());
}
}
azzeraPostUpdate();
if (eh_nuovoValore != null)
else
{
eh_nuovoValore(this, new EventArgs());
// la cella è bloccata, nn devo permettere spostamento
lblErrore.Visible = true;
}
}
/// <summary>
@@ -252,6 +266,7 @@ namespace GMW.WebUserControls
private void azzeraPostUpdate()
{
lblErrore.Visible = false;
grView.DataBind();
resetSelezione();
txtNewCella.Text = "";
+9
View File
@@ -147,5 +147,14 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeSposta;
/// <summary>
/// lblErrore control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblErrore;
}
}
+7 -1
View File
@@ -17,7 +17,13 @@
</tr>
<tr>
<td>
<asp:Image runat="server" ImageUrl="~/images/SchemaMag.png" />
<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~/images/SchemaMag.png">
<asp:RectangleHotSpot NavigateUrl="~/StatoMag.aspx" HotSpotMode="Navigate" Left="15" Right="110" Top="5" Bottom="65" AlternateText="Mag 56, MP" />
<asp:RectangleHotSpot NavigateUrl="~/StatoMag.aspx" HotSpotMode="Navigate" Left="15" Right="110" Top="195" Bottom="255" AlternateText="Mag 80, Fusi" />
<asp:RectangleHotSpot NavigateUrl="~/StatoMag.aspx" HotSpotMode="Navigate" Left="165" Right="260" Top="305" Bottom="365" AlternateText="Mag 84, WIP" />
<asp:RectangleHotSpot NavigateUrl="~/StatoMag.aspx" HotSpotMode="Navigate" Left="330" Right="425" Top="305" Bottom="365" AlternateText="Mag 54, Celle" />
</asp:ImageMap>
</td>
</tr>
</table>
+9
View File
@@ -38,4 +38,13 @@ public partial class mod_main_help {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMess;
/// <summary>
/// ImageMap1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ImageMap ImageMap1;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 28 KiB

+1 -1
View File
@@ -7,7 +7,7 @@
<add key="appName" value="GMW"/>
<add key="SiteName" value="Ambivere"/>
<add key="mainRev" value="1.0"/>
<add key="minRev" value="150" />
<add key="minRev" value="155" />
<add key="copyRight" value="SteamWare © 2010"/>
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+50 -28
View File
@@ -14797,7 +14797,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[13];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM dbo.Celle";
@@ -14836,52 +14836,58 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
this._commandCollection[5].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, "", "", ""));
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[6].Connection = this.Connection;
this._commandCollection[6].CommandText = "dbo.stp_cellaGetByTipoCella";
this._commandCollection[6].CommandText = "dbo.stp_cellaGetByIdxCella";
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[6].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, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
this._commandCollection[7].CommandText = "dbo.stp_celleLibereGetByIdxBlocco";
this._commandCollection[7].CommandText = "dbo.stp_cellaGetByTipoCella";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].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, "", "", ""));
this._commandCollection[7].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, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[8].Connection = this.Connection;
this._commandCollection[8].CommandText = "dbo.stp_celleNonAttiveByIdxBlocco";
this._commandCollection[8].CommandText = "dbo.stp_celleLibereGetByIdxBlocco";
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[8].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, "", "", ""));
this._commandCollection[8].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, "", "", ""));
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[9].Connection = this.Connection;
this._commandCollection[9].CommandText = "dbo.stp_celle_updAttiva";
this._commandCollection[9].CommandText = "dbo.stp_celleNonAttiveByIdxBlocco";
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[9].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, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[9].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, "", "", ""));
this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[10].Connection = this.Connection;
this._commandCollection[10].CommandText = "dbo.stp_celle_updPiena";
this._commandCollection[10].CommandText = "dbo.stp_celle_updAttiva";
this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[10].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, "", "", ""));
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Piena", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[11].Connection = this.Connection;
this._commandCollection[11].CommandText = "dbo.stp_celle_updateQuery";
this._commandCollection[11].CommandText = "dbo.stp_celle_updPiena";
this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[11].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, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].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, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Piena", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].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, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[12].Connection = this.Connection;
this._commandCollection[12].CommandText = "dbo.stp_celle_updateQuery";
this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[12].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, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].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, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCella", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxTipoCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Attiva", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Piena", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].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, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@X", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Y", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Z", 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()]
@@ -14985,8 +14991,24 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.CelleDataTable getByTipoCella(global::System.Nullable<int> IdxTipoCella) {
public virtual DS_magazzino.CelleDataTable getByIdxCella(global::System.Nullable<int> IdxCella) {
this.Adapter.SelectCommand = this.CommandCollection[6];
if ((IdxCella.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxCella.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_magazzino.CelleDataTable dataTable = new DS_magazzino.CelleDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.CelleDataTable getByTipoCella(global::System.Nullable<int> IdxTipoCella) {
this.Adapter.SelectCommand = this.CommandCollection[7];
if ((IdxTipoCella.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxTipoCella.Value));
}
@@ -15002,7 +15024,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.CelleDataTable getLibereByIdxBlocco(global::System.Nullable<int> IdxBlocco) {
this.Adapter.SelectCommand = this.CommandCollection[7];
this.Adapter.SelectCommand = this.CommandCollection[8];
if ((IdxBlocco.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -15018,7 +15040,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.CelleDataTable getNonAttiveByIdxBlocco(global::System.Nullable<int> IdxBlocco) {
this.Adapter.SelectCommand = this.CommandCollection[8];
this.Adapter.SelectCommand = this.CommandCollection[9];
if ((IdxBlocco.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -15375,7 +15397,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_celle_updAttiva(global::System.Nullable<int> IdxCella, global::System.Nullable<bool> Attiva) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
if ((IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxCella.Value));
}
@@ -15408,7 +15430,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int stp_celle_updPiena(global::System.Nullable<int> IdxCella, global::System.Nullable<bool> Piena) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
if ((IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxCella.Value));
}
@@ -15442,7 +15464,7 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)]
public virtual int UpdateQuery(global::System.Nullable<int> Original_IdxCella, string CodCS, string CodCella, global::System.Nullable<int> IdxTipoCella, string Descrizione, global::System.Nullable<bool> Attiva, global::System.Nullable<bool> Piena, global::System.Nullable<int> IdxBlocco, global::System.Nullable<int> X, global::System.Nullable<int> Y, global::System.Nullable<int> Z) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12];
if ((Original_IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_IdxCella.Value));
}
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -4,14 +4,14 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="58" ViewPortY="392" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="58" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoCartellini" ZOrder="13" X="68" Y="333" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagMag" ZOrder="26" X="1014" Y="372" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="4" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="24" X="387" Y="322" Height="156" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="109" />
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="24" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Blocchi" ZOrder="19" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
<Shape ID="DesignTable:Celle" ZOrder="2" X="712" Y="420" Height="438" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:Celle" ZOrder="2" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:TipoCella" ZOrder="6" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:v_UdcDetail" ZOrder="3" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagImballi" ZOrder="18" X="93" Y="43" Height="156" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
@@ -44,7 +44,7 @@
<Y>413</Y>
</Point>
<Point>
<X>387</X>
<X>412</X>
<Y>413</Y>
</Point>
</RoutePoints>
@@ -80,7 +80,7 @@
<Y>755</Y>
</Point>
<Point>
<X>941</X>
<X>954</X>
<Y>755</Y>
</Point>
</RoutePoints>
+196 -91
View File
@@ -160,6 +160,28 @@ namespace GMW_data
#region Metodi esposti
#region operazioni su UDC
/// <summary>
/// effettua lo scaricamento di un UDC (x spedizione)
/// </summary>
/// <param name="CodCS">Codice company/sito</param>
/// <param name="UDC">Codice UDC</param>
/// <param name="IdxCellaTo">Cella di destinazione</param>
/// <param name="IdxPosizUdc">Codice posizione UDC finale</param>
/// <returns>esito comando</returns>
public bool caricaUDC(string CodCS, string UDC, int IdxCellaTo, int IdxPosizUdc)
{
bool answ = false;
//try
//{
// taPosUdcCorr.stp_scaricaUdc(CodCS, UDC, IdxCellaFrom, IdxPosizUdc);
// answ = true;
//}
//catch
//{ }
return answ;
}
/// <summary>
/// effettua lo spostamento di un UDC tra 2 posizioni indicate
/// </summary>
@@ -228,6 +250,175 @@ namespace GMW_data
{ }
return answ;
}
#endregion
#region procedure di verifica e traduzione dati da anagrafiche
/// <summary>
/// Verifica la corrispondenza dati tra RigheListePrelievo ed ElencoCartellini
/// </summary>
/// <param name="CodLista"></param>
/// <param name="UDC"></param>
/// <returns></returns>
public bool verificaDatiUdc(string CodLista, string UDC)
{
bool answ = false;
try
{
DS_magazzino.ElencoListePrelievoDataTable tabellaElenco = taElencoListePrelievo.getByCodLista(CodLista);
DS_magazzino.ElencoListePrelievoRow rigaElenco = tabellaElenco[0];
DS_magazzino.ElencoCartelliniDataTable tabellaUDC = taElencoCartellini.getDetailsUdcByUdc(UDC);
DS_magazzino.ElencoCartelliniRow rigaUDC = tabellaUDC[0];
// ricavo dati da confrontare - da Lista ricavo particolare/esponente/figura
string particolareLista = rigaElenco.Particolare;
string esponenteLista = rigaElenco.Esponente;
string figuraLista = rigaElenco.Figura;
string codImballoLista = rigaElenco.CodImballo;
//stessi dati da UDC
string particolareUDC = rigaUDC.Particolare;
string esponenteUDC = rigaUDC.Esponente;
string figuraUDC = rigaUDC.Figura;
string codImballoUDC = rigaUDC.CodImballo;
// condizioni di uguaglianza...
bool particolareOk = false;
bool esponenteOk = false;
bool figuraOk = false;
bool codImballoOk = false;
// verifico le condizioni 1 ad 1...
particolareOk = (particolareLista == particolareUDC);
if (esponenteLista == "*")
{
esponenteOk = true;
}
else
{
esponenteOk = (esponenteLista == esponenteUDC);
}
if (figuraLista == "*")
{
figuraOk = true;
}
else
{
figuraOk = (figuraLista == figuraUDC);
}
if (codImballoLista == "*")
{
codImballoOk = true;
}
else
{
codImballoOk = (codImballoLista == codImballoUDC);
}
// verifica finale del risultato uguaglianza...
answ = (particolareOk && esponenteOk && figuraOk && codImballoOk);
}
catch
{
answ = false;
}
return answ;
}
/// <summary>
/// restituisce codice soggetto dell'user corrente
/// </summary>
/// <returns></returns>
public string CodSoggCurrUser()
{
// ricavo da session...
string codSoggetto = "";
try
{
codSoggetto = DataProxy.obj.taSogg2Oper.getBuUserDominio(user_std.UtSn.utente, user_std.UtSn.dominio)[0].CodSoggetto;
}
catch (Exception e)
{
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}", user_std.UtSn.userNameAD), tipoLog.ERROR);
}
return codSoggetto;
}
/// <summary>
/// restituisce l'IdxCella dato il CodCella
/// </summary>
/// <param name="CodCS">Codice company/sito</param>
/// <param name="CodCella"></param>
/// <returns></returns>
public int IdxCellaByCodCella(string CodCS, string CodCella)
{
int answ = 0;
try
{
answ = taCelle.getByCodCella(CodCella)[0].IdxCella; // NON controllo il CodCS...
}
catch
{ }
return answ;
}
/// <summary>
/// restituisce il CodCella dato l'IdxCella
/// </summary>
/// <param name="CodCS">Codice company/sito</param>
/// <param name="IdxCella"></param>
/// <returns></returns>
public string CodCellaByIdxCella(string CodCS, int IdxCella)
{
string answ = "";
try
{
answ = taCelle.getByIdxCella(IdxCella)[0].CodCella; // NON controllo il CodCS...
}
catch
{ }
return answ;
}
/// <summary>
/// verifica se la cella indicata sia attiva
/// </summary>
/// <param name="CodCS">Codice company/sito</param>
/// <param name="IdxCella"></param>
/// <returns></returns>
public bool cellaAttiva(string CodCS, int IdxCella)
{
bool answ = false;
try
{
answ = taCelle.getByIdxCella(IdxCella)[0].Attiva; // NON controllo il CodCS...
}
catch
{ }
return answ;
}
/// <summary>
/// verifica se la cella indicata sia piena
/// </summary>
/// <param name="CodCS">Codice company/sito</param>
/// <param name="IdxCella"></param>
/// <returns></returns>
public bool cellaPiena(string CodCS, int IdxCella)
{
bool answ = false;
try
{
answ = taCelle.getByIdxCella(IdxCella)[0].Piena; // NON controllo il CodCS...
}
catch
{ }
return answ;
}
#endregion
#region liste di prelievo
/// <summary>
/// Crea una lista di prelievo andando a prenotare gli UDC del particolare richiesto in logica FIFO
/// </summary>
@@ -594,78 +785,6 @@ namespace GMW_data
return answ;
}
/// <summary>
/// Verifica la corrispondenza dati tra RigheListePrelievo ed ElencoCartellini
/// </summary>
/// <param name="CodLista"></param>
/// <param name="UDC"></param>
/// <returns></returns>
public bool verificaDatiUdc(string CodLista, string UDC)
{
bool answ = false;
try
{
DS_magazzino.ElencoListePrelievoDataTable tabellaElenco = taElencoListePrelievo.getByCodLista(CodLista);
DS_magazzino.ElencoListePrelievoRow rigaElenco = tabellaElenco[0];
DS_magazzino.ElencoCartelliniDataTable tabellaUDC = taElencoCartellini.getDetailsUdcByUdc(UDC);
DS_magazzino.ElencoCartelliniRow rigaUDC = tabellaUDC[0];
// ricavo dati da confrontare - da Lista ricavo particolare/esponente/figura
string particolareLista = rigaElenco.Particolare;
string esponenteLista = rigaElenco.Esponente;
string figuraLista = rigaElenco.Figura;
string codImballoLista = rigaElenco.CodImballo;
//stessi dati da UDC
string particolareUDC = rigaUDC.Particolare;
string esponenteUDC = rigaUDC.Esponente;
string figuraUDC = rigaUDC.Figura;
string codImballoUDC = rigaUDC.CodImballo;
// condizioni di uguaglianza...
bool particolareOk = false;
bool esponenteOk = false;
bool figuraOk = false;
bool codImballoOk = false;
// verifico le condizioni 1 ad 1...
particolareOk = (particolareLista == particolareUDC);
if (esponenteLista == "*")
{
esponenteOk = true;
}
else
{
esponenteOk = (esponenteLista == esponenteUDC);
}
if (figuraLista == "*")
{
figuraOk = true;
}
else
{
figuraOk = (figuraLista == figuraUDC);
}
if (codImballoLista == "*")
{
codImballoOk = true;
}
else
{
codImballoOk = (codImballoLista == codImballoUDC);
}
// verifica finale del risultato uguaglianza...
answ = (particolareOk && esponenteOk && figuraOk && codImballoOk);
}
catch
{
answ = false;
}
return answ;
}
/// <summary>
/// Conferma che un dato UDC è stato prelevato per soddisfare la lista di prelievo ed aggiorna o aggiunge riga in RigheListePrelievo
/// </summary>
/// <param name="CodLista">codice della lista di prelievo</param>
@@ -762,25 +881,10 @@ namespace GMW_data
{ }
return answ;
}
/// <summary>
/// restituisce codice soggetto dell'user corrente
/// </summary>
/// <returns></returns>
public string CodSoggCurrUser()
{
// ricavo da session...
string codSoggetto = "";
try
{
codSoggetto = DataProxy.obj.taSogg2Oper.getBuUserDominio(user_std.UtSn.utente, user_std.UtSn.dominio)[0].CodSoggetto;
}
catch (Exception e)
{
logger.lg.scriviLog(string.Format("Non sono riuscito a recuperare il codice soggetto per l'utente loggato: {0}", user_std.UtSn.userNameAD), tipoLog.ERROR);
}
return codSoggetto;
}
#endregion
#endregion
}
}
@@ -790,7 +894,8 @@ public enum esitoOperazione
ok, // tutto ok, come true
errore, // non è andata, errore generico
errore_mismatch, // errore x mancanza corrispondenza tra dati (particolare-esponente-figura di lista ed UDC, ad esempio)
errore_readOnly // errore xché ild ato è read only o bloccato (es lista di prelievo già completata, NON posso riprenderla in carico)
errore_readOnly, // errore xché ild ato è read only o bloccato (es lista di prelievo già completata, NON posso riprenderla in carico)
errore_posUDC // errore perché UDC è in una posizione che non consente l'operazione indicata
}
public enum statoLista
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -3
View File
@@ -349,14 +349,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW"
"ProductCode" = "8:{E54463DF-6607-479B-BB24-0E680C2EC34D}"
"PackageCode" = "8:{AF95C4CF-1ADA-40B3-B21A-1217A4118029}"
"ProductCode" = "8:{7C8E2714-79EB-4E9E-AA03-5E8220679B88}"
"PackageCode" = "8:{3A990B42-AD1B-4D39-8FAF-062A1289792D}"
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.150"
"ProductVersion" = "8:1.0.155"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:+39-035460560"
"ARPHELPLINK" = "8:http://www.steamware.net"
Binary file not shown.