Example #1
0
        /// <summary>
        /// 正在改这个
        /// </summary>
        /// <param name="formNo"></param>
        /// <param name="item"></param>
        /// <param name="receiveEmp"></param>
        /// <param name="reason"></param>
        /// <param name="direction"></param>
        /// <returns></returns>
        public JsonResult MakeOtherEmployee(string formNo, int item, string receiveEmp, string reason, int direction = -5)
        {
            if (receiveEmp == base.EmpNo)
            {
                return(Json(new { result = false, msg = "不允许添加自己!!!!" }));
            }

            string msg;
            bool   result = (direction == -5)
                ? Signing.IsRedirectSign(formNo, item, receiveEmp, reason, EmpNo, out msg)
                : Signing.AddSign(formNo, item, receiveEmp, reason, direction, EmpNo, out msg);

            return(Json(new { result, msg }));
        }