Exemple #1
0
 void LoadData()
 {
     try
     {
         var thang = itemThang.EditValue;
         var nam   = itemNam.EditValue;
         if (thang == null || nam == null)
         {
             return;
         }
         DateTime tuNgay = new DateTime(int.Parse(nam.ToString()), int.Parse(thang.ToString()), 1);
         gcLichSuDiLam.DataSource    = db.LichSuDiLam2_Select(ID, tuNgay);
         gcLichSuTraLuong.DataSource = db.LichSuTamUng2_Select(ID, tuNgay);
         itemCaption.Caption         = string.Format("Lương thực nhận: {0:n0}", ((decimal)(gridColumn1.SummaryItem.SummaryValue == null ? 0 : gridColumn1.SummaryItem.SummaryValue) - (decimal)(gridColumn18.SummaryItem.SummaryValue == null ? 0 : gridColumn18.SummaryItem.SummaryValue)));
     }
     catch (Exception ex) { }
 }