protected void btnTinhTienClick(object sender, EventArgs e) { status.Value = "1"; //3 la busy 1 la free (new PMPhong(this)).End(); var presenter = new PMHoaDonDV(this); tongtienhang.Value = presenter.GetTongTienHang().ToString(); tongtienthanhtoan.Value = presenter.GetOne(presenter.GetLastByRomChaged(ID).ID).TongTien.ToString(); tienphong.Value = (Decimal.Parse(tongtienthanhtoan.Value) - Decimal.Parse(tongtienhang.Value)).ToString(); ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tinhtien", "btntinhtienclick();", true); }