Esempio n. 1
0
        private void load_data_2_grid()
        {
            string v_str_key_search = "";
            string v_str_ho_ten     = m_txt_key_ten_qlht.Text.Trim();
            string v_str_ma_lop     = m_txt_key_ma_lop.Text.Trim();
            string v_str_ma_truong  = CIPConvert.ToStr(m_cbo_qlht_truong.SelectedValue);

            if (v_str_ma_truong == "ALL")
            {
                v_str_ma_truong = "";
            }
            v_str_key_search = HelpUtils.gen_string_call_scm_get_QLHT_ws("", v_str_ho_ten, v_str_ma_truong, v_str_ma_lop, "20");

            m_ds_dm_qlht_scm = new DS_DM_QLHT_SCM();
            m_scm_ws         = new SCMServices.SyncData();
            m_ds_qlht        = m_scm_ws.TOS_search_thong_tin_qlht_all_T(v_str_key_search);

            dataset_2_ds_qlht();

            m_fg.Redraw = false;
            CGridUtils.Dataset2C1Grid(m_ds_dm_qlht_scm, m_fg, m_obj_trans);
            set_tree_on_grid();
            CGridUtils.MakeSoTT((int)e_col_Number.STT, m_fg);
            m_fg.Redraw = true;
            m_fg.Focus();
        }
Esempio n. 2
0
 public US_DM_QLHT_SCM(decimal i_dbID)
 {
     pm_objDS = new DS_DM_QLHT_SCM();
     pm_strTableName = c_TableName;
     IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName);
     v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang);
     SqlCommand v_cmdSQL;
     v_cmdSQL = v_objMkCmd.getSelectCmd();
     this.FillDatasetByCommand(pm_objDS, v_cmdSQL);
     pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]);
 }
Esempio n. 3
0
        public US_DM_QLHT_SCM(decimal i_dbID)
        {
            pm_objDS        = new DS_DM_QLHT_SCM();
            pm_strTableName = c_TableName;
            IMakeSelectCmd v_objMkCmd = new CMakeAndSelectCmd(pm_objDS, c_TableName);

            v_objMkCmd.AddCondition("ID", i_dbID, eKieuDuLieu.KieuNumber, eKieuSoSanh.Bang);
            SqlCommand v_cmdSQL;

            v_cmdSQL = v_objMkCmd.getSelectCmd();
            this.FillDatasetByCommand(pm_objDS, v_cmdSQL);
            pm_objDR = getRowClone(pm_objDS.Tables[pm_strTableName].Rows[0]);
        }
        private void load_data_2_grid()
        {
            string v_str_key_search = "";
            string v_str_ho_ten = m_txt_key_ten_qlht.Text.Trim();
            string v_str_ma_lop = m_txt_key_ma_lop.Text.Trim();
            string v_str_ma_truong =CIPConvert.ToStr(m_cbo_qlht_truong.SelectedValue);
            v_str_key_search = HelpUtils.gen_string_call_scm_get_QLHT_ws("", v_str_ho_ten, v_str_ma_truong, v_str_ma_lop, "20");

            m_ds_dm_qlht_scm = new DS_DM_QLHT_SCM();
            m_scm_ws = new SCMServices.SyncData();
            m_ds_qlht = m_scm_ws.TOS_search_qlht_all_T(v_str_key_search);

            dataset_2_ds_qlht();

            m_fg.Redraw = false;
            CGridUtils.Dataset2C1Grid(m_ds_dm_qlht_scm, m_fg, m_obj_trans);
            set_tree_on_grid();
            m_fg.Redraw = true;
            m_fg.Focus();
        }
Esempio n. 5
0
 public US_DM_QLHT_SCM()
 {
     pm_objDS        = new DS_DM_QLHT_SCM();
     pm_strTableName = c_TableName;
     pm_objDR        = pm_objDS.Tables[pm_strTableName].NewRow();
 }
Esempio n. 6
0
 public US_DM_QLHT_SCM()
 {
     pm_objDS = new DS_DM_QLHT_SCM();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }