Example #1
0
        /// <summary>
        /// 审核增票资质
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public bool VerifyInvioceQualifica(VerifyInvioceReq req)
        {
            var data = db.TpxinInvoiceLimitSet.Where(c => c.Nodeid == req.ID).FirstOrDefault();

            if (data == null)
            {
                Alert("记录不存在");
                return(false);
            }

            if (data.Status == 2)
            {
                Alert("已经通过审核不可修改状态");
                return(false);
            }

            if (req.Status == 0)
            {
                data.Status = 3;
                data.Note   = req.Note;
            }
            else
            {
                data.Status = 2;
            }

            if (db.SaveChanges() <= 0)
            {
                Alert("操作失败");
                return(false);
            }

            return(true);
        }
Example #2
0
        public ActionResult VerifyInvioceQualifica(VerifyInvioceReq req)
        {
            InvioceFacade facaed = new InvioceFacade();
            var           result = facaed.VerifyInvioceQualifica(req);

            if (!result)
            {
                return(Json(new { Data = result, Message = facaed.PromptInfo.Message, Result = -1 }));
            }
            return(Json(new { Data = result, Message = "成功", Result = 1 }));
        }