molti bugfix e sistemazioni vari (in particolare variabili in sessione in ricerca avanzata)

installer vers 250 + sql update

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@250 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-09-17 15:32:20 +00:00
parent 3b72e463d1
commit 99d291dc63
41 changed files with 7198 additions and 158 deletions
+2 -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="245"/>
<add key="minRev" value="250"/>
<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" />
@@ -81,6 +81,7 @@
<add key="MinCharAutocomplete" value="2" />
<add key="_fromEmail" value="GMW@steamware.net" />
<add key="urlWebServer" value="http://localhost/GMW/" />
<add key="echoLemmi" value="false" />
<!--Default values vari-->
<add key="Max_X" value="850" />
<add key="Max_Y" value="900" />
@@ -11,10 +11,10 @@
<tr>
<td valign="top">
<uc1:mod_listParticolari ID="mod_listParticolari1" runat="server" />
<uc2:mod_execParticolari ID="mod_execParticolari1" runat="server" />
</td>
<td valign="top">
<uc3:mod_detailParticolari ID="mod_detailParticolari1" runat="server" />
<uc2:mod_execParticolari ID="mod_execParticolari1" runat="server" />
</td>
</tr>
</table>
@@ -15,6 +15,10 @@ namespace GMW.WebUserControls
/// evento selezione valore
/// </summary>
public event EventHandler eh_selValore;
/// <summary>
/// evento generale di reset
/// </summary>
public event EventHandler eh_reset;
protected void Page_Load(object sender, EventArgs e)
@@ -23,6 +27,7 @@ namespace GMW.WebUserControls
{
doTraduci();
mod_execParticolari1.Visible = false;
memLayer.ML.setSessionVal("RicercaParticolariAttiva", false, false);
}
mod_detailParticolari1.eh_selValore += new EventHandler(mod_detailParticolari1_eh_selValore);
mod_detailParticolari1.eh_resetSelezione += new EventHandler(mod_detailParticolari1_eh_resetSelezione);
@@ -30,6 +35,16 @@ namespace GMW.WebUserControls
mod_listParticolari1.eh_resetSelezione += new EventHandler(mod_listParticolari1_eh_resetSelezione);
mod_execParticolari1.eh_btnGoToMagPressed += new EventHandler(mod_execParticolari1_eh_btnGoToMagPressed);
mod_execParticolari1.eh_btnListaPrelievoPressed += new EventHandler(mod_execParticolari1_eh_btnListaPrelievoPressed);
if (memLayer.ML.BoolSessionObj("RicercaParticolariAttiva"))
{
mod_execParticolari1.Visible = true;
mod_detailParticolari1.Visible = true;
}
else
{
mod_execParticolari1.Visible = false;
mod_detailParticolari1.Visible = false;
}
}
void mod_detailParticolari1_eh_resetSelezione(object sender, EventArgs e)
@@ -48,7 +63,7 @@ namespace GMW.WebUserControls
/// <param name="e"></param>
void mod_execParticolari1_eh_btnListaPrelievoPressed(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("PrecompilaListaPrelievo", true);
memLayer.ML.setSessionVal("PrecompilaListaPrelievo", true, false);
Response.Redirect("~/ElencoListePrelievo.aspx");
}
/// <summary>
@@ -63,18 +78,20 @@ namespace GMW.WebUserControls
void mod_listParticolari1_eh_resetSelezione(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("RicercaParticolariAttiva", false, false);
mod_detailParticolari1.resetSelezione();
mod_execParticolari1.Visible = false;
memLayer.ML.emptySessionVal("Particolare_sel");
// sollevo evento nuovo valore...
if (eh_selValore != null)
if (eh_reset != null)
{
eh_selValore(this, new EventArgs());
eh_reset(this, new EventArgs());
}
}
void mod_listParticolari1_eh_selValore(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("RicercaParticolariAttiva", true,false);
mod_detailParticolari1.Visible = true;
mod_detailParticolari1.resetSelezione();
mod_execParticolari1.Visible = false;
// sollevo evento nuovo valore...
@@ -116,6 +133,16 @@ namespace GMW.WebUserControls
mod_execParticolari1.Visible = false;
mod_listParticolari1.doRefresh();
}
/// <summary>
/// effettua reset del controllo
/// </summary>
public void doReset()
{
memLayer.ML.setSessionVal("RicercaParticolariAttiva", false, false);
mod_listParticolari1.doRefresh();
mod_detailParticolari1.Visible = false;
mod_execParticolari1.Visible = false;
}
}
}
@@ -40,15 +40,6 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::GMW.WebUserControls.mod_listParticolari mod_listParticolari1;
/// <summary>
/// mod_execParticolari1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_execParticolari mod_execParticolari1;
/// <summary>
/// mod_detailParticolari1 control.
/// </summary>
@@ -57,5 +48,14 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_detailParticolari mod_detailParticolari1;
/// <summary>
/// mod_execParticolari1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_execParticolari mod_execParticolari1;
}
}
@@ -11,10 +11,10 @@
<tr>
<td valign="top">
<uc1:mod_listUDC ID="mod_listUDC1" runat="server" />
<uc2:mod_execUDC ID="mod_execUDC1" runat="server" />
</td>
<td valign="top">
<uc3:mod_detailUDC ID="mod_detailUDC1" runat="server" />
<uc2:mod_execUDC ID="mod_execUDC1" runat="server" />
</td>
</tr>
</table>
@@ -15,6 +15,10 @@ namespace GMW.WebUserControls
/// evento selezione valore
/// </summary>
public event EventHandler eh_selValore;
/// <summary>
/// evento generale di reset
/// </summary>
public event EventHandler eh_reset;
protected void Page_Load(object sender, EventArgs e)
{
@@ -23,12 +27,23 @@ namespace GMW.WebUserControls
doTraduci();
mod_detailUDC1.Visible = false;
mod_execUDC1.Visible = false;
memLayer.ML.setSessionVal("RicercaUdcAttiva", false, false);
}
mod_listUDC1.eh_selValore += new EventHandler(mod_listUDC1_eh_selValore);
mod_listUDC1.eh_resetSelezione += new EventHandler(mod_listUDC1_eh_resetSelezione);
mod_execUDC1.eh_btnGoToMagPressed += new EventHandler(mod_execUDC1_eh_btnGoToMagPressed);
mod_execUDC1.eh_btnListaPrelievoPressed += new EventHandler(mod_execUDC1_eh_btnListaPrelievoPressed);
mod_execUDC1.eh_nuovoValore += new EventHandler(mod_execUDC1_eh_nuovoValore);
if (memLayer.ML.BoolSessionObj("RicercaUdcAttiva"))
{
mod_execUDC1.Visible = true;
mod_detailUDC1.Visible = true;
}
else
{
mod_execUDC1.Visible = false;
mod_detailUDC1.Visible = false;
}
}
void mod_execUDC1_eh_nuovoValore(object sender, EventArgs e)
@@ -42,7 +57,7 @@ namespace GMW.WebUserControls
/// <param name="e"></param>
void mod_execUDC1_eh_btnListaPrelievoPressed(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("PrecompilaListaPrelievo", true);
memLayer.ML.setSessionVal("PrecompilaListaPrelievo", true, false);
Response.Redirect("~/ElencoListePrelievo.aspx");
}
/// <summary>
@@ -57,69 +72,66 @@ namespace GMW.WebUserControls
void mod_listUDC1_eh_resetSelezione(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("RicercaUdcAttiva", false, false);
mod_detailUDC1.Visible = false;
mod_execUDC1.Visible = false;
// svuoto in session
memLayer.ML.emptySessionVal("Particolare_sel");
memLayer.ML.emptySessionVal("Esponente_sel");
memLayer.ML.emptySessionVal("CodMag_sel");
memLayer.ML.emptySessionVal("CodCellaMag");
memLayer.ML.emptySessionVal("IdxCellaMag");
memLayer.ML.emptySessionVal("IdxBlocco_sel");
// sollevo evento nuovo valore...
if (eh_selValore != null)
if (eh_reset != null)
{
eh_selValore(this, new EventArgs());
eh_reset(this, new EventArgs());
}
}
void mod_listUDC1_eh_selValore(object sender, EventArgs e)
{
memLayer.ML.setSessionVal("RicercaUdcAttiva", true, false);
aggiornaDettaglio();
}
private void aggiornaDettaglio()
{
mod_detailUDC1.Visible = true;
mod_detailUDC1.doUpdate();
mod_execUDC1.Visible = true;
// salvo dati UDC selezionato... UDC_sel c'è già...
string UDC = memLayer.ML.StringSessionObj("UDC_sel");
GMW_data.DS_magazzino.v_UdcDetailRow rigaUdc = (GMW_data.DS_magazzino.v_UdcDetailRow)GMW_data.MagClass.magazzino.taDettUDC.getByFullUdc(UDC, memLayer.ML.confReadString("CodCS"))[0];
// inizializzo a vuoti
string particolare = "";
string esponente = "";
string codMag = "";
string codBlocco = "";
string codCellaMag = "";
int idxCellaMag = 0;
int idxBlocco = 0;
// provoa caricare sennò segno errore..
try
if (memLayer.ML.BoolSessionObj("RicercaUdcAttiva"))
{
particolare = rigaUdc.Particolare;
esponente = rigaUdc.Esponente;
codMag = rigaUdc.CodMag;
codBlocco = rigaUdc.CodBlocco;
codCellaMag = rigaUdc.CodCella;
idxCellaMag = rigaUdc.IdxCella;
idxBlocco = GMW_data.MagClass.magazzino.taBlocchi.getByCodBlocco(codBlocco)[0].IdxBlocco;
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Eccezione: {0}", exc), tipoLog.EXCEPTION);
}
// salvo in session
memLayer.ML.setSessionVal("Particolare_sel", particolare, false);
memLayer.ML.setSessionVal("Esponente_sel", esponente, false);
memLayer.ML.setSessionVal("CodMag_sel", codMag, false);
memLayer.ML.setSessionVal("CodCellaMag", codCellaMag, false);
memLayer.ML.setSessionVal("IdxCellaMag", idxCellaMag, false);
memLayer.ML.setSessionVal("IdxBlocco_sel", idxBlocco, false);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
mod_detailUDC1.Visible = true;
mod_detailUDC1.doUpdate();
mod_execUDC1.Visible = true;
// salvo dati UDC selezionato... UDC_sel c'è già...
string UDC = memLayer.ML.StringSessionObj("UDC_sel");
GMW_data.DS_magazzino.v_UdcDetailRow rigaUdc = (GMW_data.DS_magazzino.v_UdcDetailRow)GMW_data.MagClass.magazzino.taDettUDC.getByFullUdc(UDC, memLayer.ML.confReadString("CodCS"))[0];
// inizializzo a vuoti
string particolare = "";
string esponente = "";
string codMag = "";
string codBlocco = "";
string codCellaMag = "";
int idxCellaMag = 0;
int idxBlocco = 0;
// provoa caricare sennò segno errore..
try
{
particolare = rigaUdc.Particolare;
esponente = rigaUdc.Esponente;
codMag = rigaUdc.CodMag;
codBlocco = rigaUdc.CodBlocco;
codCellaMag = rigaUdc.CodCella;
idxCellaMag = rigaUdc.IdxCella;
idxBlocco = GMW_data.MagClass.magazzino.taBlocchi.getByCodBlocco(codBlocco)[0].IdxBlocco;
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Eccezione: {0}", exc), tipoLog.EXCEPTION);
}
// salvo in session
memLayer.ML.setSessionVal("Particolare_sel", particolare, false);
memLayer.ML.setSessionVal("Esponente_sel", esponente, false);
memLayer.ML.setSessionVal("CodMag_sel", codMag, false);
memLayer.ML.setSessionVal("CodCellaMag", codCellaMag, false);
memLayer.ML.setSessionVal("IdxCellaMag", idxCellaMag, false);
memLayer.ML.setSessionVal("IdxBlocco_sel", idxBlocco, false);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
}
}
@@ -154,5 +166,15 @@ namespace GMW.WebUserControls
{
mod_listUDC1.doRefresh();
}
/// <summary>
/// effettua reset del controllo
/// </summary>
public void doReset()
{
memLayer.ML.setSessionVal("RicercaUdcAttiva", false, false);
mod_listUDC1.doRefresh();
mod_detailUDC1.Visible = false;
mod_execUDC1.Visible = false;
}
}
}
+9 -9
View File
@@ -40,15 +40,6 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::GMW.WebUserControls.mod_listUDC mod_listUDC1;
/// <summary>
/// mod_execUDC1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_execUDC mod_execUDC1;
/// <summary>
/// mod_detailUDC1 control.
/// </summary>
@@ -57,5 +48,14 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_detailUDC mod_detailUDC1;
/// <summary>
/// mod_execUDC1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_execUDC mod_execUDC1;
}
}
+5 -5
View File
@@ -39,11 +39,6 @@
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
</ItemTemplate>
</asp:TemplateField>
<%--<asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
<ItemTemplate>
<asp:Label ID="lblRagSociale" runat="server" Text='<%# Eval("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
<ItemTemplate>
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
@@ -54,6 +49,11 @@
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="MagLog" SortExpression="IdxPosizione" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="lblIdxPosizione" runat="server" Text='<%# Eval("IdxPosizione") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
+17 -4
View File
@@ -73,6 +73,21 @@
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DisegnoGrezzo" SortExpression="DisegnoGrezzo">
<ItemTemplate>
<asp:Label ID="lblDisegnoGrezzo" runat="server" Text='<%# Eval("DisegnoGrezzo") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Esponente" SortExpression="Esponente">
<ItemTemplate>
<asp:Label ID="lblEsponente" runat="server" Text='<%# Eval("Esponente") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodStato" SortExpression="CodStato">
<ItemTemplate>
<asp:Label ID="lblCodStato" runat="server" Text='<%# Eval("CodStato") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DataFus" SortExpression="DataFus">
<ItemTemplate>
<asp:Label ID="lblDataFus" runat="server" Text='<%# Eval("DataFus","{0:dd/MM/yyyy}") %>' />
@@ -107,10 +122,8 @@
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button runat="server" ID="btnDelibera" Width="200px"
onclick="btnDelibera_Click" />
<cc1:ConfirmButtonExtender ID="cbeBtnDelibera"
runat="server" TargetControlID="btnDelibera">
<asp:Button runat="server" ID="btnDelibera" Width="200px" OnClick="btnDelibera_Click" />
<cc1:ConfirmButtonExtender ID="cbeBtnDelibera" runat="server" TargetControlID="btnDelibera">
</cc1:ConfirmButtonExtender>
</td>
</tr>
@@ -28,6 +28,7 @@
<asp:BoundField DataField="ModDate" HeaderText="ModDate" SortExpression="ModDate" DataFormatString="{0:ddd dd/MM/yyyy HH:mm}"
HtmlEncode="False"/>
<asp:BoundField DataField="CodMag" HeaderText="CodMag" SortExpression="CodMag" />
<asp:BoundField DataField="IdxPosizione" HeaderText="MagLog" SortExpression="IdxPosizione" />
<asp:BoundField DataField="CodBlocco" HeaderText="CodBlocco" SortExpression="CodBlocco" />
<asp:BoundField DataField="CodCella" HeaderText="CodCella" SortExpression="CodCella" />
<asp:BoundField DataField="X" HeaderText="X" SortExpression="X" />
@@ -214,16 +214,18 @@ namespace GMW.WebUserControls
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
{
// se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
{
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_magazzino.V_ParticolariOverviewRow riga = (DS_magazzino.V_ParticolariOverviewRow)_drv.Row;
bool cond1 = SteamWare.memLayer.ML.StringSessionObj("Particolare_sel") == riga.Particolare.ToString();
if (cond1)
if (memLayer.ML.BoolSessionObj("RicercaParticolariAttiva"))
{ // se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
{
grView.SelectedIndex = e.Row.RowIndex;
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_magazzino.V_ParticolariOverviewRow riga = (DS_magazzino.V_ParticolariOverviewRow)_drv.Row;
bool cond1 = SteamWare.memLayer.ML.StringSessionObj("Particolare_sel") == riga.Particolare.ToString();
if (cond1)
{
grView.SelectedIndex = e.Row.RowIndex;
}
}
}
}
@@ -236,8 +238,8 @@ namespace GMW.WebUserControls
grView.SelectedIndex = -1;
DataBind();
}
#endregion
#endregion
}
}
+37 -27
View File
@@ -64,21 +64,6 @@ namespace GMW.WebUserControls
{
resetSelezione();
}
/// <summary>
/// gestione cambio selezione valore
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo in session il valore selezionato...
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
}
/// <summary>
/// collega i controlli
@@ -214,12 +199,12 @@ namespace GMW.WebUserControls
checkFixOds();
}
/// <summary>
/// effettua refresh 8senza reset) del modulo
/// effettua refresh (senza reset) del modulo
/// </summary>
public void doRefresh()
{
checkFixOds();
//grView.SelectedIndex = -1;
grView.SelectedIndex = -1;
DataBind();
}
/// <summary>
@@ -229,22 +214,47 @@ namespace GMW.WebUserControls
/// <param name="e"></param>
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
{
// se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
if (memLayer.ML.BoolSessionObj("RicercaUdcAttiva"))
{
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_magazzino.v_UdcDetailRow riga = (DS_magazzino.v_UdcDetailRow)_drv.Row;
bool cond1 = SteamWare.memLayer.ML.StringSessionObj("UDC_sel") == riga.UDC.ToString();
if (cond1)
// se riga di dati...
if (e.Row.RowType == DataControlRowType.DataRow)
{
grView.SelectedIndex = e.Row.RowIndex;
// ottengo la riga tipizzata...
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
DS_magazzino.v_UdcDetailRow riga = (DS_magazzino.v_UdcDetailRow)_drv.Row;
bool cond1 = SteamWare.memLayer.ML.StringSessionObj("UDC_sel") == riga.UDC.ToString();
if (cond1)
{
grView.SelectedIndex = e.Row.RowIndex;
}
}
}
}
/// <summary>
/// gestione cambio selezione valore
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// calcolo il mag logico...
int CodMagLog = 0;
try
{
CodMagLog = MagClass.magazzino.taDettUDC.getByFullUdc(grView.SelectedValue.ToString(), memLayer.ML.confReadString("CodCS"))[0].IdxPosizione;
}
catch
{ }
memLayer.ML.setSessionVal("CodMagLogico_sel", CodMagLog, false);
// salvo in session il valore selezionato...
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
}
#endregion
}
}
@@ -20,6 +20,41 @@ namespace GMW.WebUserControls
}
mod_SearchProvUDC1.eh_selValore += new EventHandler(mod_SearchProvUDC1_eh_selValore);
mod_SearchProvParticolari1.eh_selValore += new EventHandler(mod_SearchProvParticolari1_eh_selValore);
mod_SearchProvUDC1.eh_reset += new EventHandler(mod_SearchProvUDC1_eh_reset);
mod_SearchProvParticolari1.eh_reset += new EventHandler(mod_SearchProvParticolari1_eh_reset);
}
void mod_SearchProvParticolari1_eh_reset(object sender, EventArgs e)
{
mod_SearchProvUDC1.doReset();
resetSessione();
}
/// <summary>
/// richiesta svuotamento da parte di UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_SearchProvUDC1_eh_reset(object sender, EventArgs e)
{
resetSessione();
mod_SearchProvParticolari1.doReset();
}
/// <summary>
/// svuoto variabili in sessione
/// </summary>
private void resetSessione()
{
// disattivo riceche...
memLayer.ML.setSessionVal("RicercaUdcAttiva", false, false);
memLayer.ML.setSessionVal("RicercaParticolariAttiva", false, false);
// svuoto in session
memLayer.ML.emptySessionVal("Particolare_sel");
memLayer.ML.emptySessionVal("Esponente_sel");
memLayer.ML.emptySessionVal("CodMag_sel");
memLayer.ML.emptySessionVal("CodCellaMag");
memLayer.ML.emptySessionVal("IdxCellaMag");
memLayer.ML.emptySessionVal("IdxBlocco_sel");
memLayer.ML.emptySessionVal("UDC_sel");
}
void mod_SearchProvParticolari1_eh_selValore(object sender, EventArgs e)
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 301 KiB

+2 -2
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="245"/>
<add key="minRev" value="250"/>
<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"/>
@@ -26,6 +26,7 @@
<add key="MinCharAutocomplete" value="2" />
<add key="_fromEmail" value="GMW@steamware.net" />
<add key="urlWebServer" value="http://localhost/GMW/" />
<add key="echoLemmi" value="false" />
<!--Default values vari-->
<add key="Max_X" value="850"/>
<add key="Max_Y" value="900"/>
@@ -45,7 +46,6 @@
<add key="IdxPosNewFinito" value="84"/>
<!--Setup stampa-->
<!--<add key="printerCartTara" value="Brother HL-4050CDN"/>-->
<add key="printerCartTara" value="\\Vostro410\PDFCreator"/>
<add key="PageWidthCartTara" value="21cm"/>
<add key="PageHeightCartTara" value="14.8cm"/>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+53 -25
View File
@@ -3507,6 +3507,8 @@ namespace GMW_data {
private global::System.Data.DataColumn columnIdxCella;
private global::System.Data.DataColumn columnIdxPosizione;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public v_UdcDetailDataTable() {
this.TableName = "v_UdcDetail";
@@ -3677,6 +3679,13 @@ namespace GMW_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn IdxPosizioneColumn {
get {
return this.columnIdxPosizione;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -3726,7 +3735,8 @@ namespace GMW_data {
int X,
int Y,
int Z,
int IdxCella) {
int IdxCella,
int IdxPosizione) {
v_UdcDetailRow rowv_UdcDetailRow = ((v_UdcDetailRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
UDC,
@@ -3748,7 +3758,8 @@ namespace GMW_data {
X,
Y,
Z,
IdxCella};
IdxCella,
IdxPosizione};
rowv_UdcDetailRow.ItemArray = columnValuesArray;
this.Rows.Add(rowv_UdcDetailRow);
return rowv_UdcDetailRow;
@@ -3794,6 +3805,7 @@ namespace GMW_data {
this.columnY = base.Columns["Y"];
this.columnZ = base.Columns["Z"];
this.columnIdxCella = base.Columns["IdxCella"];
this.columnIdxPosizione = base.Columns["IdxPosizione"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3838,6 +3850,8 @@ namespace GMW_data {
base.Columns.Add(this.columnZ);
this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxCella);
this.columnIdxPosizione = new global::System.Data.DataColumn("IdxPosizione", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnIdxPosizione);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnUDC}, true));
this.columnUDC.AllowDBNull = false;
@@ -5112,14 +5126,15 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public V_DettMagPartRow FindByEsponenteCodMagCodCSIdxBloccoParticolareDescStato(string Esponente, string CodMag, string CodCS, int IdxBlocco, string Particolare, string DescStato) {
public V_DettMagPartRow FindByCodCSCodMagIdxBloccoParticolareDescStatoEsponenteCodMagLog(string CodCS, string CodMag, int IdxBlocco, string Particolare, string DescStato, string Esponente, int CodMagLog) {
return ((V_DettMagPartRow)(this.Rows.Find(new object[] {
Esponente,
CodMag,
CodCS,
CodMag,
IdxBlocco,
Particolare,
DescStato})));
DescStato,
Esponente,
CodMagLog})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5180,12 +5195,13 @@ namespace GMW_data {
this.columnCodMagLog = new global::System.Data.DataColumn("CodMagLog", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodMagLog);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnEsponente,
this.columnCodMag,
this.columnCodCS,
this.columnCodMag,
this.columnIdxBlocco,
this.columnParticolare,
this.columnDescStato}, true));
this.columnDescStato,
this.columnEsponente,
this.columnCodMagLog}, true));
this.columnCodCS.AllowDBNull = false;
this.columnCodCS.MaxLength = 2;
this.columnCodMag.AllowDBNull = false;
@@ -5201,6 +5217,7 @@ namespace GMW_data {
this.columnDescStato.MaxLength = 50;
this.columnEsponente.AllowDBNull = false;
this.columnEsponente.MaxLength = 6;
this.columnCodMagLog.AllowDBNull = false;
this.columnCodMagLog.DefaultValue = ((int)(0));
}
@@ -9823,6 +9840,21 @@ namespace GMW_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int IdxPosizione {
get {
try {
return ((int)(this[this.tablev_UdcDetail.IdxPosizioneColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'IdxPosizione\' in table \'v_UdcDetail\' is DBNull.", e);
}
}
set {
this[this.tablev_UdcDetail.IdxPosizioneColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsRagSocialeNull() {
return this.IsNull(this.tablev_UdcDetail.RagSocialeColumn);
@@ -10012,6 +10044,16 @@ namespace GMW_data {
public void SetIdxCellaNull() {
this[this.tablev_UdcDetail.IdxCellaColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsIdxPosizioneNull() {
return this.IsNull(this.tablev_UdcDetail.IdxPosizioneColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetIdxPosizioneNull() {
this[this.tablev_UdcDetail.IdxPosizioneColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -10627,12 +10669,7 @@ namespace GMW_data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int CodMagLog {
get {
try {
return ((int)(this[this.tableV_DettMagPart.CodMagLogColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CodMagLog\' in table \'V_DettMagPart\' is DBNull.", e);
}
return ((int)(this[this.tableV_DettMagPart.CodMagLogColumn]));
}
set {
this[this.tableV_DettMagPart.CodMagLogColumn] = value;
@@ -10698,16 +10735,6 @@ namespace GMW_data {
public void SetQtaTotPzNull() {
this[this.tableV_DettMagPart.QtaTotPzColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsCodMagLogNull() {
return this.IsNull(this.tableV_DettMagPart.CodMagLogColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetCodMagLogNull() {
this[this.tableV_DettMagPart.CodMagLogColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -18035,6 +18062,7 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max
tableMapping.ColumnMappings.Add("Y", "Y");
tableMapping.ColumnMappings.Add("Z", "Z");
tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
tableMapping.ColumnMappings.Add("IdxPosizione", "IdxPosizione");
this._adapter.TableMappings.Add(tableMapping);
}
+7 -4
View File
@@ -1195,6 +1195,7 @@ SELECT IdxTipoCella, CodMag, CodCS, Quantita, Capienza, Max_X, Max_Y, Max_Z, Max
<Mapping SourceColumn="Y" DataSetColumn="Y" />
<Mapping SourceColumn="Z" DataSetColumn="Z" />
<Mapping SourceColumn="IdxCella" DataSetColumn="IdxCella" />
<Mapping SourceColumn="IdxPosizione" DataSetColumn="IdxPosizione" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_getUdcDetailFullCode" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFullUdc" GetMethodModifier="Public" GetMethodName="getByFullUdc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFullUdc" UserSourceName="getByFullUdc">
@@ -2569,6 +2570,7 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
<xs:element name="Y" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Y" msprop:Generator_ColumnPropNameInRow="Y" msprop:Generator_ColumnVarNameInTable="columnY" msprop:Generator_ColumnPropNameInTable="YColumn" type="xs:int" minOccurs="0" />
<xs:element name="Z" msdata:ReadOnly="true" msprop:Generator_UserColumnName="Z" msprop:Generator_ColumnPropNameInRow="Z" msprop:Generator_ColumnVarNameInTable="columnZ" msprop:Generator_ColumnPropNameInTable="ZColumn" type="xs:int" minOccurs="0" />
<xs:element name="IdxCella" msdata:ReadOnly="true" msprop:Generator_UserColumnName="IdxCella" msprop:Generator_ColumnVarNameInTable="columnIdxCella" msprop:Generator_ColumnPropNameInRow="IdxCella" msprop:Generator_ColumnPropNameInTable="IdxCellaColumn" type="xs:int" minOccurs="0" />
<xs:element name="IdxPosizione" msprop:Generator_UserColumnName="IdxPosizione" msprop:Generator_ColumnVarNameInTable="columnIdxPosizione" msprop:Generator_ColumnPropNameInRow="IdxPosizione" msprop:Generator_ColumnPropNameInTable="IdxPosizioneColumn" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -2720,7 +2722,7 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodMagLog" msprop:Generator_UserColumnName="CodMagLog" msprop:Generator_ColumnPropNameInRow="CodMagLog" msprop:Generator_ColumnVarNameInTable="columnCodMagLog" msprop:Generator_ColumnPropNameInTable="CodMagLogColumn" type="xs:int" default="0" minOccurs="0" />
<xs:element name="CodMagLog" msprop:Generator_UserColumnName="CodMagLog" msprop:Generator_ColumnPropNameInRow="CodMagLog" msprop:Generator_ColumnVarNameInTable="columnCodMagLog" msprop:Generator_ColumnPropNameInTable="CodMagLogColumn" type="xs:int" default="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -3001,7 +3003,7 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="V_MagazziniLogiciOverview" msprop:Generator_UserTableName="V_MagazziniLogiciOverview" msprop:Generator_RowDeletedName="V_MagazziniLogiciOverviewRowDeleted" msprop:Generator_TableClassName="V_MagazziniLogiciOverviewDataTable" msprop:Generator_RowChangedName="V_MagazziniLogiciOverviewRowChanged" msprop:Generator_RowClassName="V_MagazziniLogiciOverviewRow" msprop:Generator_RowChangingName="V_MagazziniLogiciOverviewRowChanging" msprop:Generator_RowEvArgName="V_MagazziniLogiciOverviewRowChangeEvent" msprop:Generator_RowEvHandlerName="V_MagazziniLogiciOverviewRowChangeEventHandler" msprop:Generator_TablePropName="V_MagazziniLogiciOverview" msprop:Generator_TableVarName="tableV_MagazziniLogiciOverview" msprop:Generator_RowDeletingName="V_MagazziniLogiciOverviewRowDeleting">
<xs:element name="V_MagazziniLogiciOverview" msprop:Generator_UserTableName="V_MagazziniLogiciOverview" msprop:Generator_RowDeletedName="V_MagazziniLogiciOverviewRowDeleted" msprop:Generator_RowChangedName="V_MagazziniLogiciOverviewRowChanged" msprop:Generator_RowClassName="V_MagazziniLogiciOverviewRow" msprop:Generator_RowChangingName="V_MagazziniLogiciOverviewRowChanging" msprop:Generator_RowEvArgName="V_MagazziniLogiciOverviewRowChangeEvent" msprop:Generator_RowEvHandlerName="V_MagazziniLogiciOverviewRowChangeEventHandler" msprop:Generator_TableClassName="V_MagazziniLogiciOverviewDataTable" msprop:Generator_TableVarName="tableV_MagazziniLogiciOverview" msprop:Generator_RowDeletingName="V_MagazziniLogiciOverviewRowDeleting" msprop:Generator_TablePropName="V_MagazziniLogiciOverview">
<xs:complexType>
<xs:sequence>
<xs:element name="CodCS" msprop:Generator_UserColumnName="CodCS" msprop:Generator_ColumnPropNameInRow="CodCS" msprop:Generator_ColumnVarNameInTable="columnCodCS" msprop:Generator_ColumnPropNameInTable="CodCSColumn" minOccurs="0">
@@ -3092,12 +3094,13 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
</xs:unique>
<xs:unique name="V_DettMagPart_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:V_DettMagPart" />
<xs:field xpath="mstns:Esponente" />
<xs:field xpath="mstns:CodMag" />
<xs:field xpath="mstns:CodCS" />
<xs:field xpath="mstns:CodMag" />
<xs:field xpath="mstns:IdxBlocco" />
<xs:field xpath="mstns:Particolare" />
<xs:field xpath="mstns:DescStato" />
<xs:field xpath="mstns:Esponente" />
<xs:field xpath="mstns:CodMagLog" />
</xs:unique>
<xs:unique name="TipoListaPrelievo_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TipoListaPrelievo" />
+1 -1
View File
@@ -4,7 +4,7 @@
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="-10" ViewPortY="523" 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="-10" ViewPortY="719" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoCartellini" ZOrder="21" X="68" Y="319" Height="459" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="294" />
<Shape ID="DesignTable:AnagMag" ZOrder="31" X="1016" Y="417" Height="210" Width="285" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
+1
View File
@@ -160,6 +160,7 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="SqlScripts\GMW_00250.sql" />
<None Include="SqlScripts\GMW_00240.sql" />
<None Include="SqlScripts\GMW_00245.sql" />
<None Include="SqlScripts\GMW_00235.sql" />
+525
View File
@@ -0,0 +1,525 @@
-- update permessi x magazzino logico
-- dichiarazione variabili iniziale
DECLARE @IdxCella AS INT
-- fix mag 84
SET @IdxCella= (SELECT IdxCella FROM Celle c INNER JOIN Blocchi b ON c.IdxBlocco=b.IdxBlocco WHERE CodMag='84')
insert into PosizioneUdcCorrente
select ec.UDC, @IdxCella as idxCella, 'MA' as codCS, GETDATE() as datarif
from ElencoCartellini ec
left outer join PosizioneUdcCorrente puc on ec.UDC= puc.UDC
where puc.IdxCella is null and IdxPosizione=84
-- fix mag 54
SET @IdxCella= (SELECT IdxCella FROM Celle c INNER JOIN Blocchi b ON c.IdxBlocco=b.IdxBlocco WHERE CodMag='54')
insert into PosizioneUdcCorrente
select ec.UDC, @IdxCella as idxCella, 'MA' as codCS, GETDATE() as datarif
from ElencoCartellini ec
left outer join PosizioneUdcCorrente puc on ec.UDC= puc.UDC
where puc.IdxCella is null and IdxPosizione=54
-- fix mag 56
SET @IdxCella= (SELECT IdxCella FROM Celle c INNER JOIN Blocchi b ON c.IdxBlocco=b.IdxBlocco WHERE CodMag='56')
insert into PosizioneUdcCorrente
select ec.UDC, @IdxCella as idxCella, 'MA' as codCS, GETDATE() as datarif
from ElencoCartellini ec
left outer join PosizioneUdcCorrente puc on ec.UDC= puc.UDC
where puc.IdxCella is null and IdxPosizione=56
-- fix mag 80
SET @IdxCella= (SELECT IdxCella FROM Celle c INNER JOIN Blocchi b ON c.IdxBlocco=b.IdxBlocco WHERE CodMag='80')
insert into PosizioneUdcCorrente
select ec.UDC, @IdxCella as idxCella, 'MA' as codCS, GETDATE() as datarif
from ElencoCartellini ec
left outer join PosizioneUdcCorrente puc on ec.UDC= puc.UDC
where puc.IdxCella is null and IdxPosizione=80
-- fix mag 0 --> 80
SET @IdxCella= (SELECT IdxCella FROM Celle c INNER JOIN Blocchi b ON c.IdxBlocco=b.IdxBlocco WHERE CodMag='80')
insert into PosizioneUdcCorrente
select ec.UDC, @IdxCella as idxCella, 'MA' as codCS, GETDATE() as datarif
from ElencoCartellini ec
left outer join PosizioneUdcCorrente puc on ec.UDC= puc.UDC
where puc.IdxCella is null and IdxPosizione=0
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
alter VIEW v_UdcDetail
AS
SELECT dbo.ElencoCartellini.UDC, dbo.ElencoCartellini.RagSociale, dbo.ElencoCartellini.Particolare, dbo.ElencoCartellini.DescParticolare,
dbo.ElencoCartellini.DisegnoGrezzo, dbo.ElencoCartellini.Esponente, dbo.ElencoCartellini.DescImpianto, dbo.ElencoCartellini.DataFus,
dbo.ElencoCartellini.TurnoFus, dbo.ElencoCartellini.CodImballo, dbo.ElencoCartellini.Qta, dbo.AnagStatiProdotto.DescStato, dbo.ElencoCartellini.ModDate,
ISNULL(dbo.Blocchi.CodMag, N'') AS CodMag, ISNULL(dbo.Blocchi.CodBlocco, N'') AS CodBlocco, ISNULL(dbo.Celle.CodCella, N'') AS CodCella,
ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella, ISNULL(dbo.Celle.X, 0) AS X, ISNULL(dbo.Celle.Y, 0) AS Y, ISNULL(dbo.Celle.Z, 0) AS Z,
dbo.ElencoCartellini.IdxPosizione
FROM dbo.AnagStatiProdotto RIGHT OUTER JOIN
dbo.ElencoCartellini ON dbo.AnagStatiProdotto.CodStato = dbo.ElencoCartellini.CodStato AND
dbo.AnagStatiProdotto.CodStato = dbo.ElencoCartellini.CodStato LEFT OUTER JOIN
dbo.Celle INNER JOIN
dbo.PosizioneUdcCorrente ON dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella AND dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella AND
dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella INNER JOIN
dbo.Blocchi ON dbo.Celle.IdxBlocco = dbo.Blocchi.IdxBlocco INNER JOIN
dbo.AnagMag ON dbo.Blocchi.CodMag = dbo.AnagMag.CodMag AND dbo.Blocchi.CodCS = dbo.AnagMag.CodCS AND
dbo.Blocchi.CodMag = dbo.AnagMag.CodMag AND dbo.Blocchi.CodCS = dbo.AnagMag.CodCS AND dbo.Blocchi.CodMag = dbo.AnagMag.CodMag AND
dbo.Blocchi.CodCS = dbo.AnagMag.CodCS ON dbo.ElencoCartellini.UDC = dbo.PosizioneUdcCorrente.UDC
go
exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 7
NumPanes = 1
Configuration = "(V (3))"
End
Begin PaneConfiguration = 8
NumPanes = 3
Configuration = "(H (1[56] 4[18] 2) )"
End
Begin PaneConfiguration = 9
NumPanes = 2
Configuration = "(H (1 [75] 4))"
End
Begin PaneConfiguration = 10
NumPanes = 2
Configuration = "(H (1[66] 2) )"
End
Begin PaneConfiguration = 11
NumPanes = 2
Configuration = "(H (4 [60] 2))"
End
Begin PaneConfiguration = 12
NumPanes = 1
Configuration = "(H (1) )"
End
Begin PaneConfiguration = 13
NumPanes = 1
Configuration = "(V (4))"
End
Begin PaneConfiguration = 14
NumPanes = 1
Configuration = "(V (2))"
End
ActivePaneConfig = 0
End
Begin DiagramPane =
Begin Origin =
Top = 0
Left = 0
End
Begin Tables =
Begin Table = "AnagStatiProdotto"
Begin Extent =
Top = 6
Left = 38
Bottom = 101
Right = 208
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "ElencoCartellini"
Begin Extent =
Top = 6
Left = 246
Bottom = 309
Right = 416
End
DisplayFlags = 280
TopColumn = 11
End
Begin Table = "Celle"
Begin Extent =
Top = 27
Left = 818
Bottom = 156
Right = 988
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "PosizioneUdcCorrente"
Begin Extent =
Top = 71
Left = 548
Bottom = 200
Right = 718
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "Blocchi"
Begin Extent =
Top = 70
Left = 1080
Bottom = 199
Right = 1250
End
DisplayFlags = 280
TopColumn = 0
End
Begin Table = "AnagMag"
Begin Extent =
Top = 188
Left = 799
Bottom = 334
Right = 969
End
DisplayFlags = 280
TopColumn = 0
End
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
Begin ColumnWidths = 21
Width = 284
Width = 15', 'SCHEMA', 'dbo', 'VIEW', 'v_UdcDetail'
go
exec sp_updateextendedproperty 'MS_DiagramPane2', '00
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
End
End
Begin CriteriaPane =
Begin ColumnWidths = 11
Column = 1440
Alias = 900
Table = 1170
Output = 720
Append = 1400
NewValue = 1170
SortType = 1350
SortOrder = 1410
GroupBy = 1350
Filter = 1350
Or = 1350
Or = 1350
Or = 1350
End
End
End
', 'SCHEMA', 'dbo', 'VIEW', 'v_UdcDetail'
go
commit
go
--
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_getUdcDetailFullCode
*
* ottiene l'elenco degli UDC con i dati significativi partendo da un codice UDC COMPLETO
*
* Steamware, S.E.L.
* mod: 2010.05.24
*
****************************************/
alter PROCEDURE stp_getUdcDetailFullCode
(
@UDC VARCHAR(50),
@CodCS VARCHAR(2)
)
AS
SELECT ElencoCartellini.UDC, ElencoCartellini.RagSociale, ElencoCartellini.Particolare, ElencoCartellini.DescParticolare, ElencoCartellini.DisegnoGrezzo,
ElencoCartellini.Esponente, ElencoCartellini.DescImpianto, ElencoCartellini.DataFus, ElencoCartellini.TurnoFus, ElencoCartellini.CodImballo,
ElencoCartellini.Qta, AnagStatiProdotto.DescStato, ElencoCartellini.ModDate, ISNULL(Blocchi.CodMag, N'') AS CodMag,
ISNULL(Blocchi.CodBlocco, N'') AS CodBlocco, ISNULL(Celle.CodCella, N'') AS CodCella, ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella,
ISNULL(Celle.X, 0) AS X, ISNULL(Celle.Y, 0) AS Y, ISNULL(Celle.Z, 0) AS Z, ElencoCartellini.IdxPosizione
FROM AnagStatiProdotto RIGHT OUTER JOIN
ElencoCartellini ON AnagStatiProdotto.CodStato = ElencoCartellini.CodStato AND AnagStatiProdotto.CodStato = ElencoCartellini.CodStato
LEFT OUTER JOIN Celle INNER JOIN PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella
AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella
INNER JOIN Blocchi ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN AnagMag ON Blocchi.CodMag = AnagMag.CodMag
AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag
AND Blocchi.CodCS = AnagMag.CodCS ON ElencoCartellini.UDC = PosizioneUdcCorrente.UDC
WHERE (ElencoCartellini.UDC = @UDC) AND (ElencoCartellini.CodCS = @CodCS)
RETURN
go
commit
go
--
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_getUdcDetailFullCode
*
* ottiene l'elenco degli UDC con i dati significativi partendo da un valore da cercare come LIKE in
* - UDC
* - Particolare
*
* Steamware, S.E.L.
* mod: 2010.05.24
*
****************************************/
alter PROCEDURE stp_getUdcDetailLikeSearch
(
@searchVal VARCHAR(50),
@CodCS VARCHAR(2)
)
AS
SELECT ElencoCartellini.UDC, ElencoCartellini.RagSociale, ElencoCartellini.Particolare, ElencoCartellini.DescParticolare,
ElencoCartellini.DisegnoGrezzo, ElencoCartellini.Esponente, ElencoCartellini.DescImpianto, ElencoCartellini.DataFus,
ElencoCartellini.TurnoFus, ElencoCartellini.CodImballo, ElencoCartellini.Qta, AnagStatiProdotto.DescStato, ElencoCartellini.ModDate,
ISNULL(Blocchi.CodMag, N'') AS CodMag, ISNULL(Blocchi.CodBlocco, N'') AS CodBlocco, ISNULL(Celle.CodCella, N'') AS CodCella,
ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella, ISNULL(Celle.X, 0) AS X, ISNULL(Celle.Y, 0) AS Y, ISNULL(Celle.Z, 0) AS Z, ElencoCartellini.IdxPosizione
FROM AnagStatiProdotto RIGHT OUTER JOIN ElencoCartellini
ON AnagStatiProdotto.CodStato = ElencoCartellini.CodStato AND AnagStatiProdotto.CodStato = ElencoCartellini.CodStato
LEFT OUTER JOIN Celle INNER JOIN PosizioneUdcCorrente
ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND
Celle.IdxCella = PosizioneUdcCorrente.IdxCella INNER JOIN
Blocchi ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN
AnagMag ON Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND
Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS ON
ElencoCartellini.UDC = PosizioneUdcCorrente.UDC
WHERE (ElencoCartellini.CodCS = @CodCS) AND
((ElencoCartellini.UDC like '%'+ @searchVal+'%') OR (ElencoCartellini.Particolare like '%'+ @searchVal+'%') OR
(ElencoCartellini.RagSociale like '%'+ @searchVal+'%'))
RETURN
go
commit
go
--
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_UdcDetailGetByIdxBlocco
*
* ottiene l'elenco degli UDC con dettaglio posizioni OCCUPATE associati ad un dato blocco di magazzino
*
* Steamware, S.E.L.
* mod: 2010.07.19
*
****************************************/
alter PROCEDURE stp_UdcDetailGetByIdxBlocco
(
@IdxBlocco INT
)
AS
SELECT ElencoCartellini.UDC, ElencoCartellini.RagSociale, ElencoCartellini.Particolare, ElencoCartellini.DescParticolare,
ElencoCartellini.DisegnoGrezzo, ElencoCartellini.Esponente, ElencoCartellini.DescImpianto, ElencoCartellini.DataFus,
ElencoCartellini.TurnoFus, ElencoCartellini.CodImballo, ElencoCartellini.Qta, AnagStatiProdotto.DescStato,
ElencoCartellini.ModDate, ISNULL(Blocchi.CodMag, N'') AS CodMag, ISNULL(Blocchi.CodBlocco, N'') AS CodBlocco,
ISNULL(Celle.CodCella, N'') AS CodCella, ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella,
ISNULL(Celle.X, 0) AS X, ISNULL(Celle.Y, 0) AS Y, ISNULL(Celle.Z, 0) AS Z, ElencoCartellini.IdxPosizione
FROM Celle INNER JOIN
PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND
Celle.IdxCella = PosizioneUdcCorrente.IdxCella INNER JOIN
Blocchi ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN
AnagMag ON Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND
Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS INNER JOIN
ElencoCartellini ON PosizioneUdcCorrente.UDC = ElencoCartellini.UDC LEFT OUTER JOIN
AnagStatiProdotto ON ElencoCartellini.CodStato = AnagStatiProdotto.CodStato AND ElencoCartellini.CodStato = AnagStatiProdotto.CodStato
WHERE (Celle.IdxBlocco = @IdxBlocco)
RETURN
go
commit
go
--
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_UdcDetailGetByIdxBloccoCodMagLog
*
* ottiene l'elenco degli UDC con dettaglio posizioni OCCUPATE associati ad un dato blocco di magazzino ed ad un dato STATO LOGICO
*
* Steamware, S.E.L.
* mod: 2010.09.15
*
****************************************/
alter PROCEDURE stp_UdcDetailGetByIdxBloccoCodMagLog
(
@IdxBlocco INT,
@CodMagLog INT
)
AS
SELECT ElencoCartellini.UDC, ElencoCartellini.RagSociale, ElencoCartellini.Particolare, ElencoCartellini.DescParticolare,
ElencoCartellini.DisegnoGrezzo, ElencoCartellini.Esponente, ElencoCartellini.DescImpianto, ElencoCartellini.DataFus,
ElencoCartellini.TurnoFus, ElencoCartellini.CodImballo, ElencoCartellini.Qta, AnagStatiProdotto.DescStato,
ElencoCartellini.ModDate, ISNULL(Blocchi.CodMag, N'') AS CodMag, ISNULL(Blocchi.CodBlocco, N'') AS CodBlocco,
ISNULL(Celle.CodCella, N'') AS CodCella, ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella,
ISNULL(Celle.X, 0) AS X, ISNULL(Celle.Y, 0) AS Y, ISNULL(Celle.Z, 0) AS Z, ElencoCartellini.IdxPosizione
FROM Celle INNER JOIN
PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND
Celle.IdxCella = PosizioneUdcCorrente.IdxCella INNER JOIN
Blocchi ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN
AnagMag ON Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND
Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS INNER JOIN
ElencoCartellini ON PosizioneUdcCorrente.UDC = ElencoCartellini.UDC LEFT OUTER JOIN
AnagStatiProdotto ON ElencoCartellini.CodStato = AnagStatiProdotto.CodStato AND ElencoCartellini.CodStato = AnagStatiProdotto.CodStato
WHERE (Celle.IdxBlocco = @IdxBlocco) AND ElencoCartellini.IdxPosizione = @CodMagLog
RETURN
go
commit
go
--
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_UdcDetailGetByIdxCella
*
* ottiene l'elenco degli UDC con dettaglio per una data cella
*
* Steamware, S.E.L.
* mod: 2010.07.20
*
****************************************/
alter PROCEDURE stp_UdcDetailGetByIdxCella
(
@IdxCella INT
)
AS
SELECT ElencoCartellini.UDC, ElencoCartellini.RagSociale, ElencoCartellini.Particolare, ElencoCartellini.DescParticolare,
ElencoCartellini.DisegnoGrezzo, ElencoCartellini.Esponente, ElencoCartellini.DescImpianto, ElencoCartellini.DataFus,
ElencoCartellini.TurnoFus, ElencoCartellini.CodImballo, ElencoCartellini.Qta, AnagStatiProdotto.DescStato,
ElencoCartellini.ModDate, ISNULL(Blocchi.CodMag, N'') AS CodMag, ISNULL(Blocchi.CodBlocco, N'') AS CodBlocco,
ISNULL(Celle.CodCella, N'') AS CodCella, ISNULL(dbo.Celle.IdxCella, 0) AS IdxCella,
ISNULL(Celle.X, 0) AS X, ISNULL(Celle.Y, 0) AS Y, ISNULL(Celle.Z, 0) AS Z, ElencoCartellini.IdxPosizione
FROM Celle INNER JOIN
PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND Celle.IdxCella = PosizioneUdcCorrente.IdxCella AND
Celle.IdxCella = PosizioneUdcCorrente.IdxCella INNER JOIN
Blocchi ON Celle.IdxBlocco = Blocchi.IdxBlocco INNER JOIN
AnagMag ON Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND
Blocchi.CodCS = AnagMag.CodCS AND Blocchi.CodMag = AnagMag.CodMag AND Blocchi.CodCS = AnagMag.CodCS INNER JOIN
ElencoCartellini ON PosizioneUdcCorrente.UDC = ElencoCartellini.UDC LEFT OUTER JOIN
AnagStatiProdotto ON ElencoCartellini.CodStato = AnagStatiProdotto.CodStato AND ElencoCartellini.CodStato = AnagStatiProdotto.CodStato
WHERE (Celle.IdxCella = @IdxCella)
RETURN
go
commit
go
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(250, GETDATE())
GO
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5 -5
View File
@@ -349,14 +349,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW"
"ProductCode" = "8:{AB7F541C-843E-4CB6-9814-2317D35C513F}"
"PackageCode" = "8:{62B837CA-F1D7-404A-AB5F-EE130F16C2F3}"
"ProductCode" = "8:{7ABA46F5-EAE0-431A-8867-406C56FC5A5C}"
"PackageCode" = "8:{EAF2F075-0F6E-4B0B-A6DC-5FD64FB46D11}"
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.245"
"ProductVersion" = "8:1.0.250"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:+39-035460560"
"ARPHELPLINK" = "8:http://www.steamware.net"
@@ -829,7 +829,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4FD0E5B75A7F47B79080EC0983BE6583"
{
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
"SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
@@ -857,7 +857,7 @@
}
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_8BDD7AA9D46A46EC80880F83F13C902E"
{
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Release\\IISConsoleVB.exe"
"SourcePath" = "8:..\\..\\IISCustomActionVB\\IISConsoleVB\\obj\\Debug\\IISConsoleVB.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_5606017201AE45B480A8ABD8B8D68264"
Binary file not shown.