日期:2014-05-16 浏览次数:20479 次
function selectBuyOrder(){
var ual="BuyOrder_Frame.aspx";
var result=window.showModalDialog(ual,'DialogWidth=590px,DialogHeight=500px');
if(result!=null){
var val =result.split(',');
document .getElementById ("BuyOrderID").value=val[0];
document .getElementById ("TotalPrice").value=val[1];
}
// debugger;
initload();
init();
}
function initload()
{
var BuyOrderID="";
BuyOrderID=document.getElementById("BuyOrderID").value;
var xmlHttp=createXmlHttp();
xmlHttp.onreadystatechange=function(){
if (xmlHttp.readyState==4){
document.getElementById("initSubmitInfo").innerHTML = xmlHttp.responseText;
}
}
// xmlHttp.open("POST","AjaxBuyReceipt.aspx",true);
// xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
// xmlHttp.send("action=loadDetail&BuyOrderID="+BuyOrderID);
xmlHttp.open("GET","AjaxBuyReceipt.aspx?BuyOrderID="+BuyOrderID,false);
xmlHttp.send();
}
function createXmlHttp()
{
var xmlHttp=null;
if(window.xmlHttpRequest){
xmlHttp = new XMLHttpRequest();
}else{
xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
}
return xmlHttp;
}
function init(){
var tabProduct=document .getElementById ("tabProduct");
EditTables (tabProduct);
}
function EditTables(){
for(var i=0;i <arguments.length;i++){
SetTableCanEdi