根据ID填充文本框
前台:
<script type="text/javascript">
function func_load_remark(sr_id){
if(sr_id!=0){
$.getJSON("loadSrRemark.do?date="+new Date(), {srid:sr_id}, function(srmain){
$("#bparemark").val(srmain.bpa_remark);
$("#itdremark").val(srmain.itd_remark);
$("#bugremark").val(srmain.bu_remark);
$("#itoremark").val(srmain.ito_remark);
});
}else{
$("#bparemark").val("");
$("#itdremark").val("");
$("#bugremark").val("");
$("#itoremark").val("");
}
}
function check(){
if($("#srid").val()=="0"){
alert("请选择SR_ID!");
$("#srid").focus();
return false;
}
return true;
}
</script>
[html]
后台: www.2cto.com
package com.aegon_cnooc.oa.admin.action;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONSerializer;
import net.sf.json.util.JSONUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.aegon_cnooc.framework.base.action.BaseAction;
import com.aegon_cnooc.oa.admin.service.UserService;
import com.aegon_cnooc.oa.ibatis.to.TuOafSrMainTO;
public class LoadSrRemarkAction extends BaseAction{
相关新闻>>
- 发表评论
-
- 最新评论 更多>>