Exemplo n.º 1
0
        private void toolStripButton导出_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = m_marketPartBillServer.GetExcelData(
                checkBillDateAndStatus1.dtpStartTime.Value, checkBillDateAndStatus1.dtpEndTime.Value,
                checkBillDateAndStatus1.cmbBillStatus.Text);

            ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);
            RefreshDataGridView();
        }
Exemplo n.º 2
0
 private void btnOutExcel_Click(object sender, EventArgs e)
 {
     if (tabControl1.SelectedTab.Name == "tpMachineAccount")
     {
         ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView_MachineAccount);
     }
     else if (tabControl1.SelectedTab.Name == "tpDayToDay")
     {
         ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView_DayToDay);
     }
 }
        private void btnExcel_Click(object sender, EventArgs e)
        {
            DataGridView dgv = new DataGridView();

            foreach (Control cl in tabControl1.SelectedTab.Controls)
            {
                if (cl is DataGridView)
                {
                    dgv = (DataGridView)cl;
                }
            }

            ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgv);
        }
 private void btnOutExcel_Click(object sender, EventArgs e)
 {
     foreach (Control cl in tabControl1.SelectedTab.Controls)
     {
         if (cl is TabControl)
         {
             foreach (Control clSon in ((TabControl)cl).SelectedTab.Controls)
             {
                 if (clSon is CustomDataGridView)
                 {
                     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, (DataGridView)clSon);
                 }
             }
         }
         else if (cl is CustomDataGridView)
         {
             ExcelHelperP.DatagridviewToExcel(saveFileDialog1, (DataGridView)cl);
         }
     }
 }
        private void 综合查询toolStripButton3_Click(object sender, EventArgs e)
        {
            IAuthorization       authorization = PlatformFactory.GetObject <IAuthorization>();
            string               businessID    = "查看储备人才库";
            IQueryResult         qr            = authorization.Query(businessID, null, null, 0);
            List <string>        lstFindField  = new List <string>();
            DataColumnCollection columns       = qr.DataCollection.Tables[0].Columns;

            if (qr.Succeeded && columns.Count > 0)
            {
                ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);

                for (int i = 0; i < columns.Count; i++)
                {
                    lstFindField.Add(columns[i].ColumnName);
                }
            }

            FormConditionFind formFindCondition = new FormConditionFind(this, lstFindField.ToArray(), businessID, labelTitle.Text);

            formFindCondition.ShowDialog();
        }
Exemplo n.º 6
0
 private void 导出toolStripButton_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);
 }
 private void btnOutExcel_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgv_InvoiceShow);
 }
Exemplo n.º 8
0
 private void 导出本身_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog2, dgvSelfReject);
 }
Exemplo n.º 9
0
 private void 导出Bom_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgvBomReject);
 }
Exemplo n.º 10
0
 private void btnExport_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgv_Show);
 }
Exemplo n.º 11
0
 private void btn_logistics_Output_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgvlogistics);
 }
Exemplo n.º 12
0
 private void btnOutput_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, customDataGridView1);
 }
Exemplo n.º 13
0
 private void btnPrint_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgvStatistical);
 }
 private void 导出EXCELToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);
 }
 private void btnOutput_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, (DataGridView)dgv_BusDetail);
 }
Exemplo n.º 16
0
 private void btnExportExcel_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dataGridView1);
 }
Exemplo n.º 17
0
 private void btnOutput_BOM_Click(object sender, EventArgs e)
 {
     ExcelHelperP.DatagridviewToExcel(saveFileDialog1, dgvbom);
 }