OK creazione ruoli e cancellazione ASS FORN da pagina dett utenti

manca canc da amministratore + creazione utente da zero...
This commit is contained in:
Samuele E. Locatelli
2018-09-28 23:38:35 +02:00
parent 82febe6093
commit 808db099fc
6 changed files with 199 additions and 56 deletions
+90 -8
View File
@@ -6977,17 +6977,24 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
[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[2];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_AnagAmministratori";
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_AA_getByUA";
this._commandCollection[1].CommandText = "dbo.stp_AU2A_deleteQuery";
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("@USER_NAME", 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("@Original_USER_NAME", 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("@Original_idxAmm", 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_AA_getByUA";
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("@USER_NAME", 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()]
@@ -7019,7 +7026,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_User.AnagAmministratoriDataTable getByUserAss(string USER_NAME) {
this.Adapter.SelectCommand = this.CommandCollection[1];
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((USER_NAME == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -7030,6 +7037,40 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
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 deleteRelAU2A(string Original_USER_NAME, global::System.Nullable<int> Original_idxAmm) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_USER_NAME == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(Original_USER_NAME));
}
if ((Original_idxAmm.HasValue == true)) {
command.Parameters[2].Value = ((int)(Original_idxAmm.Value));
}
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
@@ -7184,17 +7225,24 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
[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[2];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_AnagFornitori";
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_AF_getByUA";
this._commandCollection[1].CommandText = "dbo.stp_AU2F_deleteQuery";
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("@USER_NAME", 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("@Original_USER_NAME", 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("@Original_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] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_AF_getByUA";
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("@USER_NAME", 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()]
@@ -7226,7 +7274,7 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_User.AnagFornitoriDataTable getByUserAss(string USER_NAME) {
this.Adapter.SelectCommand = this.CommandCollection[1];
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((USER_NAME == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -7237,6 +7285,40 @@ SELECT idxCond, cod_cond, nome, indirizzo, cap, citta, cod_fisc, idxAmm, Attivo
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 deleteRelAU2F(string Original_USER_NAME, global::System.Nullable<int> Original_idxFornitore) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_USER_NAME == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(Original_USER_NAME));
}
if ((Original_idxFornitore.HasValue == true)) {
command.Parameters[2].Value = ((int)(Original_idxFornitore.Value));
}
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
+24
View File
@@ -474,6 +474,18 @@ FROM dbo.v_AnagAmministratori</CommandText>
<Mapping SourceColumn="ImponibileMedio" DataSetColumn="ImponibileMedio" />
</Mappings>
<Sources>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AU2A_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteRelAU2A" Modifier="Public" Name="deleteRelAU2A" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteRelAU2A">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AU2A_deleteQuery</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="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxAmm" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AA_getByUA" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByUserAss" GetMethodModifier="Public" GetMethodName="getByUserAss" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByUserAss" UserSourceName="getByUserAss">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -520,6 +532,18 @@ FROM dbo.v_AnagFornitori</CommandText>
<Mapping SourceColumn="numRich" DataSetColumn="numRich" />
</Mappings>
<Sources>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AU2F_deleteQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteRelAU2F" Modifier="Public" Name="deleteRelAU2F" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteRelAU2F">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_AU2F_deleteQuery</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="@Original_USER_NAME" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxFornitore" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AF_getByUA" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByUserAss" GetMethodModifier="Public" GetMethodName="getByUserAss" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByUserAss" UserSourceName="getByUserAss">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
+4 -4
View File
@@ -4,15 +4,15 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="279" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="83" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Utenti" ZOrder="2" X="469" Y="412" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
<Shape ID="DesignTable:AssU2A" ZOrder="14" X="95" Y="426" Height="158" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AssU2C" ZOrder="12" X="464" Y="192" Height="158" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AssU2F" ZOrder="10" X="860" Y="439" Height="158" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AnagCondomini" ZOrder="8" X="804" Y="78" Height="296" Width="283" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
<Shape ID="DesignTable:AnagAmministratori" ZOrder="6" X="91" Y="83" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
<Shape ID="DesignTable:AnagFornitori" ZOrder="1" X="841" Y="709" Height="388" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:AnagAmministratori" ZOrder="6" X="91" Y="83" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="237" />
<Shape ID="DesignTable:AnagFornitori" ZOrder="1" X="841" Y="709" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_AssU2A_Utenti" ZOrder="13" LineWidth="11">
@@ -67,7 +67,7 @@
<RoutePoints>
<Point>
<X>205</X>
<Y>402</Y>
<Y>425</Y>
</Point>
<Point>
<X>205</X>
Vendored
+1 -1
View File
@@ -17,7 +17,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=326']) {
withEnv(['NEXT_BUILD_NUMBER=327']) {
// env.versionNumber = VersionNumber(versionNumberString : '1.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '1.2.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'B2BCONDOMINI'
+2 -2
View File
@@ -5,7 +5,7 @@
<%@ Register Src="~/WebUserContols/mod_elencoRichResetUtenti.ascx" TagPrefix="uc1" TagName="mod_elencoRichResetUtenti" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<div class="container">
<div class="container-flow px-2">
<div id="divUnauth" runat="server">
<div class="card">
<div class="card-header text-uppercase">
@@ -32,7 +32,7 @@
</div>
</div>
</div>
<div class="card-body p-0">
<div class="card-body">
<uc1:mod_elencoRichResetUtenti runat="server" ID="mod_elencoRichResetUtenti" />
</div>
</div>
@@ -7,39 +7,70 @@
<div class="row" runat="server" id="divDetail" style="margin-top: 2px;">
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">USER DATA</h3>
<div class="card">
<div class="card-header">
<b>USER DATA</b>
</div>
<div class="panel-body">
<div class="card-body">
<asp:FormView runat="server" ID="frmDetail" DataKeyNames="USER_NAME" DataSourceID="odsUserDet">
<EditItemTemplate>
cognome:
<asp:TextBox ID="cognomeTextBox" runat="server" Text='<%# Bind("cognome") %>' />
<br />
nome:
<asp:TextBox ID="nomeTextBox" runat="server" Text='<%# Bind("nome") %>' />
<br />
email:
<asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>' />
<br />
CodGruppo:
<asp:TextBox ID="CodGruppoTextBox" runat="server" Text='<%# Bind("CodGruppo") %>' />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" />
&nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" />
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Cognome</span>
</div>
<asp:TextBox ID="cognomeTextBox" runat="server" Text='<%# Bind("cognome") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Nome</span>
</div>
<asp:TextBox ID="nomeTextBox" runat="server" Text='<%# Bind("nome") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Email</span>
</div>
<asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">CodGruppo</span>
</div>
<asp:TextBox ID="CodGruppoTextBox" runat="server" Text='<%# Bind("CodGruppo") %>' CssClass="form-control" />
</div>
<div class="row">
<div class="col-6">
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-success btn-block" />
</div>
<div class="col-6">
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-warning btn-block" />
</div>
</div>
</EditItemTemplate>
<ItemTemplate>
cognome:
<asp:Label ID="cognomeLabel" runat="server" Text='<%# Eval("cognome") %>' />
<br />
nome:
<asp:Label ID="nomeLabel" runat="server" Text='<%# Eval("nome") %>' />
<br />
email:
<asp:Label ID="emailLabel" runat="server" Text='<%# Eval("email") %>' />
<br />
CodGruppo:
<asp:Label ID="CodGruppoLabel" runat="server" Text='<%# Eval("CodGruppo") %>' />
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Cognome</span>
</div>
<asp:Label ID="cognomeTextBox" runat="server" Text='<%# Eval("cognome") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Nome</span>
</div>
<asp:Label ID="nomeTextBox" runat="server" Text='<%# Eval("nome") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Email</span>
</div>
<asp:Label ID="emailTextBox" runat="server" Text='<%# Eval("email") %>' CssClass="form-control" />
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">CodGruppo</span>
</div>
<asp:Label ID="CodGruppoTextBox" runat="server" Text='<%# Eval("CodGruppo") %>' CssClass="form-control" />
</ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource runat="server" ID="odsUserDet" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByEmail" TypeName="SteamWare.DS_AuthTableAdapters.UtentiTableAdapter" UpdateMethod="UpdateQuery" OnUpdated="odsUserDet_Updated">
@@ -60,12 +91,12 @@
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Aziende</h3>
<div class="card">
<div class="card-header">
<b>Aziende</b>
</div>
<div class="panel-body">
<asp:FormView runat="server" ID="frmViewAzienda" DataSourceID="odsAziende">
<div class="card-body">
<asp:FormView runat="server" ID="frmViewAzienda" DataSourceID="odsAziende" DataKeyNames="idxFornitore">
<ItemTemplate>
<div class="row">
<div class="col-12">
@@ -84,27 +115,33 @@
<div class="col-6">
<asp:Label ID="Label5" runat="server" Text='<%# Eval("cellulare") %>' />
</div>
<div class="col-12">
<asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="false" CommandName="Delete" CssClass="btn btn-outline-danger btn-block" ToolTip="Rimuovi assegnazione utente" OnClientClick="return confirm('Sicuro di voler eliminare l'associazione?')">Rimuovi associazione <i class="fas fa-unlink"></i></asp:LinkButton>
</div>
</div>
</ItemTemplate>
<EmptyDataTemplate>
</ItemTemplate>
<EmptyDataTemplate>
<span class="text-secondary">Nessun Record</span>
</EmptyDataTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="odsAziende" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByUserAss" TypeName="Data.DS_UserTableAdapters.AnagFornitoriTableAdapter">
<asp:ObjectDataSource ID="odsAziende" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByUserAss" TypeName="Data.DS_UserTableAdapters.AnagFornitoriTableAdapter" DeleteMethod="deleteRelAU2F">
<SelectParameters>
<asp:ControlParameter ControlID="grView" DefaultValue="@" Name="USER_NAME" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
<DeleteParameters>
<asp:ControlParameter ControlID="grView" DefaultValue="@" Name="Original_USER_NAME" PropertyName="SelectedValue" Type="String" />
<asp:Parameter Name="Original_idxFornitore" Type="Int32" />
</DeleteParameters>
</asp:ObjectDataSource>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Amministratori</h3>
<div class="card">
<div class="card-header">
<b>Amministratori</b>
</div>
<div class="panel-body">
<div class="card-body">
<asp:FormView runat="server" ID="frmViewAmmin" DataSourceID="odsAmmin" DataKeyNames="idxAmm">
<ItemTemplate>
<div class="row">