ok mostra squadra corretta...
This commit is contained in:
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
@@ -328,6 +328,7 @@
|
||||
<Content Include="Content\Style.min.css">
|
||||
<DependentUpon>Style.css</DependentUpon>
|
||||
</Content>
|
||||
<Content Include="Content\themes\base\images\ajax-loader.gif" />
|
||||
<Content Include="Content\WebSCR.css">
|
||||
<DependentUpon>WebSCR.less</DependentUpon>
|
||||
</Content>
|
||||
@@ -371,6 +372,7 @@
|
||||
<Content Include="Upload\PingPage.aspx" />
|
||||
<Content Include="UserAdmin.aspx" />
|
||||
<Content Include="WebUserControls\mod_AssSquadra.ascx" />
|
||||
<Content Include="WebUserControls\mod_compSquadra.ascx" />
|
||||
<Content Include="WebUserControls\mod_consegne.ascx" />
|
||||
<Content Include="WebUserControls\mod_dettInt.ascx" />
|
||||
<Content Include="WebUserControls\mod_dispPeriodo.ascx" />
|
||||
@@ -543,6 +545,13 @@
|
||||
<Compile Include="WebUserControls\mod_AssSquadra.ascx.designer.cs">
|
||||
<DependentUpon>mod_AssSquadra.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_compSquadra.ascx.cs">
|
||||
<DependentUpon>mod_compSquadra.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_compSquadra.ascx.designer.cs">
|
||||
<DependentUpon>mod_compSquadra.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_consegne.ascx.cs">
|
||||
<DependentUpon>mod_consegne.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun record
|
||||
Nessun componente squadra assegnato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="CodSquadra" HeaderText="CodSquadra" ReadOnly="True" SortExpression="CodSquadra" />
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_compSquadra.ascx.cs" Inherits="WebSCR.WebUserControls.mod_compSquadra" %>
|
||||
|
||||
<div class="ui-mini">
|
||||
<div class="ui-grid-solo" style="padding: 2px;">
|
||||
<div class="ui-block-a ui-shadow ui-corner-all">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" Width="100%" AutoGenerateColumns="False" DataKeyNames="DataFrom,CodSquadra,Matr">
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun componente squadra assegnato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:BoundField DataField="Matr" HeaderText="Matr" ReadOnly="True" SortExpression="Matr" />--%>
|
||||
<asp:BoundField DataField="CognomeNome" HeaderText="Cognome Nome" ReadOnly="True" SortExpression="Matr" />
|
||||
<asp:BoundField DataField="DataFrom" HeaderText="Inizio" ReadOnly="True" SortExpression="DataFrom" DataFormatString="{0:ddd dd/MM/yyyy}" HtmlEncode="false" />
|
||||
<asp:BoundField DataField="DataTo" HeaderText="Fine" SortExpression="DataTo" DataFormatString="{0:ddd dd/MM/yyyy}" HtmlEncode="false" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetByCodSqData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter">
|
||||
<SelectParameters>
|
||||
<%--<asp:ControlParameter ControlID="ddlSquadre" DefaultValue="" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />--%>
|
||||
<asp:SessionParameter SessionField="CodSquadra" Name="CodSquadra" Type="String" />
|
||||
<%--<asp:CookieParameter CookieName="DataRif" Name="Data" Type="DateTime" />--%>
|
||||
<asp:SessionParameter SessionField="DataImp" Name="Data" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_compSquadra : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_compSquadra {
|
||||
|
||||
/// <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;
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,8 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_selSquadre.ascx" TagPrefix="uc1" TagName="mod_selSquadre" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_fileImpegno.ascx" TagPrefix="uc1" TagName="mod_fileImpegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_compSquadra.ascx" TagPrefix="uc1" TagName="mod_compSquadra" %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -46,10 +48,11 @@
|
||||
</div>
|
||||
<div style="width: 25%; float: right;">
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-field-contain">
|
||||
<uc1:mod_fileImpegno runat="server" ID="mod_fileImpegno" />
|
||||
<div class="ui-body">
|
||||
<uc1:mod_compSquadra runat="server" id="mod_compSquadra" />
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_fileImpegno runat="server" ID="mod_fileImpegno" />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="false" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
@@ -79,6 +80,9 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
// salvo parametri in sessione
|
||||
saveSessParam();
|
||||
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
mod_fileImpegno.Visible = true;
|
||||
@@ -90,6 +94,26 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void saveSessParam()
|
||||
{
|
||||
// metto in sessione squadra sel
|
||||
int idxImpegno = 0;
|
||||
string CodSquadra = "";
|
||||
DateTime DataImp = Convert.ToDateTime(memLayer.ML.StringSessionObj("DataRif"));
|
||||
try
|
||||
{
|
||||
idxImpegno = Convert.ToInt32(qsVal("IdxImpegno"));
|
||||
DS_Applicazione.ImpegniRow rigaImp = DtProxy.man.taImp.getByKey(idxImpegno)[0];
|
||||
CodSquadra = rigaImp.CodSquadra;
|
||||
DataImp = rigaImp.DataOra;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
memLayer.ML.setSessionVal("CodSquadra", CodSquadra);
|
||||
memLayer.ML.setSessionVal("DataImp", DataImp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// nuovo record impegno...
|
||||
/// </summary>
|
||||
|
||||
@@ -75,6 +75,15 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_dettInt mod_dettInt;
|
||||
|
||||
/// <summary>
|
||||
/// mod_compSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_compSquadra mod_compSquadra;
|
||||
|
||||
/// <summary>
|
||||
/// mod_fileImpegno control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user