private void riBtnStockCode_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ledBranch.GetValue().ToString()) || ledBranch.GetValue() == 0) { XtraMessageBox.Show("Şube seçilmeden satırlar listelenemez.", "HATA!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else if (string.IsNullOrEmpty(ledWhouse.GetValue().ToString()) || ledWhouse.GetValue() == 0) { XtraMessageBox.Show("Depo seçilmeden satırlar listelenemez.", "HATA!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "List"; list.ShowDialog(); if (grdGrid.RowCount - 1 > 0) { for (int i = 0; i < grdGrid.RowCount - 1; i++) { db.AddParameterValue("@barcode", grdGrid.GetRowCellValue(i, "Barkod").ToString()); db.AddParameterValue("@branchRef", ledBranch.GetValue()); string price = db.GetScalarValue("select dbo.Tools_GetLastActiveBuyPrice(@barcode,@branchRef)").ToString(); grdGrid.SetRowCellValue(i, "Son Alış", decimal.Parse(price)); } } } grdGrid.BestFitColumns(); grdGrid.RefreshData(); }
private void grdGrid_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F6 && grdGrid.FocusedColumn.ToString() == "Kart Kodu") { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "List"; list.ShowDialog(); } }
private void riBtnStockCode_Click(object sender, EventArgs e) { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "Buy"; list.ShowDialog(); if (list.DialogResult == DialogResult.OK) { grdGrid.BestFitColumns(); } }
private void riBtnStockCode_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(ledBranch.GetString().ToString())) { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "Discount"; list.branchRef = ledBranch.GetValue(); list.ShowDialog(); } else { XtraMessageBox.Show("indirimin uygulanacağı ana şube seçilmeden işleme devam edemezsiniz..", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private void riBtnStockCode_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ledBranch.GetValue().ToString()) || ledBranch.GetValue() == 0) { XtraMessageBox.Show("Şube seçilmeden satırlar listelenemez.", "HATA!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else if (string.IsNullOrEmpty(ledWhouse.GetValue().ToString()) || ledWhouse.GetValue() == 0) { XtraMessageBox.Show("Depo seçilmeden satırlar listelenemez.", "HATA!", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "Buy Order"; list.ShowDialog(); } }
private void grdGrid_KeyDown_1(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F6 && grdGrid.FocusedColumn.ToString() == "Kart Kodu") { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "Buy Order"; list.ShowDialog(); } if (e.KeyCode == Keys.Space && grdGrid.FocusedColumn.ToString() == "Birim Fiyat") { Tools.FrmPriceList priceList = new Tools.FrmPriceList(); priceList.type = "Buy Order"; priceList.barcode = grdGrid.GetFocusedRowCellValue("Barkod").ToString(); priceList.cardCode = grdGrid.GetFocusedRowCellValue("Kart Kodu").ToString(); priceList.branchRef = ledBranch.GetValue().ToString(); priceList.ShowDialog(); } }
private void riBtnStockCode_Click(object sender, EventArgs e) { Stock.FrmBarcodeList list = new Stock.FrmBarcodeList(); list.gelen = "Campaing"; list.ShowDialog(); }