标签:ajax
function AddBidTInfo() { var temp = document.getElementById("BidZNo"); var BidZNo = temp.innerHTML; //var companyCategory = $("#companyCategory option:selected").text(); //获取选中的项 var companyCategory = $('#companyCategory').combobox('getText')//获取当前选中的值 var companyName = document.getElementById("companyName").value; var LegalPerson = document.getElementById("LegalPerson").value; var ProjectPrincipal = document.getElementById("ProjectPrincipal").value; var Tel = document.getElementById("Tel").value; //照片没有进行处理 var DelegateLetter = ShowPhoto("preview"); var ApplyPicture = ShowPhoto("previewImag"); //获取委托书照片的名称 $.post("/BidTRecordManager/AddBidTInfo", { "BidZNo": BidZNo, "companyCategory": companyCategory, "companyName": companyName, "LegalPerson": LegalPerson, "ProjectPrincipal": ProjectPrincipal, "Tel": Tel, "DelegateLetter": DelegateLetter, "ApplyPicture": ApplyPicture }, function (result) { alert(result); }); }
public string AddBidTInfo() { string returnMessage = "添加成功"; var BidZNo = Request["BidZNo"]; var companyType = Request["companyCategory"]; var companyName = Request["companyName"]; var LegalPerson = Request["LegalPerson"]; var ProjectPrincipal = Request["ProjectPrincipal"]; var Tel = Request["Tel"]; var delegateLetter = Request["DelegateLetter"]; var applyPicture = Request["ApplyPicture"]; //var delegateLetter = Request["DelegateLetter"]; BidTRecorderViewModel enBidTRecordVM = new BidTRecorderViewModel { BidUserId = Guid.NewGuid(), CompanyName = companyName, CompanyCategory = companyType, LegalPerson=LegalPerson, ProjectPrincipal = ProjectPrincipal, Tel = Tel, //委托书, 报名人照片, 存储方式 // ApplyPicture DelegateLetter = delegateLetter, ApplyPicture = applyPicture }; try { iBidTRecordManagerWCF.AddBidTInfo(enBidTRecordVM); } catch (Exception r) { throw; } // iBidTRecordManagerWCF.AddBidTInfo(enBidTRecordVM); return returnMessage; }
<span style="font-family: KaiTi_GB2312;"> $.post("/BidTRecordManager/AddBidTInfo",</span>
{ "BidZNo": BidZNo, "companyCategory": companyCategory, "companyName": companyName, "LegalPerson": LegalPerson, "ProjectPrincipal": ProjectPrincipal, "Tel": Tel, "DelegateLetter": DelegateLetter, "ApplyPicture": ApplyPicture },
function (result) { alert(result);
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:ajax
原文地址:http://blog.csdn.net/hao134838/article/details/47085635