public IEnumerable <shGoodReceiptIsuue> DanhSachPhieuXuatNhap(string TuNgay, string DenNgay, string TuKhoa, int?TrangThai, int?NguoiTao) { IEnumerable <shGoodReceiptIsuue> ds = DanhSachPhieuXuatNhap(); if (TrangThai.HasValue) { ds = ds.Where(x => x.TrangThai == TrangThai); } if (NguoiTao.HasValue) { ds = ds.Where(x => x.UserId == NguoiTao); } DateTime _tungay = new DateTime(1970, 1, 1); DateTime _denngay = DateTime.Now; if (!string.IsNullOrEmpty(TuNgay) || !string.IsNullOrWhiteSpace(TuNgay)) { _tungay = TypeHelper.ToDate(TuNgay); } if (!string.IsNullOrEmpty(TuNgay) || !string.IsNullOrWhiteSpace(TuNgay)) { _denngay = TypeHelper.ToDate(DenNgay); } ds = ds.Where(x => (TypeHelper.CompareDate(x.CreateDate.Value, _tungay) || TypeHelper.CompareDate(_denngay, x.CreateDate.Value))); shGoodReceiptIsuueService _receiptissue = new shGoodReceiptIsuueService(); return(_receiptissue.FindList().Where(x => x.Status == true)); }
public IEnumerable <shGoodReceiptIsuue> DanhSachPhieuXuatNhap() { shGoodReceiptIsuueService _receiptissue = new shGoodReceiptIsuueService(); return(_receiptissue.FindList().Where(x => x.Status == true)); }