1. 程式人生 > >績效自評、績效評定、考核已生成時、考勤異常處理

績效自評、績效評定、考核已生成時、考勤異常處理

績效自評:

Select * From Pm_AchievementEntry
where KeyNo='JZ18073000031'

Select * From Pm_Achievement
where EditName='顧洪萍'

update Pm_AchievementEntry
set Result='已完成'
where KeyNo='JZ18073000031'

績效評定:

Select * From Pm_Evaluation where editName='繆友紅' order by Ddate
Select * From Pm_EvaluationEntry where KeyNo='JG18102900006'

Select * From Pm_EvaluationEntry order by Ddate 

update Pm_EvaluationEntry
set AchievementResult='已完成'
where KeyNo='JG18102900006'

update Pm_EvaluationEntry
set Result='已完成'
where KeyNo='JG18102900006'

考核生成時:
delete from Pm_Result
where EmpName='***'

考勤異常處理:

select *,(CASE WHEN Valid = 0 THEN '無效' WHEN Valid = 1 THEN '有效' end) as state from Pm_Result where EmpName='王書華' and Valid = 1

update Pm_Result
set Valid = 0
where EmpName='王書華' and Valid = 1