Exemple #1
0
        private void bt_singeprint_Click(object sender, EventArgs e)
        {
            if (object.Equals(null, dgv_tjdjb.CurrentRow))
            {
                return;
            }
            if (dgv_tjdjb.Rows.Count < 1)
            {
                return;
            }
            pw.StartThread();
            DataGridViewRow dgr = dgv_tjdjb.CurrentRow;

            string str_tjbh  = dgr.Cells["tjbh"].Value.ToString().Trim();
            string str_tjcs  = dgr.Cells["tjcs"].Value.ToString().Trim();
            string str_jkzbh = dgr.Cells["jkzbh"].Value.ToString().Trim();

            PrintRdlc(str_tjbh, str_tjcs, str_jkzbh);

            //add
            try
            {
                tjdjbiz.TjJkzDycsSave(str_jkzbh, str_tjbh, str_tjcs, 1);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            pw.StopThread();
        }