Inizio pagina gruppi

This commit is contained in:
Samuele Locatelli
2021-10-15 19:09:57 +02:00
parent 2ebb83da3a
commit 814d38c305
7 changed files with 176 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Bazaar.master" AutoEventWireup="true" CodeBehind="BazaarGroups.aspx.cs" Inherits="PROJ_ETS.BazaarGroups" %>
<%@ Register Src="~/WebUserControls/mod_GroupsMan.ascx" TagPrefix="uc1" TagName="mod_GroupsMan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Contenuto" runat="server">
<uc1:mod_GroupsMan runat="server" id="mod_GroupsMan" />
</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 PROJ_ETS
{
public partial class BazaarGroups : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+26
View File
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <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 PROJ_ETS
{
public partial class BazaarGroups
{
/// <summary>
/// mod_GroupsMan control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::PROJ_ETS.WebUserControls.mod_GroupsMan mod_GroupsMan;
}
}
@@ -0,0 +1,63 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_GroupsMan.ascx.cs" Inherits="PROJ_ETS.WebUserControls.mod_GroupsMan" %>
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="Gruppo" DataSourceID="ods" CssClass="table table-striped" AllowSorting="True">
<SelectedRowStyle CssClass="table-info" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" CausesValidation="false" CssClass="btn btn-info px-4 text-light" OnClick="lbtReset_Click" ToolTip="Reset selezione">
<i class="fa fa-refresh" aria-hidden="true"></i>
</asp:LinkButton>
</HeaderTemplate>
<EditItemTemplate>
<asp:LinkButton ID="lbtUpdate" runat="server" CausesValidation="True" CommandName="Update" Text="Update" CssClass="btn btn-sm btn-success">
<i class="fa fa-check" aria-hidden="true"></i>
</asp:LinkButton>
<asp:LinkButton ID="lbtCancel" runat="server" CausesValidation="False" CommandName="Cancel" Text="Cancel" CssClass="btn btn-sm btn-warning">
<i class="fa fa-ban" aria-hidden="true"></i>
</asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbtSelect" runat="server" CausesValidation="False" CommandName="Select" Text="Select" CssClass="btn btn-sm btn-info text-light">
<i class="fa fa-search" aria-hidden="true"></i>
</asp:LinkButton>
<asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" CommandName="Edit" Text="Edit" CssClass="btn btn-sm btn-primary text-light">
<i class="fa fa-pencil" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="OrdGruppo" HeaderText="Ord." SortExpression="OrdGruppo" />
<asp:BoundField DataField="Gruppo" HeaderText="Gruppo" ReadOnly="True" SortExpression="Gruppo" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
<asp:CheckBoxField DataField="Visibile" HeaderText="Visibile" SortExpression="Visibile" />
<asp:BoundField DataField="NumDip" HeaderText=" Dip" SortExpression="NumDip" />
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="Delete" CssClass="btn btn-sm btn-danger text-light" OnClientClick="return confirm('Confermi eliminazione record?')" Visible='<%# Eval("NumDip").ToString() == "0" %>'><i class="fa fa-trash" aria-hidden="true"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" DeleteMethod="deleteQuery" InsertMethod="InsertQuery" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetDataOrd" TypeName="ETS_Data.Ds_ProjEtsTableAdapters.AnagGruppiTableAdapter" UpdateMethod="updateQuery">
<DeleteParameters>
<asp:Parameter Name="Original_Gruppo" Type="Int32" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="Gruppo" Type="String" />
<asp:Parameter Name="Descrizione" Type="String" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="Original_Gruppo" Type="String" />
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="OrdGruppo" Type="Int32" />
<asp:Parameter Name="Visibile" Type="Boolean" />
</UpdateParameters>
</asp:ObjectDataSource>
gestione gruppi:
<ul>
<li>Anagrafica gruppi (CRUD) + attivazione</li>
<li>Sync utenti</li>
<li>Assegnazione utenti-Gruppi</li>
</ul>
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace PROJ_ETS.WebUserControls
{
public partial class mod_GroupsMan : System.Web.UI.UserControl
{
#region Protected Methods
protected void lbtReset_Click(object sender, EventArgs e)
{
grView.SelectedIndex = -1;
grView.DataBind();
}
protected void Page_Load(object sender, EventArgs e)
{
}
#endregion Protected Methods
}
}
@@ -0,0 +1,35 @@
//------------------------------------------------------------------------------
// <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 PROJ_ETS.WebUserControls
{
public partial class mod_GroupsMan
{
/// <summary>
/// grView control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.GridView grView;
/// <summary>
/// ods control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
}
}
@@ -10,7 +10,7 @@
PostBackUrl="~/Commesse" />
</div>
<div style="float: left; margin: auto; border: 1px solid #666666; width: 268px; background: #FDFDFD; margin-left: 8px;" class="ui-corner-all shadowBox">
<asp:ImageButton runat="server" ID="btnBazaar" ImageUrl="~/Images/Bazaar.png" ToolTip="Area Bazaar settimanale" PostBackUrl="~/Bazaar" />
<asp:ImageButton runat="server" ID="btnBazaar" ImageUrl="~/Images/Bazaar.png" ToolTip="Area Bazaar settimanale" PostBackUrl="~/BazaarGroups" />
</div>
<div style="float: right; border: 1px solid #666666; width: 268px; background: #FDFDFD;" class="ui-corner-all shadowBox">
<asp:HyperLink ID="hlHelp" runat="server" Target="_blank" NavigateUrl="~/help/index.html" ToolTip="Istruzioni" ImageUrl="~/Images/Help.png" />
@@ -21,4 +21,4 @@
</div>
<div class="clearDiv"></div>
<br />
</div>
</div>