//按钮提交前必须初始化select muti全选值
function subSelMuti(state) {
//审核人
selMuti("#ASSESSORID", "#ASSESSOR");
//收件人
selMuti("#RECEIVEPERSONID", "#RECEIVEPERSON");
//抄送人
selMuti("#CCPERSONID", "#CCPERSON");
//新建周报或存至草稿
$("#STATE").val(state);
}
//按钮提交前必须初始化select muti全选值
function selMuti(ob, st) {
var nam = "";//提交隐藏的select用户名
$(ob + " option").each(function() {
$(ob + " option").attr("selected", "selected");
nam = nam + "," + $(this).text();
});
$(st).val(nam.substring(1, nam.length));
}