Beispiel #1
0
 void dgv产品退货接收单_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0 && e.ColumnIndex >= 0)
     {
         产品退货接收单 form = new 产品退货接收单(mainform, dgv产品退货接收单["退货申请单编号", e.RowIndex].Value.ToString());
         form.ShowDialog();
     }
 }
Beispiel #2
0
        private void btn添加退货接收单_Click(object sender, EventArgs e)
        {
            SqlDataAdapter da = new SqlDataAdapter("select * from 产品退货审批单2 where 批准结果=1 and 状态='已批准'", mySystem.Parameter.conn);
            DataTable      dt = new DataTable();

            da.Fill(dt);
            try
            {
                String ids = mySystem.Other.InputDataGridView.getIDs("", dt, false);
                // 把id变成订单号
                Int32   退货申请ID = Convert.ToInt32(dt.Select("ID=" + ids)[0]["产品退货申请单ID"]);
                产品退货接收单 form   = new 产品退货接收单(mainform, 退货申请ID);
                form.Show();
            }
            catch (Exception ee)
            {
            }
            if (dgv产品退货接收单.Rows.Count > 0)
            {
                dgv产品退货接收单.FirstDisplayedScrollingRowIndex = dgv产品退货接收单.Rows.Count - 1;
            }
        }