111 lines
2.3 KiB
C#
111 lines
2.3 KiB
C#
|
|
|||
|
using Ease.Core.DataAccess;
|
|||
|
using Ease.Core.Model;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data;
|
|||
|
using System.IO;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
public class WFRuleDetailOS : BasicBaseObject
|
|||
|
{
|
|||
|
public delegate void ItemChanged();
|
|||
|
|
|||
|
#region Constructor & Private Declarations
|
|||
|
public WFRuleDetailOS()
|
|||
|
{
|
|||
|
_osID = 0;
|
|||
|
_wfSetupId = 0;
|
|||
|
_wfSetupRuleId = 0;
|
|||
|
_sequenceId = 0;
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Property
|
|||
|
|
|||
|
#region Property OsID : ID
|
|||
|
|
|||
|
private int _osID;
|
|||
|
public int OsID
|
|||
|
{
|
|||
|
get { return _osID; }
|
|||
|
set { _osID = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region WfSetupId : int
|
|||
|
|
|||
|
private int _wfSetupId;
|
|||
|
public int WfSetupId
|
|||
|
{
|
|||
|
get { return _wfSetupId; }
|
|||
|
set { _wfSetupId = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region WfSetupRuleId : int
|
|||
|
|
|||
|
private int _wfSetupRuleId;
|
|||
|
public int WfSetupRuleId
|
|||
|
{
|
|||
|
get { return _wfSetupRuleId; }
|
|||
|
set { _wfSetupRuleId = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SequenceId : int
|
|||
|
|
|||
|
private int _sequenceId;
|
|||
|
public int SequenceId
|
|||
|
{
|
|||
|
get { return _sequenceId; }
|
|||
|
set { _sequenceId = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
//public Department Department { get; set; }
|
|||
|
//#region Department : Department Object
|
|||
|
//private Department _department;
|
|||
|
//public Department Department
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (_department == null)
|
|||
|
// {
|
|||
|
// _department = Department.Get(_osID);
|
|||
|
// }
|
|||
|
// return _department;
|
|||
|
// }
|
|||
|
// set { _department = value; }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#region IsInitiator : Boolean
|
|||
|
public static bool IsInitiator(List<WFRuleDetailOS> ooss, int organizationid)
|
|||
|
{
|
|||
|
foreach (WFRuleDetailOS oItem in ooss)
|
|||
|
{
|
|||
|
if (oItem.SequenceId == 1 && oItem.OsID == organizationid)
|
|||
|
{
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
return false;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|