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 WFRuleDetailNode : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public WFRuleDetailNode()
|
|
{
|
|
_nodeId = 0;
|
|
_sequenceId = 0;
|
|
_wfSetupId = 0;
|
|
_wfSetupRuleId = 0;
|
|
}
|
|
#endregion
|
|
|
|
#region Property
|
|
|
|
#region NodeId : int
|
|
|
|
private int _nodeId;
|
|
public int NodeId
|
|
{
|
|
get { return _nodeId; }
|
|
set { _nodeId = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Property WfSetupId : ID
|
|
|
|
private int _wfSetupId;
|
|
public int WfSetupId
|
|
{
|
|
get { return _wfSetupId; }
|
|
set { _wfSetupId = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Property WfSetupRuleId : ID
|
|
|
|
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 OrganogramBasic OrganogramBasic { get; set; }
|
|
|
|
//#region OrganogramBasic : OrganogramBasic Object
|
|
//private OrganogramBasic _organogramBasic;
|
|
//public OrganogramBasic OrganogramBasic
|
|
//{
|
|
// get
|
|
// {
|
|
// if (_organogramBasic == null)
|
|
// {
|
|
// _organogramBasic = OrganogramBasic.Get(NodeId);
|
|
// }
|
|
// return _organogramBasic;
|
|
// }
|
|
// set { _organogramBasic = value; }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
#region IsInitiator : Boolean
|
|
public static bool IsInitiator(List<WFRuleDetailNode> ooss, int nodeId)
|
|
{
|
|
foreach (WFRuleDetailNode oItem in ooss)
|
|
{
|
|
if (oItem.SequenceId == 1 && oItem.NodeId == nodeId)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
}
|