本文整理汇总了C#中HRM.Business.Hr.Domain.Hre_ProfileServices.StrValidateActionHire方法的典型用法代码示例。如果您正苦于以下问题:C# Hre_ProfileServices.StrValidateActionHire方法的具体用法?C# Hre_ProfileServices.StrValidateActionHire怎么用?C# Hre_ProfileServices.StrValidateActionHire使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRM.Business.Hr.Domain.Hre_ProfileServices
的用法示例。
在下文中一共展示了Hre_ProfileServices.StrValidateActionHire方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckDataActionHire
public string CheckDataActionHire(string lstProfileID)
{
string returnValue = null;
string status = string.Empty;
var profileID = Guid.Empty;
var actionService = new ActionService(UserLogin);
var profileServices = new Hre_ProfileServices();
var lstprofile = actionService.GetData<Hre_ProfileEntity>(Common.DotNetToOracle(lstProfileID), ConstantSql.hrm_hr_sp_get_ProfileByIds, ref status).ToList();
var strvalidate = profileServices.StrValidateActionHire();
if (!string.IsNullOrEmpty(strvalidate))
{
string[] valueField = strvalidate.Split(',');
foreach (var profile in lstprofile)
{
foreach (var value in valueField)
{
if (profile.GetPropertyValue(value) == null)
{
returnValue += profile.CodeCandidate + ",";
}
}
}
}
else
{
foreach (var profile in lstprofile)
{
if (profile.ProfileName == null || profile.DateHire == null || profile.IDNo == null || profile.Gender == null || profile.YearOfBirth == null
|| profile.PAddress == null || profile.WorkPlaceID == null || profile.Cellphone == null || profile.OrgStructureID == null
|| profile.ContractTypeID == null || profile.SalaryClassID == null)
{
returnValue += profile.CodeCandidate + ",";
}
}
}
if (returnValue != null)
{
returnValue = returnValue.Substring(0, returnValue.Length - 1);
}
return returnValue;
}