Ellen翔 普通
2018-01-10 开始修炼简单之道
刚刚
Jieven 发表了文章
83月前
Ellen翔 回复
com.oss.product.ReviewController.cancelReviewNewAgreement> xdids=[1000048]xdnames=[11]
Sql: insert into agreement(id, xdid, xdname) values(seq_agreement.nextval, ?, ?)

JFinal action report -------- 2018-01-10 16:53:50 ------------------------------
Controller : com.oss.product.ReviewController.(ReviewController.java:1)
Method : cancelReviewNewAgreement
UrlPara : 1000048-11
Interceptor : com.eova.interceptor.LoginInterceptor.(LoginInterceptor.java:1)
--------------------------------------------------------------------------------
Sql: select * from eova_object where code = ?
com.oss.product.ReviewController.cancelReviewNewAgreement> xdids=[1000048]xdnames=[11]
Sql: insert into agreement(id, xdid, xdname) values(seq_agreement.nextval, ?, ?)
Sql: select * from eova_field where object_code = ? order by order_num

JFinal action report -------- 2018-01-10 16:53:50 ------------------------------
Controller : com.oss.product.ReviewController.(ReviewController.java:1)
Method : cancelReviewNewAgreement
UrlPara : 1000048-11
Interceptor : com.eova.interceptor.LoginInterceptor.(LoginInterceptor.java:1)
83月前
Ellen翔 回复
html:

<a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'${button.icon!}',plain:true"

onclick="NewAgreement()">

${button.name!}

</a>

<script type="text/javascript">

//弹出Dialog

var saveAgreement = function(name, url, width, height) {

if(!width){

width = 920;

}

if(!height){

height = $(window).height() * 0.9;

}

// 弹出窗口

var dialog = parent.sy.modalDialog({

title : name,

url : url,

buttons : [ {

text : ' 确 定 ',

handler : function() {

dialog.dialog('close');

}

} ]

}, width, height);

};

var NewAgreement = function() {

var $grid = $('#${gridId}');

var rows = $grid.datagrid('getSelections');

var num = rows.length;

if (num == "0") {

$.slideMsg("请至少选择一条记录!");

return;

}

var vals = [];

var xdnames = [];

for (var i = 0; i < rows.length; i++) { //组成一个字符串,ID主键用逗号隔开

vals.push(rows[i]['xdid']);

xdnames.push(rows[i]['xdname']);

}

saveAgreement('${object.name}', '/review/cancelReviewNewAgreement/' + vals.join(',')+'-'+xdnames.join(','), 320, 200);

if($grid.context.URL.indexOf('/single_tree') != -1){

$grid.treegrid('load');

} else {

$grid.datagrid('load');

}

};

</script>
83月前
Ellen翔 回复
按钮ui:/review/btn/cancelReviewNewAgreement.html
bs:/review/cancelReviewNewAgreement
83月前
Ellen翔 回复
public void cancelReviewNewAgreement() throws Exception {
String xdids = getPara(0);
String xdnames=getPara(1);
System.out.println("com.oss.product.ReviewController.cancelReviewNewAgreement> xdids=[" + xdids + "]"+"xdnames=["+xdnames+"]");
String xdidlist[]=xdids.split(",");
String xdnameslist[]=xdnames.split(",");
for(int i=0;i<xdidlist.length;i++){
Agreement agreement=new Agreement();
agreement.set("xdid", xdidlist[i]);
agreement.set("xdname", xdnameslist[i]);
agreement.save();
}
renderText(" 新增成功! \n\n\n 请确定返回后点快速查询刷新表单!");
}
83月前
Ellen翔 创建了一个问题