completato link clienti --> impegni (base)

This commit is contained in:
Samuele E. Locatelli
2015-04-27 15:30:56 +02:00
parent c3c4393bc4
commit 4ea4be229a
29 changed files with 178 additions and 3469 deletions
BIN
View File
Binary file not shown.
+2 -6
View File
@@ -1,11 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="Interventi.aspx.cs" Inherits="WebSCR.Interventi" %>
<%@ Register src="WebUserControls/mod_Interventi.ascx" tagname="mod_Interventi" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<p>
Filtro normale: IN CORSO</p>
<p>
Filtro opzionale PER CLIENTE</p>
<p>
FIltri accessori: OGGI | DOMANI | SETTIMANA | TUTTI | CONCLUSI ...</p>
<uc1:mod_Interventi ID="mod_Interventi1" runat="server" />
</asp:Content>
+14 -7
View File
@@ -3,15 +3,22 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebSCR
{
public partial class Interventi
{
namespace WebSCR {
public partial class Interventi {
/// <summary>
/// mod_Interventi1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_Interventi mod_Interventi1;
}
}
+8
View File
@@ -350,6 +350,7 @@
<Content Include="WebUserControls\mod_fileUpload.ascx" />
<Content Include="WebUserControls\mod_footer.ascx" />
<Content Include="WebUserControls\mod_header.ascx" />
<Content Include="WebUserControls\mod_Interventi.ascx" />
<None Include="Scripts\jquery-2.1.3.intellisense.js" />
<Content Include="Scripts\jquery-2.1.3.js" />
<Content Include="Scripts\jquery-2.1.3.min.js" />
@@ -545,6 +546,13 @@
<Compile Include="WebUserControls\mod_header.ascx.designer.cs">
<DependentUpon>mod_header.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_Interventi.ascx.cs">
<DependentUpon>mod_Interventi.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_Interventi.ascx.designer.cs">
<DependentUpon>mod_Interventi.ascx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<Folder Include="App_Data\" />
@@ -0,0 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_Interventi.ascx.cs" Inherits="WebSCR.WebUserControls.mod_Interventi" %>
<p>
Filtro normale: IN CORSO</p>
<p>
Filtro opzionale PER CLIENTE</p>
<p>
FIltri accessori: OGGI | DOMANI | SETTIMANA | TUTTI | CONCLUSI ...</p>
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebSCR.WebUserControls
{
public partial class mod_Interventi : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+17
View File
@@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <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_Interventi
{
}
}
@@ -34,7 +34,7 @@
<asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" Text="Interv." ToolTip="Mostra consegne cliente" CssClass="ui-btn ui-mini ui-btn-icon-right ui-shadow ui-corner-all ui-icon-search" />
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" CommandArgument="select" Text="Interv." ToolTip="Mostra consegne cliente" CssClass="ui-btn ui-mini ui-btn-icon-right ui-shadow ui-corner-all ui-icon-search" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
@@ -5,6 +5,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using WebSCR_data;
namespace WebSCR.WebUserControls
{
@@ -45,16 +46,25 @@ namespace WebSCR.WebUserControls
{
CodCliente = grView.SelectedDataKey["CodCliente"].ToString();
memLayer.ML.setSessionVal("CodCliente", CodCliente);
//DS_Applicazione.AnagPazientiRow riga = DtProxy.man.taAP.getByKey(IdxPaziente)[0];
//memLayer.ML.setSessionVal("Cliente", string.Format("{0} {1} ({2:dd/MM/yyyy})", riga.Cognome, riga.Nome, riga.DataNasc));
DS_Applicazione.AnagClientiRow riga = DtProxy.man.taAC.getByKey(CodCliente)[0];
memLayer.ML.setSessionVal("Cliente", string.Format("{0} {1} ({2:dd/MM/yyyy})", riga.Cognome, riga.Nome, riga.CodFis));
// mando a dettaglio con filtro x cliente!
Response.Redirect(string.Format("Interventi?FiltroCliente=1&ShowState=0&CodCliente={0}", grView.SelectedDataKey["CodCliente"]));
}
catch
{ }
catch(Exception exc)
{
logger.lg.scriviLog(string.Format("Errore in rimando clienti --> interventi: {0}{1}", Environment.NewLine, exc));
}
// no edit!!!
#if false
if (lastCmd == "edit")
{
// richiamo pagina con edit del record richiesto
Response.Redirect(string.Format("ClientiEdit?CodCliente={0}", grView.SelectedDataKey["CodCliente"]));
}
}
#endif
}
protected void grView_RowCommand(object sender, GridViewCommandEventArgs e)
@@ -31,7 +31,7 @@ namespace WebSCR.WebUserControls
protected void btnNew_Click(object sender, EventArgs e)
{
// creo novo record e vado in editing...
DtProxy.man.taAC.InsertQuery(" -ND", "Inserire Descrizione", 0, 1, false, false, false);
DtProxy.man.taATC.InsertQuery(" -ND", "Inserire Descrizione", 0, 1, false, false, false);
grView.EditIndex = 0;
grView.DataBind();
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
+54
View File
@@ -0,0 +1,54 @@
15:12:35 5952 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 49
15:14:27 4220 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 49
15:14:31 0372 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 49
15:29:13 6235 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
15:29:18 6049 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
15:29:24 2523 Errore in rimando clienti --> interventi:
System.Threading.ThreadAbortException: Thread interrotto.
in System.Threading.Thread.AbortInternal()
in System.Threading.Thread.Abort(Object stateInfo)
in System.Web.HttpResponse.AbortCurrentThread()
in System.Web.HttpResponse.End()
in System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent)
in System.Web.HttpResponse.Redirect(String url)
in WebSCR.WebUserControls.mod_elencoClienti.grView_SelectedIndexChanged(Object sender, EventArgs e) in c:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\WebUserControls\mod_elencoClienti.ascx.cs:riga 52
Binary file not shown.
+24 -1
View File
@@ -4738,13 +4738,19 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Loc" +
"alita_01, Prov_01, Indir_02, Cap_02, Localita_02, Prov_02, Note FROM dbo.AnagCli" +
"enti";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_AC_GetByCod";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
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("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4771,6 +4777,23 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Applicazione.AnagClientiDataTable getByKey(string CodCliente) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodCliente == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCliente));
}
DS_Applicazione.AnagClientiDataTable dataTable = new DS_Applicazione.AnagClientiDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+13 -1
View File
@@ -497,7 +497,19 @@ SELECT CodCliente, Cognome, Nome, CodFis, Tel, Cell, Email, Indir_01, Cap_01, Lo
<Mapping SourceColumn="Prov_02" DataSetColumn="Prov_02" />
<Mapping SourceColumn="Note" DataSetColumn="Note" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_AC_GetByCod" 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_AC_GetByCod</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="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
+5 -2
View File
@@ -29,7 +29,8 @@ namespace WebSCR_data
taVRF = new DS_ApplicazioneTableAdapters.VisRelazFinTableAdapter();
taRepVis = new DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter();
#endif
taAC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter();
taATC = new DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter();
taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter();
taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter();
taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter();
taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
@@ -49,6 +50,7 @@ namespace WebSCR_data
taVRF.Connection.ConnectionString = connStr;
taRepVis.Connection.ConnectionString = connStr;
#endif
taATC.Connection.ConnectionString = connStr;
taAC.Connection.ConnectionString = connStr;
taAS.Connection.ConnectionString = connStr;
taAZ.Connection.ConnectionString = connStr;
@@ -67,7 +69,8 @@ namespace WebSCR_data
public DS_ApplicazioneTableAdapters.stp_rep_DatiFullByPazienteDataTableAdapter taRepVis;
#endif
public DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter taAC;
public DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter taATC;
public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAC;
public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS;
public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ;
public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
Binary file not shown.
Binary file not shown.
Binary file not shown.