Example #1
0
        /// <summary>
        /// 更新工龄
        /// </summary>
        /// <param name="eGFunc"></param>
        private void UpdateEmployeeWorkAgeByID(IEnumerable <XElement> eGFunc)
        {
            if (eGFunc.Count() == 0)
            {
                return;
            }

            string companyID = string.Empty;

            foreach (var item in eGFunc)
            {
                if (item.Attribute("Name").Value == "COMPANYID")
                {
                    companyID = item.Attribute("Value").Value;
                    break;
                }
            }

            PersonnelService svcPersonnel = new PersonnelService();

            svcPersonnel.UpdateEmployeeWorkAgeByID(companyID);
        }