inizio pag gestione DETTAGLIO intervento

This commit is contained in:
Samuele E. Locatelli
2018-07-23 16:36:30 +02:00
parent 803254c166
commit 8be8523ee1
11 changed files with 650 additions and 64 deletions
+52 -47
View File
@@ -3427,7 +3427,7 @@ namespace Data {
private global::System.Data.DataColumn columncollaboratore;
private global::System.Data.DataColumn columncssPrior;
private global::System.Data.DataColumn columndataIns;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
@@ -3720,9 +3720,9 @@ namespace Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public global::System.Data.DataColumn cssPriorColumn {
public global::System.Data.DataColumn dataInsColumn {
get {
return this.columncssPrior;
return this.columndataIns;
}
}
@@ -3795,7 +3795,7 @@ namespace Data {
string stato,
string cssStato,
string collaboratore,
string cssPrior) {
System.DateTime dataIns) {
ElencolRichRow rowElencolRichRow = ((ElencolRichRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
@@ -3830,7 +3830,7 @@ namespace Data {
stato,
cssStato,
collaboratore,
cssPrior};
dataIns};
rowElencolRichRow.ItemArray = columnValuesArray;
this.Rows.Add(rowElencolRichRow);
return rowElencolRichRow;
@@ -3892,7 +3892,7 @@ namespace Data {
this.columnstato = base.Columns["stato"];
this.columncssStato = base.Columns["cssStato"];
this.columncollaboratore = base.Columns["collaboratore"];
this.columncssPrior = base.Columns["cssPrior"];
this.columndataIns = base.Columns["dataIns"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3962,8 +3962,8 @@ namespace Data {
base.Columns.Add(this.columncssStato);
this.columncollaboratore = new global::System.Data.DataColumn("collaboratore", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columncollaboratore);
this.columncssPrior = new global::System.Data.DataColumn("cssPrior", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columncssPrior);
this.columndataIns = new global::System.Data.DataColumn("dataIns", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columndataIns);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnidxRichiesta}, true));
this.columnidxRichiesta.AutoIncrement = true;
@@ -4008,8 +4008,7 @@ namespace Data {
this.columncssStato.MaxLength = 250;
this.columncollaboratore.ReadOnly = true;
this.columncollaboratore.MaxLength = 501;
this.columncssPrior.ReadOnly = true;
this.columncssPrior.MaxLength = 12;
this.columndataIns.AllowDBNull = false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -7164,17 +7163,12 @@ namespace Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public string cssPrior {
public System.DateTime dataIns {
get {
try {
return ((string)(this[this.tableElencolRich.cssPriorColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("Il valore della colonna \'cssPrior\' nella tabella \'ElencolRich\' è DBNull.", e);
}
return ((global::System.DateTime)(this[this.tableElencolRich.dataInsColumn]));
}
set {
this[this.tableElencolRich.cssPriorColumn] = value;
this[this.tableElencolRich.dataInsColumn] = value;
}
}
@@ -7273,18 +7267,6 @@ namespace Data {
public void SetcollaboratoreNull() {
this[this.tableElencolRich.collaboratoreColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public bool IscssPriorNull() {
return this.IsNull(this.tableElencolRich.cssPriorColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
public void SetcssPriorNull() {
this[this.tableElencolRich.cssPriorColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
@@ -10731,7 +10713,7 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea)
tableMapping.ColumnMappings.Add("stato", "stato");
tableMapping.ColumnMappings.Add("cssStato", "cssStato");
tableMapping.ColumnMappings.Add("collaboratore", "collaboratore");
tableMapping.ColumnMappings.Add("cssPrior", "cssPrior");
tableMapping.ColumnMappings.Add("dataIns", "dataIns");
this._adapter.TableMappings.Add(tableMapping);
}
@@ -10745,10 +10727,10 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea)
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ElencolRich";
this._commandCollection[0].CommandText = @"SELECT idxRichiesta, idxStato, idxCond, idxPriorita, idxArea, idxFornitore, cod_fornitore, cod_cond, nom_cond, dataIns, dataRich, dataScad, codCollabRich, genContatto, telContatto, messaggio, note, iscritta, ricevuto, data_ricevuto, risolto, data_risolto, fattura, data_fattura, preventivo, data_inizio_preventivo, data_fine_preventivo, primo_controllo, secondo_controllo, controllo_temporale, stato, cssStato, collaboratore FROM v_ElencolRich";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -10761,24 +10743,30 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea)
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maxStato", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_ER_InsertQuery";
this._commandCollection[2].CommandText = "dbo.stp_ER_getByKey";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCond", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRich", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codCollabRich", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@genContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@telContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxRichiesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_ER_UpdateText";
this._commandCollection[3].CommandText = "dbo.stp_ER_InsertQuery";
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxRichiesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCond", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFornitore", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataRich", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codCollabRich", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@genContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@telContatto", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@messaggio", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.stp_ER_UpdateText";
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("@Original_idxRichiesta", 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("@messaggio", global::System.Data.SqlDbType.NVarChar, 2147483647, 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("@note", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -10840,11 +10828,28 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea)
return dataTable;
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_app.ElencolRichDataTable getByKey(global::System.Nullable<int> idxRichiesta) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((idxRichiesta.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxRichiesta.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_app.ElencolRichDataTable dataTable = new DS_app.ElencolRichDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[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> idxCond, global::System.Nullable<int> idxFornitore, global::System.Nullable<global::System.DateTime> dataRich, string codCollabRich, string genContatto, string telContatto, string messaggio) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((idxCond.HasValue == true)) {
command.Parameters[1].Value = ((int)(idxCond.Value));
}
@@ -10908,7 +10913,7 @@ SELECT idxFornitore, idxArea, Attivazione FROM AssF2A WHERE (idxArea = @idxArea)
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int UpdateText(global::System.Nullable<int> Original_idxRichiesta, string messaggio, string note) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
if ((Original_idxRichiesta.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_idxRichiesta.Value));
}
+14 -10
View File
@@ -461,8 +461,7 @@ FROM v_AssF2C</CommandText>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.v_ElencolRich" 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="true">
<CommandText>SELECT *
FROM v_ElencolRich</CommandText>
<CommandText>SELECT idxRichiesta, idxStato, idxCond, idxPriorita, idxArea, idxFornitore, cod_fornitore, cod_cond, nom_cond, dataIns, dataRich, dataScad, codCollabRich, genContatto, telContatto, messaggio, note, iscritta, ricevuto, data_ricevuto, risolto, data_risolto, fattura, data_fattura, preventivo, data_inizio_preventivo, data_fine_preventivo, primo_controllo, secondo_controllo, controllo_temporale, stato, cssStato, collaboratore FROM v_ElencolRich</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
@@ -501,7 +500,7 @@ FROM v_ElencolRich</CommandText>
<Mapping SourceColumn="stato" DataSetColumn="stato" />
<Mapping SourceColumn="cssStato" DataSetColumn="cssStato" />
<Mapping SourceColumn="collaboratore" DataSetColumn="collaboratore" />
<Mapping SourceColumn="cssPrior" DataSetColumn="cssPrior" />
<Mapping SourceColumn="dataIns" DataSetColumn="dataIns" />
</Mappings>
<Sources>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_ER_getByCond" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByCondStato" GetMethodModifier="Public" GetMethodName="getByCondStato" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByCondStato" UserSourceName="getByCondStato">
@@ -518,6 +517,17 @@ FROM v_ElencolRich</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_ER_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ER_getByKey</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="@idxRichiesta" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_ER_InsertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="InsertQuery" Modifier="Public" Name="InsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -1112,13 +1122,7 @@ SELECT idxPriorita, descrPriorita, scadenzaGg FROM AnagPrior WHERE (idxPriorita
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cssPrior" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columncssPrior" msprop:Generator_ColumnPropNameInRow="cssPrior" msprop:Generator_ColumnPropNameInTable="cssPriorColumn" msprop:Generator_UserColumnName="cssPrior" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dataIns" msprop:Generator_ColumnVarNameInTable="columndataIns" msprop:Generator_ColumnPropNameInRow="dataIns" msprop:Generator_ColumnPropNameInTable="dataInsColumn" msprop:Generator_UserColumnName="dataIns" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
</xs:element>
+14
View File
@@ -0,0 +1,14 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/SitePAM.master" AutoEventWireup="true" CodeBehind="DettaglioIntervento.aspx.cs" Inherits="PUB.PAM.DettaglioIntervento" %>
<%@ Register Src="~/WebUserContols/mod_ER_detail.ascx" TagPrefix="uc1" TagName="mod_ER_detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="container-fluid my-1 bg-light">
<div class="row p-2">
<div class="col my-1">
<uc1:mod_ER_detail runat="server" ID="mod_ER_detail" />
</div>
</div>
</div>
</asp:Content>
+17
View File
@@ -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 PUB.PAM
{
public partial class DettaglioIntervento : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+24
View File
@@ -0,0 +1,24 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace PUB.PAM {
public partial class DettaglioIntervento {
/// <summary>
/// Controllo mod_ER_detail.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::PUB.WebUserContols.mod_ER_detail mod_ER_detail;
}
}
+16
View File
@@ -176,6 +176,7 @@
<Content Include="MainMenu.aspx" />
<Content Include="PAM\Conclusi.aspx" />
<Content Include="PAM\Condomini.aspx" />
<Content Include="PAM\DettaglioIntervento.aspx" />
<Content Include="PAM\Interventi.aspx" />
<Content Include="PAM\Login.aspx" />
<Content Include="PAM\MyDashboard.aspx" />
@@ -222,6 +223,7 @@
<Content Include="WebUserContols\mod_enrollByEmail.ascx" />
<Content Include="WebUserContols\mod_enrollByJumperAuthKey.ascx" />
<Content Include="WebUserContols\mod_ER_conclusi.ascx" />
<Content Include="WebUserContols\mod_ER_detail.ascx" />
<Content Include="WebUserContols\mod_ER_grid.ascx" />
<Content Include="WebUserContols\mod_ER_insNew.ascx" />
<Content Include="WebUserContols\mod_ER_richieste.ascx" />
@@ -389,6 +391,13 @@
<Compile Include="PAM\Condomini.aspx.designer.cs">
<DependentUpon>Condomini.aspx</DependentUpon>
</Compile>
<Compile Include="PAM\DettaglioIntervento.aspx.cs">
<DependentUpon>DettaglioIntervento.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PAM\DettaglioIntervento.aspx.designer.cs">
<DependentUpon>DettaglioIntervento.aspx</DependentUpon>
</Compile>
<Compile Include="PAM\Interventi.aspx.cs">
<DependentUpon>Interventi.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -625,6 +634,13 @@
<Compile Include="WebUserContols\mod_ER_conclusi.ascx.designer.cs">
<DependentUpon>mod_ER_conclusi.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserContols\mod_ER_detail.ascx.cs">
<DependentUpon>mod_ER_detail.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserContols\mod_ER_detail.ascx.designer.cs">
<DependentUpon>mod_ER_detail.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserContols\mod_ER_grid.ascx.cs">
<DependentUpon>mod_ER_grid.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+380
View File
@@ -0,0 +1,380 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_detail.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_detail" %>
<asp:FormView ID="frmView" runat="server" DataKeyNames="idxRichiesta" DataSourceID="ods" Width="100%">
<EditItemTemplate>
idxRichiesta:
<asp:Label ID="idxRichiestaLabel1" runat="server" Text='<%# Eval("idxRichiesta") %>' />
<br />
idxStato:
<asp:TextBox ID="idxStatoTextBox" runat="server" Text='<%# Bind("idxStato") %>' />
<br />
idxCond:
<asp:TextBox ID="idxCondTextBox" runat="server" Text='<%# Bind("idxCond") %>' />
<br />
idxPriorita:
<asp:TextBox ID="idxPrioritaTextBox" runat="server" Text='<%# Bind("idxPriorita") %>' />
<br />
idxArea:
<asp:TextBox ID="idxAreaTextBox" runat="server" Text='<%# Bind("idxArea") %>' />
<br />
idxFornitore:
<asp:TextBox ID="idxFornitoreTextBox" runat="server" Text='<%# Bind("idxFornitore") %>' />
<br />
cod_fornitore:
<asp:TextBox ID="cod_fornitoreTextBox" runat="server" Text='<%# Bind("cod_fornitore") %>' />
<br />
cod_cond:
<asp:TextBox ID="cod_condTextBox" runat="server" Text='<%# Bind("cod_cond") %>' />
<br />
nom_cond:
<asp:TextBox ID="nom_condTextBox" runat="server" Text='<%# Bind("nom_cond") %>' />
<br />
dataRich:
<asp:TextBox ID="dataRichTextBox" runat="server" Text='<%# Bind("dataRich") %>' />
<br />
dataScad:
<asp:TextBox ID="dataScadTextBox" runat="server" Text='<%# Bind("dataScad") %>' />
<br />
codCollabRich:
<asp:TextBox ID="codCollabRichTextBox" runat="server" Text='<%# Bind("codCollabRich") %>' />
<br />
genContatto:
<asp:TextBox ID="genContattoTextBox" runat="server" Text='<%# Bind("genContatto") %>' />
<br />
telContatto:
<asp:TextBox ID="telContattoTextBox" runat="server" Text='<%# Bind("telContatto") %>' />
<br />
messaggio:
<asp:TextBox ID="messaggioTextBox" runat="server" Text='<%# Bind("messaggio") %>' />
<br />
note:
<asp:TextBox ID="noteTextBox" runat="server" Text='<%# Bind("note") %>' />
<br />
iscritta:
<asp:TextBox ID="iscrittaTextBox" runat="server" Text='<%# Bind("iscritta") %>' />
<br />
ricevuto:
<asp:CheckBox ID="ricevutoCheckBox" runat="server" Checked='<%# Bind("ricevuto") %>' />
<br />
data_ricevuto:
<asp:TextBox ID="data_ricevutoTextBox" runat="server" Text='<%# Bind("data_ricevuto") %>' />
<br />
risolto:
<asp:CheckBox ID="risoltoCheckBox" runat="server" Checked='<%# Bind("risolto") %>' />
<br />
data_risolto:
<asp:TextBox ID="data_risoltoTextBox" runat="server" Text='<%# Bind("data_risolto") %>' />
<br />
fattura:
<asp:CheckBox ID="fatturaCheckBox" runat="server" Checked='<%# Bind("fattura") %>' />
<br />
data_fattura:
<asp:TextBox ID="data_fatturaTextBox" runat="server" Text='<%# Bind("data_fattura") %>' />
<br />
preventivo:
<asp:CheckBox ID="preventivoCheckBox" runat="server" Checked='<%# Bind("preventivo") %>' />
<br />
data_inizio_preventivo:
<asp:TextBox ID="data_inizio_preventivoTextBox" runat="server" Text='<%# Bind("data_inizio_preventivo") %>' />
<br />
data_fine_preventivo:
<asp:TextBox ID="data_fine_preventivoTextBox" runat="server" Text='<%# Bind("data_fine_preventivo") %>' />
<br />
primo_controllo:
<asp:CheckBox ID="primo_controlloCheckBox" runat="server" Checked='<%# Bind("primo_controllo") %>' />
<br />
secondo_controllo:
<asp:CheckBox ID="secondo_controlloCheckBox" runat="server" Checked='<%# Bind("secondo_controllo") %>' />
<br />
controllo_temporale:
<asp:CheckBox ID="controllo_temporaleCheckBox" runat="server" Checked='<%# Bind("controllo_temporale") %>' />
<br />
stato:
<asp:TextBox ID="statoTextBox" runat="server" Text='<%# Bind("stato") %>' />
<br />
cssStato:
<asp:TextBox ID="cssStatoTextBox" runat="server" Text='<%# Bind("cssStato") %>' />
<br />
collaboratore:
<asp:TextBox ID="collaboratoreTextBox" runat="server" Text='<%# Bind("collaboratore") %>' />
<br />
dataIns:
<asp:TextBox ID="dataInsTextBox" runat="server" Text='<%# Bind("dataIns") %>' />
<br />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Aggiorna" />
&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Annulla" />
</EditItemTemplate>
<InsertItemTemplate>
idxStato:
<asp:TextBox ID="idxStatoTextBox" runat="server" Text='<%# Bind("idxStato") %>' />
<br />
idxCond:
<asp:TextBox ID="idxCondTextBox" runat="server" Text='<%# Bind("idxCond") %>' />
<br />
idxPriorita:
<asp:TextBox ID="idxPrioritaTextBox" runat="server" Text='<%# Bind("idxPriorita") %>' />
<br />
idxArea:
<asp:TextBox ID="idxAreaTextBox" runat="server" Text='<%# Bind("idxArea") %>' />
<br />
idxFornitore:
<asp:TextBox ID="idxFornitoreTextBox" runat="server" Text='<%# Bind("idxFornitore") %>' />
<br />
cod_fornitore:
<asp:TextBox ID="cod_fornitoreTextBox" runat="server" Text='<%# Bind("cod_fornitore") %>' />
<br />
cod_cond:
<asp:TextBox ID="cod_condTextBox" runat="server" Text='<%# Bind("cod_cond") %>' />
<br />
nom_cond:
<asp:TextBox ID="nom_condTextBox" runat="server" Text='<%# Bind("nom_cond") %>' />
<br />
dataRich:
<asp:TextBox ID="dataRichTextBox" runat="server" Text='<%# Bind("dataRich") %>' />
<br />
dataScad:
<asp:TextBox ID="dataScadTextBox" runat="server" Text='<%# Bind("dataScad") %>' />
<br />
codCollabRich:
<asp:TextBox ID="codCollabRichTextBox" runat="server" Text='<%# Bind("codCollabRich") %>' />
<br />
genContatto:
<asp:TextBox ID="genContattoTextBox" runat="server" Text='<%# Bind("genContatto") %>' />
<br />
telContatto:
<asp:TextBox ID="telContattoTextBox" runat="server" Text='<%# Bind("telContatto") %>' />
<br />
messaggio:
<asp:TextBox ID="messaggioTextBox" runat="server" Text='<%# Bind("messaggio") %>' />
<br />
note:
<asp:TextBox ID="noteTextBox" runat="server" Text='<%# Bind("note") %>' />
<br />
iscritta:
<asp:TextBox ID="iscrittaTextBox" runat="server" Text='<%# Bind("iscritta") %>' />
<br />
ricevuto:
<asp:CheckBox ID="ricevutoCheckBox" runat="server" Checked='<%# Bind("ricevuto") %>' />
<br />
data_ricevuto:
<asp:TextBox ID="data_ricevutoTextBox" runat="server" Text='<%# Bind("data_ricevuto") %>' />
<br />
risolto:
<asp:CheckBox ID="risoltoCheckBox" runat="server" Checked='<%# Bind("risolto") %>' />
<br />
data_risolto:
<asp:TextBox ID="data_risoltoTextBox" runat="server" Text='<%# Bind("data_risolto") %>' />
<br />
fattura:
<asp:CheckBox ID="fatturaCheckBox" runat="server" Checked='<%# Bind("fattura") %>' />
<br />
data_fattura:
<asp:TextBox ID="data_fatturaTextBox" runat="server" Text='<%# Bind("data_fattura") %>' />
<br />
preventivo:
<asp:CheckBox ID="preventivoCheckBox" runat="server" Checked='<%# Bind("preventivo") %>' />
<br />
data_inizio_preventivo:
<asp:TextBox ID="data_inizio_preventivoTextBox" runat="server" Text='<%# Bind("data_inizio_preventivo") %>' />
<br />
data_fine_preventivo:
<asp:TextBox ID="data_fine_preventivoTextBox" runat="server" Text='<%# Bind("data_fine_preventivo") %>' />
<br />
primo_controllo:
<asp:CheckBox ID="primo_controlloCheckBox" runat="server" Checked='<%# Bind("primo_controllo") %>' />
<br />
secondo_controllo:
<asp:CheckBox ID="secondo_controlloCheckBox" runat="server" Checked='<%# Bind("secondo_controllo") %>' />
<br />
controllo_temporale:
<asp:CheckBox ID="controllo_temporaleCheckBox" runat="server" Checked='<%# Bind("controllo_temporale") %>' />
<br />
stato:
<asp:TextBox ID="statoTextBox" runat="server" Text='<%# Bind("stato") %>' />
<br />
cssStato:
<asp:TextBox ID="cssStatoTextBox" runat="server" Text='<%# Bind("cssStato") %>' />
<br />
collaboratore:
<asp:TextBox ID="collaboratoreTextBox" runat="server" Text='<%# Bind("collaboratore") %>' />
<br />
dataIns:
<asp:TextBox ID="dataInsTextBox" runat="server" Text='<%# Bind("dataIns") %>' />
<br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="Inserisci" />
&nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Annulla" />
</InsertItemTemplate>
<ItemTemplate>
<div class="card">
<div class="card-header alert alert-success text-uppercase align-middle">
<div class="row">
<div class="col">
<h5>Dettaglio richiesta #<%# Eval("IdxRichiesta") %></h5>
</div>
<div class="col text-right">
condominio <b><%# Eval("nom_cond") %></b> (<%# Eval("cod_cond") %>)
</div>
</div>
</div>
<div class="card-body mw-100">
<div class="row">
<div class="col-6">
</div>
<div class="col-6">
<div class="row text-right">
<div class="col-12 small">
<i class="far fa-bell"></i>| Messaggio
<asp:Label ID="lblMessaggio" runat="server" CssClass="form-control" Width="100%" Text='<%# Eval("messaggio") %>' />
</div>
<div class="col-12 text-warning small">
<i class="far fa-comment"></i>| Note
<asp:Label ID="lblNote" runat="server" CssClass="form-control" Text='<%# Eval("note") %>' />
</div>
</div>
</div>
<%--
<div class="col-3">Urgenza</div>
<div class="col-9">
<asp:DropDownList runat="server" ID="ddlPrior" DataSourceID="odsPrior" DataTextField="descrPriorita" DataValueField="idxPriorita" AppendDataBoundItems="true" CssClass="form-control" AutoPostBack="True">
</asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsPrior" SelectMethod="GetData" TypeName="Data.DS_appTableAdapters.AnagPriorTableAdapter" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
</div>
<div class="col-3">Area</div>
<div class="col-9">
<asp:DropDownList runat="server" ID="ddlArea" DataSourceID="odsArea" DataTextField="Area" DataValueField="idxArea" AppendDataBoundItems="true" CssClass="form-control" AutoPostBack="True" OnSelectedIndexChanged="ddlArea_SelectedIndexChanged">
<asp:ListItem Text="-- Selezionare Area --" Value="0"></asp:ListItem>
</asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsArea" SelectMethod="GetData" TypeName="Data.DS_appTableAdapters.AnagAreeTableAdapter" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
</div>
<div class="col-3">Fornitore</div>
<div class="col-6">
<asp:DropDownList runat="server" ID="ddlFornitore" DataSourceID="odsFornitore" DataTextField="label" DataValueField="value" AppendDataBoundItems="true" CssClass="form-control">
<asp:ListItem Text="-- Selezionare Fornitore --" Value="0"></asp:ListItem>
</asp:DropDownList>
<asp:ObjectDataSource runat="server" ID="odsFornitore" SelectMethod="getByAreaCond" TypeName="Data.DS_UtilityTableAdapters.v_selFornTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:ControlParameter ControlID="ddlArea" DefaultValue="0" Name="idxArea" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="hfCond" DefaultValue="0" Name="idxCond" PropertyName="Value" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div class="col-3">
<asp:HiddenField runat="server" ID="hfCond" />
<asp:HiddenField runat="server" ID="hfCondReq" />
<asp:CheckBox runat="server" ID="chkShowAll" Text="Tutti" Checked="false" AutoPostBack="True" OnCheckedChanged="chkShowAll_CheckedChanged" />
</div>
<div class="col-3">Messaggio</div>
<div class="col-9">
<asp:TextBox runat="server" ID="txtMessaggio" placeholder="messaggio" CssClass="form-control" TextMode="MultiLine" Height="6em" />
</div>
<div class="col-3">Contatto</div>
<div class="col-9">
<asp:TextBox runat="server" ID="txtContatto" placeholder="nome" CssClass="form-control" />
</div>
<div class="col-3">Tel Contatto</div>
<div class="col-9">
<asp:TextBox runat="server" ID="txtTelefono" placeholder="telefono" CssClass="form-control" />
</div>
<div class="col-12 my-2">
<asp:LinkButton runat="server" ID="lblAddNew" CssClass="btn btn-success btn-block" OnClick="lblAddNew_Click">
<i class="fas fa-plus-square"></i> Registra richiesta
</asp:LinkButton>
</div>--%>
</div>
</div>
</div>
idxStato:
<asp:Label ID="idxStatoLabel" runat="server" Text='<%# Bind("idxStato") %>' />
<br />
idxCond:
<asp:Label ID="idxCondLabel" runat="server" Text='<%# Bind("idxCond") %>' />
<br />
idxPriorita:
<asp:Label ID="idxPrioritaLabel" runat="server" Text='<%# Bind("idxPriorita") %>' />
<br />
idxArea:
<asp:Label ID="idxAreaLabel" runat="server" Text='<%# Bind("idxArea") %>' />
<br />
idxFornitore:
<asp:Label ID="idxFornitoreLabel" runat="server" Text='<%# Bind("idxFornitore") %>' />
<br />
cod_fornitore:
<asp:Label ID="cod_fornitoreLabel" runat="server" Text='<%# Bind("cod_fornitore") %>' />
<br />
dataRich:
<asp:Label ID="dataRichLabel" runat="server" Text='<%# Bind("dataRich") %>' />
<br />
dataScad:
<asp:Label ID="dataScadLabel" runat="server" Text='<%# Bind("dataScad") %>' />
<br />
codCollabRich:
<asp:Label ID="codCollabRichLabel" runat="server" Text='<%# Bind("codCollabRich") %>' />
<br />
genContatto:
<asp:Label ID="genContattoLabel" runat="server" Text='<%# Bind("genContatto") %>' />
<br />
telContatto:
<asp:Label ID="telContattoLabel" runat="server" Text='<%# Bind("telContatto") %>' />
<br />
iscritta:
<asp:Label ID="iscrittaLabel" runat="server" Text='<%# Bind("iscritta") %>' />
<br />
ricevuto:
<asp:CheckBox ID="ricevutoCheckBox" runat="server" Checked='<%# Bind("ricevuto") %>' Enabled="false" />
<br />
data_ricevuto:
<asp:Label ID="data_ricevutoLabel" runat="server" Text='<%# Bind("data_ricevuto") %>' />
<br />
risolto:
<asp:CheckBox ID="risoltoCheckBox" runat="server" Checked='<%# Bind("risolto") %>' Enabled="false" />
<br />
data_risolto:
<asp:Label ID="data_risoltoLabel" runat="server" Text='<%# Bind("data_risolto") %>' />
<br />
fattura:
<asp:CheckBox ID="fatturaCheckBox" runat="server" Checked='<%# Bind("fattura") %>' Enabled="false" />
<br />
data_fattura:
<asp:Label ID="data_fatturaLabel" runat="server" Text='<%# Bind("data_fattura") %>' />
<br />
preventivo:
<asp:CheckBox ID="preventivoCheckBox" runat="server" Checked='<%# Bind("preventivo") %>' Enabled="false" />
<br />
data_inizio_preventivo:
<asp:Label ID="data_inizio_preventivoLabel" runat="server" Text='<%# Bind("data_inizio_preventivo") %>' />
<br />
data_fine_preventivo:
<asp:Label ID="data_fine_preventivoLabel" runat="server" Text='<%# Bind("data_fine_preventivo") %>' />
<br />
primo_controllo:
<asp:CheckBox ID="primo_controlloCheckBox" runat="server" Checked='<%# Bind("primo_controllo") %>' Enabled="false" />
<br />
secondo_controllo:
<asp:CheckBox ID="secondo_controlloCheckBox" runat="server" Checked='<%# Bind("secondo_controllo") %>' Enabled="false" />
<br />
controllo_temporale:
<asp:CheckBox ID="controllo_temporaleCheckBox" runat="server" Checked='<%# Bind("controllo_temporale") %>' Enabled="false" />
<br />
stato:
<asp:Label ID="statoLabel" runat="server" Text='<%# Bind("stato") %>' />
<br />
cssStato:
<asp:Label ID="cssStatoLabel" runat="server" Text='<%# Bind("cssStato") %>' />
<br />
collaboratore:
<asp:Label ID="collaboratoreLabel" runat="server" Text='<%# Bind("collaboratore") %>' />
<br />
dataIns:
<asp:Label ID="dataInsLabel" runat="server" Text='<%# Bind("dataIns") %>' />
<br />
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByKey" TypeName="Data.DS_appTableAdapters.ElencolRichTableAdapter">
<SelectParameters>
<asp:QueryStringParameter DefaultValue="0" Name="idxRichiesta" QueryStringField="idxRichiesta" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
+17
View File
@@ -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 PUB.WebUserContols
{
public partial class mod_ER_detail : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+33
View File
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace PUB.WebUserContols {
public partial class mod_ER_detail {
/// <summary>
/// Controllo frmView.
/// </summary>
/// <remarks>
/// 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.FormView frmView;
/// <summary>
/// Controllo ods.
/// </summary>
/// <remarks>
/// 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 ods;
}
}
+11 -7
View File
@@ -1,7 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_ER_grid.ascx.cs" Inherits="PUB.WebUserContols.mod_ER_grid" %>
<asp:GridView runat="server" ID="grViewElRich" AutoGenerateColumns="False" DataKeyNames="idxRichiesta" DataSourceID="odsElRich" AllowPaging="True" Width="100%" AllowSorting="True" PageSize="5" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-responsive table-striped" OnRowCancelingEdit="grViewElRich_RowCancelingEdit" OnRowEditing="grViewElRich_RowEditing" OnSelectedIndexChanging="grViewElRich_SelectedIndexChanging">
<asp:GridView runat="server" ID="grViewElRich" AutoGenerateColumns="False" DataKeyNames="idxRichiesta" DataSourceID="odsElRich" AllowPaging="True" Width="100%" AllowSorting="True" PageSize="5" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="table table-responsive table-striped" OnRowCancelingEdit="grViewElRich_RowCancelingEdit" OnRowEditing="grViewElRich_RowEditing" OnSelectedIndexChanging="grViewElRich_SelectedIndexChanging" OnRowCommand="grViewElRich_RowCommand" OnSelectedIndexChanged="grViewElRich_SelectedIndexChanged">
<SortedAscendingCellStyle BackColor="#F5F7FB" />
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
<SortedDescendingCellStyle BackColor="#E9EBEF" />
@@ -27,11 +27,15 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="Data" SortExpression="dataRich">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("dataRich","{0:dd.MM.yyyy}") %>' />
<br />
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataRich","{0:ddd HH:mm}") %>' />
<br />
<asp:Label CssClass='<%# Eval("cssPrior") %>' ID="Label2" runat="server" ToolTip=<%# Eval("dataScad","Risposta entro {0:dd.MM.yyyy HH:mm}") %>>Urg: <b><%# Eval("idxPriorita") %></b> </asp:Label>
<div class="text-right">
<asp:Label ID="Label3" runat="server" Text='<%# Eval("dataRich","{0:dd.MM.yyyy}") %>' />
<br />
<asp:Label ID="Label4" runat="server" Text='<%# Eval("dataRich","{0:ddd HH:mm}") %>' />
</div>
<div class="text-center">
<asp:Label CssClass='<%# getCssScad(Eval("dataScad")) %>' ID="Label2" runat="server" ToolTip='<%# Eval("dataScad","Risposta entro {0:dd.MM.yyyy HH:mm}") %>'>Urg: <b><%# Eval("idxPriorita") %></b> </asp:Label>
<asp:LinkButton runat="server" ID="lbtRiprogramma" CausesValidation="false" Visible='<%# isScad(Eval("dataScad")) %>' CssClass="btn btn-danger btn-sm" CommandName="Select" CommandArgument="Riassegna"><i class="fa fa-wrench"></i></asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Richiesta">
@@ -97,7 +101,7 @@
</div>
<div class="col-12 text-warning small">
<i class="far fa-comment"></i>Note
<asp:TextBox ID="lblNote" runat="server" CssClass="form-control" Text='<%# Bind("note") %>' Height="5em" TextMode="MultiLine" />
<asp:TextBox ID="txtNote" runat="server" CssClass="form-control" Text='<%# Bind("note") %>' Height="5em" TextMode="MultiLine" />
</div>
</div>
</EditItemTemplate>
+72
View File
@@ -10,6 +10,10 @@ namespace PUB.WebUserContols
public partial class mod_ER_grid : System.Web.UI.UserControl
{
public event EventHandler eh_selCond;
/// <summary>
/// ultimo comando letto da link button
/// </summary>
public string lastCmd { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
@@ -93,7 +97,75 @@ namespace PUB.WebUserContols
// sollevo evento selezione condominio...
eh_selCond?.Invoke(this, new SelCondEventArgs(idxCond));
}
/// <summary>
/// Verifica se sia scaduta
/// </summary>
/// <param name="_dataScad"></param>
/// <returns></returns>
public bool isScad(object _dataScad)
{
bool answ = true;
DateTime dataScad;
//dataRich = DateTime.Today;
//dataScad = dataRich;
try
{
DateTime.TryParse(_dataScad.ToString(), out dataScad);
if (dataScad >= DateTime.Now)
{
answ = false;
}
}
catch
{ }
return answ;
}
/// <summary>
/// Css x colorazione in abse a scadenza
/// </summary>
/// <param name="_dataScad"></param>
/// <returns></returns>
public string getCssScad(object _dataScad)
{
string answ = "text-danger";
DateTime dataScad;
//dataRich = DateTime.Today;
//dataScad = dataRich;
try
{
DateTime.TryParse(_dataScad.ToString(), out dataScad);
if (dataScad >= DateTime.Now)
{
answ = "text-success";
}
}
catch
{ }
return answ;
}
protected void grViewElRich_RowCommand(object sender, GridViewCommandEventArgs e)
{
// verifico se sia riassegnazione...
lastCmd = e.CommandArgument.ToString();
}
protected void grViewElRich_SelectedIndexChanged(object sender, EventArgs e)
{
switch (lastCmd)
{
case "Riassegna":
// --> pagina riassegnazione con dettagli...
Response.Redirect(string.Format("DettaglioIntervento?idxRichiesta={0}", grViewElRich.SelectedDataKey["idxRichiesta"]));
break;
default:
break;
}
}
}
/// <summary>
/// Evento parametrico sel condominio
/// </summary>