Ejemplo n.º 1
0
        /// <summary>
        /// 补打火化证明
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int rowHandle = gridView1.FocusedRowHandle;

            if (rowHandle < 0)
            {
                return;
            }

            string s_ac001 = gridView1.GetRowCellValue(rowHandle, "AC001").ToString();

            if (gridView1.GetRowCellValue(rowHandle, "AC014") != DBNull.Value)
            {
                if (XtraMessageBox.Show("现在打印【火化证明】吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
                {
                    PrintAction.Print_HHZM_BD1(s_ac001);
                    FireAction.FireCertLog(s_ac001, Envior.cur_user.UC001);
                }
            }
            else
            {
                Frm_HHZM_reprint frm_1 = new Frm_HHZM_reprint();
                if (frm_1.ShowDialog() == DialogResult.OK)
                {
                    DateTime dt_birth = Convert.ToDateTime(frm_1.swapdata["birth"]);
                    PrintAction.Print_HHZM_BD2(s_ac001, dt_birth);
                    FireAction.FireCertLog(s_ac001, Envior.cur_user.UC001);
                }
                frm_1.Dispose();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 补打火化证明
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!AppAction.CheckRight("补打火化证明"))
            {
                return;
            }

            int rowHandle = gridView1.FocusedRowHandle;

            if (rowHandle < 0)
            {
                return;
            }

            string s_ac001 = gridView1.GetRowCellValue(rowHandle, "AC001").ToString();

            if (XtraMessageBox.Show("现在打印【火化证明】吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
            {
                PrtServAction.Print_HHZM(s_ac001, Envior.mform.Handle.ToInt32());
                FireAction.FireCertLog(s_ac001, Envior.cur_userId);
            }
        }