ส่งฟิลด์ & เพิ่ม Paging
This commit is contained in:
parent
5a94c3b67a
commit
44e4ab3f9f
2 changed files with 12 additions and 2 deletions
|
|
@ -1933,6 +1933,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data != null && data.Count > 0)
|
||||||
|
data = data.Skip((req.Page - 1) * req.PageSize).Take(req.PageSize).ToList();
|
||||||
|
|
||||||
dynamic header = null;
|
dynamic header = null;
|
||||||
using (var cmd = _context.Database.GetDbConnection().CreateCommand())
|
using (var cmd = _context.Database.GetDbConnection().CreateCommand())
|
||||||
{
|
{
|
||||||
|
|
@ -1958,7 +1961,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
{
|
{
|
||||||
count = 0,
|
count = 0,
|
||||||
pass = 0,
|
pass = 0,
|
||||||
notpass = 0
|
notpass = 0,
|
||||||
|
missed_exam = 0,
|
||||||
|
other = 0
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -1968,7 +1973,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
|
||||||
{
|
{
|
||||||
count = dr["count"].ToString().ToInteger(),
|
count = dr["count"].ToString().ToInteger(),
|
||||||
pass = dr["pass"].ToString().ToInteger(),
|
pass = dr["pass"].ToString().ToInteger(),
|
||||||
notpass = dr["notpass"].ToString().ToInteger()
|
notpass = dr["notpass"].ToString().ToInteger(),
|
||||||
|
missed_exam = dr["missed_exam"].ToString().ToInteger(),
|
||||||
|
other = dr["other"].ToString().ToInteger()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,8 @@
|
||||||
/// ข้อมูลผลการสอบ 'ผ่าน' 'ไม่ผ่าน'
|
/// ข้อมูลผลการสอบ 'ผ่าน' 'ไม่ผ่าน'
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ExamResult { get; set; }
|
public string ExamResult { get; set; }
|
||||||
|
|
||||||
|
public int Page { get; set; } = 1;
|
||||||
|
public int PageSize { get; set; } = 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue