Пример #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 3:
                RenewPawnPrintPreviewForm frmRenewPrint = new RenewPawnPrintPreviewForm(m_TicketID, strOperationNumber);
                break;

            default:
                break;
            }
        }
Пример #2
0
 private void PrintPawnTicket()
 {
     RenewPawnPrintPreviewForm frmRenewPawnPrintView = new RenewPawnPrintPreviewForm(m_TicketID, m_OperationNumber);
     //frmRenewPawnPrintView.Show();
 }