* Estimates as Tex or Pdf
* Estimate edition [mix Mvc&Ajax] * Billable&Bankable properties on profiles
This commit is contained in:
parent
2ac2338939
commit
b39a444cf0
31 changed files with 1101 additions and 218 deletions
|
|
@ -17,9 +17,9 @@ namespace Yavsc.Model.WorkFlow
|
|||
public static Catalog Catalog { get; set; }
|
||||
|
||||
|
||||
public static void SetTitle (long id, string title)
|
||||
public static void UpdateEstimate (Estimate estim)
|
||||
{
|
||||
ContentProvider.SetTitle (id, title);
|
||||
ContentProvider.UpdateEstimate (estim);
|
||||
}
|
||||
|
||||
public static event EventHandler NewOrder;
|
||||
|
|
@ -95,12 +95,13 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// </summary>
|
||||
/// <returns>The estimate identifier.</returns>
|
||||
/// <param name="title">Title.</param>
|
||||
public static long CreateEstimate(string client, string title)
|
||||
|
||||
public static Estimate CreateEstimate(string responsible, string client, string title, string description)
|
||||
{
|
||||
long estid = ContentProvider.CreateEstimate (client, title);
|
||||
Estimate created = ContentProvider.CreateEstimate (responsible, client, title, description);
|
||||
if (NewOrder != null)
|
||||
NewOrder.Invoke(ContentProvider, new NewEstimateEvenArgs(estid,client,title));
|
||||
return estid;
|
||||
NewOrder.Invoke(ContentProvider, new NewEstimateEvenArgs(created));
|
||||
return created;
|
||||
}
|
||||
|
||||
public static long Write(long estid, string desc, decimal ucost, int count, string productid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue