NON FA + EDITING NOTE GEN....
This commit is contained in:
Binary file not shown.
@@ -349,6 +349,7 @@
|
||||
<Content Include="Squadre.aspx" />
|
||||
<Content Include="UserAdmin.aspx" />
|
||||
<Content Include="WebUserControls\mod_dettImpegno.ascx" />
|
||||
<Content Include="WebUserControls\mod_dettInt.ascx" />
|
||||
<Content Include="WebUserControls\mod_elencoClienti.ascx" />
|
||||
<Content Include="WebUserControls\mod_elencoDisp.ascx" />
|
||||
<Content Include="WebUserControls\mod_elencoRichResetUtenti.ascx" />
|
||||
@@ -491,6 +492,13 @@
|
||||
<Compile Include="WebUserControls\mod_dettImpegno.ascx.designer.cs">
|
||||
<DependentUpon>mod_dettImpegno.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettInt.ascx.cs">
|
||||
<DependentUpon>mod_dettInt.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettInt.ascx.designer.cs">
|
||||
<DependentUpon>mod_dettInt.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_elencoClienti.ascx.cs">
|
||||
<DependentUpon>mod_elencoClienti.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettImpegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettImpegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %>
|
||||
|
||||
|
||||
<div class="ui-mini" style="margin: -10px 0px;">
|
||||
<ul data-role="listview" data-inset="true">
|
||||
@@ -235,97 +237,7 @@
|
||||
<asp:ObjectDataSource ID="odsOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.GiornoTipoTableAdapter"></asp:ObjectDataSource>
|
||||
</li>
|
||||
<li class="ui-body">
|
||||
<div class="ui-field-contain">
|
||||
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
|
||||
<asp:LinkButton ID="lbAdd" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Task" OnClick="lbAdd_Click"></asp:LinkButton>
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
|
||||
|
||||
<asp:GridView ID="grViewDettInt" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxImpegno,NumCons" DataSourceID="odsDettInt" Width="100%">
|
||||
<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" />
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun Task
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="ui-nodisc-icon ui-alt-icon">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Edit"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update"></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField HeaderText="Attività" SortExpression="DescrConsegna">
|
||||
<%--<EditItemTemplate>
|
||||
<div style="font-size: 0.9em;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna" SelectedValue='<%# Bind("CodConsegna") %>'></asp:DropDownList>
|
||||
<div style="color: #DEDEDE;">
|
||||
note:
|
||||
<asp:TextBox ID="txtNote" runat="server" Text='<%# Bind("Note") %>' TextMode="MultiLine" />
|
||||
</div>
|
||||
</div>
|
||||
</EditItemTemplate>--%>
|
||||
<ItemTemplate>
|
||||
<div style="font-size: 0.9em;">
|
||||
<div class="flLeft">
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrConsegna","<b>{0}</b>") %>' />
|
||||
</div>
|
||||
<div class="flRight">
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("NumOp","<b>{0}</b> op") %>' />,
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Minuti","<b>{0}</b> min") %>' />
|
||||
</div>
|
||||
<%--<div style="clear: both; font-size: 0.9em; color: #696969;">
|
||||
note:
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Note") %>' />
|
||||
</div>--%>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<%-- <EditItemTemplate>
|
||||
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="cancel" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
|
||||
</EditItemTemplate>--%>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
<asp:ObjectDataSource ID="odsDettInt" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByImpegno" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter" DeleteMethod="deleteQuery" OnDeleted="odsDettInt_Deleted" OnUpdated="odsDettInt_Updated" UpdateMethod="updateQuery" OnUpdating="odsDettInt_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
||||
<asp:Parameter Name="CodConsegna" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
<uc1:mod_dettInt runat="server" id="mod_dettInt" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -11,6 +11,12 @@ namespace WebSCR.WebUserControls
|
||||
public partial class mod_dettImpegno : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_dettInt.eh_update += mod_dettInt_eh_update;
|
||||
}
|
||||
|
||||
void mod_dettInt_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
@@ -34,8 +40,8 @@ namespace WebSCR.WebUserControls
|
||||
|
||||
private void doUpdate()
|
||||
{
|
||||
grViewDettInt.DataBind();
|
||||
frmView.DataBind();
|
||||
mod_dettInt.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
@@ -69,34 +75,6 @@ namespace WebSCR.WebUserControls
|
||||
e.InputParameters["UserMod"] = SteamWare.user_std.UtSn.userNameAD;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiunge il task corrente all'elenco dei task...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue);
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
protected void odsDettInt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
protected void odsDettInt_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
protected void odsDettInt_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
// recupero valori consegna e note...
|
||||
e.InputParameters["CodConsegna"] = ((DropDownList)grViewDettInt.Rows[grViewDettInt.EditIndex].FindControl("ddlTipoCons")).SelectedValue;
|
||||
e.InputParameters["Note"] = ((TextBox)grViewDettInt.Rows[grViewDettInt.EditIndex].FindControl("txtNote")).Text;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
+2
-38
@@ -49,48 +49,12 @@ namespace WebSCR.WebUserControls {
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsOrario;
|
||||
|
||||
/// <summary>
|
||||
/// lbAdd control.
|
||||
/// mod_dettInt 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 lbAdd;
|
||||
|
||||
/// <summary>
|
||||
/// ddlTipoCons 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.DropDownList ddlTipoCons;
|
||||
|
||||
/// <summary>
|
||||
/// odsTipoCons 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 odsTipoCons;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDettInt 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 grViewDettInt;
|
||||
|
||||
/// <summary>
|
||||
/// odsDettInt 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 odsDettInt;
|
||||
protected global::WebSCR.WebUserControls.mod_dettInt mod_dettInt;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettInt" %>
|
||||
<div class="ui-field-contain">
|
||||
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
|
||||
<asp:LinkButton ID="lbAdd" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Task" OnClick="lbAdd_Click"></asp:LinkButton>
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
|
||||
|
||||
<asp:GridView ID="grViewDettInt" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxImpegno,NumCons" DataSourceID="odsDettInt" Width="100%">
|
||||
<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" />
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun Task
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="ui-nodisc-icon ui-alt-icon">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Edit"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update"></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
</asp:TemplateField>--%>
|
||||
<asp:TemplateField HeaderText="Attività" SortExpression="DescrConsegna">
|
||||
<%--<EditItemTemplate>
|
||||
<div style="font-size: 0.9em;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna" SelectedValue='<%# Bind("CodConsegna") %>'></asp:DropDownList>
|
||||
<div style="color: #DEDEDE;">
|
||||
note:
|
||||
<asp:TextBox ID="txtNote" runat="server" Text='<%# Bind("Note") %>' TextMode="MultiLine" />
|
||||
</div>
|
||||
</div>
|
||||
</EditItemTemplate>--%>
|
||||
<ItemTemplate>
|
||||
<div style="font-size: 0.9em;">
|
||||
<div class="flLeft">
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrConsegna","<b>{0}</b>") %>' />
|
||||
</div>
|
||||
<div class="flRight">
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("NumOp","<b>{0}</b> op") %>' />,
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Minuti","<b>{0}</b> min") %>' />
|
||||
</div>
|
||||
<%--<div style="clear: both; font-size: 0.9em; color: #696969;">
|
||||
note:
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Note") %>' />
|
||||
</div>--%>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
|
||||
<asp:ObjectDataSource ID="odsDettInt" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByImpegno" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DettImpegnoTableAdapter" DeleteMethod="deleteQuery" OnDeleted="odsDettInt_Deleted" OnUpdated="odsDettInt_Updated" UpdateMethod="updateQuery" OnUpdating="odsDettInt_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
||||
<asp:Parameter Name="CodConsegna" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_dettInt : System.Web.UI.UserControl
|
||||
{
|
||||
public event EventHandler eh_update;
|
||||
/// <summary>
|
||||
/// solleva evento selezione data
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// evento!
|
||||
if (eh_update != null)
|
||||
{
|
||||
eh_update(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// impegno corrente
|
||||
/// </summary>
|
||||
public int idxImpegno
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(qsVal("IdxImpegno"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
/// </summary>
|
||||
/// <param name="nome"></param>
|
||||
/// <returns></returns>
|
||||
protected string qsVal(string nome)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = Request.QueryString[nome].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiunge il task corrente all'elenco dei task...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue);
|
||||
//doUpdate();
|
||||
reportEvent();
|
||||
}
|
||||
|
||||
protected void odsDettInt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
//doUpdate();
|
||||
reportEvent();
|
||||
}
|
||||
|
||||
protected void odsDettInt_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
//doUpdate();
|
||||
reportEvent();
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
grViewDettInt.DataBind();
|
||||
}
|
||||
protected void odsDettInt_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
#if false
|
||||
// recupero valori consegna e note...
|
||||
e.InputParameters["CodConsegna"] = ((DropDownList)grViewDettInt.Rows[grViewDettInt.EditIndex].FindControl("ddlTipoCons")).SelectedValue;
|
||||
e.InputParameters["Note"] = ((TextBox)grViewDettInt.Rows[grViewDettInt.EditIndex].FindControl("txtNote")).Text;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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_dettInt {
|
||||
|
||||
/// <summary>
|
||||
/// lbAdd 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 lbAdd;
|
||||
|
||||
/// <summary>
|
||||
/// ddlTipoCons 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.DropDownList ddlTipoCons;
|
||||
|
||||
/// <summary>
|
||||
/// odsTipoCons 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 odsTipoCons;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDettInt 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 grViewDettInt;
|
||||
|
||||
/// <summary>
|
||||
/// odsDettInt 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 odsDettInt;
|
||||
}
|
||||
}
|
||||
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user