Example #1
0
        private void RemoveData()
        {
            SendDetail entity = this.ComputeData();

            if (!SendDetailManager.CheckExists(entity))
            {
                MessageBox.Show("该产品尚未扫描,不能撤销!");
                return;
            }
            SendDetailManager.Delete(entity, this.record);
        }
Example #2
0
        private void SaveData()
        {
            SendDetail entity = this.ComputeData();

            if (SendDetailManager.CheckExists(entity))
            {
                MessageBox.Show("您已经扫描过该产品!");
            }
            else
            {
                SendDetailManager.Save(entity, this.record);
            }
        }