예제 #1
0
        public override void Load()
        {
            _client = new NHAN_SUClient();
            _client.NHAN_SU_SearchAsync(new NHAN_SU_SearchResult(), null);
            _client.NHAN_SU_SearchCompleted += _client_NHAN_SU_SearchCompleted;

            _clientTrangThaiDuyet = new TRANG_THAI_DUYETClient();
            _clientTrangThaiDuyet.TRANG_THAI_DUYET_LstAsync();
            _clientTrangThaiDuyet.TRANG_THAI_DUYET_LstCompleted+=_clientTrangThaiDuyet_TRANG_THAI_DUYET_LstCompleted;

            _dataItem = new ObservableExpandCollection();
            SearchItem = new NHAN_SU_SearchResult();
            DataItemTrangThaiDuyet = new ObservableExpandCollection<TRANG_THAI_DUYET_LstResult>();
        }
예제 #2
0
 public NHAN_SU_EX()
 {
     ItemContent = new NHAN_SU_SearchResult();
 }
예제 #3
0
 public IEnumerable<NHAN_SU_SearchResult> NHAN_SU_Search(NHAN_SU_SearchResult data, int? top)
 {
     try
     {
         using (var db = new OOAD_EDUManagementDataContext())
         {
             return db.NHAN_SU_Search(data.maNhanSu,
                                       data.maXNhanSu,
                                       data.hoVaTen,
                                       data.CMND,
                                       data.diaChi,
                                       data.email,
                                       data.ngaySinh == null ? "" : data.ngaySinh.Value.ToString(Constants.FormatDate),
                                       data.noiCongTac,
                                       data.noiSinh,
                                       data.soDienThoai,
                                       data.maNguoiLap,
                                       data.thoiGianLap == null ? "" : data.thoiGianLap.Value.ToString(Constants.FormatDate),
                                       data.maNguoiDuyet,
                                       data.thoiGianDuyet == null ? "" : data.thoiGianDuyet.Value.ToString(Constants.FormatDate),
                                       data.maTrangThaiDuyet,
                                       data.trangThaiDuLieu,
                                       top).ToList();
         }
     }
     catch (Exception e) { return null; }
 }