Exemple #1
0
        private void recalculateThanhTien()
        {
            QLMamNon.Dao.QLMamNonDs.ViewTaiSanRow row = this.GridView.GetFocusedDataRow() as QLMamNon.Dao.QLMamNonDs.ViewTaiSanRow;

            if (row != null && !ControlUtil.IsEditValueNull(txtDonGia) && !ControlUtil.IsEditValueNull(txtSoLuong))
            {
                row.ThanhTien = Convert.ToInt64(txtDonGia.Value * txtSoLuong.Value);
            }
        }
Exemple #2
0
        private void cmbPhanLoaiChi_EditValueChanged(object sender, EventArgs e)
        {
            QLMamNon.Dao.QLMamNonDs.ViewTaiSanRow row = this.GridView.GetFocusedDataRow() as QLMamNon.Dao.QLMamNonDs.ViewTaiSanRow;

            if (row != null && cmbPhanLoaiChi.IsEditorActive)
            {
                if (!ControlUtil.IsEditValueNull(cmbPhanLoaiChi))
                {
                    row.PhanLoaiTaiSan = cmbPhanLoaiChi.Text;
                }
                else
                {
                    row.PhanLoaiTaiSan = CommonConstant.EMPTY;
                }
            }
        }