BKI_DichVuMatDat.NghiepVu.F503_IMPORT_EXCEL.set_init_form_load C# (CSharp) Method

set_init_form_load() private method

private set_init_form_load ( ) : void
return void
        private void set_init_form_load()
        {
            switch (m_e_buoc_hien_tai)
            {
                case buoc_hien_tai.buoc_1_nhap_ttnv:
                    m_cmd_nhap_thong_tin_cong_tac.Enabled = false;
                    m_cmd_nhap_thong_tin_hop_dong.Enabled = false;
                    m_cmd_nhap_thong_tin_nhan_vien.Enabled = true;
                    m_cmd_nhap_thong_tin_tong_hop.Enabled = false;
                    m_cmd_file_excel_nttth.Enabled = false;
                    m_cmd_file_excel_nttnv.Enabled = true;
                    m_cmd_file_excel_nttct.Enabled = false;
                    m_cmd_file_excel_ntthd.Enabled = false;
                    break;
                case buoc_hien_tai.buoc_2_nhap_tthd:
                    m_cmd_nhap_thong_tin_cong_tac.Enabled = false;
                    m_cmd_nhap_thong_tin_hop_dong.Enabled = true;
                    m_cmd_nhap_thong_tin_nhan_vien.Enabled = false;
                    m_cmd_nhap_thong_tin_tong_hop.Enabled = false;
                    m_cmd_file_excel_nttth.Enabled = false;
                    m_cmd_file_excel_ntthd.Enabled = true;
                    m_cmd_file_excel_nttct.Enabled = false;
                    m_cmd_file_excel_nttnv.Enabled = false;
                    break;
                case buoc_hien_tai.buoc_3_nhap_ttct:
                    m_cmd_nhap_thong_tin_cong_tac.Enabled = true;
                    m_cmd_nhap_thong_tin_hop_dong.Enabled = false;
                    m_cmd_nhap_thong_tin_nhan_vien.Enabled = false;
                    m_cmd_nhap_thong_tin_tong_hop.Enabled = false;
                    m_cmd_file_excel_nttth.Enabled = false;
                    m_cmd_file_excel_nttct.Enabled = true;
                    m_cmd_file_excel_nttnv.Enabled = false;
                    m_cmd_file_excel_ntthd.Enabled = false;
                    break;
                case buoc_hien_tai.buoc_4_nhap_ttbs:
                    m_cmd_nhap_thong_tin_cong_tac.Enabled = false;
                    m_cmd_nhap_thong_tin_hop_dong.Enabled = false;
                    m_cmd_nhap_thong_tin_nhan_vien.Enabled = false;
                    m_cmd_nhap_thong_tin_tong_hop.Enabled = true;
                    m_cmd_file_excel_nttth.Enabled = true;
                    m_cmd_file_excel_nttct.Enabled = false;
                    m_cmd_file_excel_nttnv.Enabled = false;
                    m_cmd_file_excel_ntthd.Enabled = false;
                    break;
                case buoc_hien_tai.done:
                    if (CHRM_BaseMessages.MsgBox_Confirm("Bạn có muốn thêm nhân viên mới nữa không ?") == true)
                    {
                        m_e_buoc_hien_tai = buoc_hien_tai.buoc_1_nhap_ttnv;
                        set_init_form_load();
                    }
                    else
                    {
                        this.Close();
                    }
                    break;
                default:
                    break;
            }
        }