function dataFormMasterOnLoadSuccess()
{
var htmlCode = "<a href='javascript:void(0)' class='easyui-linkbutton infosysbutton-c l-btn' "
+ "onclick='parentAddTabCustomers();\'><span class='l-btn-left'><span class='l-btn-text'>編輯客戶資料</span></span></a>";
$('#dataFormMaster').before(htmlCode);
}
function parentAddTabCustomers()
{
var customerId = $('#dataFormMasterCustomerID').refval('getValue');
var url = "../MySamples/Customers.aspx?DRILLDOWN=true&REMOTENAME=sOrders.Customers&TABLENAME=Customers&DRILLDOWN_KEYFIELD=CustomerID=''" + customerId + "''";
parent.addTab('客戶資料', url);
}