| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- 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 = "<div style=\"display:flex;flex-direction:column;\">";
- html += ("<div>" + statestr + "</div>");
- html += "</div>";
- return html;
- }
- function readStateRenderer(e) {
- var record = e.record;
- var html = "<div style=\"display:flex;flex-direction:column;\">";
- if (record.IsRead == 1) {
- html += ("<div style=\"color:green;\">已读</div>");
- }
- else {
- html += ("<div style=\"color:red;\">未读</div>");
- }
-
- html += "</div>";
- return html;
- }
- function conRenderer(e) {
- var record = e.record;
- var md = record.Con;
- md = decodeURIComponent(md);
- var html = "<div style=\"height:100px;display:flex;flex-direction:column;text-align:left;\">";
- html += ("<div onclick=\"checkDetailCon()\">" + md + "</div>");
- html += "</div>";
- 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 = "<div style=\"display:flex;flex-direction:column;\">";
- html += ("<div>" + formatCommonDate(record.NoticeTime) + "</div>");
- html += "</div>";
- 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() });
- }
|