Пример #1
0
 private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     PJ_gdscrk crk = gridView1.GetFocusedRow() as PJ_gdscrk;
     if (crk != null)
     {
         ExportGDSCRKDZ etdjh = new ExportGDSCRKDZ();
         etdjh.ExportOne(crk);
     }
     else
     {
         MsgBox.ShowTipMessageBox("请先选中要导出的数据!");
     }
 }
Пример #2
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (barGDS.EditValue != null)
     {
         if (barEndTime.EditValue == null)
         {
             MsgBox.ShowTipMessageBox("请选择季度");
         }
         else
         {
             DateTime now = DateTime.Now;
             string time = " " + now.ToLongTimeString();
             ExportGDSCRKDZ etdjh = new ExportGDSCRKDZ();
             etdjh.ExportGDSRKDExcel(barGDS.EditValue.ToString(), barEndTime.EditValue.ToString().Substring(0, 10) + time);
         }
     }
 }