BKI_DichVuMatDat.f468_bao_cao_trang_thai_lao_dong.m_cmd_xuat_excel_Click C# (CSharp) Method

m_cmd_xuat_excel_Click() private method

private m_cmd_xuat_excel_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void m_cmd_xuat_excel_Click(object sender, EventArgs e)
        {
            try
            {
                SaveFileDialog saveFileDialog1 = new SaveFileDialog();
                saveFileDialog1.Filter = "xls files (*.xls)|*.xls|All files (*.*)|*.*";
                saveFileDialog1.FileName = "Danh sách nhân viên chuyển trạng thái" + m_str_trang_thai + " trong tháng " + m_str_thang_nam;
                saveFileDialog1.RestoreDirectory = true;
                if (saveFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    m_grv_trang_thai_lao_dong.ExportToXls(saveFileDialog1.FileName);
                    CHRM_BaseMessages.MsgBox_Infor(CONST_ID_MSGBOX.INFOR_LUU_BAO_CAO_THANH_CONG);
                }
            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }