/// <summary> /// 导出员工合同Word /// </summary> /// <param name="contractID"></param> public ExportEmployeeContract(int contractID) { _ContractID = contractID; _ContractType = _GetContractType.GetContractTypeByContractID(contractID); string employeename = ""; try { employeename = _IAccountBll.GetAccountById(_GetEmployeeContract.GetEmployeeContractByContractId(contractID).EmployeeID).Name; } catch {} _TempWordName = _TempWordLocation + "\\" + _ContractType.ContractTypeName + "n.doc"; _NewTempWordName = _TempWordLocation + "\\" + employeename + _ContractType.ContractTypeName + ".doc"; }
public Contract GetEmployeeContractByContractId(int contractId) { GetEmployeeContract GetEmployeeContract = new GetEmployeeContract(); return(GetEmployeeContract.GetEmployeeContractByContractId(contractId)); }