Update x log modifiche dettIntervento

This commit is contained in:
Samuele E. Locatelli
2018-04-11 13:06:59 +02:00
parent 9f457f45a1
commit e6ec15decf
12 changed files with 357 additions and 322 deletions
Binary file not shown.
+87 -84
View File
@@ -1,97 +1,100 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettInt" %>
<div class="ui-mini noShadows">
<div class="flLeft div_2_3 ui-corner-all">
<div class="ui-field-contain" style="visibility: <%: isVisible %>; height: <%: visHeight %>;">
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
<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="Aggiungi" OnClick="lbAdd_Click" Visible='<%# canAddData %>' />
</div>
</div>
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
<div class="flLeft div_2_3 ui-corner-all">
<div class="ui-field-contain" style="visibility: <%: isVisible %>; height: <%: visHeight %>;">
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
<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="Aggiungi" OnClick="lbAdd_Click" Visible='<%# canAddData %>' />
</div>
</div>
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
</div>
<div class="flLeft div_1_3 ui-corner-all">
<asp:Label runat="server" ID="lblWarning" Text="..." ForeColor="Red" />
</div>
</div>
<div class="flLeft div_1_3 ui-corner-all">
<asp:Label runat="server" ID="lblWarning" Text="..." ForeColor="Red" />
</div>
</div>
<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>
Nessuna Attivi&agrave;
</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" Visible='<%# !disableEdit %>' />
</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" />
</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:
<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>
Nessuna Attivi&agrave;
</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" Visible='<%# !disableEdit %>' />
</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" />
</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") %>' />,&nbsp;
</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") %>' />,&nbsp;
<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:
</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?')" Visible='<%# !disableEdit %>' />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
</Columns>
</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?')" Visible='<%# !disableEdit %>' />
</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" />
<asp:SessionParameter SessionField="matrOp" Name="MatrOp" Type="String" />
</UpdateParameters>
<DeleteParameters>
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
<asp:Parameter Name="Original_NumCons" Type="Int32" />
<asp:Parameter Name="UserMod" Type="String" />
<asp:Parameter Name="MatrOp" Type="String" />
</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="UserMod" Type="String" />
<asp:SessionParameter SessionField="matrOp" Name="MatrOp" Type="String" />
<asp:Parameter Name="Note" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
+202 -202
View File
@@ -9,232 +9,232 @@ using WebSCR_data;
namespace WebSCR.WebUserControls
{
public partial class mod_dettInt : System.Web.UI.UserControl
public partial class mod_dettInt : System.Web.UI.UserControl
{
public event EventHandler eh_update;
/// <summary>
/// solleva evento selezione data
/// </summary>
protected void reportEvent()
{
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>
/// disabilita modalità EDIT record...
/// </summary>
public bool disableEdit { get; set; }
/// <summary>
/// determina se sia visibile...
/// </summary>
public string isVisible
{
get
{
string answ = "visible";
if (disableEdit)
{
// evento!
if (eh_update != null)
{
eh_update(this, new EventArgs());
}
answ = "hidden";
}
/// <summary>
/// disabilita modalità EDIT record...
/// </summary>
public bool disableEdit { get; set; }
/// <summary>
/// determina se sia visibile...
/// </summary>
public string isVisible
return answ;
}
}
/// <summary>
/// determina altezza visibile
/// </summary>
public string visHeight
{
get
{
string answ = "1em";
if (disableEdit)
{
get
{
string answ = "visible";
if (disableEdit)
{
answ = "hidden";
}
return answ;
}
answ = "0px";
}
/// <summary>
/// determina altezza visibile
/// </summary>
public string visHeight
{
get
{
string answ = "1em";
if (disableEdit)
{
answ = "0px";
}
return answ;
}
return answ;
}
}
/// <summary>
/// impegno corrente
/// </summary>
public int idxImpegno
}
/// <summary>
/// impegno corrente
/// </summary>
public int idxImpegno
{
get
{
int answ = 0;
try
{
get
{
int answ = 0;
try
{
answ = Convert.ToInt32(qsVal("IdxImpegno"));
}
catch
{ }
return answ;
}
answ = Convert.ToInt32(qsVal("IdxImpegno"));
}
/// <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)
{
doUpdate();
}
/// <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)
{
// verifico se si possa inserire (ovvero totale tempo > minTempo e valore da inserire NEGATIVO...)
if (((actualMin + selTaskMin) >= minTempoInt))
{
// fix warning
lblWarning.Visible = false;
lblWarning.Text = "";
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)
{
doUpdate();
}
/// <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)
{
// verifico se si possa inserire (ovvero totale tempo > minTempo e valore da inserire NEGATIVO...)
if (((actualMin + selTaskMin) >= minTempoInt))
{
// fix warning
lblWarning.Visible = false;
lblWarning.Text = "";
DtProxy.man.taDetImp.insertQuery(idxImpegno, matrOp, ddlTipoCons.SelectedValue);
//doUpdate();
reportEvent();
}
else
{
// fix warning
lblWarning.Visible = true;
lblWarning.Text = string.Format("Attenzione: impossibile inserire, tempo complessivo diventerebbe inferiore a soglia minima ({0} min)!", minTempoInt);
}
}
/// <summary>
/// verifica se si possano agigungere dati: ha patricola (OP) e l'intervento ha il record usato si/no compilato
/// </summary>
public bool canAddData
DtProxy.man.taDetImp.insertQuery(idxImpegno, user_std.UtSn.userNameAD, matrOp, ddlTipoCons.SelectedValue);
//doUpdate();
reportEvent();
}
else
{
// fix warning
lblWarning.Visible = true;
lblWarning.Text = string.Format("Attenzione: impossibile inserire, tempo complessivo diventerebbe inferiore a soglia minima ({0} min)!", minTempoInt);
}
}
/// <summary>
/// verifica se si possano agigungere dati: ha patricola (OP) e l'intervento ha il record usato si/no compilato
/// </summary>
public bool canAddData
{
get
{
return hasMatricola && isRitUsOk;
}
}
/// <summary>
/// verifica se il record sia OK x ritiro usato...
/// </summary>
public bool isRitUsOk
{
get
{
bool answ = false;
try
{
get
{
return hasMatricola && isRitUsOk;
}
answ = DtProxy.man.taImp.getByKey(idxImpegno)[0].RitUsato >= 0;
}
/// <summary>
/// verifica se il record sia OK x ritiro usato...
/// </summary>
public bool isRitUsOk
catch
{ }
return answ;
}
}
/// <summary>
/// verifica se ci sia matricola in sessione
/// </summary>
public bool hasMatricola
{
get
{
return matrOp != "";
}
}
/// <summary>
/// matricola OP (x utente)
/// </summary>
public string matrOp
{
get
{
string answ = "";
try
{
get
{
bool answ = false;
try
{
answ = DtProxy.man.taImp.getByKey(idxImpegno)[0].RitUsato >= 0;
}
catch
{ }
return answ;
}
answ = memLayer.ML.StringSessionObj("matrOp");
}
/// <summary>
/// verifica se ci sia matricola in sessione
/// </summary>
public bool hasMatricola
catch
{ }
return answ;
}
}
protected int minTempoInt
{
get
{
return memLayer.ML.CRI("minTempoInterv");
}
}
protected int actualMin
{
get
{
int answ = 0;
try
{
get
{
return matrOp != "";
}
}
/// <summary>
/// matricola OP (x utente)
/// </summary>
public string matrOp
{
get
{
string answ = "";
try
{
answ = memLayer.ML.StringSessionObj("matrOp");
}
catch
{ }
return answ;
}
}
protected int minTempoInt
{
get
{
return memLayer.ML.CRI("minTempoInterv");
}
}
protected int actualMin
{
get
{
int answ = 0;
try
{
answ = DtProxy.man.taVRI.getByKey(idxImpegno)[0].TotMin;
}
catch
{ }
return answ;
}
answ = DtProxy.man.taVRI.getByKey(idxImpegno)[0].TotMin;
}
catch
{ }
return answ;
}
}
protected int selTaskMin
protected int selTaskMin
{
get
{
int answ = 0;
try
{
get
{
int answ = 0;
try
{
answ = DtProxy.man.taATC.getByKey(ddlTipoCons.SelectedValue)[0].MinutiStd;
}
catch
{ }
return answ;
}
answ = DtProxy.man.taATC.getByKey(ddlTipoCons.SelectedValue)[0].MinutiStd;
}
catch
{ }
return answ;
}
}
protected void odsDettInt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
{
//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()
{
lblWarning.Visible = false;
lbAdd.DataBind();
grViewDettInt.DataBind();
}
protected void odsDettInt_Updating(object sender, ObjectDataSourceMethodEventArgs e)
{
protected void odsDettInt_Updated(object sender, ObjectDataSourceStatusEventArgs e)
{
//doUpdate();
reportEvent();
}
public void doUpdate()
{
lblWarning.Visible = false;
lbAdd.DataBind();
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
}
}
}
}
+23 -23
View File
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace WebSCR.WebUserControls {
@@ -13,56 +13,56 @@ namespace WebSCR.WebUserControls {
public partial class mod_dettInt {
/// <summary>
/// ddlTipoCons control.
/// Controllo ddlTipoCons.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlTipoCons;
/// <summary>
/// lbAdd control.
/// Controllo lbAdd.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbAdd;
/// <summary>
/// odsTipoCons control.
/// Controllo odsTipoCons.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoCons;
/// <summary>
/// lblWarning control.
/// Controllo lblWarning.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblWarning;
/// <summary>
/// grViewDettInt control.
/// Controllo grViewDettInt.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grViewDettInt;
/// <summary>
/// odsDettInt control.
/// Controllo odsDettInt.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsDettInt;
}
Binary file not shown.
Binary file not shown.
+39 -11
View File
@@ -15579,6 +15579,8 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumCons", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOp", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_DettImp_getByImpegno";
@@ -15598,6 +15600,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOp", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
@@ -15608,6 +15611,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxImpegno", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumCons", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodConsegna", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOp", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
@@ -15679,7 +15683,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int deleteQuery(global::System.Nullable<int> Original_IdxImpegno, global::System.Nullable<int> Original_NumCons) {
public virtual int deleteQuery(global::System.Nullable<int> Original_IdxImpegno, global::System.Nullable<int> Original_NumCons, string UserMod, string MatrOp) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_IdxImpegno.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_IdxImpegno.Value));
@@ -15693,6 +15697,18 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
if ((UserMod == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(UserMod));
}
if ((MatrOp == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(MatrOp));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -15713,7 +15729,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(global::System.Nullable<int> IdxImpegno, string MatrOp, string CodConsegna) {
public virtual int insertQuery(global::System.Nullable<int> IdxImpegno, string UserMod, string MatrOp, string CodConsegna) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((IdxImpegno.HasValue == true)) {
command.Parameters[1].Value = ((int)(IdxImpegno.Value));
@@ -15721,17 +15737,23 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
if ((MatrOp == null)) {
if ((UserMod == null)) {
command.Parameters[2].Value = global::System.DBNull.Value;
}
else {
command.Parameters[2].Value = ((string)(MatrOp));
command.Parameters[2].Value = ((string)(UserMod));
}
if ((CodConsegna == null)) {
if ((MatrOp == null)) {
command.Parameters[3].Value = global::System.DBNull.Value;
}
else {
command.Parameters[3].Value = ((string)(CodConsegna));
command.Parameters[3].Value = ((string)(MatrOp));
}
if ((CodConsegna == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(CodConsegna));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
@@ -15753,7 +15775,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int updateQuery(global::System.Nullable<int> Original_IdxImpegno, global::System.Nullable<int> Original_NumCons, string CodConsegna, string MatrOp, string Note) {
public virtual int updateQuery(global::System.Nullable<int> Original_IdxImpegno, global::System.Nullable<int> Original_NumCons, string CodConsegna, string UserMod, string MatrOp, string Note) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((Original_IdxImpegno.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_IdxImpegno.Value));
@@ -15773,17 +15795,23 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
else {
command.Parameters[3].Value = ((string)(CodConsegna));
}
if ((MatrOp == null)) {
if ((UserMod == null)) {
command.Parameters[4].Value = global::System.DBNull.Value;
}
else {
command.Parameters[4].Value = ((string)(MatrOp));
command.Parameters[4].Value = ((string)(UserMod));
}
if ((Note == null)) {
if ((MatrOp == null)) {
command.Parameters[5].Value = global::System.DBNull.Value;
}
else {
command.Parameters[5].Value = ((string)(Note));
command.Parameters[5].Value = ((string)(MatrOp));
}
if ((Note == null)) {
command.Parameters[6].Value = global::System.DBNull.Value;
}
else {
command.Parameters[6].Value = ((string)(Note));
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+4
View File
@@ -1026,6 +1026,8 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
<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="@Original_IdxImpegno" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NumCons" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@MatrOp" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
@@ -1060,6 +1062,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
<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="@IdxImpegno" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@MatrOp" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodConsegna" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
@@ -1075,6 +1078,7 @@ SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSq
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_IdxImpegno" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_NumCons" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodConsegna" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UserMod" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@MatrOp" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
+2 -2
View File
@@ -10,12 +10,12 @@
<Shape ID="DesignTable:AnagZone" ZOrder="19" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="18" X="919" Y="164" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="14" X="330" Y="139" Height="362" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Impegni" ZOrder="1" X="9" Y="189" Height="573" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="351" />
<Shape ID="DesignTable:Impegni" ZOrder="2" X="9" Y="189" Height="573" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="351" />
<Shape ID="DesignTable:DispImpTot" ZOrder="16" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="17" X="931" Y="666" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="5" X="1245" Y="871" Height="210" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:Disponibilita" ZOrder="12" X="707" Y="839" Height="248" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:DettImpegno" ZOrder="2" X="14" Y="773" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:DettImpegno" ZOrder="1" X="14" Y="773" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
<Shape ID="DesignTable:v_clientiZone" ZOrder="4" X="1034" Y="858" Height="229" Width="186" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:DB2_DOCS" ZOrder="11" X="1244" Y="171" Height="516" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="408" />
<Shape ID="DesignTable:AssegnSquadre" ZOrder="9" X="333" Y="730" Height="191" Width="276" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
Binary file not shown.
Binary file not shown.