private void RemoveData() { SendDetail entity = this.ComputeData(); if (!SendDetailManager.CheckExistsTuopan(entity)) { MessageBox.Show("该托盘尚未扫描,不能撤销!"); return; } SendDetailManager.DeleteTuopan(entity, this.record); }
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (this.tabControl1.SelectedIndex == 1) { this.dg_Resume.DataSource = SendDetailManager.GetUserData(record.So, Program.UserID); } else if (this.tabControl1.SelectedIndex == 2) { this.dg_Summarizing.DataSource = SendRecordManager.Count(record.So); } }
private void SaveData() { SendDetail entity = this.ComputeData(); if (SendDetailManager.CheckExistsTuopan(entity)) { MessageBox.Show("您已经扫描过该托盘!"); } else { SendDetailManager.Save(entity, this.record); } }