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; } }
private void PrintReceipt() { RedeemPawnPrintPreviewForm frmRedeemPawnPrint = new RedeemPawnPrintPreviewForm(m_TicketID, m_OperationNumber); //frmReceiptPrintView.Show(); }