예제 #1
0
        private void search()
        {
            var hoso = new Model.HoSoTruocView()
            {
                MaHoSo        = txtMaHoSo.Text,
                LoaiHoSo      = txtLoaiHoSo.Text,
                NguoiTiepNhan = txtNguoiTiepNhan.Text
            };

            this.bus.searchHoSoTruoc(this.maBenhNhan, hoso, (listResult, result) =>
            {
                if (result.Equals(COM.Constant.RES_SUC))
                {
                    this.fillData(listResult);
                }
            });
        }
예제 #2
0
        public void searchHoSoTruoc(string MaBenhNhan, Model.HoSoTruocView hoso, Action <List <Model.HoSoTruocView>, string> completion)
        {
            var listHoSoView = new List <Model.HoSoTruocView>();

            this.getListHoSoByBenhNhan(MaBenhNhan, (listResult, result) =>
            {
                listResult.ForEach(hs =>
                {
                    if (hs.MaHoSo.Contains(hoso.MaHoSo) &&
                        hs.LoaiHoSo.Contains(hoso.LoaiHoSo) &&
                        hs.NguoiTiepNhan.Contains(hoso.NguoiTiepNhan))
                    {
                        listHoSoView.Add(hs);
                    }
                });

                completion(listHoSoView, result);
            });
        }