Aggiunto modulo scadute x gestire con modulo tale elenco (in preparazione modulo "commesse verdi ok")...
git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@56 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="#" SortExpression="Posizione">
|
||||
<EditItemTemplate>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Posizione") %>' ToolTip='<%# Eval("Cod")%>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="mod_dettaglioGiornaliero.ascx" TagName="mod_dettaglioGiornaliero"
|
||||
TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_scadute.ascx" TagName="mod_scadute" TagPrefix="uc2" %>
|
||||
<div class="filtro_1">
|
||||
<div style="width: 100%; clear: both;">
|
||||
<span style="float: left;">
|
||||
@@ -23,7 +24,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both; float: left;">
|
||||
<asp:Label runat="server" ID="lblScadute" CssClass="ctrHeaderPagerRed" Width="200px" />
|
||||
<uc2:mod_scadute ID="mod_scadute1" runat="server" />
|
||||
<%--<asp:Label runat="server" ID="lblScadute" CssClass="ctrHeaderPagerRed" Width="200px" />
|
||||
<asp:GridView ID="grViewScadute" runat="server" AutoGenerateColumns="False" DataKeyNames="Cod"
|
||||
DataSourceID="odsScadute" Font-Size="8pt" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyleRed" />
|
||||
@@ -76,7 +78,7 @@
|
||||
Type="DateTime" />
|
||||
<asp:Parameter DefaultValue="05" Name="MaxStato" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:ObjectDataSource>--%>
|
||||
</div>
|
||||
<div style="clear: both;">
|
||||
<asp:Repeater ID="repScadenze" runat="server" DataSourceID="odsDate">
|
||||
|
||||
@@ -19,7 +19,9 @@ public partial class mod_scadenziarioCommesse : ApplicationUserControl
|
||||
base.traduciObj();
|
||||
lblFromDate.Text = traduci("lblFromDate");
|
||||
txtFromDate.Text = DateTime.Now.ToString("dd/MM/yyyy");
|
||||
lblScadute.Text = traduci("lblCommScadute");
|
||||
#if false
|
||||
lblScadute.Text = traduci("lblCommScadute");
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -46,7 +48,11 @@ public partial class mod_scadenziarioCommesse : ApplicationUserControl
|
||||
/// </summary>
|
||||
private void updateControlli()
|
||||
{
|
||||
grViewScadute.DataBind();
|
||||
#if false
|
||||
grViewScadute.DataBind();
|
||||
#endif
|
||||
mod_scadute1.dataRif = Convert.ToDateTime(txtFromDate.Text);
|
||||
mod_scadute1.doUpdate();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_scadute.ascx.cs" Inherits="mod_scadute" %>
|
||||
<asp:TextBox runat="server" ID="txtDataCorr" Visible="false" Text="..." />
|
||||
<asp:Label runat="server" ID="lblScadute" CssClass="ctrHeaderPagerRed" Width="200px" />
|
||||
<asp:GridView ID="grViewScadute" runat="server" AutoGenerateColumns="False" DataKeyNames="Cod"
|
||||
DataSourceID="odsScadute" Font-Size="8pt" Width="100%">
|
||||
<RowStyle CssClass="ctrRowStyleRed" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyleRed" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyleRed" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyleRed" />
|
||||
<FooterStyle CssClass="ctrFooterRed" />
|
||||
<PagerStyle CssClass="ctrHeaderPagerRed" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPagerRed" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyleRed" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Cliente" HeaderText="Cliente" SortExpression="Cliente"
|
||||
ReadOnly="true" ItemStyle-Width="150px" />
|
||||
<asp:TemplateField HeaderText="DDT" SortExpression="DDT" ItemStyle-Width="80px">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Bind("DDT") %>' ToolTip='<%# Eval("Cod")%>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="DataDDT" HeaderText="DataDDT" SortExpression="DataDDT"
|
||||
ReadOnly="true" DataFormatString="{0:dd/MM/yy}" ItemStyle-Width="60px" />
|
||||
<asp:BoundField DataField="CodCli" HeaderText="Ciclo" SortExpression="CodCli" ReadOnly="true"
|
||||
ItemStyle-Width="40px" />
|
||||
<asp:BoundField DataField="Stato" HeaderText="Stato" SortExpression="CodStato" ReadOnly="true"
|
||||
ItemStyle-Width="180px" />
|
||||
<asp:BoundField DataField="descrizione" HeaderText="descrizione" SortExpression="descrizione"
|
||||
ReadOnly="true" ItemStyle-Width="120px" />
|
||||
<asp:BoundField DataField="Peso" HeaderText="Peso" ReadOnly="True" SortExpression="Peso"
|
||||
DataFormatString="{0:N2} kg" ItemStyle-Width="60px" />
|
||||
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" ReadOnly="true"
|
||||
ItemStyle-Width="30px" />
|
||||
<asp:BoundField DataField="DataArrivo" HeaderText="DataArrivo" SortExpression="DataArrivo"
|
||||
ReadOnly="true" DataFormatString="{0:dd/MM/yy HH:mm}" ItemStyle-Width="100px" />
|
||||
<asp:BoundField DataField="DataPrevista" HeaderText="DataPrevista" SortExpression="DataPrevista"
|
||||
ReadOnly="true" DataFormatString="{0:dd/MM/yy HH:mm}" ItemStyle-Width="100px" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsScadute" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getPreDueDate" TypeName="DS_applicazioneTableAdapters.v_ULPTableAdapter"
|
||||
FilterExpression=" (Cliente LIKE '%{0}%' OR DDT LIKE '%{0}%' OR Descrizione LIKE '%{0}%' ) AND (CodCli = '{1}')">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:ControlParameter ControlID="ddlCiclo" Name="Ciclo" PropertyName="SelectedValue"
|
||||
Type="String" />
|
||||
</FilterParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="txtFromDate" Name="DataPrevista" PropertyName="Text"
|
||||
Type="DateTime" />
|
||||
<asp:Parameter DefaultValue="05" Name="MaxStato" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
public partial class mod_scadute : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
lblScadute.Text = traduci("lblCommScadute");
|
||||
}
|
||||
|
||||
public DateTime dataRif
|
||||
{
|
||||
get
|
||||
{
|
||||
return Convert.ToDateTime(txtDataCorr.Text);
|
||||
}
|
||||
set
|
||||
{
|
||||
txtDataCorr.Text = value.ToString();
|
||||
odsScadute.DataBind();
|
||||
}
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
odsScadute.DataBind();
|
||||
}
|
||||
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user