예제 #1
0
 private void btnOperate_Click(object sender, EventArgs e)
 {
     try
     {
         string slipnumber = CConvert.ToString(dgvData.SelectedRows[0].Cells["SLIP_NUMBER"].Value);
         if (!string.IsNullOrEmpty(slipnumber))
         {
             FrmSales frm = new FrmSales();
             frm.SLIP_NUMBER = slipnumber;
             frm.ShowDialog();
             frm.Dispose();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #2
0
 /// <summary>
 /// 详细确认
 /// </summary>
 private void btnDetails_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvData.SelectedRows.Count > 0)
         {
             string slipNumber = CConvert.ToString(dgvData.SelectedRows[0].Cells["SLIP_NUMBER"].Value);
             if (!string.IsNullOrEmpty(slipNumber))
             {
                 FrmSales frm = new FrmSales();
                 frm.SLIP_NUMBER = slipNumber;
                 frm.ShowDialog();
                 frm.Dispose();
             }
         }
         else
         {
             MessageBox.Show("请先选择正确的行!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
     catch
     { }
 }