Example #1
0
 private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (expotSQL == "")
     {
         MsgBox.ShowTipMessageBox("请先填充上面的查询条件!");
     }
     else
     {
         frmGDSSelect fys = new frmGDSSelect();
         if (fys.ShowDialog() == DialogResult.OK)
         {
             ExportGDSRKEdit etdjh = new ExportGDSRKEdit();
             etdjh.ExportExcelForSQL(fys.OrgCode, fys.JingBanRen, expotSQL);
         }
     }
 }
Example #2
0
 private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     PJ_gdscrk crk = gridView1.GetFocusedRow() as PJ_gdscrk;
     if (crk != null)
     {
         ExportGDSRKEdit etdjh = new ExportGDSRKEdit();
         etdjh.ExportOne(crk);
     }
     else
     {
         MsgBox.ShowTipMessageBox("请先选中要导出的数据!");
     }
 }
Example #3
0
 private void barExplorYear_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmGDSSelect fys = new frmGDSSelect();
     if (fys.ShowDialog() == DialogResult.OK)
     {
         ExportGDSRKEdit etdjh = new ExportGDSRKEdit();
         etdjh.ExportGDSRKDExcel(fys.OrgCode, fys.JingBanRen, enterTime);
     }
 }