Exemplo n.º 1
0
        void get_data()
        {
            //grid.ShowLoadingPanel = true;
            //grid1.ShowLoadingPanel = true;
            QLThuebaoDomainContext db = new QLThuebaoDomainContext();
            if (App.admin_119)
            {
                EntityQuery<dssuaxong_119> Query = db.GetDssuaxong_119Query();
                LoadOperation<dssuaxong_119> LoadOp = db.Load(Query.Where(p=>p.bfinished==true).OrderByDescending(p => p.dtRecvTime), LoadOp_Complete, null);
            }
            else
            {
                EntityQuery<dssuaxong_119> Query = db.GetDssuaxong_119Query();
                LoadOperation<dssuaxong_119> LoadOp = db.Load(Query.Where(p =>App.nhomtd.Contains(p.ma_huyen) && p.bfinished==true).OrderByDescending(p => p.dtRecvTime), LoadOp_Complete, null);
            }

            EntityQuery<tkloai119> Querys = db.GetTkloai119Query();
            LoadOperation<tkloai119> LoadOps = db.Load(Querys.OrderBy(p => p.istatusID), LoadOps_Complete, null);
        }