Merge branch 'develop'

This commit is contained in:
samuele
2012-10-08 12:37:16 +02:00
41 changed files with 651 additions and 127 deletions
+67
View File
@@ -0,0 +1,67 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExportExcel_SAO.aspx.cs" Inherits="GMW.ExportExcel_SAO" EnableEventValidation="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="grView" runat="server" EnableModelValidation="True" Width="100%" AllowPaging="false" DataSourceID="odsSAO" AutoGenerateColumns="False" DataKeyNames="idxEvento">
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text="Nessun record trovato" />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Data Ora" SortExpression="DataOra">
<ItemTemplate>
<asp:Label ID="lblDataOra" runat="server" Text='<%# Eval("DataOra", "{0:ddd dd/MM/yy HH:mm:ss}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Postazione" SortExpression="codPostazione">
<ItemTemplate>
<asp:Label ID="lblPostazione" runat="server" Text='<%# Eval("codPostazione") %>' ToolTip='<%# Eval("clientIP") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodSoggetto" SortExpression="CodSoggetto">
<ItemTemplate>
<asp:Label ID="lblCodSoggetto" runat="server" Text='<%# getOperatoreByCod(Eval("CodSoggetto")) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
<ItemTemplate>
<asp:Label ID="lblParticolare" runat="server" Text='<%# Eval("Particolare") %>' />
</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="descrizione" SortExpression="descrizione">
<ItemTemplate>
<asp:Label ID="lbldescrizione" runat="server" Text='<%# Eval("descrizione") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:Label runat="server" ID="lblAzione" Text='<%# Eval("CodAzione") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsSAO" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getBySearch" TypeName="GMW_data.DS_magazzinoTableAdapters.StoricoAzioniOperatoreTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="DataOraFrom" SessionField="_inizio" Type="DateTime" />
<asp:SessionParameter Name="DataOraTo" SessionField="_fine" Type="DateTime" />
<asp:SessionParameter Name="codPostazione" Type="String" SessionField="postazione_name" />
<asp:SessionParameter Name="CodSoggetto" Type="String" SessionField="CodSoggettoSAO" />
<asp:SessionParameter Name="codAzione" Type="String" SessionField="CodAzioneUt" />
<asp:SessionParameter Name="UDC" Type="String" SessionField="UdcSAO" />
<asp:SessionParameter Name="Particolare" Type="String" SessionField="ParticSAO" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</form>
</body>
</html>
+122
View File
@@ -0,0 +1,122 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using GMW_data;
namespace GMW
{
public partial class ExportExcel_SAO : System.Web.UI.Page
{
/// <summary>
/// fix x export excel
/// </summary>
/// <param name="control"></param>
public override void VerifyRenderingInServerForm(Control control)
{
// Confirms that an HtmlForm control is rendered for the specified ASP.NET server control at run time.
}
/// <summary>
/// evento dati associati a controllo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
}
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
private void doExport()
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment; filename=Export Storico Azioni Operatore.xls");
Response.Charset = "";
// If you want the option to open the Excel file without saving than
// comment out the line below
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
grView.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
}
#region area protected
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
aggiornamento();
doExport();
}
}
#endregion
public void aggiornamento()
{
grView.AllowPaging = false;
checkFixOds();
odsSAO.DataBind();
grView.DataBind();
}
/// <summary>
/// sistemo filtraggio con valori selezionati
/// </summary>
private void checkFixOds()
{
//ods.FilterExpression = "( (codImpianto LIKE '%{0}%') OR (nomeImpianto LIKE '%{0}%') OR (codMacchina LIKE '%{0}%') OR (nomeMacchina LIKE '%{0}%') OR (descrizione LIKE '%{0}%') OR (descrPriorita LIKE '%{0}%') OR (descrTipo LIKE '%{0}%') )";
//if (memLayer.ML.isInSessionObject("idxTipo_filt"))
//{
// ods.FilterExpression += " AND (idxTipo = {1})";
//}
//if (memLayer.ML.isInSessionObject("idxMacchina_filt"))
//{
// ods.FilterExpression += " AND (idxMacchina = {2})";
//}
}
/// <summary>
/// converte codSoggetto in cognome/nome
/// </summary>
/// <param name="codOperatore"></param>
/// <returns></returns>
public string getOperatoreByCod(object codSoggetto)
{
return utils.obj.getOperatoreByCod(codSoggetto.ToString());
}
}
}
+42
View File
@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW {
public partial class ExportExcel_SAO {
/// <summary>
/// form1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// odsSAO 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.ObjectDataSource odsSAO;
}
}
+16
View File
@@ -161,6 +161,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="ExportExcel_SAO.aspx" />
<Content Include="gestPrinterPost.aspx" />
<Content Include="images\alert_16.png" />
<Content Include="images\alert_22.png" />
@@ -270,6 +271,13 @@
<Compile Include="ElencoListePrelievo.aspx.designer.cs">
<DependentUpon>ElencoListePrelievo.aspx</DependentUpon>
</Compile>
<Compile Include="ExportExcel_SAO.aspx.cs">
<DependentUpon>ExportExcel_SAO.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="ExportExcel_SAO.aspx.designer.cs">
<DependentUpon>ExportExcel_SAO.aspx</DependentUpon>
</Compile>
<Compile Include="forceUser.aspx.cs">
<DependentUpon>forceUser.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -607,6 +615,13 @@
<Compile Include="WebUserControls\mod_detailUDC_storico.ascx.designer.cs">
<DependentUpon>mod_detailUDC_storico.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_detLDP.ascx.cs">
<DependentUpon>mod_detLDP.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_detLDP.ascx.designer.cs">
<DependentUpon>mod_detLDP.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_dettaglioBlocco.ascx.cs">
<DependentUpon>mod_dettaglioBlocco.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -1169,6 +1184,7 @@
<Content Include="WebUserControls\mod_detailParticolari.ascx" />
<Content Include="WebUserControls\mod_detailUDC.ascx" />
<Content Include="WebUserControls\mod_detailUDC_storico.ascx" />
<Content Include="WebUserControls\mod_detLDP.ascx" />
<Content Include="WebUserControls\mod_dettaglioBlocco.ascx" />
<Content Include="WebUserControls\mod_dettCelleBlocco.ascx" />
<Content Include="WebUserControls\mod_execCelle.ascx" />
+12
View File
@@ -83,6 +83,18 @@
font-weight: bold;
}
/* gruppo buttons */
.btnNew
{
background-image: url(images/new_m.png);
background-repeat: no-repeat;
background-position: right;
border-bottom-style: none;
padding: 4px;
padding-right: 28px;
}
/* end */
/* group barPlot a colori*/
.sv
{
+12
View File
@@ -83,6 +83,18 @@
font-weight: bold;
}
/* gruppo buttons */
.btnNew
{
background-image: url(images/new_m.png);
background-repeat: no-repeat;
background-position: right;
border-bottom-style: none;
padding: 4px;
padding-right: 28px;
}
/* end */
/* group barPlot a colori*/
.sv
{
+12
View File
@@ -83,6 +83,18 @@
font-weight: bold;
}
/* gruppo buttons */
.btnNew
{
background-image: url(images/new_m.png);
background-repeat: no-repeat;
background-position: right;
border-bottom-style: none;
padding: 4px;
padding-right: 28px;
}
/* end */
/* group barPlot a colori*/
.sv
{
+1 -1
View File
@@ -61,7 +61,7 @@
<add key="appName" value="GMW" />
<add key="SiteName" value="Tekal" />
<add key="mainRev" value="2.1" />
<add key="minRev" value="511" />
<add key="minRev" value="512" />
<add key="copyRight" value="SteamWare © 2010-2012" />
<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" />
@@ -4,6 +4,7 @@
<%@ Register Src="mod_execUDC.ascx" TagName="mod_execUDC" TagPrefix="uc2" %>
<%@ Register Src="mod_detailUDC.ascx" TagName="mod_detailUDC" TagPrefix="uc3" %>
<%@ Register src="mod_detailUDC_storico.ascx" tagname="mod_detailUDC_storico" tagprefix="uc4" %>
<%@ Register src="mod_detLDP.ascx" tagname="mod_detLDP" tagprefix="uc5" %>
<asp:Panel runat="server" ID="pnlSearchProvider" CssClass="PnlSearchProvider_1">
<div class="SearchProviderTitle_1">
<asp:Label runat="server" ID="lblSearchProvider" txt="---" />
@@ -16,6 +17,9 @@
<td valign="top">
<uc3:mod_detailUDC ID="mod_detailUDC1" runat="server" />
<uc4:mod_detailUDC_storico ID="mod_detailUDC_storico1" runat="server" />
</td>
<td valign="top">
<uc5:mod_detLDP ID="mod_detLDP1" runat="server" />
<uc2:mod_execUDC ID="mod_execUDC1" runat="server" />
</td>
</tr>
+10 -7
View File
@@ -74,26 +74,28 @@ namespace GMW.WebUserControls
bool showHistUdc = false;
string udcSel = memLayer.ML.StringSessionObj("UDC_sel");
string udcHist = memLayer.ML.StringSessionObj("FullSearchValue");
if (udcHist != "")
{
if (!MagClass.magazzino.checkUDC(udcHist) && udcHist.Length >= 12)
{
showHistUdc = true;
}
}
if (udcSel != "")
{
if (MagClass.magazzino.checkUDC(udcSel))
{
showCurUdc = true;
showHistUdc = false;
}
else
{
showHistUdc = true;
}
}
if (udcHist != "")
{
if (!MagClass.magazzino.checkUDC(udcHist))
{
showHistUdc = true;
}
}
mod_detailUDC1.Visible = showCurUdc;
mod_detailUDC_storico1.Visible = showHistUdc;
mod_detLDP1.Visible = showCurUdc;
}
void mod_execUDC1_eh_nuovoValore(object sender, EventArgs e)
@@ -154,6 +156,7 @@ namespace GMW.WebUserControls
{
mod_detailUDC1.Visible = true;
mod_detailUDC1.doUpdate();
mod_detLDP1.doUpdate();
mod_execUDC1.Visible = !udcConsumato;
// salvo dati UDC selezionato... UDC_sel c'è già...
string UDC = memLayer.ML.StringSessionObj("UDC_sel");
+9
View File
@@ -57,6 +57,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::GMW.WebUserControls.mod_detailUDC_storico mod_detailUDC_storico1;
/// <summary>
/// mod_detLDP1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_detLDP mod_detLDP1;
/// <summary>
/// mod_execUDC1 control.
/// </summary>
+19
View File
@@ -0,0 +1,19 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detLDP.ascx.cs" Inherits="GMW.WebUserControls.mod_detLDP" %>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="CodLista,UDC" DataSourceID="ods" EnableModelValidation="True" CellPadding="4" ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="CodLista" HeaderText="Lista di Prelievo" ReadOnly="True" SortExpression="CodLista" />
<asp:CheckBoxField DataField="Prelevato" HeaderText="prel." SortExpression="Prelevato" />
</Columns>
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="UDC" Type="String" SessionField="UDC_sel" DefaultValue="UUU" />
</SelectParameters>
</asp:ObjectDataSource>
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GMW.WebUserControls
{
public partial class mod_detLDP : System.Web.UI.UserControl
{
public void doUpdate()
{
grView.DataBind();
}
}
}
+33
View File
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW.WebUserControls {
public partial class mod_detLDP {
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// ods 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.ObjectDataSource ods;
}
}
@@ -13,7 +13,7 @@
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<EmptyDataTemplate>
vuoto</EmptyDataTemplate>
n.d.</EmptyDataTemplate>
<Fields>
<asp:BoundField DataField="UDC" HeaderText="UDC" SortExpression="UDC" DataFormatString="<b>{0}</b>"
HtmlEncode="False" />
+1 -1
View File
@@ -4,7 +4,7 @@
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="Particolare" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound">
OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound" PageSize="10">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -23,7 +23,6 @@ namespace GMW.WebUserControls
protected override void aggiornaControlliDataGL()
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridMed;
}
/// <summary>
/// traduce gli header delle colonne
+1 -1
View File
@@ -4,7 +4,7 @@
<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"
OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound">
OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound" PageSize="10">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
-1
View File
@@ -24,7 +24,6 @@ namespace GMW.WebUserControls
protected override void aggiornaControlliDataGL()
{
base.aggiornaControlliDataGL();
grView.PageSize = _righeDataGridMed;
}
/// <summary>
/// traduce gli header delle colonne
+3
View File
@@ -32,6 +32,9 @@
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div class="divDx">
<asp:HyperLink ID="hlExportExcel" runat="server" NavigateUrl="~/ExportExcel_SAO.aspx" Target="_blank">Export Excel</asp:HyperLink>
</div>
</div>
<div class="filtro_2" style="white-space: nowrap; height: 28px; padding: 2px; font-size: 8pt;">
<div class="divSx">
+9
View File
@@ -57,6 +57,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsSoggetto;
/// <summary>
/// hlExportExcel 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.HyperLink hlExportExcel;
/// <summary>
/// filtroAzioni control.
/// </summary>
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+12
View File
@@ -157,9 +157,13 @@
</ItemGroup>
<ItemGroup>
<Content Include="images\ArrowDown.png" />
<Content Include="images\ArrowDownDisab.png" />
<Content Include="images\ArrowLeft.png" />
<Content Include="images\ArrowLeftDisab.png" />
<Content Include="images\ArrowRight.png" />
<Content Include="images\ArrowRightDisab.png" />
<Content Include="images\ArrowUp.png" />
<Content Include="images\ArrowUpDisab.png" />
<Content Include="Style_test.css" />
<Content Include="Style_prod.css" />
<Content Include="Web.config">
@@ -273,6 +277,13 @@
<Compile Include="WebUserControls\mod_currentTask.ascx.designer.cs">
<DependentUpon>mod_currentTask.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_detail_UDC.ascx.cs">
<DependentUpon>mod_detail_UDC.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_detail_UDC.ascx.designer.cs">
<DependentUpon>mod_detail_UDC.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_execCella.ascx.cs">
<DependentUpon>mod_execCella.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -448,6 +459,7 @@
<Content Include="WebUserControls\mod_activeTask.ascx" />
<Content Include="WebUserControls\mod_barcode.ascx" />
<Content Include="WebUserControls\mod_currentTask.ascx" />
<Content Include="WebUserControls\mod_detail_UDC.ascx" />
<Content Include="WebUserControls\mod_execUdc.ascx" />
<Content Include="WebUserControls\mod_home.ascx" />
<Content Include="WebUserControls\mod_listePrelievo.ascx" />
+1 -1
View File
@@ -58,7 +58,7 @@
<add key="appName" value="GMW_Term" />
<add key="SiteName" value="Tekal" />
<add key="mainRev" value="2.1" />
<add key="minRev" value="511" />
<add key="minRev" value="512" />
<add key="copyRight" value="SteamWare © 2010-2012" />
<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" />
@@ -0,0 +1,67 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_detail_UDC.ascx.cs" Inherits="GMW_Term.WebUserControls.mod_detail_UDC" %>
<asp:FormView ID="frmViewUdc" runat="server" DataSourceID="odsUdc">
<ItemTemplate>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="lblUDC" Text="UDC" />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="valUDC" Text='<%# Eval("UDC") %>' />
</div>
</div>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="lblPart" Text="Particolare" />
</div>
<div style="float: right;">
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="valPart" Text='<%# Eval("Particolare") %>' />
</div>
<br />
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label2" Text='<%# Eval("DescParticolare") %>' />
</div>
</div>
</div>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="Label4" Text="Data" />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label5" Text='<%# Eval("DataFus") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: left;">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("DescStato") %>' />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label3" Text='<%# Eval("Qta","{0} pz") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: left;">
<asp:Label runat="server" ID="Label6" Text='<%# Eval("CodMag","Mag: {0}") %>' />
<asp:Label runat="server" ID="Label8" Text='<%# Eval("CodBlocco",", blocco: {0}") %>' />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label7" Text='<%# Eval("CodCella") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label11" Text='<%# Eval("Note") %>' />
</div>
</div>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="odsUdc" runat="server" SelectMethod="getByFullUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
<UpdateParameters>
<asp:Parameter Name="UDC" Type="String" />
<asp:Parameter Name="CodCS" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="U" Name="UDC" SessionField="UDC4det_sel" Type="String" />
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GMW_Term.WebUserControls
{
public partial class mod_detail_UDC : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+33
View File
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW_Term.WebUserControls {
public partial class mod_detail_UDC {
/// <summary>
/// frmViewUdc 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.FormView frmViewUdc;
/// <summary>
/// odsUdc 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.ObjectDataSource odsUdc;
}
}
+6 -75
View File
@@ -1,14 +1,10 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_interrMov.ascx.cs"
Inherits="GMW_Term.WebUserControls.mod_interrMov" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_interrMov.ascx.cs" Inherits="GMW_Term.WebUserControls.mod_interrMov" %>
<%@ Register Src="mod_detail_UDC.ascx" TagName="mod_detail_UDC" TagPrefix="uc1" %>
<div class="quadro_wide">
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnResetCtrl_Click" CssClass="styleBtnComposito"
Height="20" Width="80px">
<img src="images/cancel_m.png" style="border-style: none; margin-right: 0.2em;" width="13px"
height="13px" />
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnResetCtrl_Click" CssClass="styleBtnComposito" Height="20" Width="80px">
<img src="images/cancel_m.png" style="border-style: none; margin-right: 0.2em;" width="13px" height="13px" />
<asp:Label ID="lblReset" runat="server" Text="Reset" />
</asp:LinkButton>
</div>
<asp:Panel runat="server" ID="pnlDetailCella">
</asp:LinkButton></div><asp:Panel runat="server" ID="pnlDetailCella">
<asp:FormView ID="frmViewCella" runat="server" DataSourceID="odsCella" AllowPaging="True">
<ItemTemplate>
<div class="clearAll">
@@ -71,70 +67,5 @@
</asp:ObjectDataSource>
</asp:Panel>
<asp:Panel runat="server" ID="pnlDetailUdc">
<asp:FormView ID="frmViewUdc" runat="server" DataSourceID="odsUdc">
<ItemTemplate>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="lblUDC" Text="UDC" />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="valUDC" Text='<%# Eval("UDC") %>' />
</div>
</div>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="lblPart" Text="Particolare" />
</div>
<div style="float: right;">
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="valPart" Text='<%# Eval("Particolare") %>' />
</div>
<br />
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label2" Text='<%# Eval("DescParticolare") %>' />
</div>
</div>
</div>
<div class="clearAll">
<div class="labelSmall" style="float: left;">
<asp:Label runat="server" ID="Label4" Text="Data" />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label5" Text='<%# Eval("DataFus") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: left;">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("DescStato") %>' />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label3" Text='<%# Eval("Qta","{0} pz") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: left;">
<asp:Label runat="server" ID="Label6" Text='<%# Eval("CodMag","Mag: {0}") %>' />
<asp:Label runat="server" ID="Label8" Text='<%# Eval("CodBlocco",", blocco: {0}") %>' />
</div>
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label7" Text='<%# Eval("CodCella") %>' />
</div>
</div>
<div class="clearAll">
<div class="valoreSmall" style="float: right;">
<asp:Label runat="server" ID="Label11" Text='<%# Eval("Note") %>' />
</div>
</div>
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="odsUdc" runat="server" SelectMethod="getByFullUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
<UpdateParameters>
<asp:Parameter Name="UDC" Type="String" />
<asp:Parameter Name="CodCS" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:SessionParameter DefaultValue="U" Name="UDC" SessionField="UDC4det_sel" Type="String" />
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<uc1:mod_detail_UDC ID="mod_detail_UDC1" runat="server" />
</asp:Panel>
+3 -13
View File
@@ -1,10 +1,9 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
@@ -68,21 +67,12 @@ namespace GMW_Term.WebUserControls {
protected global::System.Web.UI.WebControls.Panel pnlDetailUdc;
/// <summary>
/// frmViewUdc control.
/// mod_detail_UDC1 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.FormView frmViewUdc;
/// <summary>
/// odsUdc 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.ObjectDataSource odsUdc;
protected global::GMW_Term.WebUserControls.mod_detail_UDC mod_detail_UDC1;
}
}
+23 -8
View File
@@ -1,14 +1,18 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_searchRes.ascx.cs" Inherits="GMW_Term.WebUserControls.mod_searchRes" %>
<%@ Register Src="mod_detail_UDC.ascx" TagName="mod_detail_UDC" TagPrefix="uc1" %>
<% if (false)
{ %>
<link href="../Style.css" rel="stylesheet" type="text/css" />
<% } %>
<div class="clearAll" style="text-align: center; margin: auto; height: 28px; vertical-align: top;">
<asp:ImageButton ID="btnLeft" runat="server" ImageUrl="../Images/ArrowLeft.png" OnClick="btnLeft_Click" Width="22px" Height="22px" />
<asp:ImageButton ID="btnUp" runat="server" ImageUrl="../Images/ArrowUp.png" OnClick="btnUp_Click" Width="22px" Height="22px" />
<asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" CssClass="btnHome" Text="Ricerca [6]" AccessKey="6" Height="22px" />
<asp:ImageButton ID="btnDown" runat="server" ImageUrl="../Images/ArrowDown.png" OnClick="btnDown_Click" Width="22px" Height="22px" />
<asp:ImageButton ID="btnRight" runat="server" ImageUrl="../Images/ArrowRight.png" OnClick="btnRight_Click" Width="22px" Height="22px" />
<div class="clearAll" style="text-align: center; margin: auto; height: 32px; vertical-align: bottom;">
<asp:ImageButton ID="btnLeft" runat="server" ImageUrl="../Images/ArrowLeft.png" OnClick="btnLeft_Click" Width="32px" Height="32px" />
&nbsp;
<asp:ImageButton ID="btnUp" runat="server" ImageUrl="../Images/ArrowUp.png" OnClick="btnUp_Click" Width="32px" Height="32px" />
&nbsp;
<%--<asp:Button ID="btnButtonsHome" runat="server" OnClick="btnButtonsHome_Click" CssClass="btnHome" Text="Ricerca [6]" AccessKey="6" Height="32px" />--%>
<asp:ImageButton ID="btnDown" runat="server" ImageUrl="../Images/ArrowDown.png" OnClick="btnDown_Click" Width="32px" Height="32px" />
&nbsp;
<asp:ImageButton ID="btnRight" runat="server" ImageUrl="../Images/ArrowRight.png" OnClick="btnRight_Click" Width="32px" Height="32px" />
</div>
<asp:Panel runat="server" ID="pnlBlocchi" CssClass="clearAll">
<div style="padding: 2px; font-size: 8pt;">
@@ -28,7 +32,11 @@
<asp:Label ID="Label1" runat="server" Text='<%# Eval("NumUDC","{0} UDC") %>' />
&nbsp;/&nbsp;
<asp:Label ID="Label2" runat="server" Text='<%# Eval("QtaTotPz","{0:0} pz") %>' />
</asp:LinkButton></ItemTemplate></asp:TemplateField></Columns></asp:GridView><asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="GMW_data.DS_magazzinoTableAdapters.stp_MagFifoByParticolareTableAdapter">
</asp:LinkButton></ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="GMW_data.DS_magazzinoTableAdapters.stp_MagFifoByParticolareTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="TK" Name="CodCS" SessionField="CodCS" Type="String" />
<asp:SessionParameter DefaultValue="*" Name="Particolare" SessionField="Particolare_sel" Type="String" />
@@ -55,7 +63,11 @@
<div class="divDx">
<asp:Label runat="server" ID="Label3" Text='<%# Eval("Qta","({0:0}p.)") %>' />
</div>
</asp:LinkButton></ItemTemplate></asp:TemplateField></Columns></asp:GridView><asp:ObjectDataSource ID="odsUdc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="GMW_data.DS_magazzinoTableAdapters.stp_UDC_FifoByParticolareBloccoTableAdapter">
</asp:LinkButton></ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsUdc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="GMW_data.DS_magazzinoTableAdapters.stp_UDC_FifoByParticolareBloccoTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="TK" Name="CodCS" SessionField="CodCS" Type="String" />
<asp:SessionParameter DefaultValue="*" Name="Particolare" SessionField="Particolare_sel" Type="String" />
@@ -64,3 +76,6 @@
</asp:ObjectDataSource>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlDetailUdc" CssClass="clearAll">
<uc1:mod_detail_UDC ID="mod_detail_UDC1" runat="server" />
</asp:Panel>
+80 -8
View File
@@ -25,6 +25,25 @@ namespace GMW_Term.WebUserControls
memLayer.ML.setSessionVal("IdxBlocco_sel", value);
}
}
/// <summary>
/// udc selezionato
/// </summary>
protected string udc
{
get
{
return memLayer.ML.StringSessionObj("UDC4det_sel");
}
set
{
memLayer.ML.setSessionVal("UDC4det_sel", value);
}
}
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
@@ -77,14 +96,48 @@ namespace GMW_Term.WebUserControls
/// </summary>
private void showData()
{
bool showBlocchi = true;
bool showUdc = false;
bool showDetUdc = false;
// controllo se ho un idxBlocco sel
if (idxBlocco > 0)
{
showBlocchi = false;
showUdc = true;
}
pnlBlocchi.Visible = !showUdc;
// controllo se ho un UDC selezionato
if (udc !="")
{
showBlocchi = false;
showUdc = false;
showDetUdc = true;
}
pnlBlocchi.Visible = showBlocchi;
pnlUdc.Visible = showUdc;
pnlDetailUdc.Visible = showDetUdc;
// fix frecce...
if (!showDetUdc)
{
btnUp.Enabled = true;
btnDown.Enabled = true;
btnLeft.Enabled = true;
btnRight.Enabled = true;
btnUp.ImageUrl = "../Images/ArrowUp.png";
btnDown.ImageUrl = "../Images/ArrowDown.png";
btnLeft.ImageUrl = "../Images/ArrowLeft.png";
btnRight.ImageUrl = "../Images/ArrowRight.png";
}
else // ...se showDetUdc --> mostro attivo solo ritorno!
{
btnUp.Enabled = false;
btnDown.Enabled = false;
btnLeft.Enabled = true;
btnRight.Enabled = false;
btnUp.ImageUrl = "../Images/ArrowUpDisab.png";
btnDown.ImageUrl = "../Images/ArrowDownDisab.png";
btnLeft.ImageUrl = "../Images/ArrowLeft.png";
btnRight.ImageUrl = "../Images/ArrowRightDisab.png";
}
}
/// <summary>
/// va alla pagina dei buttons principale
@@ -172,11 +225,18 @@ namespace GMW_Term.WebUserControls
}
else // modalità UDC
{
resetDetailUdc();
// controllo se c'è UDC e quindi richiesta dettaglio UDC
if (udc != "")
{
resetDetailUdc();
}
else
{
resetUdc();
}
}
}
#endregion
#region gestione operazioni spostamento/dettaglio su gridview
@@ -297,17 +357,29 @@ namespace GMW_Term.WebUserControls
/// <param name="e"></param>
private void reqDetailUdc()
{
//idxBlocco = Convert.ToInt32(grViewMag.SelectedDataKey["IdxBlocco"].ToString());
grViewUdc.DataBind();
udc = grViewUdc.SelectedDataKey["UDC"].ToString();
showData();
}
/// <summary>
/// reset ricerca UDC
/// </summary>
private void resetUdc()
{
idxBlocco = -1;
grViewMag.SelectedIndex = 0;
grViewMag.PageIndex = 0;
grViewMag.DataBind();
showData();
}
/// <summary>
/// reset ricerca dettaglio UDC
/// </summary>
private void resetDetailUdc()
{
idxBlocco = -1;
grViewMag.SelectedIndex = 0;
grViewMag.PageIndex = 0;
udc = "";
grViewUdc.DataBind();
showData();
}
+18 -9
View File
@@ -30,15 +30,6 @@ namespace GMW_Term.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ImageButton btnUp;
/// <summary>
/// btnButtonsHome 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 btnButtonsHome;
/// <summary>
/// btnDown control.
/// </summary>
@@ -110,5 +101,23 @@ namespace GMW_Term.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsUdc;
/// <summary>
/// pnlDetailUdc 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 pnlDetailUdc;
/// <summary>
/// mod_detail_UDC1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW_Term.WebUserControls.mod_detail_UDC mod_detail_UDC1;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB