Beispiel #1
0
 public void display_for_update_cau_hoi(US_V_DM_CAU_HOI ip_us_dm_cau_hoi)
 {
     m_e_form_mode   = e_form_mode.SUA_CAU_HOI;
     m_us_dm_cau_hoi = ip_us_dm_cau_hoi;
     m_us_dm_cau_tra_loi.get_obj_by_id_cau_hoi();
     this.ShowDialog();
 }
Beispiel #2
0
 public DialogResult display_search(string i_str_key_search, US_V_DM_CAU_HOI i_us)
 {
     m_txt_key_ten_qlht.Text = i_str_key_search;
     //m_us_cau_hoi = i_us;
     this.ShowDialog();
     return(m_dlg_result);
 }
Beispiel #3
0
        private void grid2us_object(US_V_DM_CAU_HOI i_us
                                    , int i_grid_row)
        {
            DataRow v_dr;

            v_dr = (DataRow)m_fg.Rows[i_grid_row].UserData;
            m_obj_trans.GridRow2DataRow(i_grid_row, v_dr);
            i_us.DataRow2Me(v_dr);
        }
Beispiel #4
0
 private void grid2us_object(US_V_DM_CAU_HOI i_us
                             , int i_grid_row)
 {
     m_us_cau_hoi_yeu_cau.datNGAY_SINH        = CIPConvert.ToDatetime(CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.NGAY_SINH]), "dd/MM/yyyy");
     m_us_cau_hoi_yeu_cau.strHO_TEN_SINH_VIEN = CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.HO_TEN]);
     m_us_cau_hoi_yeu_cau.strLOP          = CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.MA_LOP]);
     m_us_cau_hoi_yeu_cau.strMA_SINH_VIEN = CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.MA_SINH_VIEN]);
     m_us_cau_hoi_yeu_cau.strNOI_SINH     = CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.NOI_SINH]);
     m_us_cau_hoi_yeu_cau.strTRUONG       = CIPConvert.ToStr(m_fg[i_grid_row, (int)e_col_Number.MA_TRUONG]);
 }
Beispiel #5
0
        private void them_cau_tra_loi()
        {
            if (!HelpUtils.is_validated_edit_grid_row(m_fg.Row, m_fg))
            {
                return;
            }
            grid2us_object(m_us, m_fg.Row);
            f111_dm_cau_hoi_de v_f111 = new f111_dm_cau_hoi_de();

            m_us_cau_hoi = new US_V_DM_CAU_HOI(m_us.dcID);
            v_f111.display_for_them_cau_tra_loi(m_us_cau_hoi);
            load_data_2_grid_cau_tra_loi(m_us_cau_hoi.dcID);
        }
Beispiel #6
0
 public DialogResult display_search(string i_str_key_search
                                    , decimal i_id_don_vi
                                    , decimal i_id_loai_cau_hoi
                                    , US_V_DM_CAU_HOI i_us)
 {
     m_e_form_mode = e_form_mode.DISPLAY_FROM_CALL_SINH_VIEN;
     load_data_2_cbo_don_vi_lien_quan();
     load_data_2_cbo_loai_cau_hoi_tren();
     m_txt_key_cau_hoi.Text                = i_str_key_search;
     m_e_trangThai_cbo_Don_vi              = e_trangThai_cbo_Don_vi.DANG_FILL_DATA;
     m_e_trangThai_cbo_Nhom_cau_hoi        = e_trangThai_cbo_Nhom_cau_hoi.DANG_FILL_DATA;
     m_cbo_loai_cau_hoi_tren.SelectedValue = i_id_loai_cau_hoi;
     m_cbo_don_vi_lien_quan.SelectedValue  = i_id_don_vi;
     m_e_trangThai_cbo_Don_vi              = e_trangThai_cbo_Don_vi.DA_FILL_XONG;
     m_e_trangThai_cbo_Nhom_cau_hoi        = e_trangThai_cbo_Nhom_cau_hoi.DA_FILL_XONG;
     m_us_cau_hoi = i_us;
     this.ShowDialog();
     return(m_dlg_result);
 }
Beispiel #7
0
 public void display_for_them_cau_tra_loi(US_V_DM_CAU_HOI ip_us_dm_cau_hoi)
 {
     m_e_form_mode   = e_form_mode.THEM_CAU_TRA_LOI;
     m_us_dm_cau_hoi = ip_us_dm_cau_hoi;
     this.ShowDialog();
 }