Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            PriceRepository priceRepository = new PriceRepository();
            SellingPrice    cost            = new SellingPrice();

            cost.ProdCd = txtProdCd.Text;
            cost.Old    = product1.Sp;
            cost.New    = Convert.ToDecimal(txtNewPrice.Text);
            if (priceRepository.ChangeSP(cost))
            {
                MessageBox.Show("Selling price Update successfully.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Close();
            }
            else
            {
                MessageBox.Show("Error on Saving. Please Contact System Admin For more help.", "Failure", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }