예제 #1
0
        public static void DesignHappyReport(System.Windows.Forms.DataGridView gridView, DataTable nowdata_table, System.Windows.Forms.BindingSource nowbs, string nowtablename)
        {
            if (null == gridView.CurrentRow)
            {
                return;
            }
            HappyReport hr = new HappyReport();

            DataTable print_table = nowdata_table.Clone();



            foreach (DataRowView drv in ((DataView)nowbs.List))
            {
                print_table.ImportRow(drv.Row);
            }

            //hr.ShowDesigner(this.dH_MonthReport_Data.DH_MonthReportData_in, "鼎和月份合同处理统计表");
            hr.ShowDesigner(print_table, nowtablename, true);
        }
예제 #2
0
        public static void ExportHappyReport(System.Windows.Forms.DataGridView gridView, DataTable nowdata_table, System.Windows.Forms.BindingSource nowbs, string nowtablename)
        {
            if (null == gridView.CurrentRow)
            {
                return;
            }

            HappyReport hr = new HappyReport();

            //string nowCardNumber = this.xD_Sel_SellBalanceDataGridView.CurrentRow.Cells["编号"].Value.ToString();

            DataTable print_table = nowdata_table.Clone();



            foreach (DataRowView drv in ((DataView)nowbs.List))
            {
                print_table.ImportRow(drv.Row);
            }

            //hr.Show(this.dH_MonthReport_Data.DH_MonthReportData_in, "鼎和月份合同处理统计表");
            hr.Show(print_table, nowtablename);
        }