public US_DM_TRANG_THAI_LD(decimal i_dbID) { pm_objDS = new DS_DM_TRANG_THAI_LD(); 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_sle_chon_trang_thai_lao_dong() { US_DM_TRANG_THAI_LD v_us = new US_DM_TRANG_THAI_LD(); DS_DM_TRANG_THAI_LD v_ds = new DS_DM_TRANG_THAI_LD(); v_us.FillDataset(v_ds); m_sle_chon_trang_thai_lao_dong.Properties.DataSource = v_ds.DM_TRANG_THAI_LD; m_sle_chon_trang_thai_lao_dong.Properties.ValueMember = DM_TRANG_THAI_LD.ID; m_sle_chon_trang_thai_lao_dong.Properties.DisplayMember = DM_TRANG_THAI_LD.TEN_TRANG_THAI_LD; m_sle_chon_trang_thai_lao_dong.Properties.PopulateViewColumns(); m_sle_chon_trang_thai_lao_dong.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; m_sle_chon_trang_thai_lao_dong.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFit; }
public US_DM_TRANG_THAI_LD() { pm_objDS = new DS_DM_TRANG_THAI_LD(); pm_strTableName = c_TableName; pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow(); }