* New features:
- New Client at estimation, ala ajax - Admins can now edit user's profiles
This commit is contained in:
parent
d9728c5998
commit
0755dd62b3
33 changed files with 634 additions and 234 deletions
|
|
@ -62,11 +62,19 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="estimid">Estimid.</param>
|
||||
Estimate GetEstimate (long estimid);
|
||||
/// <summary>
|
||||
/// Gets the estimates created for a specified client.
|
||||
/// Gets the estimates created by
|
||||
/// or for the given user by user name.
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="username">user name.</param>
|
||||
Estimate [] GetEstimates(string username);
|
||||
/// <summary>
|
||||
/// Gets the estimates.
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="client">Client.</param>
|
||||
Estimate [] GetEstimates(string client);
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
Estimate [] GetEstimates(string client, string responsible);
|
||||
/// <summary>
|
||||
/// Drops the writting.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -48,15 +48,30 @@ namespace Yavsc.Model.WorkFlow
|
|||
return ContentProvider.GetEstimate (estid);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the estimates.
|
||||
/// Gets the estimates, refering the
|
||||
/// given client or username .
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="client">Client.</param>
|
||||
public Estimate [] GetEstimates (string client)
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
public Estimate [] GetResponsibleEstimates (string responsible)
|
||||
{
|
||||
return ContentProvider.GetEstimates (client);
|
||||
return ContentProvider.GetEstimates (null, responsible);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the client estimates.
|
||||
/// </summary>
|
||||
/// <returns>The client estimates.</returns>
|
||||
/// <param name="client">Client.</param>
|
||||
public Estimate [] GetClientEstimates (string client)
|
||||
{
|
||||
return ContentProvider.GetEstimates (client, null);
|
||||
}
|
||||
|
||||
public Estimate [] GetUserEstimates (string username)
|
||||
{
|
||||
return ContentProvider.GetEstimates (username);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the stock for a given product reference.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue