Beispiel #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))
         {
             FrmPurchase frm = new FrmPurchase();
             frm.SLIP = slipnumber;
             frm.ShowDialog();
             frm.Dispose();
         }
     }
     catch (Exception ex)
     { }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 private void btnOperate_Click(object sender, EventArgs e)
 {
     if (dgvData.SelectedRows.Count > 0)
     {
         string slipnumber = CConvert.ToString(dgvData.SelectedRows[0].Cells["SLIP_NUMBER"].Value);
         if (!string.IsNullOrEmpty(slipnumber))
         {
             FrmPurchase frm = new FrmPurchase();
             frm.SLIP = slipnumber;
             frm.ShowDialog();
             frm.Dispose();
         }
     }
     else
     {
         MessageBox.Show("请先选择一行数据。", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }