Beispiel #1
0
        /// <summary>
        /// 打印按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void skinButtonPrinter_Click(object sender, EventArgs e)
        {
            FormPrint fp = new FormPrint();

            fp.id = skinDataGridViewMain.CurrentRow.Cells[0].Value.ToString();
            fp.Show();
        }
Beispiel #2
0
        private void bt_print_Click(object sender, EventArgs e)
        {
            DialogResult imprimir;

            imprimir = MessageBox.Show("Deseja imprimir esse recibo?", "Imprimir", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);

            if (imprimir == DialogResult.Yes)
            {
                FormPrint.Print(this);
            }
        }
Beispiel #3
0
        public static void Print(System.Windows.Forms.DataGridView dgv, string title, string strSum)
        {
            if (dgv.DataSource == null)
            {
                MessageBox.Show("没有数据,无法打印", "提示");
                return;
            }
            model = GetModel.getMode(dgv, title, strSum);//获得打印参数
            FormPrint print = new FormPrint(model);

            print.CallPrintForm(dgv, title, strSum);
        }
Beispiel #4
0
        public static void Print(DataGridViewKJ128 dgv, string title)
        {
            if (dgv.DataSource == null)
            {
                MessageBox.Show("没有数据,无法打印", "提示");
                return;
            }
            DataGridView dgvs = dgv;

            model = GetModel.getMode(dgvs, title, "");//获得打印参数
            FormPrint print = new FormPrint(model);

            print.CallPrintForm(dgv, title, "");
        }
Beispiel #5
0
        private void DgvHoadon_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            String mahoadon = "";

            if (e.RowIndex != -1)
            {
                DataGridViewRow row = dgvHoadon.Rows[e.RowIndex];
                mahoadon = row.Cells["mahd"].Value.ToString();
            }

            using (FormPrint f = new FormPrint(new GoiMon(), mahoadon, true))
            {
                f.ShowDialog();
            }
        }