//状态 1=备注状态 , 0=无状态. 1=批阅状态. var repremarkSta = 0; var frmDBRemarks = null; //填过意见 var marks = null; var remarkData = {}; var tip_index = 0; /** * 初始化有批注的字段. * 根据是否有批注,就在控件上加批注标识. * */ function FrmDBRemark_Init(frmID, pkval, remarkEnable) { remarkData.FrmID = frmID; remarkData.PKVal = pkval; remarkData.RemarkEnable = remarkEnable; //如果是. if (repremarkSta == 1) { FrmDBRemark_UnDo(); return; } var style = "position: absolute;bottom: -1px;"; //获得有批注的字段. frmDBRemarks = new Entities("BP.Sys.FrmDBRemarks"); frmDBRemarks.Retrieve("FrmID", frmID, "RefPKVal", pkval, "RDT DESC "); frmDBRemarks = frmDBRemarks.TurnToArry(); // frmDBRemarks.reverse(); debugger; //根据字段进行分组 marks = GetFrmDBRemarkByFieldGroup(frmDBRemarks); //给字段增加审阅标签. for (key in marks) { var element = $("#TB_" + key); if (element.length == 0) element = $("#DDL_" + key); if (element.length == 0) element = $("#CB_" + key); if (element.length == 0) element = $("input[name='CB_" + key + "']"); if (element.length == 0) element = $("input[name='RB_" + key + "']"); if (element.length == 0) // 元素不存在 continue; //增加标签内容 var w = element[0].offsetWidth - 15; var name = $("#Lab_" + key)[0].innerText; var remarkElemnt = $("
"; _html += item.Remark; _html += "
"; _html += en.Remark; _html += "