public ActionResult UpdateInterview(UpdateInterview para)
        {
            var result = ReserveService.Instance.UpdateInterviewOrder(para);

            return(Json(new { success = result.ReturnNo == 1 ? true : false, ex = result.Message },
                        JsonRequestBehavior.AllowGet));
        }
        //更新面談訂單
        public Result UpdateInterviewOrder(UpdateInterview para)
        {
            var    result    = new Result();
            string returnStr = ShareService.Instance.SendApi("Reserve/UpdateInterviewOrder", JsonConvert.SerializeObject(para));

            result = JsonConvert.DeserializeObject <Result>(returnStr);
            return(result);
        }
示例#3
0
    public object Patch(UpdateInterview request)
    {
        var jobApp       = Db.LoadSingleById <JobApplication>(request.JobApplicationId);
        var jobAppStatus = request.ApplicationStatus ?? JobApplicationStatus.InterviewCompleted;

        jobApp.Interview.PopulateWithNonDefaultValues(request).WithAudit(Request);
        if (jobApp.ApplicationStatus != request.ApplicationStatus)
        {
            jobApp.Events.Add(CreateEvent(jobAppStatus));
        }
        jobApp.ApplicationStatus = jobAppStatus;
        Db.Save(jobApp, references: true);
        return(jobApp.Interview);
    }
        public Result UpdateInterviewOrder(UpdateInterview model)
        {
            var result = new Result();
            var para   = new DynamicParameters();

            con.Open();
            string str = "Update ReserveInterView set StatusId=@StatusId where OrderId=@OrderId";

            para.Add("@OrderId", model.OrderId, DbType.Int32, ParameterDirection.Input, 50);
            para.Add("@StatusId", model.StatusId, DbType.Int32, ParameterDirection.Input, 50);
            if (!string.IsNullOrEmpty(model.Location))
            {
                para.Add("@Location", model.Location, DbType.String, ParameterDirection.Input, 20);
                str = "Update ReserveInterView set StatusId=@StatusId,Location=@Location where OrderId=@OrderId";
            }
            try
            {
                con.Execute(str,
                            para,
                            commandTimeout: 300,
                            commandType: CommandType.Text);
            }
            catch (Exception ex)
            {
                result.ReturnNo = -99;
                result.Message  = ex.ToString();
                return(result);
            }
            finally
            {
                con.Close();
            }
            result.ReturnNo = 1;
            result.Message  = "修改訂單成功";
            return(result);
        }
 public Result UpdateInterviewOrder(UpdateInterview model)
 {
     return(repository.UpdateInterviewOrder(model));
 }
 public Result UpdateInterviewOrder(UpdateInterview model)
 {
     return(facade.UpdateInterviewOrder(model));
 }