
[11:02:50] [200] [http://test-trunk.zhcxkj.com/testcw.aspx][10.10.158.130][10.10.158.130/testcw.aspx]--Http_Referer[http://test-trunk.zhcxkj.com/testcw.aspx]--Message: 无法将 DBNull.Value 强制转换为类型“System.Int32”。请使用可空类型。--GetType(): InvalidCastException--Source: System.Data.DataSetExtensions--StackTrace: 在 System.Data.DataRowExtensions.UnboxT`1.ValueField(Object value)
在 System.Data.DataRowExtensions.Field[T](DataRow row, String columnName) 在 Biz.PlatformUtil.OrderMatchRules.AOrderMatchRules.<>c.<OrderSaveChange>b__104_3(DataRow ol) 在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() 在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) 在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) 在 Biz.PlatformUtil.OrderMatchRules.AOrderMatchRules.OrderSaveChange() 在 Biz.PlatformUtil.OrderMatchRules.AOrderMatchRules.DoOrderMatchingRulesTask() 在 PandaBuy.ERP.Web.testcw.btnAmazonOrderMatchRules_Click(Object sender, EventArgs e) 在 System.Web.UI.WebControls.Button.OnClick(EventArgs e) 在 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
问题原因:程序为兼容空数据
优化方案:兼容空数据