ok ricerca UDC
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@433 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -415,6 +415,21 @@
|
||||
}
|
||||
|
||||
|
||||
/* area formattazione dati ricerca UDC e celle */
|
||||
.divSmall
|
||||
{
|
||||
width: 240px;
|
||||
}
|
||||
.labelSmall
|
||||
{
|
||||
font-size: 8pt;
|
||||
color: #969696;
|
||||
}
|
||||
.valoreSmall
|
||||
{
|
||||
font-size: 9pt;
|
||||
color: Black;
|
||||
}
|
||||
|
||||
|
||||
.btnBarcodeBig
|
||||
@@ -548,6 +563,12 @@
|
||||
clear: both;
|
||||
height: 0px;
|
||||
}
|
||||
.clearAllBottomLine
|
||||
{
|
||||
border-bottom: solid 1px #ACACAC;
|
||||
clear: both;
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
|
||||
.styleBtnComposito
|
||||
|
||||
@@ -1 +1,104 @@
|
||||
<%@ 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" %>
|
||||
<asp:Panel runat="server" ID="pnlDetailCella">
|
||||
<asp:DetailsView ID="detViewCella" runat="server" Height="50px" Width="190px" DataSourceID="odsCella"
|
||||
AutoGenerateRows="False" DataKeyNames="UDC">
|
||||
<Fields>
|
||||
<asp:BoundField DataField="UDC" HeaderText="UDC" ReadOnly="True" SortExpression="UDC" />
|
||||
<asp:BoundField DataField="Particolare" HeaderText="Particolare" SortExpression="Particolare" />
|
||||
<asp:BoundField DataField="DescParticolare" HeaderText="DescParticolare" SortExpression="DescParticolare" />
|
||||
<asp:BoundField DataField="DataFus" HeaderText="Data" SortExpression="DataFus" />
|
||||
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
|
||||
<asp:BoundField DataField="DescStato" HeaderText="DescStato" SortExpression="DescStato" />
|
||||
<asp:BoundField DataField="CodMag" HeaderText="CodMag" ReadOnly="True" SortExpression="CodMag" />
|
||||
<asp:BoundField DataField="CodBlocco" HeaderText="CodBlocco" ReadOnly="True" SortExpression="CodBlocco" />
|
||||
<asp:BoundField DataField="CodCella" HeaderText="CodCella" ReadOnly="True" SortExpression="CodCella" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
</Fields>
|
||||
</asp:DetailsView>
|
||||
<asp:ObjectDataSource ID="odsCella" runat="server" SelectMethod="getUdcDetailByIdxCella"
|
||||
TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="IdxCella" SessionField="IdxCella_sel" Type="Int32" DefaultValue="0" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="pnlDetailUdc">
|
||||
<asp:FormView ID="frmViewUdc" runat="server" DataSourceID="odsUdc">
|
||||
<ItemTemplate>
|
||||
<div class="divSmall">
|
||||
<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="clearAllBottomLine">
|
||||
</div>
|
||||
<div class="divSmall">
|
||||
<div class="labelSmall" style="float: left;">
|
||||
<asp:Label runat="server" ID="lblPart" Text="Particolare" />
|
||||
</div>
|
||||
<div class="valoreSmall" style="float: right;">
|
||||
<asp:Label runat="server" ID="valPart" Text='<%# Eval("Particolare") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearAll">
|
||||
</div>
|
||||
<div class="divSmall">
|
||||
<div class="valoreSmall" style="float: right;">
|
||||
<asp:Label runat="server" ID="Label2" Text='<%# Eval("DescParticolare") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearAllBottomLine">
|
||||
</div>
|
||||
<div class="divSmall">
|
||||
<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>
|
||||
<div class="divSmall">
|
||||
<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="clearAllBottomLine">
|
||||
</div>
|
||||
<div class="divSmall">
|
||||
<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="clearAllBottomLine">
|
||||
</div>
|
||||
<div class="divSmall">
|
||||
<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>
|
||||
</asp:Panel>
|
||||
|
||||
@@ -4,14 +4,48 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW_Term.WebUserControls
|
||||
{
|
||||
public partial class mod_interrMov : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// azioni setup a creazione controllo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
pnlDetailCella.Visible = false;
|
||||
pnlDetailUdc.Visible = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro i dettagli dell'udc indicato
|
||||
/// </summary>
|
||||
public void showUdcDetail(string UDC)
|
||||
{
|
||||
memLayer.ML.setSessionVal("UDC4det_sel", UDC);
|
||||
memLayer.ML.setSessionVal("CodCS", "TK");
|
||||
pnlDetailCella.Visible = false;
|
||||
pnlDetailUdc.Visible = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro i dettagli dell'udc indicato
|
||||
/// </summary>
|
||||
public void showCellaDetail(string codCella)
|
||||
{
|
||||
// recupero idxCella da codCella..
|
||||
int idxCella = 0;
|
||||
try
|
||||
{
|
||||
idxCella = 3892;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
memLayer.ML.setSessionVal("IdxCella_sel", idxCella);
|
||||
pnlDetailCella.Visible = true;
|
||||
pnlDetailUdc.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
+59
-7
@@ -1,18 +1,70 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.42
|
||||
// Runtime Version:2.0.50727.4963
|
||||
//
|
||||
// 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_interrMov
|
||||
{
|
||||
namespace GMW_Term.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_interrMov {
|
||||
|
||||
/// <summary>
|
||||
/// pnlDetailCella 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 pnlDetailCella;
|
||||
|
||||
/// <summary>
|
||||
/// detViewCella 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.DetailsView detViewCella;
|
||||
|
||||
/// <summary>
|
||||
/// odsCella 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 odsCella;
|
||||
|
||||
/// <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>
|
||||
/// 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;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,9 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/CompactBCode.Master" AutoEventWireup="true" CodeBehind="interrMov.aspx.cs" Inherits="GMW_Term.interrMov" %>
|
||||
<%@ Register src="WebUserControls/mod_interrMov.ascx" tagname="mod_interrMov" tagprefix="uc1" %>
|
||||
<%@ Register src="WebUserControls/mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc2" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
|
||||
<uc2:mod_barcode ID="mod_barcode1" runat="server" />
|
||||
<uc1:mod_interrMov ID="mod_interrMov1" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW_Term
|
||||
{
|
||||
@@ -11,7 +11,36 @@ namespace GMW_Term
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
// imposto valori visibilità barcode specifici (nascondo testo...)
|
||||
mod_barcode1.showHeaderText = true;
|
||||
mod_barcode1.showNoteText = true;
|
||||
// imposto controllo valori scansionati
|
||||
mod_barcode1.eh_scannedUdc += new EventHandler(mod_barcode1_eh_scannedUdc);
|
||||
mod_barcode1.eh_scannedCella += new EventHandler(mod_barcode1_eh_scannedCella);
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro dettaglio UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_barcode1_eh_scannedUdc(object sender, EventArgs e)
|
||||
{
|
||||
//Response.Redirect("~/interrMov.aspx");
|
||||
mod_barcode1.showHeaderText = false;
|
||||
mod_barcode1.showNoteText = false;
|
||||
mod_interrMov1.showUdcDetail(mod_barcode1.valoreScan);
|
||||
}
|
||||
/// <summary>
|
||||
/// mostro dettaglio cella
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_barcode1_eh_scannedCella(object sender, EventArgs e)
|
||||
{
|
||||
//Response.Redirect("~/interrMov.aspx");
|
||||
mod_barcode1.showHeaderText = false;
|
||||
mod_barcode1.showNoteText = false;
|
||||
mod_interrMov1.showCellaDetail(mod_barcode1.valoreScan);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+9
@@ -13,6 +13,15 @@ namespace GMW_Term {
|
||||
|
||||
public partial class interrMov {
|
||||
|
||||
/// <summary>
|
||||
/// mod_barcode1 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_barcode mod_barcode1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_interrMov1 control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/CompactBCode.Master" AutoEventWireup="true" CodeBehind="makeMov.aspx.cs" Inherits="GMW_Term.makeMov" %>
|
||||
<%@ Register src="WebUserControls/mod_makeMov.ascx" tagname="mod_makeMov" tagprefix="uc1" %>
|
||||
<%@ Register src="WebUserControls/mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc2" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
|
||||
<uc2:mod_barcode ID="mod_barcode1" runat="server" />
|
||||
<uc1:mod_makeMov ID="mod_makeMov1" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
Generated
+9
@@ -13,6 +13,15 @@ namespace GMW_Term {
|
||||
|
||||
public partial class makeMov {
|
||||
|
||||
/// <summary>
|
||||
/// mod_barcode1 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_barcode mod_barcode1;
|
||||
|
||||
/// <summary>
|
||||
/// mod_makeMov1 control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user