Beispiel #1
0
        private void txtQuantity_TextChanged(object sender, EventArgs e)
        {
            int     soluong   = string.IsNullOrWhiteSpace(txtQuantity.Text) == true ? 0 : Convert.ToInt32(txtQuantity.Text);
            decimal thanhtien = soluong * CurrencyUtility.ToDecimal(txtQuotationPrice.Text);

            txtThanhtien.Text = CurrencyUtility.DecimalToString(thanhtien);
        }
Beispiel #2
0
        private void txtThanhtien_TextChanged(object sender, EventArgs e)
        {
            decimal val = CurrencyUtility.ToDecimal(txtThanhtien.Text);

            txtThanhtien.Text           = CurrencyUtility.DecimalToString(val);
            txtThanhtien.SelectionStart = txtThanhtien.Text.Length;
        }
Beispiel #3
0
        private void gridView1_RowClick(object sender, RowClickEventArgs e)
        {
            gridUtility.SetRowColor();
            Debt debt = gridUtility.GetSelectedItem <Debt>();

            txtCompanyDebt.Text = CurrencyUtility.DecimalToString(debt.RestValuePerCompany);
        }
        private void InititalizeForm(Product product)
        {
            txtPrice.Text    = CurrencyUtility.DecimalToString(product.Price);
            txtQuantity.Text = product.Quantity.ToString();
            decimal customerPrice = product.Price * (decimal)m_Company.Class.CompanyClassRate;

            txtQuotationPrice.Text = CurrencyUtility.DecimalToString(customerPrice);
            txtThanhtien.Text      = (product.Quantity * customerPrice).ToString();
        }
Beispiel #5
0
        private void autoTextBox1_TextChanged(object sender, EventArgs e)
        {
            double percent = string.IsNullOrWhiteSpace(autoTextBox1.Text) == true ? 0 : Convert.ToDouble(autoTextBox1.Text);

            autoTextBox15.Text = CurrencyUtility.DecimalToString(CurrencyUtility.PercentToMoney(percent / 100, colThanhtien.SummaryText));
        }
Beispiel #6
0
        private void autoTextBox1_TextChanged(object sender, EventArgs e)
        {
            double percent = string.IsNullOrWhiteSpace(autoTextBox1.Text) == true ? 0 : Convert.ToDouble(autoTextBox1.Text);

            textBox9.Text = CurrencyUtility.DecimalToString(CurrencyUtility.PercentToMoney(percent / 100, m_Debt.TotalValue));
        }