private void M_cmd_chon_file_Click(object sender, EventArgs e)
{
try
{
m_list_vi_tri_sai = new List<ViTriTrenLuoi>();
co_ma_nhan_vien_trung = co_ma_hop_dong_trung = false;
m_lbl_thong_bao.Text = "Đang đọc dữ liệu từ file...";
m_lbl_thong_bao.ForeColor = Color.Green;
OpenFileDialog opf = new OpenFileDialog();
opf.Filter = "Office Files|*.xlsx;*.xls;";
opf.Multiselect = false;
if (opf.ShowDialog() == DialogResult.OK)
{
m_file_path = opf.FileName;
if (String.IsNullOrEmpty(m_file_path))
{
return;
}
load_data_from_file_to_grid(m_file_path);
}
else
{
m_lbl_thong_bao.Text = "";
m_grc_hop_dong.Refresh();
return;
}
}
catch (Exception v_e)
{
set_init_form_load();
//CSystemLog_301.ExceptionHandle(v_e);
DevExpress.XtraEditors.XtraMessageBox.Show("Vui lòng chọn đúng file exel mẫu để lập hợp đồng!");
}
}