private DateTime m_ExecItemCreateTime;
public DateTime ExecItemCreateTime
{
get { return m_ExecItemCreateTime; }
}
private string m_ExecItemName;
public string ExecItemName
{
get { return m_ExecItemName; }
}
private Type m_ExecItemClass;
public Type ExecItemClass
{
get { return m_ExecItemClass; }
}
private string m_ExecItemMethed;
public string ExecItemMethed
{
get { return m_ExecItemMethed; }
}
private object m_ExecItemParamList;
public object ExecItemParamList
{
get { return m_ExecItemParamList; }
}
private string m_Op;
/**//// <summary>
/// 后台任务对象
/// </summary>
/// <param name="objtype">对象类型</param>
/// <param name="ExecMethod">调用方法</param>
/// <param name="param">调用参数</param>
/// <param name="ExecName">任务名</param>
/// <param name="Op">提交人</param>
/// <param name="SavetoDisk">是否保存到磁盘</param>
public ExecItem(Type objtype, string ExecMethod, object param, string ExecName, string Op, bool SavetoDisk)
{
this.BKStoreFileName = String.Format("{0} {1} {2}.bin",
DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss"), ExecMethod, Op);
this.m_ExecItemClass = objtype;
this.m_ExecItemCreateTime = DateTime.Now;
this.m_ExecItemExecTime = DateTime.Now;
this.m_ExecItemMethed = ExecMethod;
this.m_ExecItemName = ExecName;
this.m_ExecItemParamList = param;
this.m_ItemState = BKExecItemState.待执行;
this.m_Op = Op;
if (SavetoDisk)
SaveToDisk();
}
private void SaveToDisk()
{