workflow interface definition
This commit is contained in:
parent
07be6f2928
commit
1307b62ecb
4 changed files with 59 additions and 8 deletions
|
|
@ -4,12 +4,11 @@ using System.Web.Mvc;
|
|||
|
||||
namespace yavscModel.WorkFlow
|
||||
{
|
||||
public interface StatusChange { int Status {get;} DateTime date {get;} }
|
||||
|
||||
public interface IContentProvider : IProvider, IDisposable
|
||||
{
|
||||
void DropWritting (long wrid);
|
||||
void DropEstimate (long estid);
|
||||
void TagWritting (long wrid,string tag);
|
||||
int GetStatus (string estimId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the status labels.
|
||||
/// 0 is the starting status
|
||||
|
|
@ -17,11 +16,20 @@ namespace yavscModel.WorkFlow
|
|||
/// <value>The status labels.</value>
|
||||
string [] StatusLabels {get;}
|
||||
bool [] FinalStatuses { get; }
|
||||
StatusChange[] GetWrittingStatuses (long wrid);
|
||||
StatusChange[] GetEstimateStatuses (long estid);
|
||||
long CreateEstimate (string client, string title);
|
||||
void SetTitle (long estid, string newTitle);
|
||||
long Write (long estid, string desc, decimal ucost, int count, long productid);
|
||||
void SetDesc (long writid, string newDesc);
|
||||
Estimate GetEstimate (long estimid);
|
||||
long Write (long estid, string desc, decimal ucost, int count, long productid);
|
||||
void DropWritting (long wrid);
|
||||
void DropEstimate (long estid);
|
||||
void TagWritting (long wrid,string tag);
|
||||
void DropTagWritting (long wrid,string tag);
|
||||
void UpdateWritting (Writting wr);
|
||||
void SetTitle (long estid, string newTitle);
|
||||
void SetDesc (long writid, string newDesc);
|
||||
void SetWrittingStatus (long wrtid,int status,string username);
|
||||
void SetEstimateStatus (long estid,int status,string username);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue