Completato editing dettaglio UDC

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@157 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-07-23 14:02:02 +00:00
parent 48fc00ee30
commit 67ae4a9fde
31 changed files with 693 additions and 587 deletions
BIN
View File
Binary file not shown.
+18
View File
@@ -38,5 +38,23 @@ namespace GMW.WS
return suggerimenti.ToArray();
}
[System.Web.Services.WebMethod]
public string[] elencoCelle(string prefixText, int count)
{
// inizializzo risposta
List<string> suggerimenti = new List<string>();
// proseguo SOLO SE min "MinCharAutocomplete" char...
if (count > memLayer.ML.confReadInt("MinCharAutocomplete"))
{
// elenco candidati
DS_magazzino.CelleDataTable tabCelle = MagClass.magazzino.taCelle.getByCodCellaLike(prefixText, memLayer.ML.confReadString("CodCS"));
// aggiungo ogni riga...
foreach (DS_magazzino.CelleRow riga in tabCelle)
{
suggerimenti.Add(riga.CodCella);
}
}
return suggerimenti.ToArray();
}
}
}
+111 -51
View File
@@ -1,53 +1,113 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_UdcCella.ascx.cs" Inherits="GMW.WebUserControls.mod_UdcCella" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="UDC" DataSourceID="ods"
onpageindexchanged="grView_PageIndexChanged">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="true" />
</HeaderTemplate>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_UdcCella.ascx.cs"
Inherits="GMW.WebUserControls.mod_UdcCella" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<table>
<tr>
<td>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnRowUpdated="grView_RowUpdated" OnSorted="grView_Sorted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="true" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
<ItemTemplate>
<asp:Label ID="lblUDC" runat="server" Text='<%# Eval("UDC") %>' />
</ItemTemplate>
</asp:TemplateField>
<%--<asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
<asp:Label ID="lblRagSociale" runat="server" Text='<%# Eval("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
<ItemTemplate>
<asp:Label ID="lblUDC" runat="server" Text='<%# Bind("UDC") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
<ItemTemplate>
<asp:Label ID="lblRagSociale" runat="server" Text='<%# Bind("RagSociale") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
<ItemTemplate>
<asp:Label ID="lblParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
OnDataBinding="ods_DataBinding">
<SelectParameters>
<asp:SessionParameter Name="IdxCella" Type="Int32" SessionField="IdxCellaMag" DefaultValue="0" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
<ItemTemplate>
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qta" SortExpression="Qta" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="lblQta" runat="server" Text='<%# Eval("Qta","{0:#}") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getUdcDetailByIdxCella" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
OnDataBinding="ods_DataBinding">
<SelectParameters>
<asp:SessionParameter Name="IdxCella" Type="Int32" SessionField="IdxCellaMag" DefaultValue="0" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
</td>
<td valign="top" align="center">
<asp:Panel runat="server" ID="pnlQta">
<table>
<tr>
<td>
<asp:Label ID="lblQta" runat="server" />
</td>
</tr>
<tr>
<td>
<asp:TextBox runat="server" ID="txtQta" />
</td>
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnQta" OnClick="btnQta_Click" />
<asp:ConfirmButtonExtender ID="cbeQta" runat="server" TargetControlID="btnQta" />
</td>
</tr>
</table>
</asp:Panel>
</td>
<td valign="top" align="center">
<asp:Panel runat="server" ID="pnlSposta">
<table>
<tr>
<td>
<asp:Label runat="server" ID="lblNewPos" />
</td>
</tr>
<tr>
<td>
<asp:TextBox runat="server" ID="txtNewCella" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtNewCella"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoCelle" />
</td>
</tr>
<tr>
<td>
<asp:Button runat="server" ID="btnSposta" OnClick="btnSposta_Click1" />
<asp:ConfirmButtonExtender ID="cbeSposta" runat="server" TargetControlID="btnSposta">
</asp:ConfirmButtonExtender>
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
</table>
+142 -55
View File
@@ -18,14 +18,7 @@ namespace GMW.WebUserControls
protected string _tabCache;
protected bool _showNewBtn = false;
/// <summary>
/// aggiorna controlli datagrid e numero righe in pagina
/// </summary>
protected override void aggiornaControlliDataGL()
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridShort;
}
/// <summary>
/// traduce gli header delle colonne
/// </summary>
@@ -55,30 +48,7 @@ namespace GMW.WebUserControls
lblNumRec.Text = "";
}
}
/// <summary>
/// reset della selezione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnReset_Click(object sender, EventArgs e)
{
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
@@ -130,7 +100,14 @@ namespace GMW.WebUserControls
#region area codice variabile
/// <summary>
/// aggiorna controlli datagrid e numero righe in pagina
/// </summary>
protected override void aggiornaControlliDataGL()
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridShort;
}
/// <summary>
/// carico le tabelle
/// </summary>
@@ -154,34 +131,32 @@ namespace GMW.WebUserControls
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_idxGridView = "UDC";
if (!Page.IsPostBack)
{
traduzione();
//pnlQta.Visible = false;
//pnlSposta.Visible = false;
}
_idxGridView = "UDC2edit";
}
/// <summary>
/// traduzioni
/// </summary>
protected void traduzione()
{
// sistemo labels e buttons
lblQta.Text = traduci("lblQta");
lblNewPos.Text = traduci("lblNewPos");
btnQta.Text = traduci("btnQta");
btnSposta.Text = traduci("btnSposta");
cbeQta.ConfirmText = traduci("confermaRettificaQta");
cbeSposta.ConfirmText = traduci("confermaSpostamentoUDC");
}
/// <summary>
/// verifica se attivo filtro company e imposta ods di conseguenza...
/// </summary>
private void checkFixOds()
{
// controllo il tipo di ricerca e setto ods...
if (memLayer.ML.BoolSessionObj("SearchIsLikeBased"))
{
// svuoto select parameters
ods.SelectParameters.Clear();
// imposto i parametri...
ods.SelectParameters.Add("searchVal", DbType.String, memLayer.ML.StringSessionObj("FullSearchValue"));
ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS"));
// metto nuovo metodo select
ods.SelectMethod = "getByLikeSearch";
}
else
{
// svuoto select parameters
ods.SelectParameters.Clear();
// imposto i parametri...
ods.SelectParameters.Add("UDC", DbType.String, memLayer.ML.StringSessionObj("FullSearchValue"));
ods.SelectParameters.Add("CodCS", DbType.String, memLayer.ML.StringSessionObj("CodCS"));
// metto nuovo metodo select
ods.SelectMethod = "getByFullUdc";
}
}
/// <summary>
/// aggiorno ods al binding..
@@ -199,7 +174,119 @@ namespace GMW.WebUserControls
// fix dell'ODS
checkFixOds();
}
protected void grView_Sorted(object sender, EventArgs e)
{
// fix dell'ODS
checkFixOds();
}
protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
// fix dell'ODS
checkFixOds();
}
/// <summary>
/// chiama procedura x spostamento tra celle di un UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSposta_Click1(object sender, EventArgs e)
{
// ricavo il valore dell'UDC cliccato...
string UDC = memLayer.ML.StringSessionObj(string.Format("{0}_sel", _idxGridView));
int IdxCellaFrom = 0;
try
{
IdxCellaFrom = memLayer.ML.IntSessionObj("IdxCellaMag");
}
catch
{ }
int IdxCellaTo = 0;
try
{
IdxCellaTo = MagClass.magazzino.taCelle.getByCodCella(txtNewCella.Text)[0].IdxCella;
}
catch
{ }
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());
}
}
/// <summary>
/// aggiorna la qta pezzi dell'UDC indicato
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnQta_Click(object sender, EventArgs e)
{
string UDC = memLayer.ML.StringSessionObj(string.Format("{0}_sel", _idxGridView));
decimal qta = 0;
try
{
qta = Convert.ToDecimal(txtQta.Text);
}
catch
{ }
if (qta > 0)
{
MagClass.magazzino.rettificaQtaUDC(UDC, qta);
}
azzeraPostUpdate();
}
/// <summary>
/// reset della selezione
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnReset_Click(object sender, EventArgs e)
{
azzeraPostUpdate();
}
private void azzeraPostUpdate()
{
grView.DataBind();
resetSelezione();
txtNewCella.Text = "";
txtQta.Text = "";
doShowPanels(false);
}
/// <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);
// fix panels
doShowPanels(true);
// sollevo evento nuovo valore...
if (eh_selValore != null)
{
eh_selValore(this, new EventArgs());
}
}
/// <summary>
/// determina visibilità panels correzione valori
/// </summary>
/// <param name="p"></param>
private void doShowPanels(bool p)
{
pnlQta.Visible = p;
pnlSposta.Visible = p;
}
#endregion
}
}
+99
View File
@@ -48,5 +48,104 @@ namespace GMW.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblWarning;
/// <summary>
/// pnlQta 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.Panel pnlQta;
/// <summary>
/// lblQta 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 lblQta;
/// <summary>
/// txtQta 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.TextBox txtQta;
/// <summary>
/// btnQta 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.Button btnQta;
/// <summary>
/// cbeQta control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeQta;
/// <summary>
/// pnlSposta 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.Panel pnlSposta;
/// <summary>
/// lblNewPos 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 lblNewPos;
/// <summary>
/// txtNewCella 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.TextBox txtNewCella;
/// <summary>
/// aceParticolare control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare;
/// <summary>
/// btnSposta 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.Button btnSposta;
/// <summary>
/// cbeSposta control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeSposta;
}
}
@@ -52,12 +52,14 @@
</td>
</tr>
<tr>
<td valign="top">
<uc1:mod_paretoUdcBlocco ID="mod_paretoUdcBlocco1" runat="server" />
</td>
<td valign="top">
<div style="font-size: 7pt;">
<uc3:mod_paretoPartByFullSpec ID="mod_paretoPartByFullSpec1" runat="server" />
<td colspan="2" valign="top">
<div style="float: left;">
<uc1:mod_paretoUdcBlocco ID="mod_paretoUdcBlocco1" runat="server" />
</div>
<div style="font-size: 7pt; float: left;">
<asp:Panel runat="server" ID="pnlDetail" CssClass="pnlDetail">
<uc3:mod_paretoPartByFullSpec ID="mod_paretoPartByFullSpec1" runat="server" />
</asp:Panel>
</div>
</td>
</tr>
@@ -43,6 +43,7 @@ namespace GMW.WebUserControls
mod_paretoPartByFullSpec1.eh_resetSelezione += new EventHandler(mod_paretoPartByFullSpec1_eh_resetSelezione);
mod_dettCelleBlocco1.eh_selValore += new EventHandler(mod_dettCelleBlocco1_eh_selValore);
mod_operazioniUdc1.eh_updated += new EventHandler(mod_operazioniUdc1_eh_updated);
mod_operazioniUdc1.eh_hidden += new EventHandler(mod_operazioniUdc1_eh_hidden);
if (!Page.IsPostBack)
{
lnkReturn.Text = traduci("TornaStatoMag");
@@ -61,12 +62,23 @@ namespace GMW.WebUserControls
{
memLayer.ML.setSessionVal("CodMag_sel", mod_filtroMag.valore, false);
}
mod_paretoPartByFullSpec1.Visible = false;
pnlDetail.Visible = false;
mod_operazioniUdc1.Visible = false;
updateControlli();
}
}
/// <summary>
/// nascondo dettagli UDC
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_operazioniUdc1_eh_hidden(object sender, EventArgs e)
{
mod_operazioniUdc1.Visible = false;
mod_dettCelleBlocco1.doUpdate();
updateControlli();
}
/// <summary>
/// eseguito all'evento update modulo operazioni UDC
/// </summary>
/// <param name="sender"></param>
@@ -107,7 +119,7 @@ namespace GMW.WebUserControls
mod_dettCelleBlocco1.reset();
mod_dettCelleBlocco1.doUpdate();
mod_paretoPartByFullSpec1.resetSelezione();
mod_paretoPartByFullSpec1.Visible = false;
pnlDetail.Visible = false;
mod_operazioniUdc1.Visible = false;
}
/// <summary>
@@ -120,7 +132,7 @@ namespace GMW.WebUserControls
// aggiorno la visualizzazione del magazzino!
mod_dettCelleBlocco1.doUpdate();
mod_paretoPartByFullSpec1.resetSelezione();
mod_paretoPartByFullSpec1.Visible = true;
pnlDetail.Visible = true;
}
void mod_filtroBlock_eh_selValore(object sender, EventArgs e)
{
@@ -134,6 +146,7 @@ namespace GMW.WebUserControls
memLayer.ML.emptySessionVal("IdxBlocco_sel");
}
// chiamo procedura che aggiorna ods principale
mod_dettCelleBlocco1.doUpdate();
updateControlli();
}
@@ -85,6 +85,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::GMW.WebUserControls.mod_paretoUdcBlocco mod_paretoUdcBlocco1;
/// <summary>
/// pnlDetail 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.Panel pnlDetail;
/// <summary>
/// mod_paretoPartByFullSpec1 control.
/// </summary>
@@ -573,7 +573,6 @@ namespace GMW.WebUserControls
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
}
string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato... !!!FARE!!!
// verifico il tipo di richiesta (up/down level, clona o update normale
switch (_comando)
{
case "attivaListaPrelievo":
@@ -26,6 +26,11 @@
<asp:Button ID="btnDisponibile" runat="server" Text="Disponibile" Width="100px" OnClick="btnDisponibile_Click" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:Button ID="btnClose" runat="server" Text="reset" Width="160px" OnClick="btnClose_Click" />
</td>
</tr>
</table>
</td>
<td valign="top">
@@ -26,15 +26,28 @@ namespace GMW.WebUserControls
{
traduciObj();
}
mod_UdcCella1.eh_nuovoValore += new EventHandler(mod_UdcCella1_eh_nuovoValore);
disegnaControlli();
}
void mod_UdcCella1_eh_nuovoValore(object sender, EventArgs e)
{
if (eh_updated != null)
{
eh_updated(this, new EventArgs());
}
}
#region eventi esposti
/// <summary>
/// Evento al cambio di quantità UDC
/// </summary>
public event EventHandler eh_updated;
/// <summary>
/// crea evento x nascondere il controllo
/// </summary>
public event EventHandler eh_hidden;
#endregion
@@ -46,7 +59,7 @@ namespace GMW.WebUserControls
lodaSessionData();
lblCella.Text = string.Format("{0}: <b>{1}</b>", traduci("CodCella"), CodCella);
setupButtons(idxCella, CodCella);
resetUdcDetail();
//resetUdcDetail(); // !!! FARE controllo se serva davvero..
}
/// <summary>
/// ridisegna dettagli UDC x cella selezionata
@@ -74,6 +87,7 @@ namespace GMW.WebUserControls
btnSblocca.Text = traduci("btnSbloccaCella");
btnCompleta.Text = traduci("btnCompletaCella");
btnDisponibile.Text = traduci("btnDisponibileCella");
btnClose.Text = traduci("btnClose");
}
/// <summary>
/// determina abilitazioni bottoni x cella
@@ -120,82 +134,6 @@ namespace GMW.WebUserControls
return user_std.UtSn.Traduci(lemma.ToString());
}
protected void btnSposta_Click(object sender, EventArgs e)
{
#if false
/*
* fare così:
* - salvare in sessione questo valore come FROM come "UdcReqMagFrom"
* - cambiare pulsante da sposta a conferma
* - attendere nuovo click, e cercare se c'è un FROM
* - al nuovo click sullo stesso chiedere conferma dello spostamento tra le 2 posizioni (clickButtonextender ajax come delete)
* - fare spostamento con codice di esempio commentato in #if
* - svuotare sessione from
*
* */
// ricavo il valore dell'UDC cliccato...
string UDC = memLayer.ML.StringSessionObj("UdcReqMag");
// .. e lo setto come valore FROM oltre che valore cliccato
memLayer.ML.setSessionVal("UdcReqMagFrom", UDC);
int IdxCellaFrom = 0;
try
{
IdxCellaFrom = MagClass.magazzino.taCelle.getByCodCella(memLayer.ML.StringSessionObj("UdcReqMagFrom"))[0].IdxCella;
}
catch
{ }
int IdxCellaTo = 0;
try
{
IdxCellaTo = MagClass.magazzino.taCelle.getByCodCella(memLayer.ML.StringSessionObj("UdcReqMag"))[0].IdxCella;
}
catch
{ }
#endif
#if false
if (IdxCellaFrom > 0 && IdxCellaTo > 0)
{
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, IdxCellaFrom, IdxCellaTo);
}
#endif
}
protected void btnQty_Click(object sender, EventArgs e)
{
#if false
/*
* fare così:
* - controlalre se qty > 0
* - chiedere conferma (clickButtonextender ajax come delete)
* - chiamare metodo in MagClass x cambio qty, secondo esempio seguente
* - chiamare evento x update visualizzaizone (il metodo va...)
*/
string CodSoggetto = "O0000000000000069"; // operatore a caso, POI sarà da cercare da operatore correntemente loggato...
string UDC = memLayer.ML.StringSessionObj("UdcReqMag");
decimal qta = 0;
try
{
qta = Convert.ToDecimal(txtNewQty.Text);
}
catch
{ }
if (qta > 0)
{
MagClass.magazzino.rettificaQtaUDC(CodSoggetto, UDC, qta);
}
// mettere evento da "beccare fuori" x fare ridisegno!!!!
if (eh_cambioQty != null)
{
eh_cambioQty(this, new EventArgs());
}
#endif
}
#region metodi update cella
@@ -251,8 +189,24 @@ namespace GMW.WebUserControls
eh_updated(this, new EventArgs());
}
}
/// <summary>
/// resetta e chiude...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnClose_Click(object sender, EventArgs e)
{
// elimina da session...
memLayer.ML.emptySessionVal("IdxCellaMag");
resetUdcDetail();
if (eh_hidden != null)
{
eh_hidden(this, new EventArgs());
}
}
#endregion
}
}
@@ -58,6 +58,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnDisponibile;
/// <summary>
/// btnClose 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.Button btnClose;
/// <summary>
/// mod_UdcCella1 control.
/// </summary>
+7 -2
View File
@@ -35,6 +35,11 @@
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="#" SortExpression="CodMag">
<ItemTemplate>
<asp:Label ID="lblCodMag" runat="server" Text='<%# Eval("CodMag") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescMag" SortExpression="DescMag">
<ItemTemplate>
<asp:Label ID="lblDescMag" runat="server" Text='<%# Eval("DescMag") %>' />
@@ -47,7 +52,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleTotAtt" SortExpression="TotCelle">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>' resolution="8" />
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>' resolution="5" />
<div class="didascalia">
<asp:Label ID="lblTotCelle" runat="server" Text='<%# Eval("TotCelle") %>' ToolTip='<%# traduci("TotCelle") %>' />
/
@@ -57,7 +62,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleLibereOccupate" SortExpression="CelleLibere">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>' resolution="8" />
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>' resolution="5" />
<div class="didascalia">
<asp:Label ID="lblCelleOccupate" runat="server" Text='<%# Eval("CelleOccupate") %>'
ToolTip='<%# traduci("CelleOccupate") %>' />
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -133
View File
@@ -30,10 +30,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="AjaxControlToolkit, Version=1.0.10618.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Library\AjaxControlToolkit1016\SampleWebSite\Bin\AjaxControlToolkit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Core">
@@ -57,142 +53,19 @@
<Reference Include="System.Web.Mobile" />
</ItemGroup>
<ItemGroup>
<Content Include="Default.aspx" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="WebUserControls\mod_barcode.ascx.cs">
<DependentUpon>mod_barcode.ascx</DependentUpon>
<Compile Include="Default.aspx.cs">
<SubType>ASPXCodeBehind</SubType>
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_barcode.ascx.designer.cs">
<DependentUpon>mod_barcode.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_changeUser.ascx.cs">
<DependentUpon>mod_changeUser.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_changeUser.ascx.designer.cs">
<DependentUpon>mod_changeUser.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_home.ascx.cs">
<DependentUpon>mod_home.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_home.ascx.designer.cs">
<DependentUpon>mod_home.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_listePrelievo.ascx.cs">
<DependentUpon>mod_listePrelievo.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_listePrelievo.ascx.designer.cs">
<DependentUpon>mod_listePrelievo.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_login.ascx.cs">
<DependentUpon>mod_login.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_login.ascx.designer.cs">
<DependentUpon>mod_login.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_search.ascx.cs">
<DependentUpon>mod_search.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_search.ascx.designer.cs">
<DependentUpon>mod_search.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_userBar.ascx.cs">
<DependentUpon>mod_userBar.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_userBar.ascx.designer.cs">
<DependentUpon>mod_userBar.ascx</DependentUpon>
</Compile>
<Compile Include="WS\AutoCompletamento.asmx.cs">
<DependentUpon>AutoCompletamento.asmx</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="Barcode.aspx.cs">
<DependentUpon>Barcode.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Barcode.aspx.designer.cs">
<DependentUpon>Barcode.aspx</DependentUpon>
</Compile>
<Compile Include="ChangeUser.aspx.cs">
<DependentUpon>ChangeUser.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ChangeUser.aspx.designer.cs">
<DependentUpon>ChangeUser.aspx</DependentUpon>
</Compile>
<Compile Include="Home.aspx.cs">
<DependentUpon>Home.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Home.aspx.designer.cs">
<DependentUpon>Home.aspx</DependentUpon>
</Compile>
<Compile Include="ListePrelievo.aspx.cs">
<DependentUpon>ListePrelievo.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ListePrelievo.aspx.designer.cs">
<DependentUpon>ListePrelievo.aspx</DependentUpon>
</Compile>
<Compile Include="Login.aspx.cs">
<DependentUpon>Login.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Login.aspx.designer.cs">
<DependentUpon>Login.aspx</DependentUpon>
</Compile>
<Compile Include="Search.aspx.cs">
<DependentUpon>Search.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="Search.aspx.designer.cs">
<DependentUpon>Search.aspx</DependentUpon>
</Compile>
<Compile Include="WebMasterPages\Compact.Master.cs">
<DependentUpon>Compact.Master</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebMasterPages\Compact.Master.designer.cs">
<DependentUpon>Compact.Master</DependentUpon>
<Compile Include="Default.aspx.designer.cs">
<DependentUpon>Default.aspx</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="WebUserControls\mod_barcode.ascx" />
<Content Include="WebUserControls\mod_changeUser.ascx" />
<Content Include="WebUserControls\mod_home.ascx" />
<Content Include="WebUserControls\mod_listePrelievo.ascx" />
<Content Include="WebUserControls\mod_login.ascx" />
<Content Include="WebUserControls\mod_search.ascx" />
<Content Include="WebUserControls\mod_userBar.ascx" />
<Content Include="WS\AutoCompletamento.asmx" />
<Content Include="Barcode.aspx" />
<Content Include="ChangeUser.aspx" />
<Content Include="Home.aspx" />
<Content Include="ListePrelievo.aspx" />
<Content Include="Login.aspx" />
<Content Include="images\logo_sw.png" />
<Content Include="Search.aspx" />
<Content Include="Style.css" />
<Content Include="WebMasterPages\Compact.Master" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\SteamWare\SteamWare.csproj">
<Project>{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}</Project>
<Name>SteamWare</Name>
</ProjectReference>
<ProjectReference Include="..\GMW_data\GMW_data.csproj">
<Project>{47143721-A018-4BDA-B544-EC3E10BC87A2}</Project>
<Name>GMW_data</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>
@@ -211,7 +84,7 @@
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>50077</DevelopmentServerPort>
<DevelopmentServerPort>63528</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
+4 -3
View File
@@ -1,10 +1,11 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" xmlns="">
<WebProjectProperties>
<StartPageUrl>Login.aspx</StartPageUrl>
<StartAction>SpecificPage</StartAction>
<StartPageUrl>
</StartPageUrl>
<StartAction>CurrentPage</StartAction>
<AspNetDebugging>True</AspNetDebugging>
<NativeDebugging>False</NativeDebugging>
<SQLDebugging>False</SQLDebugging>
+121 -172
View File
@@ -1,176 +1,125 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="false">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<appSettings>
<add key="CodModulo" value="GMW" />
<add key="_titoloPagina" value="GMW - Fonderie Mazzucconi S.p.A, portale Gestione Magazzino Web" />
<add key="titleApp" value="GMW_titleApp" />
<add key="welcomeApp" value="GMW_welcomeApp" />
<add key="appName" value="GMW" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="120" />
<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" />
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
<add key="defaultApp" value="GMW_Appl" />
<add key="defaultTitle" value="GMW_ShortWelcome" />
<add key="defaultBody" value="GMW_LongWelcome" />
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<add key="intUpdatePagina_ms" value="120000" />
<add key="_righeDataGrid" value="30" />
<add key="_righeDataGridAnagr" value="30" />
<add key="_righeDataGridLong" value="40" />
<add key="_righeDataGridMed" value="20" />
<add key="_righeDataGridShort" value="10" />
<add key="MinCharAutocomplete" value="3" />
<add key="_fromEmail" value="GMW@steamware.net" />
<add key="urlWebServer" value="http://localhost/GMW/" />
<add key="Max_X" value="850" />
<add key="Max_Y" value="900" />
<add key="Max_Z" value="1300" />
<add key="Max_Kg" value="1000" />
<add key="NumX" value="10" />
<add key="NumY" value="5" />
<add key="NumZ" value="1" />
<add key="printerCartTara" value="\\Vostro410\PDFCreator" />
<add key="PageWidthCartTara" value="21cm" />
<add key="PageHeightCartTara" value="14.8cm" />
<add key="MarginTara" value="0.5cm" />
<add key="printerCartCompleto" value="\\Vostro410\PDFCreator" />
<add key="PageWidthCartCompleto" value="21cm" />
<add key="PageHeightCartCompleto" value="14.8cm" />
<add key="MarginCompleto" value="0.5cm" />
<add key="ReportDatasource" value="GMWDataSet_stp_prtCartByUDC" />
<add key="passkey" value="pi=314" />
<add key="CodCS" value="MA" />
<add key="MinutiFinestraEditUDC" value="10" />
<add key="_adminEmail" value="samuele@steamware.net" />
<add key="_logDir" value="~/logs/" />
<add key="_smtpCli" value="keyhammer.ath.cx" />
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<!--<add key="GMWConnectionString" value="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer" />-->
</appSettings>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=t110-win2008r2\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</handlers>
</system.webServer>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory" />
<remove name="ScriptHandlerFactoryAppServices" />
<remove name="ScriptResource" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Binary file not shown.
@@ -3,32 +3,3 @@ C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\ResolveAssemblyReference.cache
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\GMW_Term.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\GMW_Term.pdb
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\GMW_Term.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\GMW_Term.pdb
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\AjaxControlToolkit.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\GMW_data.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\SteamWare.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\ICSharpCode.SharpZipLib.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\AjaxControlToolkit.pdb
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\GMW_data.pdb
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\SteamWare.pdb
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\SteamWare.xml
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\ar\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\cs\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\de\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\es\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\fr\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\he\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\hi\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\it\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\ja\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\ko\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\nl\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\pt\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\ru\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\tr-TR\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\zh-CHS\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\bin\zh-CHT\AjaxControlToolkit.resources.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\ResolveAssemblyReference.cache
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\GMW_Term.dll
C:\Users\ermanno.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_Term\obj\Debug\GMW_Term.pdb
Binary file not shown.
+63 -34
View File
@@ -14775,7 +14775,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[11];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM dbo.Celle";
@@ -14794,65 +14794,72 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
this._commandCollection[2].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[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_cellaGetByCodMag";
this._commandCollection[3].CommandText = "dbo.stp_cellaGetByCodCellaLike";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
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, "", "", ""));
this._commandCollection[3].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[3].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[3].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, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_cellaGetByIdxBlocco";
this._commandCollection[4].CommandText = "dbo.stp_cellaGetByCodMag";
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
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, "", "", ""));
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, "", "", ""));
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, "", "", ""));
this._commandCollection[4].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, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
this._commandCollection[5].CommandText = "dbo.stp_cellaGetByTipoCella";
this._commandCollection[5].CommandText = "dbo.stp_cellaGetByIdxBlocco";
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[5].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[5].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[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_celleLibereGetByIdxBlocco";
this._commandCollection[6].CommandText = "dbo.stp_cellaGetByTipoCella";
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("@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].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[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
this._commandCollection[7].CommandText = "dbo.stp_celleNonAttiveByIdxBlocco";
this._commandCollection[7].CommandText = "dbo.stp_celleLibereGetByIdxBlocco";
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[8] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[8].Connection = this.Connection;
this._commandCollection[8].CommandText = "dbo.stp_celle_updAttiva";
this._commandCollection[8].CommandText = "dbo.stp_celleNonAttiveByIdxBlocco";
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("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[8].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[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_updPiena";
this._commandCollection[9].CommandText = "dbo.stp_celle_updAttiva";
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("@Piena", 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("@Attiva", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 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_updateQuery";
this._commandCollection[10].CommandText = "dbo.stp_celle_updPiena";
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("@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[10].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[10].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[10].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[10].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[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[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("@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].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[10].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[10].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[11] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[11].Connection = this.Connection;
this._commandCollection[11].CommandText = "dbo.stp_celle_updateQuery";
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("@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, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -14896,8 +14903,30 @@ 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 getByCodMag(string CodCS, string CodMag) {
public virtual DS_magazzino.CelleDataTable getByCodCellaLike(string CodCella, string CodCS) {
this.Adapter.SelectCommand = this.CommandCollection[3];
if ((CodCella == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCella));
}
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS));
}
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 getByCodMag(string CodCS, string CodMag) {
this.Adapter.SelectCommand = this.CommandCollection[4];
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -14919,7 +14948,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 getByIdxBlocco(global::System.Nullable<int> IdxBlocco) {
this.Adapter.SelectCommand = this.CommandCollection[4];
this.Adapter.SelectCommand = this.CommandCollection[5];
if ((IdxBlocco.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -14935,7 +14964,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 getByTipoCella(global::System.Nullable<int> IdxTipoCella) {
this.Adapter.SelectCommand = this.CommandCollection[5];
this.Adapter.SelectCommand = this.CommandCollection[6];
if ((IdxTipoCella.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxTipoCella.Value));
}
@@ -14951,7 +14980,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[6];
this.Adapter.SelectCommand = this.CommandCollection[7];
if ((IdxBlocco.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -14967,7 +14996,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[7];
this.Adapter.SelectCommand = this.CommandCollection[8];
if ((IdxBlocco.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxBlocco.Value));
}
@@ -15324,7 +15353,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[8];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
if ((IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxCella.Value));
}
@@ -15357,7 +15386,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[9];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
if ((IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxCella.Value));
}
@@ -15391,7 +15420,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[10];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
if ((Original_IdxCella.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_IdxCella.Value));
}
+12
View File
@@ -840,6 +840,18 @@ SELECT IdxCella, CodCS, CodCella, IdxTipoCella, Descrizione, Attiva, Piena, IdxB
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_cellaGetByCodCellaLike" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodCellaLike" GetMethodModifier="Public" GetMethodName="getByCodCellaLike" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodCellaLike" UserSourceName="getByCodCellaLike">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_cellaGetByCodCellaLike</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCella" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodCS" Precision="0" ProviderType="VarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_cellaGetByCodMag" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCodMag" GetMethodModifier="Public" GetMethodName="getByCodMag" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCodMag" UserSourceName="getByCodMag">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
+11 -11
View File
@@ -4,23 +4,23 @@
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="-12" 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="-30" 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="2" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="3" 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:Blocchi" ZOrder="19" X="1014" Y="652" Height="275" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="160" />
<Shape ID="DesignTable:Celle" ZOrder="7" X="712" Y="420" Height="438" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:TipoCella" ZOrder="5" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:v_UdcDetail" ZOrder="1" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Celle" ZOrder="1" X="712" Y="420" Height="438" Width="229" 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="2" 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" />
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="17" X="95" Y="1131" Height="265" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="138" />
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="8" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:V_DettMagPart" ZOrder="16" X="993" Y="985" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="3" X="724" Y="906" Height="191" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="4" X="724" Y="906" Height="191" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="15" X="83" Y="846" Height="257" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="4" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="5" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="10" X="406" Y="1283" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="9" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
@@ -61,7 +61,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="6" LineWidth="11">
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="7" LineWidth="11">
<RoutePoints>
<Point>
<X>712</X>
@@ -77,11 +77,11 @@
<RoutePoints>
<Point>
<X>1014</X>
<Y>757</Y>
<Y>755</Y>
</Point>
<Point>
<X>946</X>
<Y>757</Y>
<X>941</X>
<Y>755</Y>
</Point>
</RoutePoints>
</Connector>
+21 -10
View File
@@ -211,8 +211,9 @@ namespace GMW_data
/// <param name="UDC">Codice UDC</param>
/// <param name="qta">Nuova quantita associata</param>
/// <returns>esito comando</returns>
public bool rettificaQtaUDC(string CodSoggetto, string UDC, decimal qta)
public bool rettificaQtaUDC(string UDC, decimal qta)
{
string CodSoggetto = CodSoggCurrUser();
bool answ = false;
try
{
@@ -274,15 +275,7 @@ namespace GMW_data
string RagioneSociale = "";
// 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);
}
string codSoggetto = CodSoggCurrUser();
// proseguo SOLO se ho trovato cod soggetto...
if (codSoggetto != "")
{
@@ -761,6 +754,24 @@ 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
}
Binary file not shown.
Binary file not shown.
Binary file not shown.