Completata gestione ricambi in ADD
This commit is contained in:
+1010
-8
File diff suppressed because it is too large
Load Diff
@@ -803,7 +803,6 @@ FROM AnagTags</CommandText>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxItem" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numIntMtz" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Qta" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxMacchina" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -825,6 +824,49 @@ FROM AnagTags</CommandText>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="MovMagExplTableAdapter" GeneratorDataComponentClassName="MovMagExplTableAdapter" Name="MovMagExpl" UserDataComponentName="MovMagExplTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.v_MovMagExpl" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxItem, numIntMtz, dtMov, Qta, Famiglia, Descrizione, NomeCostruttore, CodCostruttore, CodInterno, QtaMin, QtaLotto, Valore, Note, dtLastUpd, CodLocazione, DescrLocazione FROM dbo.v_MovMagExpl</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxItem" DataSetColumn="idxItem" />
|
||||
<Mapping SourceColumn="numIntMtz" DataSetColumn="numIntMtz" />
|
||||
<Mapping SourceColumn="dtMov" DataSetColumn="dtMov" />
|
||||
<Mapping SourceColumn="Qta" DataSetColumn="Qta" />
|
||||
<Mapping SourceColumn="Famiglia" DataSetColumn="Famiglia" />
|
||||
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
|
||||
<Mapping SourceColumn="NomeCostruttore" DataSetColumn="NomeCostruttore" />
|
||||
<Mapping SourceColumn="CodCostruttore" DataSetColumn="CodCostruttore" />
|
||||
<Mapping SourceColumn="CodInterno" DataSetColumn="CodInterno" />
|
||||
<Mapping SourceColumn="QtaMin" DataSetColumn="QtaMin" />
|
||||
<Mapping SourceColumn="QtaLotto" DataSetColumn="QtaLotto" />
|
||||
<Mapping SourceColumn="Valore" DataSetColumn="Valore" />
|
||||
<Mapping SourceColumn="Note" DataSetColumn="Note" />
|
||||
<Mapping SourceColumn="dtLastUpd" DataSetColumn="dtLastUpd" />
|
||||
<Mapping SourceColumn="CodLocazione" DataSetColumn="CodLocazione" />
|
||||
<Mapping SourceColumn="DescrLocazione" DataSetColumn="DescrLocazione" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_vMovMag_getByNumIntMtz" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByNumInt" GetMethodModifier="Public" GetMethodName="getByNumInt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByNumInt" UserSourceName="getByNumInt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_vMovMag_getByNumIntMtz</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@numIntMtz" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -1117,6 +1159,76 @@ FROM AnagTags</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="MovMagExpl" msprop:Generator_TableClassName="MovMagExplDataTable" msprop:Generator_TableVarName="tableMovMagExpl" msprop:Generator_TablePropName="MovMagExpl" msprop:Generator_RowDeletingName="MovMagExplRowDeleting" msprop:Generator_RowChangingName="MovMagExplRowChanging" msprop:Generator_RowEvHandlerName="MovMagExplRowChangeEventHandler" msprop:Generator_RowDeletedName="MovMagExplRowDeleted" msprop:Generator_UserTableName="MovMagExpl" msprop:Generator_RowChangedName="MovMagExplRowChanged" msprop:Generator_RowEvArgName="MovMagExplRowChangeEvent" msprop:Generator_RowClassName="MovMagExplRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxItem" msprop:Generator_ColumnVarNameInTable="columnidxItem" msprop:Generator_ColumnPropNameInRow="idxItem" msprop:Generator_ColumnPropNameInTable="idxItemColumn" msprop:Generator_UserColumnName="idxItem" type="xs:int" />
|
||||
<xs:element name="numIntMtz" msprop:Generator_ColumnVarNameInTable="columnnumIntMtz" msprop:Generator_ColumnPropNameInRow="numIntMtz" msprop:Generator_ColumnPropNameInTable="numIntMtzColumn" msprop:Generator_UserColumnName="numIntMtz" type="xs:int" />
|
||||
<xs:element name="dtMov" msprop:Generator_ColumnVarNameInTable="columndtMov" msprop:Generator_ColumnPropNameInRow="dtMov" msprop:Generator_ColumnPropNameInTable="dtMovColumn" msprop:Generator_UserColumnName="dtMov" type="xs:dateTime" />
|
||||
<xs:element name="Qta" msprop:Generator_ColumnVarNameInTable="columnQta" msprop:Generator_ColumnPropNameInRow="Qta" msprop:Generator_ColumnPropNameInTable="QtaColumn" msprop:Generator_UserColumnName="Qta" type="xs:int" />
|
||||
<xs:element name="Famiglia" msprop:Generator_ColumnVarNameInTable="columnFamiglia" msprop:Generator_ColumnPropNameInRow="Famiglia" msprop:Generator_ColumnPropNameInTable="FamigliaColumn" msprop:Generator_UserColumnName="Famiglia">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="NomeCostruttore" msprop:Generator_ColumnVarNameInTable="columnNomeCostruttore" msprop:Generator_ColumnPropNameInRow="NomeCostruttore" msprop:Generator_ColumnPropNameInTable="NomeCostruttoreColumn" msprop:Generator_UserColumnName="NomeCostruttore">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodCostruttore" msprop:Generator_ColumnVarNameInTable="columnCodCostruttore" msprop:Generator_ColumnPropNameInRow="CodCostruttore" msprop:Generator_ColumnPropNameInTable="CodCostruttoreColumn" msprop:Generator_UserColumnName="CodCostruttore">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="250" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="CodInterno" msprop:Generator_ColumnVarNameInTable="columnCodInterno" msprop:Generator_ColumnPropNameInRow="CodInterno" msprop:Generator_ColumnPropNameInTable="CodInternoColumn" msprop:Generator_UserColumnName="CodInterno">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="QtaMin" msprop:Generator_ColumnVarNameInTable="columnQtaMin" msprop:Generator_ColumnPropNameInRow="QtaMin" msprop:Generator_ColumnPropNameInTable="QtaMinColumn" msprop:Generator_UserColumnName="QtaMin" type="xs:int" />
|
||||
<xs:element name="QtaLotto" msprop:Generator_ColumnVarNameInTable="columnQtaLotto" msprop:Generator_ColumnPropNameInRow="QtaLotto" msprop:Generator_ColumnPropNameInTable="QtaLottoColumn" msprop:Generator_UserColumnName="QtaLotto" type="xs:int" />
|
||||
<xs:element name="Valore" msprop:Generator_ColumnVarNameInTable="columnValore" msprop:Generator_ColumnPropNameInRow="Valore" msprop:Generator_ColumnPropNameInTable="ValoreColumn" msprop:Generator_UserColumnName="Valore" type="xs:decimal" />
|
||||
<xs:element name="Note" msprop:Generator_ColumnVarNameInTable="columnNote" msprop:Generator_ColumnPropNameInRow="Note" msprop:Generator_ColumnPropNameInTable="NoteColumn" msprop:Generator_UserColumnName="Note">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="2147483647" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="dtLastUpd" msprop:Generator_ColumnVarNameInTable="columndtLastUpd" msprop:Generator_ColumnPropNameInRow="dtLastUpd" msprop:Generator_ColumnPropNameInTable="dtLastUpdColumn" msprop:Generator_UserColumnName="dtLastUpd" type="xs:dateTime" minOccurs="0" />
|
||||
<xs:element name="CodLocazione" msprop:Generator_ColumnVarNameInTable="columnCodLocazione" msprop:Generator_ColumnPropNameInRow="CodLocazione" msprop:Generator_ColumnPropNameInTable="CodLocazioneColumn" msprop:Generator_UserColumnName="CodLocazione">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="DescrLocazione" msprop:Generator_ColumnVarNameInTable="columnDescrLocazione" msprop:Generator_ColumnPropNameInRow="DescrLocazione" msprop:Generator_ColumnPropNameInTable="DescrLocazioneColumn" msprop:Generator_UserColumnName="DescrLocazione" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -1164,6 +1276,12 @@ FROM AnagTags</CommandText>
|
||||
<xs:field xpath="mstns:numIntMtz" />
|
||||
<xs:field xpath="mstns:dtMov" />
|
||||
</xs:unique>
|
||||
<xs:unique name="MovMagExpl_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:MovMagExpl" />
|
||||
<xs:field xpath="mstns:idxItem" />
|
||||
<xs:field xpath="mstns:dtMov" />
|
||||
<xs:field xpath="mstns:numIntMtz" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,36 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="ConsumoRic.aspx.cs" Inherits="GIM_site.ConsumoRic" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_ricercaItem.ascx" TagPrefix="uc1" TagName="mod_ricercaItem" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_MovMag2Int.ascx" TagPrefix="uc1" TagName="mod_MovMag2Int" %>
|
||||
|
||||
|
||||
|
||||
<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="MCon" runat="server">
|
||||
<div class="container-flow">
|
||||
<asp:HyperLink runat="server" ID="hlReturn" NavigateUrl="~/dettaglioIntervento" CssClass="btn btn-info"><%: traduci("return2DetInt") %></asp:HyperLink>
|
||||
<div class="row panel panel-default" style="margin: 4px 8px;">
|
||||
<div class="panel-heading">
|
||||
<div class="row" style="margin: 2px 4px;">
|
||||
<h3 class="panel-title"><%: traduci("ConsumoRicLong") %></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-6 bg-success">
|
||||
<b><%: traduci("RicambiDisponibili") %></b>
|
||||
<uc1:mod_ricercaItem runat="server" ID="mod_ricercaItem" />
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<b><%: traduci("RicambiImpiegati") %></b>
|
||||
<uc1:mod_MovMag2Int runat="server" ID="mod_MovMag2Int" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GIM_site
|
||||
{
|
||||
public partial class ConsumoRic : UserPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_ricercaItem.eh_newrecord += Mod_ricercaItem_eh_newrecord;
|
||||
}
|
||||
|
||||
private void Mod_ricercaItem_eh_newrecord(object sender, EventArgs e)
|
||||
{
|
||||
mod_MovMag2Int.doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 GIM_site {
|
||||
|
||||
|
||||
public partial class ConsumoRic {
|
||||
|
||||
/// <summary>
|
||||
/// hlReturn 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 hlReturn;
|
||||
|
||||
/// <summary>
|
||||
/// mod_ricercaItem control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GIM_site.WebUserControls.mod_ricercaItem mod_ricercaItem;
|
||||
|
||||
/// <summary>
|
||||
/// mod_MovMag2Int control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GIM_site.WebUserControls.mod_MovMag2Int mod_MovMag2Int;
|
||||
}
|
||||
}
|
||||
@@ -261,6 +261,7 @@
|
||||
<Content Include="Bootstrap.Master" />
|
||||
<Content Include="calendChiusura.aspx" />
|
||||
<Content Include="chLang.aspx" />
|
||||
<Content Include="ConsumoRic.aspx" />
|
||||
<Content Include="Content\bootstrap-switch\bootstrap2\bootstrap-switch.css" />
|
||||
<Content Include="Content\bootstrap-switch\bootstrap2\bootstrap-switch.min.css" />
|
||||
<Content Include="Content\bootstrap-switch\bootstrap3\bootstrap-switch.css" />
|
||||
@@ -896,6 +897,13 @@
|
||||
<Compile Include="Bootstrap.Master.designer.cs">
|
||||
<DependentUpon>Bootstrap.Master</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ConsumoRic.aspx.cs">
|
||||
<DependentUpon>ConsumoRic.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ConsumoRic.aspx.designer.cs">
|
||||
<DependentUpon>ConsumoRic.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ExcelExportAllData.aspx.cs">
|
||||
<DependentUpon>ExcelExportAllData.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1390,6 +1398,13 @@
|
||||
<Compile Include="WebUserControls\mod_menuTop.ascx.designer.cs">
|
||||
<DependentUpon>mod_menuTop.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_MovMag2Int.ascx.cs">
|
||||
<DependentUpon>mod_MovMag2Int.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_MovMag2Int.ascx.designer.cs">
|
||||
<DependentUpon>mod_MovMag2Int.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_mtzPrevPending.ascx.cs">
|
||||
<DependentUpon>mod_mtzPrevPending.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1667,6 +1682,7 @@
|
||||
<Content Include="WebUserControls\mod_menuBottomPortable.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuSx.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuTop.ascx" />
|
||||
<Content Include="WebUserControls\mod_MovMag2Int.ascx" />
|
||||
<Content Include="WebUserControls\mod_mtzPrevPending.ascx" />
|
||||
<Content Include="WebUserControls\mod_pageTitleAndSearch.ascx" />
|
||||
<Content Include="WebUserControls\mod_periodoAnalisi.ascx" />
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_MovMag2Int.ascx.cs" Inherits="GIM_site.WebUserControls.mod_MovMag2Int" %>
|
||||
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" CssClass="table table-striped" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="idxItem,numIntMtz,dtMov">
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
</EmptyDataTemplate>
|
||||
<Columns> <asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<%# traduci("Descrizione") %>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="row">
|
||||
<div class="col-xs-9">
|
||||
<div>
|
||||
<b>
|
||||
<asp:Label ID="lblFamiglia" runat="server" Text='<%# Eval("Famiglia") %>' /></b> -
|
||||
<asp:Label ID="lblDescrizione" runat="server" Text='<%# Eval("Descrizione") %>' />
|
||||
</div>
|
||||
<div>
|
||||
<b>
|
||||
<asp:Label ID="lblNomeCostruttore" runat="server" Text='<%# Eval("NomeCostruttore") %>' /></b> -
|
||||
<asp:Label ID="lblCodCostruttore" runat="server" Text='<%# Eval("CodCostruttore") %>' />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Label ID="lblCodLocazione" runat="server" Text='<%# Eval("CodLocazione") %>' />
|
||||
- <i>
|
||||
<asp:Label ID="lblNote" runat="server" Text='<%# Eval("Note") %>' /></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-3 text-right">
|
||||
<b>
|
||||
<asp:Label ID="lblCodInterno" runat="server" Text='<%# Eval("CodInterno") %>' /></b>
|
||||
<div>
|
||||
<%# traduci("Qta") %>: <asp:Label ID="lblGiacenza" runat="server" Text='<%# Eval("Qta") %>' />
|
||||
<br />
|
||||
<asp:Label ID="lblValore" runat="server" Text='<%# Eval("Valore", "{0:C2}") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="idxItem" HeaderText="idxItem" ReadOnly="True" SortExpression="idxItem" />
|
||||
<asp:BoundField DataField="numIntMtz" HeaderText="numIntMtz" ReadOnly="True" SortExpression="numIntMtz" />
|
||||
<asp:BoundField DataField="dtMov" HeaderText="dtMov" ReadOnly="True" SortExpression="dtMov" />
|
||||
<asp:BoundField DataField="Qta" HeaderText="Qta" SortExpression="Qta" />
|
||||
<asp:BoundField DataField="Famiglia" HeaderText="Famiglia" SortExpression="Famiglia" />
|
||||
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
|
||||
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
|
||||
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
|
||||
<asp:BoundField DataField="CodInterno" HeaderText="CodInterno" SortExpression="CodInterno" />
|
||||
<asp:BoundField DataField="QtaMin" HeaderText="QtaMin" SortExpression="QtaMin" />
|
||||
<asp:BoundField DataField="QtaLotto" HeaderText="QtaLotto" SortExpression="QtaLotto" />
|
||||
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
|
||||
<asp:BoundField DataField="dtLastUpd" HeaderText="dtLastUpd" SortExpression="dtLastUpd" />
|
||||
<asp:BoundField DataField="CodLocazione" HeaderText="CodLocazione" SortExpression="CodLocazione" />
|
||||
<asp:BoundField DataField="DescrLocazione" HeaderText="DescrLocazione" SortExpression="DescrLocazione" />--%>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByNumInt" TypeName="GIM_data.DS_MagTableAdapters.MovMagExplTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="numIntMtz" SessionField="numIntMtz_sel" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
|
||||
namespace GIM_site.WebUserControls
|
||||
{
|
||||
public partial class mod_MovMag2Int : SteamWare.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// forza update
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 GIM_site.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_MovMag2Int {
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +1,22 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ricercaItem.ascx.cs" Inherits="GIM_site.WebUserControls.mod_ricercaItem" %>
|
||||
<div class="row">
|
||||
<div class="col-xs-8">
|
||||
<asp:TextBox runat="server" ID="txtCerca" AutoPostBack="True" OnTextChanged="txtCerca_TextChanged" placeholder="search" />
|
||||
<div class="col-xs-6">
|
||||
<asp:TextBox runat="server" ID="txtCerca" AutoPostBack="True" OnTextChanged="txtCerca_TextChanged" placeholder="search" Width="100%" />
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-6">
|
||||
<asp:LinkButton runat="server" ID="lbtOdsMode" CssClass="btn btn-success" OnClick="lbtOdsMode_Click" />
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxItem" DataSourceID="odsFilt" CssClass="table table-striped" AllowPaging="True" Width="100%">
|
||||
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="idxItem" DataSourceID="odsFilt" CssClass="table table-striped" AllowPaging="True" PageSize="5" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbAdd" runat="server" CausesValidation="False" CommandName="Select"><i class="fa fa-plus"></i></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<%# traduci("Descrizione") %>
|
||||
@@ -49,15 +54,6 @@
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<%--<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
|
||||
<asp:BoundField DataField="NomeCostruttore" HeaderText="NomeCostruttore" SortExpression="NomeCostruttore" />
|
||||
<asp:BoundField DataField="CodCostruttore" HeaderText="CodCostruttore" SortExpression="CodCostruttore" />
|
||||
<asp:BoundField DataField="CodInterno" HeaderText="CodInterno" SortExpression="CodInterno" />
|
||||
<asp:BoundField DataField="Valore" HeaderText="Valore" SortExpression="Valore" />
|
||||
<asp:BoundField DataField="Giacenza" HeaderText="Giacenza" ReadOnly="True" SortExpression="Giacenza" />
|
||||
<asp:BoundField DataField="CodLocazione" HeaderText="CodLocazione" SortExpression="CodLocazione" />
|
||||
<asp:BoundField DataField="DescrLocazione" HeaderText="DescrLocazione" SortExpression="DescrLocazione" />
|
||||
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />--%>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsFilt" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByIdxMacc" TypeName="GIM_data.DS_MagTableAdapters.StatoMagTableAdapter" FilterExpression="Famiglia LIKE '%{0}%' OR Descrizione LIKE '%{0}%' OR NomeCostruttore LIKE '%{0}%' OR CodCostruttore LIKE '%{0}%' OR CodInterno LIKE '%{0}%' OR CodLocazione LIKE '%{0}%' OR DescrLocazione LIKE '%{0}%' OR Note LIKE '%{0}%' ">
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace GIM_site.WebUserControls
|
||||
{
|
||||
public partial class mod_ricercaItem : SteamWare.UserControl
|
||||
{
|
||||
public event EventHandler eh_newrecord;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -33,8 +34,8 @@ namespace GIM_site.WebUserControls
|
||||
txtBtn = "showAllItems";
|
||||
odsFilt.SelectMethod = "getByIdxMacc";
|
||||
odsFilt.SelectParameters.Clear();
|
||||
odsFilt.SelectParameters.Add("idxMacchina",System.Data.DbType.Int32, idxMacchina.ToString());
|
||||
}
|
||||
odsFilt.SelectParameters.Add("idxMacchina", System.Data.DbType.Int32, idxMacchina.ToString());
|
||||
}
|
||||
lbtOdsMode.Text = traduci(txtBtn);
|
||||
grView.DataBind();
|
||||
}
|
||||
@@ -83,5 +84,33 @@ namespace GIM_site.WebUserControls
|
||||
{
|
||||
fixOds();
|
||||
}
|
||||
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
int idxItem = 0;
|
||||
try
|
||||
{
|
||||
idxItem = Convert.ToInt32(grView.SelectedDataKey["idxItem"]);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (idxItem > 0)
|
||||
{
|
||||
// aggiungo record!
|
||||
TA_app.obj.taMovMag.insertQuery(idxItem, memLayer.ML.IntSessionObj("numIntMtz_sel"), 1);
|
||||
// sollevo evento
|
||||
raiseEvent();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// solleva elenco creazione nuovo record
|
||||
/// </summary>
|
||||
protected void raiseEvent()
|
||||
{
|
||||
if (eh_newrecord != null)
|
||||
{
|
||||
eh_newrecord(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,6 +16,7 @@ INSERT INTO Permessi (COD_PERMESSO,URL,GRUPPO,NUMERO,NOME,DESCRIZIONE) VALUES ('
|
||||
INSERT INTO Permessi (COD_PERMESSO,URL,GRUPPO,NUMERO,NOME,DESCRIZIONE) VALUES ('ANAG_Tags', 'anagTags', 1, 17, 'anagTags', 'anagTagsLong')
|
||||
INSERT INTO Permessi (COD_PERMESSO,URL,GRUPPO,NUMERO,NOME,DESCRIZIONE) VALUES ('Menu', 'menu', 0, 1, 'menu', 'menuIcon')
|
||||
INSERT INTO Permessi (COD_PERMESSO,URL,GRUPPO,NUMERO,NOME,DESCRIZIONE) VALUES ('chLang', 'chLang', 999, 3, 'chLang', 'chLangIcon')
|
||||
INSERT INTO Permessi (COD_PERMESSO,URL,GRUPPO,NUMERO,NOME,DESCRIZIONE) VALUES ('ConsumoRic', 'ConsumoRic', 999, 4, 'ConsumoRic', 'ConsumoRicIcon')
|
||||
|
||||
-- Permessi2Funzione
|
||||
INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('ANAG_Locazioni', 'GIM_MR', 'S')
|
||||
@@ -25,6 +26,7 @@ INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('M
|
||||
INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('Menu', 'GIM_MR', 'N')
|
||||
INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('Menu', 'GIM_AppAdmin', 'N')
|
||||
INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('chLang', 'GIM_AppAdmin', 'N')
|
||||
INSERT INTO Permessi2Funzione (COD_PERMESSO,COD_FUNZIONE,[READWRITE]) VALUES ('ConsumoRic', 'GIM_MR', 'S')
|
||||
|
||||
-- FIX FriendlyURLS + icone FontAwesome nuova grafica
|
||||
UPDATE permessi SET URL = REPLACE(URL, '.aspx', '')
|
||||
@@ -139,5 +141,13 @@ exec voc.stp_insNewLemma 'lblNewDescr', 'Nuovo Ricambio'
|
||||
exec voc.stp_insNewLemma 'addNewItem', 'Aggiungi Record'
|
||||
exec voc.stp_insNewLemma 'showItemsAssegnati', 'Mostra Ricambi Assegnati'
|
||||
exec voc.stp_insNewLemma 'showAllItems', 'Mostra Tutti i Ricambi'
|
||||
exec voc.stp_insNewLemma 'ConsumoRic', 'Associa consumo Ricambi'
|
||||
exec voc.stp_insNewLemma 'ConsumoRicIcon', 'fa fa-plus'
|
||||
exec voc.stp_insNewLemma 'lbtnAddNewRic', 'Aggiunta Ricambi'
|
||||
exec voc.stp_insNewLemma 'Qta', 'Qty'
|
||||
exec voc.stp_insNewLemma 'ConsumoRicLong', 'Aggiunta Consumo Ricambi'
|
||||
exec voc.stp_insNewLemma 'AddRicambi2Int', 'Gestione Ricambi Consumati'
|
||||
exec voc.stp_insNewLemma 'return2DetInt', 'Torna a dettaglio intervento'
|
||||
exec voc.stp_insNewLemma 'RicambiDisponibili', 'Ricambi Disponibili'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user