// GET: STCheckPeople/Edit/5
        public ActionResult Edit(int id)
        {
            var model = new STCheckPeopleEditViewModel();

            model.People    = rep.GetById(id);
            model.allSTUnit = GetCurrentInstsST();
            // model.UnitName = sTCustomService.GetSTUnitByIdFromAll(allSTUnit, model.People.Customid);
            model.NoYes             = sysDictServcie.GetDictsByKey("noYes");
            model.Sex               = sysDictServcie.GetDictsByKey("Sex");
            model.Birthday          = model.People.Birthday.HasValue ? model.People.Birthday.Value.ToString("yyyy-MM-dd") : string.Empty;
            model.STPersonnelTitles = sysDictServcie.GetDictsByKey("STPersonnelTitles");
            var postnumstartdate = model.People.postnumstartdate.HasValue ? model.People.postnumstartdate.Value.ToString("yyyy-MM-dd") : string.Empty;
            var postnumenddate   = model.People.postnumenddate.HasValue ? model.People.postnumenddate.Value.ToString("yyyy-MM-dd") : string.Empty;

            model.Postnumdate            = postnumstartdate + " - " + postnumenddate;
            model.PostDate               = model.People.PostDate.HasValue ? model.People.PostDate.Value.ToString("yyyy-MM-dd") : string.Empty;
            model.STCheckPeoplePunish    = CheckPeoplePunish(model.People.Id);
            model.STCheckPeopleAwards    = CheckPeopleAwards(model.People.Id);
            model.STCheckPeopleChange    = CheckPeopleChange(model.People.Id);
            model.STCheckPeopleEducation = CheckPeopleEducation(model.People.Id);
            model.STCheckPeopleFile      = CheckPeopleFile(
                model.People.sbnumpath,
                model.People.selfnumPath,
                model.People.educationpath,
                model.People.PostPath,
                model.People.PhotoPath);
            return(View(model));
        }
        // GET: STCheckPeople/Create
        public ActionResult Create()
        {
            var model = new STCheckPeopleEditViewModel();

            model.allSTUnit         = GetCurrentInstsST();
            model.STPersonnelTitles = sysDictServcie.GetDictsByKey("STPersonnelTitles");
            model.NoYes             = sysDictServcie.GetDictsByKey("noYes");
            model.Sex = sysDictServcie.GetDictsByKey("Sex");
            model.STCheckPeopleFile = CheckPeopleFile(null, null, null, null, null);
            return(View(model));
        }