var exData = null; var edit_id = ""; var _memo_msg = ""; _page_size = 15; function orderStatusRenderer(e) { var record = e.record; var statestr = getInitStatusstrByState(record.status); var html = "
"; html += ("
" + statestr + "
"); html += "
"; return html; } function readStateRenderer(e) { var record = e.record; var html = "
"; if (record.IsRead == 1) { html += ("
已读
"); } else { html += ("
未读
"); } html += "
"; return html; } function conRenderer(e) { var record = e.record; var md = record.Con; md = decodeURIComponent(md); var html = "
"; html += ("
" + md + "
"); html += "
"; return html; } function checkDetailCon() { var rec = grid.getSelected(); mini.get("con_win").show(); var md = rec.Con; md = decodeURIComponent(md); $("#id_win_con").html(md); } function noticeTimeRenderer(e) { var record = e.record; var html = "
"; html += ("
" + formatCommonDate(record.NoticeTime) + "
"); html += "
"; return html; } function actionRenderer(e) { var grid = e.sender; var record = e.record; var id = record.ID; var rowIndex = e.rowIndex; var html = ""; html += getGridBtn("edit", "标记已读", "readedFn('" + id + "')"); //html += getGridBtn("edit", "重置", "resetFn('" + id + "')"); return html; } function readedFn(id) { postAjax("set_erp_readnotice", "ids=" + id, function (data) { resultShow(data, "grid.reload();"); }); } //查询按钮 function searchFn() { var form = new mini.Form("#ctl00_f_all"); var data = form.getData(true, false); var s = data; //console.log("565656565", data); grid.load({ title: s.title, date1: s.sign_date1, date2: s.sign_date2 }); } //清除查询内容 function clearFn() { //$("#ctl00_f_all").find("input").val(""); var form = new mini.Form("#ctl00_f_all"); form.clear(); } $(function () { }); function view_search() { var key = ""; if ($("#txtKey").length > 0) { key = $("#txtKey").val(); } grid.load({ key: key, type: $("#txtSearchType").val() }); }