本文整理汇总了C#中HRM.Business.Hr.Domain.Hre_ProfileServices.SaveContractAndNextSalaryApprovedEvaluation方法的典型用法代码示例。如果您正苦于以下问题:C# Hre_ProfileServices.SaveContractAndNextSalaryApprovedEvaluation方法的具体用法?C# Hre_ProfileServices.SaveContractAndNextSalaryApprovedEvaluation怎么用?C# Hre_ProfileServices.SaveContractAndNextSalaryApprovedEvaluation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HRM.Business.Hr.Domain.Hre_ProfileServices
的用法示例。
在下文中一共展示了Hre_ProfileServices.SaveContractAndNextSalaryApprovedEvaluation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ApprovedEvaContract
public ActionResult ApprovedEvaContract(string selectedIds)
{
var ContractServices = new Hre_ContractServices();
var profileServices = new Hre_ProfileServices();
var ContractExtendServices = new Hre_ContractExtendServices();
string message = string.Empty;
string status = string.Empty;
var lstContract = ContractServices.GetData<Hre_ContractEntity>(Common.DotNetToOracle(selectedIds), ConstantSql.hrm_hr_sp_get_ContractByIds, UserLogin, ref status).ToList();
foreach (var contract in lstContract)
{
if (contract.ContractResult == HRM.Infrastructure.Utilities.EnumDropDown.ResultContract.PASS.ToString())
{
if (contract.TypeOfPass == HRM.Infrastructure.Utilities.EnumDropDown.TypeOfPass.E_SIGNED_NEXTCONTRACT.ToString())
{
if (contract.RankDetailForNextContract == null || contract.DateEndNextContract == null)
{
message = ConstantDisplay.HRM_HR_Profile_LackOfRequiredInformation.ToString();
return Json(message);
}
contract.StatusEvaluation = "E_APPROVED";
message = profileServices.SaveContractAndNextSalaryApprovedEvaluation(contract,UserLogin);
}
else if (contract.TypeOfPass == HRM.Infrastructure.Utilities.EnumDropDown.TypeOfPass.E_SIGNED_APPENDIXCONTRACT.ToString())
{
Hre_ContractExtendEntity entity = new Hre_ContractExtendEntity();
entity.ContractID = contract.ID;
if (contract.DateExtend != null)
{
entity.DateStart = contract.DateExtend;
}
else
{
entity.DateStart = contract.DateEnd;
}
entity.DateEnd = contract.DateEndNextContract;
message = ContractExtendServices.Add(entity);
contract.StatusEvaluation = HRM.Infrastructure.Utilities.EnumDropDown.Status.E_APPROVED.ToString();
contract.DateExtend = contract.DateEndNextContract;
contract.DateStart = contract.DateExtend != null ? contract.DateExtend.Value.AddDays(1) : contract.DateEnd.Value;
contract.DateExtend = contract.DateEndNextContract;
message = ContractServices.Edit(contract);
}
}
else
{
contract.StatusEvaluation = HRM.Infrastructure.Utilities.EnumDropDown.Status.E_APPROVED.ToString();
message = ContractServices.Edit(contract);
}
}
return Json(message);
}