控制器代码:
#region 超期
public ActionResult SaveExceeds(int? RecordId, int? PayID, B_Pay Pay)
{
ReturnJsonVo RtJson = new ReturnJsonVo();
try
{
B_Record Record = Mymodal.B_Record.Single(o => o.recordId == RecordId);
if (Record.bookStateId == 3 || Record.bookStateId == 5)
{
RtJson.Text = "图书已归还,不需要再次归还!";
}
else
{
if (Record.bookStateId == 4)
{
RtJson.Text = "丢失或报废罚款已支付!遗失后寻回图书,不予回收!";
}
else
{
decimal ExceedDates = Convert.ToInt32(((DateTime.Now) - (Record.expireDate.Value)).Days);
if ((Record.bookStateId == 1 || Record.bookStateId == 2) && ExceedDates > 0)
{
if (ExceedDates > 190 && (Record.bookStateId == 1 || Record.bookStateId =
图书管理系统-超期还书
最新推荐文章于 2023-06-21 11:03:18 发布