Example #1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            int iQuantity;

            if (uneiQuantity.Value == null || !int.TryParse(uneiQuantity.Value.ToString(), out iQuantity))
            {
                MessageBox.Show(@"请先选择数量");
                uneiQuantity.Focus();
                return;
            }
            if (string.IsNullOrEmpty(txtcInvCode.Text) || string.IsNullOrEmpty(utecInvName.Text))
            {
                MessageBox.Show(@"请先选择产品");
                return;
            }
            using (var skcs = new SelectKisCurrectStock(this))
            {
                skcs.ShowDialog();
            }
        }
Example #2
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     int iQuantity;
     if (uneiQuantity.Value==null||!int.TryParse(uneiQuantity.Value.ToString(), out iQuantity))
     {
         MessageBox.Show(@"请先选择数量");
         uneiQuantity.Focus();
         return;
     }
     if (string.IsNullOrEmpty(txtcInvCode.Text)||string.IsNullOrEmpty(utecInvName.Text))
     {
         MessageBox.Show(@"请先选择产品");
         return;
     }
     using (var skcs = new SelectKisCurrectStock(this))
     {
         skcs.ShowDialog();}
 }