第一个页面:
<%@ Page Language="C#" Inherits="ERP.Common.ViewDetailPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>项目 明细</title>
<link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="../lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="../lib/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<link href="../lib/css/common.css" rel="stylesheet" type="text/css" />
<script src="../lib/js/common.js" type="text/javascript"></script>
<script src="../lib/js/LG.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/jquery.validate.min.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/jquery.metadata.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/messages_cn.js" type="text/javascript"></script>
<script src="../lib/jquery.form.js" type="text/javascript"></script>
<script src="../lib/json2.js" type="text/javascript"></script>
<script src="../lib/js/validator.js" type="text/javascript"></script>
<script src="../lib/js/ligerui.expand.js" type="text/javascript"></script>
</head>
<body style="padding-bottom:31px;">
<form id="mainform" method="post"></form>
<script type="text/javascript">
//当前ID
var currentID = '<%= CurrentID %>';
//覆盖本页面grid的loading效果
LG.overrideGridLoading();
//创建表单结构
// var grid = $("#maingrid").ligerGrid(
var grid = $("#mainform").ligerForm({
//mainform.ligerForm({
inputWidth: 2500,
fields : [
{name:"ProjectID",type:"hidden"},
{display:"项目名称",name:"ProjectName",newline:true,labelWidth:80,width:220,space:30,type:"text",group:"基本信息",groupicon:"../lib/icons/32X32/communication.gif"},
{display:"项目编号",name:"ProjectID",newline:false,labelWidth:80,width:220,space:30,type:"text"},
{display:"已开税票号",name:"HasOpenTaxTicket",newline:false,labelWidth:90,width:220,space:30,type:"select"},
//弹出
{display:"已开税金",name:"HasOpenTaxes",newline:true,labelWidth:80,width:220,space:30,digits:true,disabled:true,type:"select"}
],
toJSON:JSON2.stringify
});
var actionRoot = "../handler/ajax.ashx?type=AjaxProjectManage";
LG.loadForm(mainform, { type: 'AjaxProjectManage', method: 'GetProject', data: { ID: currentID} });
$(function ()
{
$("#HasOpenTaxes").ligerComboBox({
onBeforeOpen: f_selectContact2, valueFieldID: 'hidCustomerID',width:300
});
});
var selected;
var ProjectID;
function f_selectContact2() {
《《《《《《 $.ligerDialog.open({ title: '已开票税及金额合计', name: 'HasOpenTaxes', width: 900, height: 400, url: 'ceshi3.aspx?ID=' + selected.ProjectID, buttons: [
{ text: '确定', onclick: f_selectContactOK2 },
{ text: '取消', onclick: f_selectContactCancel2 }
]
});》》》》》》》
return false;
}
function f_selectContactOK2(item, dialog)
{
var fn = dialog.frame.f_select || dialog.frame.window.f_select;
var data = fn();
if (!data)
{
alert('请选择行!');
return;
}
$("#HasOpenTaxes").val(data.ProjectName+","+data.ProjectName);
$("#hidCustomerID").val(data.ProjectID);
dialog.close();
}
function f_selectContactCancel2(item, dialog)
{
dialog.close();
}
function clickee()
{
alert($("#hidCustomerID").val());
}
</script>
</body>
</html>
点击已开税金那个框,然后弹出第二个框:
<%@ Page Language="C#" Inherits="ERP.Common.ViewDetailPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>图书类别 明细</title>
<link href="../lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="../lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="../lib/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<link href="../lib/css/common.css" rel="stylesheet" type="text/css" />
<script src="../lib/js/common.js" type="text/javascript"></script>
<script src="../lib/js/LG.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/jquery.validate.min.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/jquery.metadata.js" type="text/javascript"></script>
<script src="../lib/jquery-validation/messages_cn.js" type="text/javascript"></script>
<script src="../lib/jquery.form.js" type="text/javascript"></script>
<script src="../lib/json2.js" type="text/javascript"></script>
<script src="../lib/js/validator.js" type="text/javascript"></script>
<script src="../lib/js/ligerui.expand.js" type="text/javascript"></script>
<script src="../lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
<script src="../lib/js/DataTransfer.js" type="text/javascript"></script>
</head>
<body style="padding-bottom:31px;">
<input type="hidden" id="MenuNo" value="ProjectManage" />
<form id="mainform" method="post"></form>
<script type="text/javascript">
//当前ID
var currentID = '<%= CurrentID %>';
//是否新增状态
var isAddNew = currentID == "" || currentID == "0";
//覆盖本页面grid的loading效果
LG.overrideGridLoading();
//创建表单结构
var mainform = $("#mainform");
mainform.ligerGrid({
inputWidth: 280,
columns: [
{name:"ProjectID",type:"hidden"},
{ display: "编号", name: "BidFeeDetailID", width: 30, type: "text", align: "center" },
{ display: "项目ID", name: "ProjectID", width: 50, type: "text", align: "center" },
{ display: "公司名称", name: "CorpName", width: 100, type: "text", align: "center" },
{ display: "标书费用", name: "TenderFee", width: 50, type: "text", align: "center" },
{ display: "借壳费", name: "BackdoorFee", width: 50, type: "text", align: "center" },
{ display: "标书打印费", name: "TenderPrintFee", width: 70, type: "text", align: "center" },
{ display: "中标服务费", name: "WinBidServFee", width: 70, type: "text", align: "center" },
{ display: "联系人", name: "Contacts", width: 50, type: "text", align: "center" },
{ display: "电话", name: "Phone", width: 100, type: "text", align: "center" },
{ display: "备注", name: "Remark", width: 100, type: "text", align: "center" }
],
toJSON:JSON2.stringify
});
var actionRoot = "../handler/ajax.ashx?type=AjaxProjectManage";
LG.loadForm(mainform, { type: 'AjaxProjectManage', method: 'GetV_ProjectBidFeeDetail', data: { ID: currentID} });
</script>
</body>
</html>
第二个页面的表是根据第一个页面的ProjectID的值来显示相应的数据。
问: 《《《《《《 $.ligerDialog.open({ title: '已开票税及金额合计', name: 'HasOpenTaxes', width: 900, height: 400, url: 'ceshi3.aspx?ID=' + selected.ProjectID, buttons: [
{ text: '确定', onclick: f_selectContactOK2 },
{ text: '取消', onclick: f_selectContactCancel2 }
]
});》》》》》》》
里面的url:后面应该如何填写?
------解决思路----------------------
传值。然后接收