Ejemplo n.º 1
0
        public void Delete(string string2)
        {
            DataAccessLayerBaseClass dataAccessLayer = DataAccessLayerFactory.GetDataAccessLayer(this._dataProviderType, this._connectionString);

            dataAccessLayer.Open();
            dataAccessLayer.ExecuteNonQuery(CommandType.Text, string.Format("delete from {0} where ID='{1}'", this._tableName, string2));
            ORGStaffRoleHelper.DeleteByStaffID(dataAccessLayer, string2);
            SysGrants.DeleteByStaffID(dataAccessLayer, string2);
            dataAccessLayer.Close();
        }
Ejemplo n.º 2
0
        public void Delete(string string_2)
        {
            DataAccessLayerBaseClass dataAccessLayer = DataAccessLayerFactory.GetDataAccessLayer(this.dataProviderType_0, this.string_1);

            dataAccessLayer.Open();
            dataAccessLayer.ExecuteNonQuery(CommandType.Text, string.Format("delete from {0} where ROLEID='{1}'", this.string_0, string_2));
            ORGStaffRoleHelper.DeleteByRoleID(dataAccessLayer, string_2);
            SysGrants.DeleteByRoleID(dataAccessLayer, string_2);
            dataAccessLayer.Close();
        }