示例#1
0
        private void btnPrintTicket_Click(object sender, EventArgs e)
        {
            string strOperationNumber = dataGridView1.CurrentRow.Cells["OperationNumber"].Value.ToString();
            int    intStatusID        = Convert.ToInt32(dataGridView1.CurrentRow.Cells["OperationType"].Value);

            switch (intStatusID)
            {
            case 1:
                PawnTicketPrintPreviewForm frmTicketPrint = new PawnTicketPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            case 2:
                RedeemPawnPrintPreviewForm frmRedeemPrint = new RedeemPawnPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            case 3:
                RenewPawnPrintPreviewForm frmRenewPrint = new RenewPawnPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            default:
                break;
            }
        }
示例#2
0
 private void PrintReceipt()
 {
     RedeemPawnPrintPreviewForm frmRedeemPawnPrint = new RedeemPawnPrintPreviewForm(m_TicketID, m_OperationNumber);
     //frmReceiptPrintView.Show();
 }