Beispiel #1
0
        private void lblBanKa_Click(object sender, EventArgs e)
        {
            //#region 读取身份证

            //FrmSendCardMain frm = new FrmSendCardMain();
            //IDCardInfo idinfo = null;
            //try
            //{
            //    if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            //    {
            //        idinfo = frm.IdInfo;
            //    }
            //    else
            //    {
            //        return;
            //    }
            //}
            //catch (Exception ex)
            //{
            //    Skynet.LoggingService.LogService.GlobalInfoMessage("读取身份证失败:" + ex.Message);
            //    return;
            //}
            //finally
            //{
            //    frm.Dispose();
            //}
            //#endregion

            //#region 输入手机号码
            //string TelePhone = string.Empty;
            //using (FrmSendCardInputTel frmTel = new FrmSendCardInputTel(idinfo))
            //{
            //    frmTel.IdInfo = idinfo;
            //    if (frmTel.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            //    {
            //        TelePhone = frmTel.TelePhone;
            //    }
            //    else
            //    {
            //        idinfo = null;
            //        return;
            //    }
            //}
            //#endregion
            //FrmSendCardMain frm = new FrmSendCardMain();
            FrmChooseSendCardType frm = new FrmChooseSendCardType();

            frm.ShowDialog(this);
            frm.Dispose();
        }
Beispiel #2
0
        /// <summary>
        /// 办卡
        /// </summary>
        /// <param name="owner"></param>
        public void SendCard(IWin32Window owner)
        {
            //判断打印机是否有纸
            if (AutoHostConfig.ReadCardType == "XUHUI")
            {
                PrintManage_XH thePrintManage = new PrintManage_XH();
                string         CheckInfo      = thePrintManage.CheckPrintStatus();
                if (!string.IsNullOrEmpty(CheckInfo))
                {
                    SkyComm.ShowMessageInfo(CheckInfo);
                    return;
                }
            }
            //FrmSendCardMain frm = new FrmSendCardMain();
            FrmChooseSendCardType frm = new FrmChooseSendCardType();

            frm.ShowDialog(owner);
            frm.Dispose();
            ExitScanCard();
        }