本文整理汇总了C#中BussinessLogic.ReceptionTaskBO.GetListContractsExpiring方法的典型用法代码示例。如果您正苦于以下问题:C# ReceptionTaskBO.GetListContractsExpiring方法的具体用法?C# ReceptionTaskBO.GetListContractsExpiring怎么用?C# ReceptionTaskBO.GetListContractsExpiring使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BussinessLogic.ReceptionTaskBO
的用法示例。
在下文中一共展示了ReceptionTaskBO.GetListContractsExpiring方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadListContractsExpiring
//Hiennv
public List<ContractsEN> LoadListContractsExpiring(DateTime dateChoose)
{
try
{
ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO();
List<ContractsEN> aListTemp = aReceptionTaskBO.GetListContractsExpiring(dateChoose);
List<ContractsEN> aListContractsEN = new List<ContractsEN>();
ContractsEN aContractsEN;
foreach (ContractsEN item in aListTemp)
{
aContractsEN = new ContractsEN();
aContractsEN.ID = item.ID;
aContractsEN.CreatedDate = item.CreatedDate;
aContractsEN.ContractDate = item.ContractDate;
aContractsEN.NumberContract = item.NumberContract;
aContractsEN.NumberTemplateContract = item.NumberTemplateContract;
aContractsEN.IDSystemUser = item.IDSystemUser;
aContractsEN.Company = item.Company;
aContractsEN.StatutoryRepresent = item.StatutoryRepresent;
aContractsEN.StatutoryRepresentGender = item.StatutoryRepresentGender;
aContractsEN.StatutoryRepresentIdentifier = item.StatutoryRepresentIdentifier;
aContractsEN.ContractType = item.ContractType;
if (item.ContractType > 0)
{
aContractsEN.DisplayContractType = CORE.CONSTANTS.SelectedContractType(Convert.ToInt32(item.ContractType)).Name;
}
aContractsEN.FromDate = item.FromDate;
aContractsEN.ToDate = item.ToDate;
aContractsEN.SkuTableSalary = item.SkuTableSalary;
aContractsEN.Coefficent = item.Coefficent;
aContractsEN.SalaryNet = item.SalaryNet;
aContractsEN.SalaryCross = item.SalaryCross;
aContractsEN.Type = item.Type;
aContractsEN.Status = item.Status;
aContractsEN.Disable = item.Disable;
aContractsEN.Name = item.Name;
aContractsEN.Birthday = item.Birthday;
aContractsEN.Identifier1 = item.Identifier1;
aContractsEN.Phone = item.Phone;
aContractsEN.Gender = item.Gender;
if (item.Gender > 0)
{
aContractsEN.DisplayGender = CORE.CONSTANTS.SelectedGender(Convert.ToInt32(item.Gender)).Name;
}
aListContractsEN.Add(aContractsEN);
}
return aListContractsEN;
}
catch (Exception ex)
{
return null;
MessageBox.Show("frmMain.LoadListContractExpiring\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}