private void mien_nhiem_chuc_vu() { US_GD_CHI_TIET_CHUC_VU v_us = new US_GD_CHI_TIET_CHUC_VU(); DS_GD_CHI_TIET_CHUC_VU v_ds = new DS_GD_CHI_TIET_CHUC_VU(); v_us.DataRow2Me((DataRow)m_fg.Rows[m_fg.Row].UserData); v_us = new US_GD_CHI_TIET_CHUC_VU(v_us.dcID); v_us.strTRANG_THAI_CV = "N"; v_us.datNGAY_KET_THUC = DateTime.Today; v_us.Update(); }
public US_GD_CHI_TIET_CHUC_VU(decimal i_dbID) { pm_objDS = new DS_GD_CHI_TIET_CHUC_VU(); 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]); }
public US_GD_CHI_TIET_CHUC_VU() { pm_objDS = new DS_GD_CHI_TIET_CHUC_VU(); pm_strTableName = c_TableName; pm_objDR = pm_objDS.Tables[pm_strTableName].NewRow(); }