Exemplo n.º 1
0
 private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (var frm = new frmWriteOffDet(_db, null, wb))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             RefreshDet();
         }
     }
 }
 private void AddMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (var frm = new frmWriteOffDet(_db, null, wb))
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             RefreshDet();
             RefreshDeboningDet(true);
         }
     }
 }
Exemplo n.º 3
0
        private void EditMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var dr = WaybillDetOutGridView.GetRow(WaybillDetOutGridView.FocusedRowHandle) as GetWayBillDetOut_Result;

            if (dr != null)
            {
                using (var frm = new frmWriteOffDet(_db, dr.PosId, wb))
                {
                    frm.ShowDialog();
                }
                RefreshDet();
            }
        }
Exemplo n.º 4
0
        private void EditMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (wbd_row != null)
            {
                using (var frm = new frmWriteOffDet(_db, wbd_row.PosId, wb))
                {
                    frm.ShowDialog();
                }

                //    current_transaction = current_transaction.CommitRetaining(_db);
                //    UpdLockWB();
                RefreshDeboningDet(true);
                RefreshDet();
            }
        }
Exemplo n.º 5
0
        private void AddMaterialBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            dynamic row = RecipeComboBox.GetSelectedDataRow();

            using (var frm = new frmWriteOffDet(_db, null, wb))
            {
                frm.mat_id = row.MatId;
                frm.amount = row.Amount;

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    //  current_transaction = current_transaction.CommitRetaining(_db);
                    //   UpdLockWB();
                    RefreshDeboningDet(true);
                    RefreshDet();
                }
            }
        }