yavsc/yavscModel/WorkFlow/IContentProvider.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
using System.Collections.Generic;
using System.Web.Mvc;
2014-07-16 20:35:03 +02:00
2014-10-06 04:58:47 +02:00
namespace Yavsc.Model.WorkFlow
2014-07-16 20:35:03 +02:00
{
2014-09-25 12:42:43 +02:00
public interface IContentProvider : IModule, IDisposable
2014-07-16 20:35:03 +02:00
{
2014-09-25 12:42:43 +02:00
/// <summary>
/// Gets the status labels.
/// 0 is the starting status
/// </summary>
/// <value>The status labels.</value>
string [] StatusLabels {get;}
bool [] FinalStatuses { get; }
2014-09-25 12:42:43 +02:00
StatusChange[] GetWrittingStatuses (long wrid);
StatusChange[] GetEstimateStatuses (long estid);
long CreateEstimate (string client, string title);
Estimate [] GetEstimates(string client);
2014-09-25 12:42:43 +02:00
Estimate GetEstimate (long estimid);
long Write (long estid, string desc, decimal ucost, int count, long productid);
2014-09-25 12:42:43 +02:00
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);
2014-09-25 12:42:43 +02:00
void SetWrittingStatus (long wrtid,int status,string username);
void SetEstimateStatus (long estid,int status,string username);
2014-07-16 20:35:03 +02:00
}
}