public void dien_dl()
        {
            gridControl1.ShowLoadingPanel = true;
            
            EntityQuery<Mdiaban> Queryt = dstb.GetMadiabanTrimQuery();
            LoadOptuyen = dstb.Load(Queryt.Where(p => p.ma_huyen == m_huyen && p.kt == false).OrderBy(p => p.ten_tuyen), LoadOpTT_Complete, null);
            EntityQuery<Mdiaban> Query = dstb.GetMadiabanTrimQuery();
            LoadOptuyenkt = dstb.Load(Query.Where(p => p.ma_huyen == m_huyen && p.kt == true).OrderBy(p => p.ten_tuyen), LoadOpTTKT_Complete, null);
            EntityQuery<ds_codinh> QueryC = dstb.GetDs_codinhQuery();
            LoadOp = dstb.Load(QueryC.Where(p=>(p.ma_nvcs==null || p.ma_nvkt==null) && p.ma_huyen==m_huyen),null,null );


            EntityQuery<Gphone> QueryG = dstb.GetGphonesQuery();
            LoadOpG = dstb.Load(QueryG.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), null, null);
            EntityQuery<internet> QueryI = dstb.GetInternetsQuery();
            LoadOpI = dstb.Load(QueryI.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), null, null);
            EntityQuery<mytv> QueryM = dstb.GetMytvsQuery();
            LoadOpM = dstb.Load(QueryM.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), null, null);

            QLThuebaoDomainContext db = new QLThuebaoDomainContext();
            InvokeOperation<System.Nullable<int>> pr = db.Excute_DsGanDiaban(m_kt, m_nv, m_huyen, m_emp);
            pr.Completed += new EventHandler(GetData);

            if (App.kythuat)
                ma_nvcs.ReadOnly = true;
            else
                ma_nvkt.ReadOnly = true;
        }
        //void LoadOpC(LoadOperation<ds_codinh> lo)
        //{
        //    EntityQuery<Gphone> QueryG = dstb.GetGphonesQuery();
        //    LoadOpG = dstb.Load(QueryG.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), LoadOpG_C, null);

        //}
        //void LoadOpG_C(LoadOperation<Gphone> lo)
        //{
        //    EntityQuery<internet> QueryI = dstb.GetInternetsQuery();
        //    LoadOpI = dstb.Load(QueryI.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), LoadOpI_C, null);

        //}

        //void LoadOpI_C(LoadOperation<internet> lo)
        //{
        //    EntityQuery<mytv> QueryM = dstb.GetMytvsQuery();
        //    LoadOpM = dstb.Load(QueryM.Where(p => (p.ma_nvcs == null || p.ma_nvkt == null) && p.ma_huyen == m_huyen), LoadOpM_C, null);

        //}
        void LoadOpM_C(LoadOperation<mytv> lo)
        {
            QLThuebaoDomainContext db = new QLThuebaoDomainContext();
            InvokeOperation<System.Nullable<int>> pr = db.Excute_DsGanDiaban(m_kt, m_nv, m_huyen, m_emp);
            pr.Completed += new EventHandler(GetData);
        }