コード例 #1
0
        /// <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";
        }
コード例 #2
0
        public Contract GetEmployeeContractByContractId(int contractId)
        {
            GetEmployeeContract GetEmployeeContract = new GetEmployeeContract();

            return(GetEmployeeContract.GetEmployeeContractByContractId(contractId));
        }