コード例 #1
0
ファイル: ProDeliverySelect.cs プロジェクト: wushian/HPDA
        private void dGridMain_DoubleClick(object sender, EventArgs e)
        {
            if (dGridMain.CurrentRowIndex < 0)
            {
                return;
            }

            int iAutoID;

            try
            {
                iAutoID = int.Parse(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["AutoID"].ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(@"数据异常" + ex.Message, @"Warning");
                return;
            }
            var outWareHouse = new ProDelivery(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString(), iAutoID);

            outWareHouse.ShowDialog();
            Close();
        }
コード例 #2
0
ファイル: ProDeliverySelect.cs プロジェクト: JARANTeam/HPDA
        private void dGridMain_DoubleClick(object sender, EventArgs e)
        {
            if (dGridMain.CurrentRowIndex < 0)
                return;

            int iAutoID;
            try 
	        {	        
		        iAutoID=int.Parse(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["AutoID"].ToString());
	        }
	        catch (Exception ex)
	        {
        		
		        MessageBox.Show(@"数据异常"+ex.Message, @"Warning");
                return;
	        }
            var outWareHouse = new ProDelivery(prods.ProDelivery.Rows[dGridMain.CurrentRowIndex]["cCode"].ToString(), iAutoID);
            outWareHouse.ShowDialog();
            Close();
        }