Beispiel #1
0
 public US_V_DM_CO_SO(decimal i_dbID)
 {
     pm_objDS = new DS_V_DM_CO_SO();
     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_cbo_trung_tam()
 {
     US_V_DM_CO_SO v_us = new US_V_DM_CO_SO();
     DS_V_DM_CO_SO v_ds = new DS_V_DM_CO_SO();
     v_us.FillDataset(v_ds,"where id_loai_co_so=183");
     m_cbo_trung_tam.ValueMember = V_DM_CO_SO.ID;
     m_cbo_trung_tam.DisplayMember = V_DM_CO_SO.MO_TA;
     m_cbo_trung_tam.DataSource = v_ds.V_DM_CO_SO;
 }
            v_fDE.display_for_insert();
            load_data_2_grid();
        }

        private void load_data_2_grid()
        {
            string v_str_tu_khoa = m_txt_tu_khoa.Text;
            if (v_str_tu_khoa == m_str_goi_y_tim_kiem) v_str_tu_khoa = "";
            m_ds = new DS_V_DM_CO_SO();
            m_us.FillDatasetSearch(m_ds,v_str_tu_khoa);
            m_grv_dm_co_so.Redraw = false;
            CGridUtils.Dataset2C1Grid(m_ds, m_grv_dm_co_so, m_obj_trans);
Beispiel #4
0
 public US_V_DM_CO_SO()
 {
     pm_objDS = new DS_V_DM_CO_SO();
     pm_strTableName = c_TableName;
     pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow();
 }
Beispiel #5
0
 public void FillDatasetSearch(DS_V_DM_CO_SO ip_ds, string ip_str_tu_khoa)
 {
     CStoredProc v_stored_proc = new CStoredProc("pr_V_DM_CO_SO_Search");
     v_stored_proc.addNVarcharInputParam("@TU_KHOA", ip_str_tu_khoa);
     v_stored_proc.fillDataSetByCommand(this, ip_ds);
 }