* InputCircle.cs: An input control specialized for circle selection
* UserCard.cs: Displays user informations on a little div * Estim.cs: * WebControls.csproj: * CircleInfo.cs: * CircleProvider.cs: * CircleApiController.cs: * BasketApiController.cs: * ITContentProvider.csproj: * CalendarApiController.cs: * WorkFlowApiController.cs: * NpgsqlCircleProvider.cs: * FrontOfficeApiController.cs: * InputUserName.cs: Fixes the ToolBoxData attribute * Web.csproj: * Circle.cs: refactoring * instdbws.sql: Foreign keys are cascading updates and deletions * Estim.tt: * Profile.cs: User's profile does not contain anymore the main e-mail address, it conflicts with registration informations, it is not part of the profile data
This commit is contained in:
parent
3d050e019e
commit
6680addcc8
24 changed files with 796 additions and 227 deletions
|
|
@ -23,7 +23,6 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Yavsc.Model.Circles
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Circle.
|
||||
/// </summary>
|
||||
|
|
@ -40,11 +39,17 @@ namespace Yavsc.Model.Circles
|
|||
/// <value>The title.</value>
|
||||
public string Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the owner.
|
||||
/// </summary>
|
||||
/// <value>The owner.</value>
|
||||
public string Owner { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the users.
|
||||
/// </summary>
|
||||
/// <value>The users.</value>
|
||||
public string [] Users { get; set; }
|
||||
public string [] Members { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Union the specified that.
|
||||
|
|
@ -54,7 +59,7 @@ namespace Yavsc.Model.Circles
|
|||
{
|
||||
List<string> content = new List<string>();
|
||||
foreach (Circle c in those) {
|
||||
foreach (string user_name in c.Users) {
|
||||
foreach (string user_name in c.Members) {
|
||||
if (!content.Contains (user_name))
|
||||
content.Add (user_name);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,13 +30,19 @@ namespace Yavsc.Model.Circles
|
|||
/// </summary>
|
||||
public class CircleInfo
|
||||
{
|
||||
long Id { get; set; }
|
||||
string Title { get; set; }
|
||||
CircleInfo(Circle c)
|
||||
public long Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public CircleInfo(Circle c)
|
||||
{
|
||||
Id = c.Id;
|
||||
Title = c.Title;
|
||||
}
|
||||
public CircleInfo(long id, string title)
|
||||
{
|
||||
Id = id;
|
||||
Title = title;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,27 +39,38 @@ namespace Yavsc.Model.Circles
|
|||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
/// <param name="users">Users.</param>
|
||||
public abstract void Add(string owner, string title, string [] users);
|
||||
public abstract long Create(string owner, string title, string [] users);
|
||||
|
||||
/// <summary>
|
||||
/// Delete the specified owner and title.
|
||||
/// Add the specified user.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
public abstract void Delete(string owner, string title) ;
|
||||
/// <param name="id">circle Identifier.</param>
|
||||
/// <param name="username">User name.</param>
|
||||
public abstract void Add(long id, string username);
|
||||
|
||||
/// <summary>
|
||||
/// Get the specified owner and title.
|
||||
/// Remove the specified user.
|
||||
/// </summary>
|
||||
/// <param name="owner">Owner.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
public abstract Circle Get(string owner, string title);
|
||||
/// <param name="id">circle Identifier.</param>
|
||||
/// <param name="username">User name.</param>
|
||||
public abstract void Remove(long id, string username);
|
||||
|
||||
/// <summary>
|
||||
/// Delete the specified id.
|
||||
/// </summary>
|
||||
/// <param name="id">Identifier.</param>
|
||||
public abstract void Delete(long id) ;
|
||||
|
||||
/// <summary>
|
||||
/// Get the specified id.
|
||||
/// </summary>
|
||||
/// <param name="id">Identifier.</param>
|
||||
public abstract Circle Get(long id);
|
||||
|
||||
/// <summary>
|
||||
/// List this instance.
|
||||
/// </summary>
|
||||
public abstract CircleInfoCollection List();
|
||||
public abstract CircleInfoCollection List(string user);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue