Sistemato installer + modifiche x stampa report!

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@358 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2011-05-04 13:53:06 +00:00
parent 33511e12d9
commit d2fdbe233a
24 changed files with 57 additions and 41 deletions
+2 -1
View File
@@ -55,6 +55,7 @@
</httpModules>
</system.web>
<appSettings>
<!--Setup applicazione-->
<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" />
@@ -62,7 +63,7 @@
<add key="appName" value="GMW" />
<add key="SiteName" value="Ambivere"/>
<add key="mainRev" value="1.0" />
<add key="minRev" value="355"/>
<add key="minRev" value="370"/>
<add key="copyRight" value="SteamWare © 2010-2011" />
<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" />
@@ -1,6 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_bolle4odette.ascx.cs"
Inherits="GMW.WebUserControls.mod_bolle4odette" %>
<div class="filtro_2" style="float: left; white-space: nowrap; width: 100%; padding: 2px;">
<div class="filtro_2" style="float: left; white-space: nowrap; width: 100%;">
<div style="float: left;">
<asp:Label runat="server" ID="lblNumBolla" />
<asp:TextBox runat="server" ID="txtNumBolla" Width="8em" />
+3 -2
View File
@@ -309,6 +309,7 @@ namespace GMW.WebUserControls
{
mod_bolle4odette1.Visible = false;
// nascondo eventuali dettagli
memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
grView.SelectedIndex = -1;
// aggiorno controllo corrente!
updateOds();
@@ -403,6 +404,8 @@ namespace GMW.WebUserControls
// mostro modulo per associazione etichette odette / bolla
string codLista = grView.SelectedValue.ToString();
mod_bolle4odette1.Visible = CreaOdetteEnabled(codLista);
// salvo in session il valore selezionato...
memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
// aggiorno righe SE c'è almeno 1 odette...
if (hasOdette(codLista))
{
@@ -414,8 +417,6 @@ namespace GMW.WebUserControls
/// </summary>
private void aggiornaElencoRighe()
{
// salvo in session il valore selezionato...
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
// setto se sia possibile prelevare le righe (SOLO se iniziata)
bool prelievoOk = false;
bool cambioUdcOk = false;
+12 -29
View File
@@ -2,10 +2,10 @@
Inherits="GMW.WebUserControls.mod_viewOdette" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
<asp:Button runat="server" ID="btnRistampaOdette" Text="PrintAll" />
<asp:Button runat="server" ID="btnRistampaOdette" Text="PrintAll" OnClick="btnRistampaOdette_Click" />
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="CodLista,UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
DataKeyNames="CampoUDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted" OnRowUpdating="grView_RowUpdating" OnRowEditing="grView_RowEditing"
OnRowCancelingEdit="grView_RowCancelingEdit" OnRowDeleted="grView_RowDeleted">
<RowStyle CssClass="ctrRowStyle" />
@@ -28,51 +28,34 @@
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
</div>
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update"
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UDC" SortExpression="UDC">
<EditItemTemplate>
<uc1:mod_selettore_ajax ID="mod_selettore_ajax1" runat="server" tipo="UDC_byPart"
valore='<%# Bind("UDC") %>' />
</EditItemTemplate>
<asp:BoundField DataField="Campo15_2" HeaderText="#" SortExpression="Campo15_2" ReadOnly="true" />
<asp:TemplateField HeaderText="UDC" SortExpression="CampoUDC">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("UDC") %>' />
<asp:Label ID="Label1" runat="server" Text='<%# Eval("CampoUDC") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CodCella" HeaderText="CodCella" ReadOnly="True" SortExpression="CodCella" />
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" ReadOnly="true" />
<asp:BoundField DataField="Campo16_2" HeaderText="Batch" SortExpression="Campo16_2"
ReadOnly="True" />
<asp:BoundField DataField="Campo9_2" HeaderText="Qta" SortExpression="Campo9_2" ReadOnly="true" />
<asp:TemplateField>
<HeaderTemplate>
<asp:Label ID="lblOdette" runat="server" Text='<%# traduci("Odette") %>' Visible='<%# odetteVisible %>' />
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink runat="server" ID="lnkShow" ImageUrl="~/images/print_s.png" NavigateUrl='<%# formattaUrlOdette(Eval("UDC")) %>'
Target="_blank" ToolTip="Stampa" Visible='<%# odetteVisible %>' />
<asp:ImageButton ID="imgStampaOdette" runat="server" CausesValidation="False" CommandName="Update"
CommandArgument="stampaOdette" ToolTip='<%# traduci("StampaEtichOdette") %>'
ImageUrl="~/images/print_s.png" OnClick="img_Click" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByCodLista" TypeName="GMW_data.DS_magazzinoTableAdapters.v_righeListePrelievoPosizioneTableAdapter"
UpdateMethod="updateUDC" DeleteMethod="DeleteQuery" OnUpdated="ods_Updated">
<UpdateParameters>
<asp:Parameter Name="Original_CodLista" Type="String" />
<asp:Parameter Name="Original_UDC" Type="String" />
<asp:Parameter Name="UDC" Type="String" />
</UpdateParameters>
SelectMethod="getByCodLista" TypeName="GMW_data.DS_OdetteTableAdapters.OdetteTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="*" Name="CodLista" SessionField="CodLista_sel"
Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:Parameter Name="Original_CodLista" Type="String" />
<asp:Parameter Name="Original_UDC" Type="String" />
</DeleteParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
+27 -2
View File
@@ -212,8 +212,7 @@ namespace GMW.WebUserControls
protected void grView_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
// carico l'idx dell'oggetto
string codLista = e.Keys["CodLista"].ToString();
string UDC = e.Keys["UDC"].ToString();
string UDC = e.Keys["CampoUDC"].ToString();
// quale comando?
string _comando = "";
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
@@ -224,6 +223,12 @@ namespace GMW.WebUserControls
// verifico il tipo di richiesta (up/down level, clona o update normale
switch (_comando)
{
case "stampaOdette":
// lancia una singola etichetta odette
Odette.mgr.stampaEtichettaOdette(UDC);
// blocco update!
e.Cancel = true;
break;
default:
// faccio update!
break;
@@ -336,6 +341,26 @@ namespace GMW.WebUserControls
{
return _udc.ToString();
}
/// <summary>
/// salvo in session il prox comando
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void img_Click(object sender, ImageClickEventArgs e)
{
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((ImageButton)sender).CommandArgument);
}
/// <summary>
/// (ri)stampa tutte le etichette della packing list
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnRistampaOdette_Click(object sender, EventArgs e)
{
Odette.mgr.stampaOdettePackingList(memLayer.ML.StringSessionObj("CodLista_sel"));
}
#endregion
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -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="355"/>
<add key="minRev" value="370"/>
<add key="copyRight" value="SteamWare © 2010-2011"/>
<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"/>
@@ -57,6 +57,7 @@
<!--Setup periodo controlli date-->
<add key="defDayFrom" value="-60"/>
<add key="mostraSelOra" value="false"/>
<!--Setup codici postazioni-->
<add key="IdxPosizMP" value="56"/>
@@ -68,7 +69,6 @@
<!--Setup stampa-->
<add key="printerCartMP" value="\\SRV-DEV01\MPC2500-Copy"/>
<add key="printerCartCompleto" value="\\SRV-DEV01\MPC2500-Copy"/>
<add key="PageWidthCartCompleto" value="21cm"/>
<add key="PageHeightCartCompleto" value="29.7cm"/>
@@ -81,6 +81,7 @@
<add key="PageWidthCartFusi" value="21cm"/>
<add key="PageHeightCartFusi" value="29.7cm"/>
<add key="MarginCartFusi" value="0.5cm"/>
<add key="printerCartMP" value="\\SRV-DEV01\MPC2500-Copy"/>
<add key="PageWidthCartMP" value="21cm"/>
<add key="PageHeightCartMP" value="29.7cm"/>
<add key="MarginCartMP" value="0.5cm"/>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+8 -3
View File
@@ -363,10 +363,15 @@ namespace GMW_data
public bool stampaEtichettaOdette(string UDC)
{
bool answ = false;
//!!!FARE!!!
// chiamo il report...
try
{
answ = reportPrinter.obj.stampaCartellino(tipoCartellino.cartOdette, UDC, "");
}
catch
{
logger.lg.scriviLog(String.Format("Errore nella stmapa del cartellino per l'UDC {0}", UDC), tipoLog.ERROR);
}
return answ;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -350,7 +350,7 @@
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW"
"ProductCode" = "8:{33571C57-DCDE-46D3-8BA4-37F8EB24358A}"
"PackageCode" = "8:{DAF22D52-4536-4384-B32C-352029F6C17C}"
"PackageCode" = "8:{76659B99-604B-442B-AE85-C2433B4C927D}"
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
Binary file not shown.