示例#1
0
        private void DelMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (focused_dr != null)
            {
                _db.DeleteWhere <WaybillDet>(w => w.PosId == focused_dr.PosId);
                _db.SaveChanges();

                WaybillDetOutGridView.DeleteSelectedRows();

                GetOk();
            }
        }
示例#2
0
        private void DelMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (wbd_row != null)
            {
                DelRsvBarBtn.PerformClick();

                _db.DeleteWhere <WaybillDet>(w => w.PosId == wbd_row.PosId);
                _db.SaveChanges();
                RefreshDeboningDet(true);
                WaybillDetOutGridView.DeleteSelectedRows();

                GetOk();
            }
        }