Пример #1
0
        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();
        }
Пример #2
0
 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();
     }
 }
Пример #3
0
        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();
            }
        }
Пример #4
0
 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);
     }
 }
Пример #5
0
 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();
     }
 }
Пример #6
0
 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();
     }
 }
Пример #7
0
 private void riBtnStockCode_Click(object sender, EventArgs e)
 {
     Stock.FrmBarcodeList list = new Stock.FrmBarcodeList();
     list.gelen = "Campaing";
     list.ShowDialog();
 }