1、案例
后台传参:
public void goAddOrEdit()
{
String code = this.getPageData().getParams().get("code");
String name = this.getPageData().getParams().get("name");
String qty = this.getPageData().getParams().get("qty");
// type:add为新增,edit为编辑
String type = this.getPageData().getParams().get("type");
if (type == "add")
{
this.returnData.toPage(this.getPageData().getParams().get("topage"));
}
else
{
this.addParameter("code", code);
this.addParameter("name", name);
this.addParameter("qty", qty);
}
this.returnData.toPage(this.getPageData().getParams().get("topage"));
}
前台接参:
var url = "umppExtendRecordController!goAddOrEdit.m?topage=unimaxmes.pplan.umppExtendRecord-list-ySZ-inputEdit.jsp&type=edit&code="
+ code+"&name="+name+"&qty="+qty;
openTab(url, window.i18nMsg.modify, "umppExtendRecord-list-ySZ-inputEdit");