日期:2014-05-18 浏览次数:20499 次
//对象转换json格式
function _SealInfo() {
var obj = new Object();
obj.SAssessID = "-1";
obj.SUserID = "-1";
obj.DAddTime = "1900-01-01";
obj.SAssessName =escape(projectName);
obj.FCollectingArea = lab_fBuildArea;
obj.FPlanningArea = SumArea;
obj.SPlotRatio = escape(rjl);
obj.SConforming = escape(Conforming);
obj.SConformingID = escape(sConformingID);
obj.SProvince = escape(sProvince);
obj.SCity = escape(sCity);
obj.IParcelArea = CityCode;
obj.FAssessPrice_Market = fAssessPrice_Market;
obj.FTotalPrice_Market = fTotalPrice_Market;
obj.FAssessPrice_Assume = fAssessPrice_Assume;
obj.FTotalPrice_Assume = fTotalPrice_Assume;
//判断
obj.IDistance_Markey = iDistance;
obj.ITimelimit_Markey = iTimelimit;
obj.IDistance_Assume = iDistance;
obj.ITimelimit_Assume = iTimelimit;
obj.IItemCount_Markey = arr1.length;
obj.IItemCount_Assume = arr2.length;
//假设开发法参数
obj.FExpenseRatio = -1;
obj.FMargin =-1;
obj.FCosts = -1;
obj.FIncrease = -1;
obj.IState = State;
return $.toJSON(obj);
}
function UrlAjax(type) {
var infoJson = _SealInfo();
$.post("Agent/LandAssessDBdetail.ashx", { AssessAjaxtype: type, info: infoJson }, function(msg) {
})
JavaScriptSerializer js =new JavaScriptSerializer();
LandAssess_BasicInfoClass info = js.Deserialize<LandAssess_BasicInfoClass>(context.Server.HtmlDecode(context.Request.Form["info"]));