后台`
string ORG_NAME =null;
string USER_NAME=null;
string Disease_Id = null; ;
if (!string.IsNullOrEmpty(Request.Params["DepartmentId"])) {
ORG_NAME = Request.Params["DepartmentId"].ToString();
}
if (!string.IsNullOrEmpty(Request.Params["OwnerCode"]))
{
USER_NAME = Request.Params["OwnerCode"].ToString();
}
if (!string.IsNullOrEmpty(Request.Params["hfDiseaseId"]))
{
Disease_Id = Request.Params["hfDiseaseId"].ToString();
}
前台`
function ExportExcel() {
var DepartmentId = $(“#DepartmentId”).val();
var OwnerCode = $("#OwnerCode").val();
var hfDiseaseId = $("#hfDiseaseId").val();
$("#ExportExcel").attr("href","/ProjectSupervisionUnit/ExportClientsListToExcel?DepartmentId=" + DepartmentId + "&OwnerCode=" + OwnerCode + "&hfDiseaseId=" + hfDiseaseId);
}`