private void btnFind_Click(object sender, EventArgs e) { frmMmCalculatePriceFind frmGoodsPriceStd_Find = new frmMmCalculatePriceFind(); frmGoodsPriceStd_Find.ShowDialog(); if (get_id != "") { txtId.Text = get_id; loadData(); if (dgvDetails.Rows.Count > 0) { fillTextBox(dgvDetails.CurrentCell.RowIndex); } } get_id = ""; frmGoodsPriceStd_Find.Dispose(); }
private void btnFind_Click(object sender, EventArgs e) { frmMmCalculatePriceFind frmGoodsPriceStd_Find = new frmMmCalculatePriceFind(); frmGoodsPriceStd_Find.ShowDialog(); if (get_id != "") { txtId.Text = get_id; txtVer.Text = get_ver.ToString(); loadHeadById(); loadDetailsById(); loadIdVer(); upd_flag = 0; setVerTextBoxBackColor(); //設定版本顏色 showIdAllVer(); //查找Id的所有版本記錄 } get_id = ""; frmGoodsPriceStd_Find.Dispose(); }