/// <summary> /// 开启服务 /// </summary> /// <param name="appPath">程序路径</param> public static void StartService() { m_staffService = new StaffService(); m_awardService = new AwardService(); m_bsStockService = new BSStockService(); m_businessCardService = new BusinessCardService(); m_calendarService = new CalendarService(); m_clueService = new ClueService(); m_dialogService = new DialogService(); m_dimensionService = new DimensionService(); m_exportService = new ExportService(); m_followService = new FollowService(); m_gitService = new GitService(); m_jidianService = new JidianService(); m_levelService = new LevelService(); m_masterService = new MasterService(); m_opinionService = new OpinionService(); m_personalService = new PersonalService(); m_projectService = new ProjectService(); m_remoteService = new RemoteService(); m_examService = new ExamService(); m_securityService = new SecurityService(); m_serverService = new ServerService(); SecurityService.Start(); }
/// <summary> /// 单元格编辑结束事件 /// </summary> /// <param name="sender">调用者</param> /// <param name="cell">单元格</param> private void GridCellEditEnd(object sender, GridCell cell) { if (cell != null) { DimensionService dimensionService = DataCenter.DimensionService; GridRow row = cell.Row; String jobID = row.GetCell("colF1").GetString(); DimensionInfo dimension = dimensionService.GetDimension(jobID); dimension.m_jobID = jobID; dimension.m_business = row.GetCell("colF3").GetInt(); dimension.m_EQ = row.GetCell("colF4").GetInt(); dimension.m_knowledge = row.GetCell("colF5").GetInt(); dimension.m_IQ = row.GetCell("colF6").GetInt(); dimension.m_lead = row.GetCell("colF7").GetInt(); dimension.m_technology = row.GetCell("colF8").GetInt(); int avg = (dimension.m_business + dimension.m_EQ + dimension.m_knowledge + dimension.m_IQ + dimension.m_lead + dimension.m_technology) / 6; row.GetCell("colF9").SetInt(avg); dimensionService.Save(dimension); m_divDimemsion.Dimension = dimension; Native.Invalidate(); } }