private void rbOnlyUnreinspect_CheckedChanged(object sender, EventArgs e) { if (rbOnlyUnreinspect.Checked) { if (this.InspectMode != InspeceMode.OnlyUnre) SearchUnreinspectList(); this.InspectMode = InspeceMode.OnlyUnre; } }
void SearchUnreinspectList() { string line = null; string name = null; _table = DatabaseSet.GetUnreinspectList(line, name); _table.Columns.Add("NG處理", typeof(string)); string sort = bindingSource.Sort; bindingSource.Sort = null; this.GroupTable = null; this.InspectMode = InspeceMode.OnlyUnre; bindingSource.DataSource = _table; bindingSource.Sort = sort; btnSend.Enabled = false; dgv.EditMode = DataGridViewEditMode.EditProgrammatically; }
private void rbInspectByQcN_CheckedChanged(object sender, EventArgs e) { if (rbInspectByQcN.Checked) { if (this.InspectMode == InspeceMode.OnlyUnre) SearchList(); this.InspectMode = InspeceMode.ByQcNo; bindingSource.DataSource = _table; } }