function addFenWorkComplete(tbodyId){
var str =
'<tr bgcolor="#FFFFFF">' +
' <td align="center" height="80"><textArea name="complete" cols="140" rows="5" style="overflow:auto;width:90%;height:90%;"></textArea></td>' +
' <td align="center" height="80"><textArea name="existQueation" cols="140" rows="5" style="overflow:auto;width:90%;height:90%;"></textArea></td>' +
' <td align="center" height="80">' +
' <select name="stateSelfEstimate" style="width:100px">' +
' <option>--请选择--</option>' +
' <option selected="selected">进行中</option>' +
' <option>申请办结</option>' +
' </select>' +
' </td>' +
' <td align="center" height="80">' +
' <!-- <g:submitButton name="create" class="office_meeting_bluebtn1" value="保存" style="width:45;height:25" /> -->' +
' <input type="button" class="office_meeting_bluebtn1" value="保存" style="width:45;height:25" onClick="saveFenWorkComplete(this)" />' +
' <input type="button" class="office_meeting_bluebtn1" value="移除" style="width:45;height:25" onClick="removeFenWorkComplete(this)" />' +
' </td>' +
'</tr>';
$("#"+tbodyId).append(str);
}
//保存时,设置IE兼容之后保存正常。但是未设置兼容性,点击保存按钮没反应,请高手指点,如何不设置IE兼容性,就能成功保存。谢谢
function saveFenWorkComplete(obj){
var complete = $(obj).parent().parent().find("textArea[name='complete']").val();
//var existQueation = $(obj).parent().parent().find("textArea[name='existQueation']").val();
alert("ceshilaalert===="+obj);
if(complete != null && complete != ""){
if(confirm("确认提交吗?提交后任务信息不可更改,如需更改请联系管理员。")){
$(obj).parent().parent().parent().parent().submit();
}
}else{
alert("请填写任务进展情况!");
return;
}
}