completato fix principale stato magazzino e blocchi celle
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxTitle.master"
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master"
|
||||
AutoEventWireup="true" CodeBehind="DettaglioBlocco.aspx.cs" Inherits="GMW.DettaglioBlocco" %>
|
||||
<%@ Register src="WebUserControls/mod_dettaglioBlocco.ascx" tagname="mod_dettaglioBlocco" tagprefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_dettaglioBlocco ID="mod_dettaglioBlocco1" runat="server" />
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_dettaglioBlocco.ascx" TagName="mod_dettaglioBlocco" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<div class="container-fluid">
|
||||
<br />
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("DettaglioBlocco") %></b>
|
||||
</div>
|
||||
<div class="panel-body bg-info">
|
||||
<uc1:mod_dettaglioBlocco ID="mod_dettaglioBlocco1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
@@ -13,6 +14,14 @@ namespace GMW
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+1
-2
@@ -1,10 +1,9 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -1,273 +1,263 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_anagCelle.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_anagCelle" %>
|
||||
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>--%>
|
||||
|
||||
|
||||
<%--<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
<b><%: traduci("DettagliCelle") %></b>
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroMag" AutoPostBack="True" DataSourceID="odsFiltroMag" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroMag_SelectedIndexChanged" OnDataBound="ddlFiltroMag_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroBlock" AutoPostBack="True" DataSourceID="odsFiltroBlock" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroBlock_SelectedIndexChanged" OnDataBound="ddlFiltroBlock_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddlFiltroMag" DefaultValue="MM" Name="CodMag" PropertyName="SelectedValue"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="panel-body bg-info">--%>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroMag" AutoPostBack="True" DataSourceID="odsFiltroMag" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroMag_SelectedIndexChanged" OnDataBound="ddlFiltroMag_DataBound"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroBlock" AutoPostBack="True" DataSourceID="odsFiltroBlock" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroBlock_SelectedIndexChanged" OnDataBound="ddlFiltroBlock_DataBound"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddlFiltroMag" DefaultValue="MM" Name="CodMag" PropertyName="SelectedValue"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="IdxCella" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
|
||||
<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="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="IdxCella" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
|
||||
<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="false" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
|
||||
|
||||
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit"
|
||||
ToolTip='<%# traduci("Edit") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.modifica, SteamWare.dimImg.small) %>' />
|
||||
</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>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert"
|
||||
ToolTip='<%# traduci("insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
|
||||
OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="IdxBlocco" SortExpression="IdxBlocco">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
|
||||
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxBlocco" runat="server" Text='<%# CodBloccoDaIdx(Eval("IdxBlocco")) %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
|
||||
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodCella" SortExpression="CodCella">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtCodCella" runat="server" Text='<%# Bind("CodCella") %>' Width="10em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodCella" runat="server" Text='<%# Bind("CodCella") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtCodCella" runat="server" Text='<%# Bind("CodCella") %>' Width="10em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="IdxTipoCella" SortExpression="IdxTipoCella">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="dlIdxTipoCella" runat="server" DataSourceID="odsTipoCella"
|
||||
DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxTipoCella") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# TipoCellaDaIdx(Eval("IdxTipoCella")) %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtIdxTipoCella" runat="server" Text='<%# Bind("IdxTipoCella") %>'
|
||||
Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="attiva" SortExpression="Attiva">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Piena" SortExpression="Piena">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="X" SortExpression="X">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtX" runat="server" Text='<%# Bind("X") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblX" runat="server" Text='<%# Bind("X") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtX" runat="server" Text='<%# Bind("X") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Y" SortExpression="Y">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtY" runat="server" Text='<%# Bind("Y") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblY" runat="server" Text='<%# Bind("Y") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtY" runat="server" Text='<%# Bind("Y") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Z" SortExpression="Z">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtZ" runat="server" Text='<%# Bind("Z") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblZ" runat="server" Text='<%# Bind("Z") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtZ" runat="server" Text='<%# Bind("Z") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="descrizione" SortExpression="Descrizione">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Text='<%# Bind("Descrizione") %>'
|
||||
Width="15em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Bind("Descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Text='<%# Bind("Descrizione") %>'
|
||||
Width="15em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<%--<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />--%>
|
||||
<asp:LinkButton ID="btnNew" runat="server" OnClick="btnNew_Click" CssClass="btn btn-default btn-xs" Visible="true"><i class="glyphicon glyphicon-plus"></i> <%: traduci("New") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("IdxBlocco") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible='<%# delEnabled(Eval("IdxBlocco")) %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' OnClientClick="return confirm('Confermi eliminazione?')" />
|
||||
<%--<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
</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>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert" runat="server" CausesValidation="False" CommandName="Insert"
|
||||
ToolTip='<%# traduci("insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
|
||||
OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="IdxBlocco" SortExpression="IdxBlocco">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
|
||||
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxBlocco" runat="server" Text='<%# CodBloccoDaIdx(Eval("IdxBlocco")) %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:DropDownList ID="dlIdxBlocco" runat="server" DataSourceID="odsBlocco" DataTextField="label"
|
||||
DataValueField="value" SelectedValue='<%# Bind("IdxBlocco") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="CodCella" SortExpression="CodCella">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtCodCella" runat="server" Text='<%# Bind("CodCella") %>' Width="10em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblCodCella" runat="server" Text='<%# Bind("CodCella") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtCodCella" runat="server" Text='<%# Bind("CodCella") %>' Width="10em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="IdxTipoCella" SortExpression="IdxTipoCella">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="dlIdxTipoCella" runat="server" DataSourceID="odsTipoCella"
|
||||
DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("IdxTipoCella") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# TipoCellaDaIdx(Eval("IdxTipoCella")) %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtIdxTipoCella" runat="server" Text='<%# Bind("IdxTipoCella") %>'
|
||||
Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="attiva" SortExpression="Attiva">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkAttiva" runat="server" Checked='<%# Bind("Attiva") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Piena" SortExpression="Piena">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkPiena" runat="server" Checked='<%# Bind("Piena") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="X" SortExpression="X">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtX" runat="server" Text='<%# Bind("X") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblX" runat="server" Text='<%# Bind("X") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtX" runat="server" Text='<%# Bind("X") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Y" SortExpression="Y">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtY" runat="server" Text='<%# Bind("Y") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblY" runat="server" Text='<%# Bind("Y") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtY" runat="server" Text='<%# Bind("Y") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Z" SortExpression="Z">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtZ" runat="server" Text='<%# Bind("Z") %>' Width="3em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblZ" runat="server" Text='<%# Bind("Z") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtZ" runat="server" Text='<%# Bind("Z") %>' Width="3em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="descrizione" SortExpression="Descrizione">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Text='<%# Bind("Descrizione") %>'
|
||||
Width="15em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Bind("Descrizione") %>' />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtDescrizione" runat="server" Text='<%# Bind("Descrizione") %>'
|
||||
Width="15em" />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<%--<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />--%>
|
||||
<asp:LinkButton ID="btnNew" runat="server" OnClick="btnNew_Click" CssClass="btn btn-default btn-xs" Visible="true"><i class="glyphicon glyphicon-plus"></i> <%: traduci("New") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("IdxBlocco") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible='<%# delEnabled(Eval("IdxBlocco")) %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.elimina , SteamWare.dimImg.small) %>' OnClientClick="return confirm('Confermi eliminazione?')" />
|
||||
<%--<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
</asp:ConfirmButtonExtender>--%>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert2" runat="server" CausesValidation="False" CommandName="Insert"
|
||||
ToolTip='<%# traduci("insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
|
||||
OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByCodMag" TypeName="GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter"
|
||||
OnInserting="recuperaFooter" OnInserted="ods_Updated" OnUpdated="ods_Updated"
|
||||
FilterExpression=" CodCella LIKE '%{0}%' OR Descrizione LIKE '%{0}%' " DeleteMethod="DeleteQuery"
|
||||
UpdateMethod="UpdateQuery" InsertMethod="Insert">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter Name="IdxBlocco" Type="Int32" SessionField="IdxBlocco_sel"
|
||||
DefaultValue="0" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxCella" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxCella" Type="Int32" />
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:Parameter Name="CodCella" Type="String" />
|
||||
<asp:Parameter Name="IdxTipoCella" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="Attiva" Type="Boolean" />
|
||||
<asp:Parameter Name="Piena" Type="Boolean" />
|
||||
<asp:Parameter Name="IdxBlocco" Type="Int32" />
|
||||
<asp:Parameter Name="X" Type="Int32" />
|
||||
<asp:Parameter Name="Y" Type="Int32" />
|
||||
<asp:Parameter Name="Z" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="CodCS" Type="String" />
|
||||
<asp:Parameter Name="CodCella" Type="String" />
|
||||
<asp:Parameter Name="IdxTipoCella" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="Attiva" Type="Boolean" />
|
||||
<asp:Parameter Name="Piena" Type="Boolean" />
|
||||
<asp:Parameter Name="IdxBlocco" Type="Int32" />
|
||||
<asp:Parameter Name="X" Type="Int32" />
|
||||
<asp:Parameter Name="Y" Type="Int32" />
|
||||
<asp:Parameter Name="Z" Type="Int32" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:ImageButton ID="imgUpdate2" runat="server" CausesValidation="False" CommandName="Update"
|
||||
ToolTip='<%# traduci("Update")%>' ImageUrl='<%# imgPath(SteamWare.tipoImg.conferma , SteamWare.dimImg.small) %>' />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</EditItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:ImageButton ID="imgInsert2" runat="server" CausesValidation="False" CommandName="Insert"
|
||||
ToolTip='<%# traduci("insert") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.nuovo , SteamWare.dimImg.small) %>'
|
||||
OnClick="lblIns_click" />
|
||||
<asp:ImageButton ID="imgCancel2" runat="server" CausesValidation="False" CommandName="Cancel"
|
||||
ToolTip='<%# traduci("Cancel") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.annulla , SteamWare.dimImg.small) %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByCodMag" TypeName="GMW_data.DS_magazzinoTableAdapters.CelleTableAdapter"
|
||||
OnInserting="recuperaFooter" OnInserted="ods_Updated" OnUpdated="ods_Updated"
|
||||
FilterExpression=" CodCella LIKE '%{0}%' OR Descrizione LIKE '%{0}%' " DeleteMethod="DeleteQuery"
|
||||
UpdateMethod="UpdateQuery" InsertMethod="Insert">
|
||||
<FilterParameters>
|
||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||
<asp:SessionParameter Name="IdxBlocco" Type="Int32" SessionField="IdxBlocco_sel"
|
||||
DefaultValue="0" />
|
||||
</FilterParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxCella" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxCella" Type="Int32" />
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:Parameter Name="CodCella" Type="String" />
|
||||
<asp:Parameter Name="IdxTipoCella" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="Attiva" Type="Boolean" />
|
||||
<asp:Parameter Name="Piena" Type="Boolean" />
|
||||
<asp:Parameter Name="IdxBlocco" Type="Int32" />
|
||||
<asp:Parameter Name="X" Type="Int32" />
|
||||
<asp:Parameter Name="Y" Type="Int32" />
|
||||
<asp:Parameter Name="Z" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
<InsertParameters>
|
||||
<asp:Parameter Name="CodCS" Type="String" />
|
||||
<asp:Parameter Name="CodCella" Type="String" />
|
||||
<asp:Parameter Name="IdxTipoCella" Type="Int32" />
|
||||
<asp:Parameter Name="Descrizione" Type="String" />
|
||||
<asp:Parameter Name="Attiva" Type="Boolean" />
|
||||
<asp:Parameter Name="Piena" Type="Boolean" />
|
||||
<asp:Parameter Name="IdxBlocco" Type="Int32" />
|
||||
<asp:Parameter Name="X" Type="Int32" />
|
||||
<asp:Parameter Name="Y" Type="Int32" />
|
||||
<asp:Parameter Name="Z" Type="Int32" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="odsBlocco" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsTipoCella" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoCellaTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<%-- </div>
|
||||
</div>--%>
|
||||
<asp:ObjectDataSource ID="odsBlocco" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsTipoCella" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoCellaTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
|
||||
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,123 +1,99 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettaglioBlocco.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_dettaglioBlocco" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>--%>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_paretoUdcBlocco.ascx" TagName="mod_paretoUdcBlocco" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_dettCelleBlocco.ascx" TagName="mod_dettCelleBlocco" TagPrefix="uc2" %>
|
||||
<%@ Register Src="mod_paretoPartByFullSpec.ascx" TagName="mod_paretoPartByFullSpec"
|
||||
TagPrefix="uc3" %>
|
||||
<%@ Register Src="mod_operazioniUdc.ascx" TagName="mod_operazioniUdc" TagPrefix="uc4" %>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div style="padding: 2px; height: 16px;">
|
||||
<div style="float: left;">
|
||||
<asp:LinkButton runat="server" ID="lnkReturn" Text="..." OnClick="lnkReturn_Click" />
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:LinkButton runat="server" ID="lnkReturn2" Text="..." OnClick="lnkReturn1_Click" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="filtro_1">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<uc1:mod_filtro ID="mod_filtroMag" runat="server" changeCheckEnabled="false" changeCheckVisible="false"
|
||||
changeSelEnabled="false" Oneh_selValore="eh_selectedMagazzino" />
|
||||
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
<td>
|
||||
<uc1:mod_filtro ID="mod_filtroBlock" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
|
||||
<asp:ControlParameter ControlID="mod_filtroMag" DefaultValue="MM" Name="CodMag" PropertyName="valore"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
<td>
|
||||
<uc1:mod_filtro ID="mod_filtroMagLog" runat="server" isChecked="false" Visible="false" />
|
||||
<asp:ObjectDataSource ID="odsFiltroMagLog" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagLogicoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroMag" AutoPostBack="True" DataSourceID="odsFiltroMag" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroMag_SelectedIndexChanged" OnDataBound="ddlFiltroMag_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:DropDownList runat="server" ID="ddlFiltroBlock" AutoPostBack="True" DataSourceID="odsFiltroBlock" DataTextField="label" DataValueField="value" OnSelectedIndexChanged="ddlFiltroBlock_SelectedIndexChanged" OnDataBound="ddlFiltroBlock_DataBound" CssClass="btn btn-default dropdown-toggle"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsFiltroBlock" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddlFiltroMag" DefaultValue="MM" Name="CodMag" PropertyName="SelectedValue"
|
||||
Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<%--non usato!--%>
|
||||
<uc1:mod_filtro ID="mod_filtroMagLog" runat="server" isChecked="false" Visible="false" />
|
||||
<asp:ObjectDataSource ID="odsFiltroMagLog" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagLogicoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div style="float: right;">
|
||||
<asp:LinkButton runat="server" ID="lbtReturn" Text="..." OnClick="lnkReturn_Click" CssClass="btn btn-warning">
|
||||
<i aria-hidden='true' class="fa fa-arrow-circle-left"></i>
|
||||
<asp:Label runat="server" ID="lnkReturn"></asp:Label>
|
||||
</asp:LinkButton>
|
||||
<asp:LinkButton runat="server" ID="lnkReturn2" Text="..." OnClick="lnkReturn1_Click" Visible="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 bg-success">
|
||||
<uc4:mod_operazioniUdc ID="mod_operazioniUdc1" runat="server" />
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<uc2:mod_dettCelleBlocco ID="mod_dettCelleBlocco1" runat="server" />
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div style="float: left;">
|
||||
<uc1:mod_paretoUdcBlocco ID="mod_paretoUdcBlocco1" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<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>
|
||||
</div>
|
||||
<div class="col-sm-6 col-sm-offset-3">
|
||||
<div style="text-align: center; border: solid 1px #696969;">
|
||||
<b>Legenda</b>
|
||||
<table style="font-weight: bold;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="filtro_2">
|
||||
<uc4:mod_operazioniUdc ID="mod_operazioniUdc1" runat="server" />
|
||||
</div>
|
||||
<td style="width: 5%;"> 
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<uc2:mod_dettCelleBlocco ID="mod_dettCelleBlocco1" runat="server" />
|
||||
<td class="cellaPiena" style="width: 13%; height: 20px;">Piena
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<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 class="cellaOccupata" style="width: 13%; height: 20px;">Occupata
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top">
|
||||
<div style="text-align: center; border: solid 1px #696969;">
|
||||
<b>Legenda</b>
|
||||
<table cellpadding="4" cellspacing="4" style="font-weight: bold;">
|
||||
<tr>
|
||||
<td class="cellaPiena" style="width: 80px; height: 20px;">
|
||||
Piena
|
||||
</td>
|
||||
<td class="cellaOccupata" style="width: 80px; height: 20px;">
|
||||
Occupata
|
||||
</td>
|
||||
<td class="cellaLibera" style="width: 80px; height: 20px;">
|
||||
Libera
|
||||
</td>
|
||||
<td class="cellaInattiva" style="width: 80px; height: 20px;">
|
||||
Bloccata
|
||||
</td>
|
||||
<td style="width: 2px; height: 20px;">
|
||||
|
||||
</td>
|
||||
<td class="selectedCell" style="width: 80px; height: 20px;">
|
||||
Selezionata (modifica)
|
||||
</td>
|
||||
<td style="width: 2px; height: 20px;">
|
||||
|
||||
</td>
|
||||
<td class="cellaSelezAll" style="width: 80px; height: 20px;">
|
||||
Selezione SX
|
||||
</td>
|
||||
<td class="cellaSelezDett" style="width: 80px; height: 20px;">
|
||||
Selezione DX
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<td class="cellaLibera" style="width: 13%; height: 20px;">Libera
|
||||
</td>
|
||||
<td class="cellaInattiva" style="width: 13%; height: 20px;">Bloccata
|
||||
</td>
|
||||
<td style="width: 1px; height: 20px;">
|
||||
</td>
|
||||
<td class="selectedCell" style="width: 13%; height: 20px;">Selezionata (modifica)
|
||||
</td>
|
||||
<td style="width: 1px; height: 20px;">
|
||||
</td>
|
||||
<td class="cellaSelezAll" style="width: 13%; height: 20px;">Selezione SX
|
||||
</td>
|
||||
<td class="cellaSelezDett" style="width: 13%; height: 20px;">Selezione DX
|
||||
</td>
|
||||
<td style="width: 4%;"> 
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,8 +35,10 @@ namespace GMW.WebUserControls
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
mod_filtroBlock.eh_selValore += new EventHandler(mod_filtroBlock_eh_selValore);
|
||||
#if false
|
||||
mod_filtroBlock.eh_selValore += new EventHandler(mod_filtroBlock_eh_selValore);
|
||||
mod_filtroMagLog.eh_selValore += new EventHandler(mod_filtroMagLog_eh_selValore);
|
||||
#endif
|
||||
mod_paretoUdcBlocco1.eh_selValore += new EventHandler(mod_paretoUdcBlocco1_eh_selValore);
|
||||
mod_paretoUdcBlocco1.eh_resetSelezione += new EventHandler(mod_paretoUdcBlocco1_eh_resetSelezione);
|
||||
mod_paretoPartByFullSpec1.eh_selValore += new EventHandler(mod_paretoPartByFullSpec1_eh_selValore);
|
||||
@@ -48,23 +50,29 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
lnkReturn.Text = traduci("TornaStatoMag");
|
||||
lnkReturn2.Text = traduci("TornaStatoMagLogico");
|
||||
mod_filtroMag.ods = odsFiltroMag;
|
||||
#if false
|
||||
mod_filtroMag.ods = odsFiltroMag;
|
||||
mod_filtroBlock.ods = odsFiltroBlock;
|
||||
#endif
|
||||
mod_filtroMagLog.ods = odsFiltroMagLog;
|
||||
mod_filtroMagLog.filterChekText = "SetFiltroMagLog";
|
||||
mod_filtroMagLog.filterUnchekText = "UnSetFiltroMagLog";
|
||||
// imposto corretto valore x filtro Mag
|
||||
if (memLayer.ML.isInSessionObject("CodMag_sel"))
|
||||
{
|
||||
mod_filtroMag.valore = memLayer.ML.StringSessionObj("CodMag_sel");
|
||||
#if false
|
||||
mod_filtroMag.valore = memLayer.ML.StringSessionObj("CodMag_sel");
|
||||
if (memLayer.ML.isInSessionObject("IdxBlocco_sel"))
|
||||
{
|
||||
mod_filtroBlock.valore = memLayer.ML.StringSessionObj("IdxBlocco_sel");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("CodMag_sel", mod_filtroMag.valore, false);
|
||||
#if false
|
||||
memLayer.ML.setSessionVal("CodMag_sel", mod_filtroMag.valore, false);
|
||||
#endif
|
||||
}
|
||||
// imposto corretto valore x filtro Mag logico
|
||||
if (memLayer.ML.isInSessionObject("CodMagLogico_sel"))
|
||||
@@ -158,6 +166,7 @@ namespace GMW.WebUserControls
|
||||
// aggiorno la visualizzazione del magazzino!
|
||||
Response.Redirect("~/DettaglioBlocco.aspx");
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// selezione valore mag logico
|
||||
/// </summary>
|
||||
@@ -199,7 +208,8 @@ namespace GMW.WebUserControls
|
||||
// chiamo procedura che aggiorna ods principale
|
||||
mod_dettCelleBlocco1.doUpdate();
|
||||
updateControlli();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
private void updateControlli()
|
||||
{
|
||||
@@ -209,34 +219,78 @@ namespace GMW.WebUserControls
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// chiamato post modifica valore check/selezione nel selettore filtro impianto
|
||||
/// cambio valore magazzino
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void eh_selectedMagazzino(object sender, EventArgs e)
|
||||
protected void ddlFiltroMag_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
if (mod_filtroMag.valore != "")
|
||||
{
|
||||
|
||||
if (!mod_filtroBlock.Visible)
|
||||
{
|
||||
if (!mod_filtroBlock.Visible)
|
||||
{
|
||||
mod_filtroBlock.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_filtroBlock.reset();
|
||||
memLayer.ML.emptySessionVal("IdxBlocco_sel");
|
||||
}
|
||||
mod_filtroBlock.ods = odsFiltroBlock;
|
||||
mod_filtroBlock.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_filtroBlock.reset();
|
||||
memLayer.ML.emptySessionVal("IdxBlocco_sel");
|
||||
}
|
||||
mod_filtroBlock.ods = odsFiltroBlock;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_filtroBlock.reset();
|
||||
mod_filtroBlock.Visible = false;
|
||||
memLayer.ML.emptySessionVal("IdxBlocco_sel");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// salvo in sessione il valore selezionato...
|
||||
memLayer.ML.setSessionVal("CodMag_sel", ddlFiltroMag.SelectedValue, false);
|
||||
memLayer.ML.emptySessionVal("IdxBlocco_sel");
|
||||
//odsFiltroBlock.DataBind();
|
||||
ddlFiltroBlock.DataBind();
|
||||
// chiamo procedura che aggiorna ods principale
|
||||
updateControlli();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio valore blocco mag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlFiltroBlock_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in sessione il valore selezionato...
|
||||
memLayer.ML.setSessionVal("IdxBlocco_sel", ddlFiltroBlock.SelectedValue, false);
|
||||
// chiamo procedura che aggiorna ods principale
|
||||
updateControlli();
|
||||
}
|
||||
protected void ddlFiltroMag_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// imposto corretto valore x filtro Mag
|
||||
if (memLayer.ML.isInSessionObject("CodMag_sel"))
|
||||
{
|
||||
ddlFiltroMag.SelectedValue = memLayer.ML.StringSessionObj("CodMag_sel");
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("CodMag_sel", ddlFiltroMag.SelectedValue, false);
|
||||
}
|
||||
}
|
||||
protected void ddlFiltroBlock_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("IdxBlocco_sel"))
|
||||
{
|
||||
ddlFiltroBlock.SelectedValue = memLayer.ML.StringSessionObj("IdxBlocco_sel");
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.setSessionVal("IdxBlocco_sel", ddlFiltroBlock.SelectedValue, false);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ritorno ad elenco magazzini
|
||||
|
||||
+31
-22
@@ -13,31 +13,13 @@ namespace GMW.WebUserControls {
|
||||
public partial class mod_dettaglioBlocco {
|
||||
|
||||
/// <summary>
|
||||
/// lnkReturn control.
|
||||
/// ddlFiltroMag 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.LinkButton lnkReturn;
|
||||
|
||||
/// <summary>
|
||||
/// lnkReturn2 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.LinkButton lnkReturn2;
|
||||
|
||||
/// <summary>
|
||||
/// mod_filtroMag control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro mod_filtroMag;
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlFiltroMag;
|
||||
|
||||
/// <summary>
|
||||
/// odsFiltroMag control.
|
||||
@@ -49,13 +31,13 @@ namespace GMW.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroMag;
|
||||
|
||||
/// <summary>
|
||||
/// mod_filtroBlock control.
|
||||
/// ddlFiltroBlock control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro mod_filtroBlock;
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlFiltroBlock;
|
||||
|
||||
/// <summary>
|
||||
/// odsFiltroBlock control.
|
||||
@@ -84,6 +66,33 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroMagLog;
|
||||
|
||||
/// <summary>
|
||||
/// lbtReturn 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.LinkButton lbtReturn;
|
||||
|
||||
/// <summary>
|
||||
/// lnkReturn 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 lnkReturn;
|
||||
|
||||
/// <summary>
|
||||
/// lnkReturn2 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.LinkButton lnkReturn2;
|
||||
|
||||
/// <summary>
|
||||
/// mod_operazioniUdc1 control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_paretoPartByFullSpec.ascx.cs" Inherits="GMW.WebUserControls.mod_paretoPartByFullSpec" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="DescStato,Esponente" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
@@ -15,8 +14,7 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-xs" Visible="true"><i class="glyphicon glyphicon-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_paretoUdcBlocco.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_paretoUdcBlocco" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_barPlot.ascx" TagName="mod_barPlot" TagPrefix="uc2" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
@@ -17,8 +16,7 @@
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
<asp:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-xs" Visible="true"><i class="glyphicon glyphicon-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user