private void dgv_show_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dgv_show.RowCount == 0) { return; } int i = e.RowIndex; int j = e.ColumnIndex; Class.valiballecommon va = Class.valiballecommon.GetStorage(); va.value1 = dgv_show.Rows[dgv_show.SelectedCells[0].RowIndex].Cells["Code_Type"].Value.ToString(); va.value2 = dgv_show.Rows[dgv_show.SelectedCells[0].RowIndex].Cells["Code_No"].Value.ToString(); va.value3 = dtp_from.Value.ToString("yyyy-MM-dd"); if (dgv_show.Rows[i].Cells["Shipping_Percent"].Selected || dgv_show.Rows[i].Cells["Delivery_Date"].Selected || dgv_show.Rows[i].Cells["Client_Request_Date"].Selected) { ERPShowShipping shipping = new ERPShowShipping(); shipping.ShowDialog(); } else if (dgv_show.Rows[i].Cells["FinishedGoods"].Selected || dgv_show.Rows[i].Cells["NGQuantity"].Selected || dgv_show.Rows[i].Cells["OKQuantity"].Selected || dgv_show.Rows[i].Cells["Good_product_ratio"].Selected || dgv_show.Rows[i].Cells["Production_Rate"].Selected) { ERPShowOrder showOrder = new ERPShowOrder(); showOrder.ShowDialog(); } }
private void ShippingToolStripMenuItem_Click(object sender, EventArgs e) { ERPShowShipping shipping = new ERPShowShipping(); shipping.ShowDialog(); }