private void butLuu_Click(object sender, System.EventArgs e) { if (l_id <= 0) { l_id = m.get_id_bhyt_maubaocao(); } if (cboLoai.Items.Count > 0) { if (txttenloai.Text.Trim() == "") { txttenloai.Text = this.Text.Trim(); } if (ten.Text.Trim() == "") { MessageBox.Show(lan.Change_language_MessageText("Đề nghị nhập mẫu báo cáo")); ten.Focus(); return; } } else { txttenloai.Text = this.Text.Trim(); } if (ma.Text.Trim() == "") { MessageBox.Show(lan.Change_language_MessageText("Đề nghị nhập tên file report")); ma.Focus(); return; } if (s_maloai == "") { s_maloai = cboLoai.SelectedValue.ToString(); } m.upd_bhyt_mabaocao(l_id, s_maloai, txttenloai.Text, ten.Text, ma.Text, 1, int.Parse(stt.Value.ToString()), i_loai, i_tonghop); // loadgrid(s_maloai); dataGrid1.Refresh(); ena_object(false); try { if (cboLoai.Items.Count <= 0) { Load_LoaiBC(s_maloai); } butMoi.Focus(); } catch { } }