예제 #1
0
        public RTecAllInfo GetTecAllInfo(string code)
        {
            RTecAllInfo result = new RTecAllInfo();

            result.TecInfo      = Get(code);
            result.TecSkillList = GetTecSkillList(code);

            return(result);
        }
예제 #2
0
        public IActionResult OnPostSave(RTecAllInfo obj)
        {
            ResultNormal result = new ResultNormal();

            try
            {
                _TecSrv.UpdatePartTecInfo(obj.TecInfo, false);
                if (obj.TecSkillList != null)
                {
                    foreach (var sk in obj.TecSkillList)
                    {
                        _TecSrv.UpdateTecSkillLevel(sk, false);
                    }
                }

                _TecSrv.SaveChanges();
            }
            catch (Exception ex)
            {
                result.ErrorMsg = ex.Message;
            }

            return(new JsonResult(result));
        }