198 lines
6.0 KiB
C#
198 lines
6.0 KiB
C#
|
using System;
|
|||
|
using System.Linq;
|
|||
|
using System.Data;
|
|||
|
|
|||
|
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
#region ProjectProcess
|
|||
|
[Serializable]
|
|||
|
public class ProjectProcess:AuditTrailBase
|
|||
|
{
|
|||
|
|
|||
|
|
|||
|
#region Constructor
|
|||
|
public ProjectProcess()
|
|||
|
:base()
|
|||
|
{
|
|||
|
Description = string.Empty;
|
|||
|
TranType = 0;
|
|||
|
Category = EnumTranTypeCategory.None;
|
|||
|
MapSubsidiaryObjectName_1 = string.Empty;
|
|||
|
MapSubsidiaryObjectName_2 = string.Empty;
|
|||
|
FasSubsidiaryTranObjectName = string.Empty;
|
|||
|
ActivityRelatedSourceObjID = 0;
|
|||
|
IsTranElementRequiredForVoucher = false;
|
|||
|
ActivityRelatedSourceObj = null;
|
|||
|
SourceTable = string.Empty;
|
|||
|
}
|
|||
|
|
|||
|
public ProjectProcess(int projectID)
|
|||
|
: base()
|
|||
|
{
|
|||
|
Description = string.Empty;
|
|||
|
TranType = 0;
|
|||
|
Category = EnumTranTypeCategory.None;
|
|||
|
MapSubsidiaryObjectName_1 = string.Empty;
|
|||
|
MapSubsidiaryObjectName_2 = string.Empty;
|
|||
|
FasSubsidiaryTranObjectName = string.Empty;
|
|||
|
ActivityRelatedSourceObjID = 0;
|
|||
|
IsTranElementRequiredForVoucher = false;
|
|||
|
ActivityRelatedSourceObj = null;
|
|||
|
SourceTable = string.Empty;
|
|||
|
}
|
|||
|
|
|||
|
public ProjectProcess(string sDesc)
|
|||
|
: base()
|
|||
|
{
|
|||
|
Description = string.Empty;
|
|||
|
TranType = 0;
|
|||
|
Category = EnumTranTypeCategory.None;
|
|||
|
MapSubsidiaryObjectName_1 = string.Empty;
|
|||
|
MapSubsidiaryObjectName_2 = string.Empty;
|
|||
|
FasSubsidiaryTranObjectName = string.Empty;
|
|||
|
ActivityRelatedSourceObjID = 0;
|
|||
|
IsTranElementRequiredForVoucher = false;
|
|||
|
ActivityRelatedSourceObj = null;
|
|||
|
SourceTable = string.Empty;
|
|||
|
}
|
|||
|
|
|||
|
public ProjectProcess(string sDesc, int trantype, EnumTranTypeCategory category, string subObj_1, string subObj_2, string fasTranObj,int relatedObjecID, bool IsTranElementReq)
|
|||
|
: base()
|
|||
|
{
|
|||
|
Description = string.Empty;
|
|||
|
TranType = 0;
|
|||
|
Category = EnumTranTypeCategory.None;
|
|||
|
MapSubsidiaryObjectName_1 = string.Empty;
|
|||
|
MapSubsidiaryObjectName_2 = string.Empty;
|
|||
|
FasSubsidiaryTranObjectName = string.Empty;
|
|||
|
ActivityRelatedSourceObjID = 0;
|
|||
|
IsTranElementRequiredForVoucher = false;
|
|||
|
ActivityRelatedSourceObj = null;
|
|||
|
SourceTable = string.Empty;
|
|||
|
}
|
|||
|
#endregion
|
|||
|
#region Property CurrentProject : EaseFAS.BO.MasterParam
|
|||
|
|
|||
|
//[NonSerialized]
|
|||
|
//private EaseFAS.BO.MasterParam _currentProject;
|
|||
|
//private int _ProjectID;
|
|||
|
|
|||
|
//public EaseFAS.BO.MasterParam CurrentProject
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (_currentProject == null && _ProjectID != 0)
|
|||
|
// {
|
|||
|
// _currentProject = new EaseFAS.BO.MasterParam();
|
|||
|
// _currentProject = _currentProject.Get(Ease.Core.Framework.ID(_ProjectID));
|
|||
|
// }
|
|||
|
// return _currentProject;
|
|||
|
// }
|
|||
|
// set
|
|||
|
// {
|
|||
|
// _currentProject = value;
|
|||
|
// _ProjectID = (_currentProject == null ? null :Ease.CoreV35.Model.ID(_currentProject.ID));
|
|||
|
// }
|
|||
|
//}
|
|||
|
|
|||
|
public int CurrentProjectID
|
|||
|
{
|
|||
|
get;set;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
public string Description { get; set; }
|
|||
|
|
|||
|
public int TranType { get; set; }
|
|||
|
|
|||
|
//#region SystemTranTypeObj: SystemTranType
|
|||
|
//[NonSerialized]
|
|||
|
//private SystemTranType _sysTranTypeObj;
|
|||
|
|
|||
|
//public SystemTranType SystemTranTypeObj
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if (_sysTranTypeObj == null && _tranType != 0)
|
|||
|
// {
|
|||
|
// _sysTranTypeObj = new SystemTranType().Get(_tranType);
|
|||
|
// }
|
|||
|
// return _sysTranTypeObj;
|
|||
|
// }
|
|||
|
// set
|
|||
|
// {
|
|||
|
// _sysTranTypeObj = value;
|
|||
|
// _tranType = (_sysTranTypeObj == null ? null : _sysTranTypeObj.ID);
|
|||
|
// }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
public EnumTranTypeCategory Category { get; set; }
|
|||
|
|
|||
|
public string MapSubsidiaryObjectName_1 { get; set; }
|
|||
|
|
|||
|
public string MapSubsidiaryObjectName_2 { get; set; }
|
|||
|
|
|||
|
public string FasSubsidiaryTranObjectName { get; set; }
|
|||
|
|
|||
|
#region Property ActivityRelatedSourceObj : ActivityRelatedSource
|
|||
|
public ActivityRelatedSource ActivityRelatedSourceObj { get; set; }
|
|||
|
|
|||
|
public int ActivityRelatedSourceObjID
|
|||
|
{
|
|||
|
get;set;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
public bool IsTranElementRequiredForVoucher { get; set; }
|
|||
|
|
|||
|
public string SourceTable { get; set; }
|
|||
|
|
|||
|
public EnumElementType? ElementType { get; set; }
|
|||
|
|
|||
|
//#region ElementTypeCollection
|
|||
|
//private List<TranElement> _TranElements;
|
|||
|
//public List<TranElement> TranElements
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// if ((_SourceTable.Trim() != "") && (_ElementType != EnumElementType.None))
|
|||
|
// {
|
|||
|
// _TranElements = TranElement.Get(_SourceTable, _ElementType.Value);
|
|||
|
|
|||
|
// }
|
|||
|
// else
|
|||
|
// {
|
|||
|
// _TranElements = null;
|
|||
|
// }
|
|||
|
// return _TranElements;
|
|||
|
// }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IProjectProcess
|
|||
|
public interface IProjectProcessService
|
|||
|
{
|
|||
|
void Save(ProjectProcess projectProcess);
|
|||
|
void Delete(int projectProcessID);
|
|||
|
ProjectProcess Get(int projectProcessID);
|
|||
|
//ProjectProcess Get(int tranTypeIDinInt);
|
|||
|
ProjectProcess Get(string Desc);
|
|||
|
List<ProjectProcess> GetByProject(int projectID);
|
|||
|
List<ProjectProcess> GetByProject(int Projectid, EnumTranTypeCategory category);
|
|||
|
DataTable GetTable();
|
|||
|
List<ProjectProcess> Get();
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|