public ActionResult DanhSachPhamNhanQuanLy() { ViewBag.ma_phong_ban = Session["ma_phong_ban"]; ViewBag.username = Session["username"]; ViewBag.than_nhan = Session["ma_nhan_than"]; String strMucDoPhamToi = Request["txtSearch_MucDoPhamToi"]; String strNgayPhongThichFrom = Request["txtSearch_NgayPhongThichFrom"]; String strNgayPhongThichTo = Request["txtSearch_NgayPhongThichTo"]; if (String.IsNullOrEmpty(strMucDoPhamToi)) { strMucDoPhamToi = "0"; } if (String.IsNullOrEmpty(strNgayPhongThichFrom) || String.IsNullOrEmpty(strNgayPhongThichTo)) { strNgayPhongThichFrom = "01-01-1970"; strNgayPhongThichTo = "01-01-2500"; } int mucDoPhamToi = int.Parse(strMucDoPhamToi); CultureInfo provider = CultureInfo.InvariantCulture; DateTime ngayPhongThichFrom = DateTime.ParseExact(strNgayPhongThichFrom, "dd-mm-yyyy", provider); DateTime ngayPhongThichTo = DateTime.ParseExact(strNgayPhongThichTo, "dd-mm-yyyy", provider); List <Pham_Nhan_Search_Result_Objects> objs = new Pham_Nhan_BLL() .GetDanhSachPhamNhan(mucDoPhamToi, ngayPhongThichFrom, ngayPhongThichTo); return(View(objs)); }
public ActionResult DanhSachPhamNhan() { ViewBag.ma_phong_ban = Session["ma_phong_ban"]; ViewBag.username = Session["username"]; ViewBag.than_nhan = Session["ma_nhan_than"]; CultureInfo provider = CultureInfo.InvariantCulture; DateTime ngayPhongThichFrom = DateTime.ParseExact("01-01-1970", "dd-mm-yyyy", provider); DateTime ngayPhongThichTo = DateTime.ParseExact("01-01-2500", "dd-mm-yyyy", provider); List <Pham_Nhan_Search_Result_Objects> objs = new Pham_Nhan_BLL() .GetDanhSachPhamNhan(0, ngayPhongThichFrom, ngayPhongThichTo); return(View(objs)); }
public ActionResult TinhTrangPhamNhan() { ViewBag.ma_phong_ban = Session["ma_phong_ban"]; ViewBag.username = Session["username"]; ViewBag.maNguoiThan = Session["ma_nhan_than"]; var tinhTrangPhamNhan = new Pham_Nhan_BLL().GetTinhTrangPhamNhan(ViewBag.maNguoiThan); if (tinhTrangPhamNhan == null) { return(View()); } return(View(tinhTrangPhamNhan)); }