Beispiel #1
0
        private void luuPhieuThu()
        {
            if (this.IsEditing)
            {
                this.updatePhieuThu();
            }
            else
            {
                this.insertPhieuThu();
            }

            if (this.GridView != null)
            {
                HocSinhTableAdapter hocSinhTableAdapter   = (HocSinhTableAdapter)StaticDataFacade.Get(StaticDataKeys.AdapterHocSinh);
                BindingSource       phieuThuBindingSource = this.GridView.GridControl.DataSource as BindingSource;
                PhieuThuService     phieuThuService       = new PhieuThuService();
                phieuThuBindingSource.DataSource = phieuThuService.LoadPhieuThu(hocSinhTableAdapter.GetData());
            }
        }
Beispiel #2
0
        private void FrmTaoPhieuThu_Load(object sender, EventArgs e)
        {
            HocSinhTableAdapter    hocSinhTableAdapter    = (HocSinhTableAdapter)StaticDataFacade.Get(StaticDataKeys.AdapterHocSinh);
            HocSinhLopTableAdapter hocSinhLopTableAdapter = (HocSinhLopTableAdapter)StaticDataFacade.Get(StaticDataKeys.AdapterHocSinhLop);

            QLMamNon.Dao.QLMamNonDs.HocSinhDataTable hocSinhTable = hocSinhTableAdapter.GetData();
            ThongTinHocSinhUtil.EvaluateLopInfoForHocSinhTable(hocSinhLopTableAdapter, hocSinhTable);
            this.hocSinhRowBindingSource.DataSource     = hocSinhTable;
            this.phanLoaiThuRowBindingSource.DataSource = StaticDataFacade.Get(StaticDataKeys.PhanLoaiThu);

            if (this.IsEditing)
            {
                this.loadPhieuThu();
            }
            else
            {
                this.resetForm();
            }
        }
Beispiel #3
0
        private HocSinhDataTable getHocSinhData()
        {
            HocSinhTableAdapter hocSinhTableAdapter = (HocSinhTableAdapter)StaticDataFacade.Get(StaticDataKeys.AdapterHocSinh);

            return(hocSinhTableAdapter.GetData());
        }