<script type="text/javascript">
function addDetailAjaxDone(json)
{
$.pdialog.close('OrderDetail_addDetail');
$('#box_productlist').loadUrl(json.forwardUrl);
}
function delDetailAjaxDone(json)
{
$('#box_productlist').loadUrl(json.forwardUrl);
}
</script>
<form method="post" action="__URL__/addDetail" class="pageForm required-validate" οnsubmit="return validateCallback(this, addDetailAjaxDone)">
<a href="__URL__/delDetail/billid/{$vo.fld_billid}/detailid/{$vo.fld_orderdetailid}" target="ajaxTodo"
callback="delDetailAjaxDone" title="确定要删除该产品吗?">删除</a>
<li><a class="button" rel="OrderNomalReview_recordollectionAdd" href="__GROUP__/Collectionpayment/collectionAdd/billid/{$billid_new}" target="dialog" mask="true" height="400" width="800" title="添加结算计划"><span>添加结算计划</span></a></li>
<script type="text/javascript">
function addDetailAjaxDone(json)
{
if(json.statusCode == '200'){
//-----
$('#btn_of_company').css('display', 'none');
//------
$.pdialog.close('OrderDetail_addDetail');
$('#box_1_productlist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function editDetailAjaxDone(json)
{
if(json.statusCode == '200'){
$.pdialog.close('OrderDetail_editDetail');
$('#box_1_productlist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function delDetailAjaxDone(json)
{
if(json.statusCode == '200'){
$('#box_1_productlist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function addBalanceAjaxDone(json)
{
if(json.statusCode == '200'){
$.pdialog.close('Collectionpayment_collectionAdd');
$('#box_1_balancelist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function editBalanceAjaxDone(json)
{
if(json.statusCode == '200'){
$.pdialog.close('Collectionpayment_collectionEdit');
$('#box_1_balancelist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function delBalanceAjaxDone(json)
{
if(json.statusCode == '200'){
$('#box_1_balancelist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function addShipDetailAjaxDone(json)
{
if(json.statusCode == '200'){
//-----
$('.box_btn_billdetail').html('');
//-----
$.pdialog.close('Shipbill_shipdetailAdd');
$('#box_1_ordershiplist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function editShipDetailAjaxDone(json)
{
if(json.statusCode == '200'){
$.pdialog.close('Shipbill_shipdetailEdit');
$('#box_1_ordershiplist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
function delShipDetailAjaxDone(json)
{
if(json.statusCode == '200'){
$('#box_1_ordershiplist').loadUrl(json.forwardUrl,'',function(){
$('table.list').cssTable();
});
}else{
alertMsg.error(json.message);
}
}
</script>