Esempio n. 1
0
 void GetData(object sender, EventArgs e)
 {
     grid.ShowLoadingPanel = true;
     QLThuebaoDomainContext db = new QLThuebaoDomainContext();           
     if (App.admin_119)
     {
         EntityQuery<ds_119> Query = db.GetDs_119Query();
         LoadOperation<ds_119> LoadOp = db.Load(Query.OrderByDescending(p => p.dtRecvTime), LoadOp_Complete, null);
         EntityQuery<dsw_119> Query1 = db.GetDsw_119Query();
         LoadOperation<dsw_119> LoadOp1 = db.Load(Query1.OrderByDescending(p => p.dtRecvTime), LoadOp1_Complete, null);
     }
     else
     {
         EntityQuery<ds_119> Query = db.GetDs_119Query();
         LoadOperation<ds_119> LoadOp = db.Load(Query.Where(p => App.nhomtd.Contains(p.ma_huyen)).OrderByDescending(p => p.dtRecvTime), LoadOp_Complete, null);
         EntityQuery<dsw_119> Query1 = db.GetDsw_119Query();
         LoadOperation<dsw_119> LoadOp1 = db.Load(Query1.Where(p => App.nhomtd.Contains(p.ma_huyen)).OrderByDescending(p => p.dtRecvTime), LoadOp1_Complete, null);
     }
 }