Exemplo n.º 1
0
        public ActionResult ApplyBatchBorrow()
        {
            var timeNow = DateTime.Now.ToString("yyyyMMddHHmmssffff");
            var apply   = new ApplyBorrowTable()
            {
                BorrowID  = timeNow,
                ApplyTime = DateTime.Now,
                ApplyUser = Operator.UserName
            };
            var result = ApplyBorrowService.ApplyBatchBorrow(timeNow, apply, Operator.DepartmentCode, Operator.RealName);

            if (result)
            {
                return(Json(SuccessTip("申请批量借阅成功,请等待审核!")));
            }
            else
            {
                return(Json(ErrorTip("申请批量借阅失败,请重试!")));
            }
        }