摘要:
var rId = [];var chk_value = [];var data5="";var data6="";$("input[name='checkbox']").click(function() {var data5 = "";$("#cid").val("");var chk_value1 = [];$('input[name="checkbox"]:checked').each(function() {chk_ 阅读全文
摘要:
var rId = [];var chk_value = [];var data1 = "";var data2 = "";for ( var i = 0; i < chk_value.length; i++) {data1 = chk_value[i];for ( var j = 0; j < rId.length; j++) {data2 = rId[j];if (data1 == data2) {$('input[name="checkbox"]')[i].checked="true&quo 阅读全文
摘要:
public int addUserRole(List<UserRole> userRole) {int re = 1;SqlMapClient sqlMapClient = null;try {sqlMapClient = getSqlMapClientTemplate().getSqlMapClient();sqlMapClient.getDataSource().getConnection().setAutoCommit(false);sqlMapClient.startTransaction(); //开启事务必须写,否则可能会出现事务没有开启的错误sqlMapClient 阅读全文