| | |
| | | [HttpPost] |
| | | public async Task<WorekPlandto> getplanelist(SearchOaWorekPlan param) |
| | | { |
| | | |
| | | if(! await CheckRols()) |
| | | { |
| | | throw Oops.Oh("没有权限"); |
| | |
| | | pram.EvaluationTime = DateTime.Now; |
| | | pram.RewardMoney = 0; |
| | | pram.RewardType = 1; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | pram.Keyid = null; |
| | | await _SugarClient.InsertNav(pram).Include(x=>x.WorkPlanAttachments).ExecuteCommandAsync(); |
| | | return true; |
| | | |
| | |
| | | { |
| | | throw Oops.Oh("没有权限"); |
| | | } |
| | | return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync(); |
| | | return await _SugarClient.Queryable<OaWorkPlan>().Includes(x=>x.SentStaff).Includes(x => x.OaWorkPlanShenpis,y=>y.ApprovalStaff).Includes(x=>x.Depart).Includes(x=>x.WorkPlanAttachments).Where(x => x.Keyid == id).FirstAsync(); |
| | | } |
| | | /// <summary> |
| | | /// 删除 |
| | | /// </summary> |
| | | /// <param name="pram"></param> |
| | | /// <returns></returns> |
| | | [HttpDelete] |
| | | public async Task<bool> DelOderAsync(int id ) |