コード例 #1
0
ファイル: PerformanceService.cs プロジェクト: JuRogn/OA
 private void UpdatePerformanceRecord(T_HR_PERFORMANCERECORD entType)
 {
     using (SumPerformanceBll bll = new SumPerformanceBll())
     {
         bll.UpdatePerformanceRecord(entType);
     }
 }
コード例 #2
0
ファイル: EditPerformance.xaml.cs プロジェクト: JuRogn/OA
 /// <summary>
 /// 获取人员绩效考核后触发事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetPerformanceRecordByIDCompleted(object sender, GetPerformanceRecordByIDCompletedEventArgs e)
 {
     if (e.Result == null)
     {
         SelectedPerson = new T_HR_PERFORMANCERECORD();
         SelectedPerson.PERFORMANCEID = Guid.NewGuid().ToString();
         SelectedPerson.T_HR_SUMPERFORMANCERECORD = this.SumPerformance;
     }
     else
         SelectedPerson = e.Result;
 }
コード例 #3
0
ファイル: EditPerformance.xaml.cs プロジェクト: JuRogn/OA
 /// <summary>
 /// 点击列表的单元格改变事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void DtGrid_CurrentCellChanged(object sender, EventArgs e)
 {
     DataGrid grid = sender as DataGrid;
     if (grid.SelectedItem != null)
     {
         SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE employee = (SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)grid.SelectedItems[0];
         SelectedPerson = GetPersonFromList(employee.EMPLOYEEID);
         //kpiClient.GetPerformanceRecordByIDAsync(employee.EMPLOYEEID);
     }
 }
コード例 #4
0
ファイル: EditPerformance.xaml.cs プロジェクト: JuRogn/OA
 /// <summary>
 /// 在三个T_HR_PERFORMANCERECORD的列表中,找出PERSONID为employeeId的实体
 /// </summary>
 /// <param name="p">personID</param>
 /// <returns></returns>
 private T_HR_PERFORMANCERECORD GetPersonFromList(string employeeId)
 {
     if (SumPerformance.T_HR_PERFORMANCERECORD != null)
         foreach (T_HR_PERFORMANCERECORD person in this.SumPerformance.T_HR_PERFORMANCERECORD.ToList())
         {
             if (person.APPRAISEEID.Equals(employeeId))
                 return person;
         }
     else
         SumPerformance.T_HR_PERFORMANCERECORD = new ObservableCollection<T_HR_PERFORMANCERECORD>();
     //没有找到就新建
     T_HR_PERFORMANCERECORD ent = new T_HR_PERFORMANCERECORD();
     ent.PERFORMANCEID = Guid.NewGuid().ToString();
     ent.T_HR_SUMPERFORMANCERECORD = this.SumPerformance;
     ent.APPRAISEEID = employeeId;
     return ent;
 }