大型邮政模型延迟了控制器的动作调用

时间:2013-11-06 15:03:27

标签: c# asp.net-mvc jquery devexpress

我构建了一个页面,允许用户编辑合同中提供的所有信息。

我以不同的形式(在同一页面中)分离了合同的所有主要部分。这样就可以只提交/保存一个部分,还可以保存整个合同。当我想一次保存所有表单时,我将数据序列化,然后使用ajax将其发布到控制器。

var data = $("#ContractHeader").serialize();
data += $("ContractMandatoryItems").serialize();
...

我对合同的每个部分都有一个动作(表单接收器),并且在单击“保存此部分”后这些动作被称为毫秒。但是,当我保存整个合同时,我的控制器动作被称为(5-10秒)需要一段时间。这种延迟发生在我的浏览器中的ajax“post”调用和我的保存操作的第一行上的断点之间。您可能会问,这是签名的一个操作,负责保存一个部分:

public ActionResult SaveConcreteItems(IList<PreparedConcreteContractItem> ConcreteItems, int ConcreteContractId)

现在,这是“完全保存”操作的签名:

        public ActionResult SaveContract(
        PreparedConcreteContract contractHeader, 
        IList<PreparedConcreteContractItem> ConcreteItems,
        IList<PreparedConcreteContractItem> ExtraItems,
        IList<PreparedConcreteContractItem> AdjuvantItems,
        IList<PreparedConcreteContractItem> OptionalItems,
        IList<PreparedConcreteContractItem> ServiceItems,
        IList<PreparedConcreteContractItem> NoteItems,
        IList<PreparedConcreteContractNote> ContractNotes,
        string SelectedAdditionalLocations)

我尝试修改此“SaveContract”操作,因此它只需要其中一个实际参数,并且每次都会立即调用该操作。

只要它有多个参数,加载需要一段时间(即使添加的参数几乎不包含任何信息)。

我还测试了数据量是否有影响。它不是。我可以立即保存“madatoryItems”部分,即使其中有50个项目,而一个小的完整合同(大约相同数量的数据)将需要大约10秒才能到达服务器。

这一切都发生在开发中。这不是“数据库性能”或保存逻辑问题。整个延迟发生在调用动作之前。它似乎是参数绑定慢,但我不明白为什么。

我不知道它是否会对你的回答产生影响,但是当我有超过1个要保存的部分时,我注意到了很多“第一次例外”。下面的剪辑显示了几行,但有150 +。

A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in System.dll
A first chance exception of type 'System.InvalidOperationException' occurred in System.Web.Mvc.dll

提前致谢!

我被要求为给定的完整保存添加帖子数据...我更新了我的问题tu使用真正的保存方法(而不是我用来简化帖子的简单方法)。这是发布的真实数据(如chrome所示)。请注意,此合约仅具有ConcreteItems。)

StatusId_VI:N
StatusId:Soumission
StatusId_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
StatusId$DDD$L:N
CustomerId:1111
ProjectName:Name of my project
ShipToAddress1:AddressA
ShipToAddress2:AddressB
ShipToCity_VI:Vancouver
ShipToCity:Vancouver
ShipToCity_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
ShipToCity_DDD_LDeletedItems:
ShipToCity_DDD_LInsertedItems:
ShipToCity_DDD_LCustomCallback:
ShipToCity$DDD$L:Vancouver
ShipToState_VI:BC
ShipToState:British Columbia
ShipToState_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
ShipToState_DDD_LDeletedItems:
ShipToState_DDD_LInsertedItems:
ShipToState_DDD_LCustomCallback:
ShipToState$DDD$L:BC
ShipToZip:A2A 2A2
ProductionLocationNumber_VI:093
ProductionLocationNumber:ThisValueIsRemovedForS/OPost
ProductionLocationNumber_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
ProductionLocationNumber_DDD_LDeletedItems:
ProductionLocationNumber_DDD_LInsertedItems:
ProductionLocationNumber_DDD_LCustomCallback:
ProductionLocationNumber$DDD$L:093
DeliveryZone_VI:1
DeliveryZone:1 (0.00$)
DeliveryZone_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
DeliveryZone$DDD$L:1
SelectedAdditionalLocations:
LocationClosedFrom_Raw:N
LocationClosedFrom:
LocationClosedFrom_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
LocationClosedFrom_DDD_C_FNPWS:0:0:-1:-10000:-10000:0:0px:-10000:1:0:0:0
LocationClosedFrom$DDD$C:11/06/2013
LocationClosedTo_Raw:N
LocationClosedTo:
LocationClosedTo_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
LocationClosedTo_DDD_C_FNPWS:0:0:-1:-10000:-10000:0:0px:-10000:1:0:0:0
LocationClosedTo$DDD$C:11/06/2013
ShipToCellphone:
ContractId:9801
ContractNumber:9801
RiscContractNumber:
PurchaseOrderNumber:
StartDate_Raw:1356998400000
StartDate:2013-01-01
StartDate_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
StartDate_DDD_C_FNPWS:0:0:-1:-10000:-10000:0:0px:-10000:1:0:0:0
StartDate$DDD$C:01/01/2013:01/01/2013
EndDate_Raw:1356998400000
EndDate:2013-01-01
EndDate_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
EndDate_DDD_C_FNPWS:0:0:-1:-10000:-10000:0:0px:-10000:1:0:0:0
EndDate$DDD$C:01/01/2013:01/01/2013
IsGeneral:U
LanguageId_VI:FR
LanguageId:Français
LanguageId_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
LanguageId$DDD$L:FR
AttentionOf:
SalespersonNumber_VI:
SalespersonNumber:
SalespersonNumber_DDDWS:0:0:-1:-10000:-10000:0:-10000:-10000:1:0:0:0
SalespersonNumber_DDD_LDeletedItems:
SalespersonNumber_DDD_LInsertedItems:
SalespersonNumber_DDD_LCustomCallback:
SalespersonNumber$DDD$L:
CreatedBy:
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22
DXMVCEditorsValues:{"StatusId_DDD_L":["N"],"StatusId":"N","ProjectName":"Name of my project","ShipToAddress1":"AddressA","ShipToAddress2":"AddressB","ShipToCity_DDD_L":["Vancouver"],"ShipToCity":"Vancouver","ShipToState_DDD_L":["BC"],"ShipToState":"BC","ShipToZip":"A2A 2A2","ProductionLocationNumber_DDD_L":["093"],"ProductionLocationNumber":"093","DeliveryZone_DDD_L":["1"],"DeliveryZone":"1","LocationClosedFrom_DDD_C":null,"LocationClosedFrom":null,"LocationClosedTo_DDD_C":null,"LocationClosedTo":null,"ShipToCellphone":null,"ContractNumber":"9801","RiscContractNumber":null,"PurchaseOrderNumber":null,"StartDate_DDD_C":new Date(2013,0,1),"StartDate":new Date(2013,0,1),"EndDate_DDD_C":new Date(2013,0,1),"EndDate":new Date(2013,0,1),"IsGeneral":false,"LanguageId_DDD_L":["FR"],"LanguageId":"FR","AttentionOf":null,"SalespersonNumber_DDD_L":[],"SalespersonNumber":null,"CreatedBy":null}ConcreteContractId
ConcreteProductTypeGroup:Concrete
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22ExtraContractId
ExtraProductTypeGroup:Extra
ExtraItems[0].ItemId:243123
ExtraItems[0].IncludeInContract:U
ExtraItems[0].IncludeInPrice:U
ExtraItems[0].NoCharge:U
ExtraItems[0].PriceNotAvailable:U
ExtraItems[0].UnitPrice:0.00
ExtraItems[0].UnitDiscount:0.00
ExtraItems[0].DiscountPercentage:0.00
ExtraItems[1].ItemId:243124
ExtraItems[1].IncludeInContract:U
ExtraItems[1].IncludeInPrice:U
ExtraItems[1].NoCharge:U
ExtraItems[1].PriceNotAvailable:U
ExtraItems[1].UnitPrice:0.00
ExtraItems[1].UnitDiscount:0.00
ExtraItems[1].DiscountPercentage:0.00
ExtraItems[2].ItemId:243125
ExtraItems[2].IncludeInContract:U
ExtraItems[2].IncludeInPrice:U
ExtraItems[2].NoCharge:U
ExtraItems[2].PriceNotAvailable:U
ExtraItems[2].UnitPrice:8.00
ExtraItems[2].UnitDiscount:0.00
ExtraItems[2].DiscountPercentage:0.00
ExtraItems[3].ItemId:243126
ExtraItems[3].IncludeInContract:U
ExtraItems[3].IncludeInPrice:U
ExtraItems[3].NoCharge:U
ExtraItems[3].PriceNotAvailable:U
ExtraItems[3].UnitPrice:45.00
ExtraItems[3].UnitDiscount:0.00
ExtraItems[3].DiscountPercentage:0.00
ExtraItems[4].ItemId:243127
ExtraItems[4].IncludeInContract:U
ExtraItems[4].IncludeInPrice:U
ExtraItems[4].NoCharge:U
ExtraItems[4].PriceNotAvailable:U
ExtraItems[4].UnitPrice:0.00
ExtraItems[4].UnitDiscount:0.00
ExtraItems[4].DiscountPercentage:0.00
ExtraItems[5].ItemId:243128
ExtraItems[5].IncludeInContract:U
ExtraItems[5].IncludeInPrice:U
ExtraItems[5].NoCharge:U
ExtraItems[5].PriceNotAvailable:U
ExtraItems[5].UnitPrice:0.00
ExtraItems[5].UnitDiscount:0.00
ExtraItems[5].DiscountPercentage:0.00
ExtraItems[6].ItemId:243129
ExtraItems[6].IncludeInContract:U
ExtraItems[6].IncludeInPrice:U
ExtraItems[6].NoCharge:U
ExtraItems[6].PriceNotAvailable:U
ExtraItems[6].UnitPrice:12.00
ExtraItems[6].UnitDiscount:0.00
ExtraItems[6].DiscountPercentage:0.00
ExtraItems[7].ItemId:243130
ExtraItems[7].IncludeInContract:U
ExtraItems[7].IncludeInPrice:U
ExtraItems[7].NoCharge:U
ExtraItems[7].PriceNotAvailable:U
ExtraItems[7].UnitPrice:18.00
ExtraItems[7].UnitDiscount:0.00
ExtraItems[7].DiscountPercentage:0.00
ExtraItems[8].ItemId:243131
ExtraItems[8].IncludeInContract:U
ExtraItems[8].IncludeInPrice:U
ExtraItems[8].NoCharge:U
ExtraItems[8].PriceNotAvailable:U
ExtraItems[8].UnitPrice:7.00
ExtraItems[8].UnitDiscount:0.00
ExtraItems[8].DiscountPercentage:0.00
ExtraItems[9].ItemId:243132
ExtraItems[9].IncludeInContract:U
ExtraItems[9].IncludeInPrice:U
ExtraItems[9].NoCharge:U
ExtraItems[9].PriceNotAvailable:U
ExtraItems[9].UnitPrice:15.00
ExtraItems[9].UnitDiscount:0.00
ExtraItems[9].DiscountPercentage:0.00
ExtraItems[10].ItemId:243133
ExtraItems[10].IncludeInContract:U
ExtraItems[10].IncludeInPrice:U
ExtraItems[10].NoCharge:U
ExtraItems[10].PriceNotAvailable:U
ExtraItems[10].UnitPrice:0.00
ExtraItems[10].UnitDiscount:0.00
ExtraItems[10].DiscountPercentage:0.00
ExtraItems[11].ItemId:243134
ExtraItems[11].IncludeInContract:U
ExtraItems[11].IncludeInPrice:U
ExtraItems[11].NoCharge:U
ExtraItems[11].PriceNotAvailable:U
ExtraItems[11].UnitPrice:100.00
ExtraItems[11].UnitDiscount:0.00
ExtraItems[11].DiscountPercentage:0.00
ExtraItems[12].ItemId:243135
ExtraItems[12].IncludeInContract:U
ExtraItems[12].IncludeInPrice:U
ExtraItems[12].NoCharge:U
ExtraItems[12].PriceNotAvailable:U
ExtraItems[12].UnitPrice:12.00
ExtraItems[12].UnitDiscount:0.00
ExtraItems[12].DiscountPercentage:0.00
ExtraItems[13].ItemId:243136
ExtraItems[13].IncludeInContract:U
ExtraItems[13].IncludeInPrice:U
ExtraItems[13].NoCharge:U
ExtraItems[13].PriceNotAvailable:U
ExtraItems[13].UnitPrice:0.00
ExtraItems[13].UnitDiscount:0.00
ExtraItems[13].DiscountPercentage:0.00
ExtraItems[14].ItemId:243137
ExtraItems[14].IncludeInContract:U
ExtraItems[14].IncludeInPrice:U
ExtraItems[14].NoCharge:U
ExtraItems[14].PriceNotAvailable:U
ExtraItems[14].UnitPrice:10.00
ExtraItems[14].UnitDiscount:0.00
ExtraItems[14].DiscountPercentage:0.00
ExtraItems[15].ItemId:243138
ExtraItems[15].IncludeInContract:U
ExtraItems[15].IncludeInPrice:U
ExtraItems[15].NoCharge:U
ExtraItems[15].PriceNotAvailable:U
ExtraItems[15].UnitPrice:0.00
ExtraItems[15].UnitDiscount:0.00
ExtraItems[15].DiscountPercentage:0.00
ExtraItems[16].ItemId:243139
ExtraItems[16].IncludeInContract:U
ExtraItems[16].IncludeInPrice:U
ExtraItems[16].NoCharge:U
ExtraItems[16].PriceNotAvailable:U
ExtraItems[16].UnitPrice:1.00
ExtraItems[16].UnitDiscount:0.00
ExtraItems[16].DiscountPercentage:0.00
ExtraItems[17].ItemId:243140
ExtraItems[17].IncludeInContract:U
ExtraItems[17].IncludeInPrice:U
ExtraItems[17].NoCharge:U
ExtraItems[17].PriceNotAvailable:U
ExtraItems[17].UnitPrice:2.00
ExtraItems[17].UnitDiscount:0.00
ExtraItems[17].DiscountPercentage:0.00
ExtraItems[18].ItemId:243141
ExtraItems[18].IncludeInContract:U
ExtraItems[18].IncludeInPrice:U
ExtraItems[18].NoCharge:U
ExtraItems[18].PriceNotAvailable:U
ExtraItems[18].UnitPrice:3.00
ExtraItems[18].UnitDiscount:0.00
ExtraItems[18].DiscountPercentage:0.00
ExtraItems[19].ItemId:243142
ExtraItems[19].IncludeInContract:U
ExtraItems[19].IncludeInPrice:U
ExtraItems[19].NoCharge:U
ExtraItems[19].PriceNotAvailable:U
ExtraItems[19].UnitPrice:35.00
ExtraItems[19].UnitDiscount:0.00
ExtraItems[19].DiscountPercentage:0.00
ExtraItems[20].ItemId:243143
ExtraItems[20].IncludeInContract:U
ExtraItems[20].IncludeInPrice:U
ExtraItems[20].NoCharge:U
ExtraItems[20].PriceNotAvailable:U
ExtraItems[20].UnitPrice:0.00
ExtraItems[20].UnitDiscount:0.00
ExtraItems[20].DiscountPercentage:0.00
ExtraItems[21].ItemId:243144
ExtraItems[21].IncludeInContract:U
ExtraItems[21].IncludeInPrice:U
ExtraItems[21].NoCharge:U
ExtraItems[21].PriceNotAvailable:U
ExtraItems[21].UnitPrice:0.00
ExtraItems[21].UnitDiscount:0.00
ExtraItems[21].DiscountPercentage:0.00
ExtraItems[22].ItemId:243145
ExtraItems[22].IncludeInContract:U
ExtraItems[22].IncludeInPrice:U
ExtraItems[22].NoCharge:U
ExtraItems[22].PriceNotAvailable:U
ExtraItems[22].UnitPrice:15.00
ExtraItems[22].UnitDiscount:0.00
ExtraItems[22].DiscountPercentage:0.00
ExtraItems[23].ItemId:243146
ExtraItems[23].IncludeInContract:U
ExtraItems[23].IncludeInPrice:U
ExtraItems[23].NoCharge:U
ExtraItems[23].PriceNotAvailable:U
ExtraItems[23].UnitPrice:0.00
ExtraItems[23].UnitDiscount:0.00
ExtraItems[23].DiscountPercentage:0.00
ExtraItems[24].ItemId:243147
ExtraItems[24].IncludeInContract:U
ExtraItems[24].IncludeInPrice:U
ExtraItems[24].NoCharge:U
ExtraItems[24].PriceNotAvailable:U
ExtraItems[24].UnitPrice:8.00
ExtraItems[24].UnitDiscount:0.00
ExtraItems[24].DiscountPercentage:0.00
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22
DXMVCEditorsValues:{"ExtraItems[0].IncludeInContract":false,"ExtraItems[0].IncludeInPrice":false,"ExtraItems[0].NoCharge":false,"ExtraItems[0].PriceNotAvailable":false,"ExtraItems[1].IncludeInContract":false,"ExtraItems[1].IncludeInPrice":false,"ExtraItems[1].NoCharge":false,"ExtraItems[1].PriceNotAvailable":false,"ExtraItems[2].IncludeInContract":false,"ExtraItems[2].IncludeInPrice":false,"ExtraItems[2].NoCharge":false,"ExtraItems[2].PriceNotAvailable":false,"ExtraItems[3].IncludeInContract":false,"ExtraItems[3].IncludeInPrice":false,"ExtraItems[3].NoCharge":false,"ExtraItems[3].PriceNotAvailable":false,"ExtraItems[4].IncludeInContract":false,"ExtraItems[4].IncludeInPrice":false,"ExtraItems[4].NoCharge":false,"ExtraItems[4].PriceNotAvailable":false,"ExtraItems[5].IncludeInContract":false,"ExtraItems[5].IncludeInPrice":false,"ExtraItems[5].NoCharge":false,"ExtraItems[5].PriceNotAvailable":false,"ExtraItems[6].IncludeInContract":false,"ExtraItems[6].IncludeInPrice":false,"ExtraItems[6].NoCharge":false,"ExtraItems[6].PriceNotAvailable":false,"ExtraItems[7].IncludeInContract":false,"ExtraItems[7].IncludeInPrice":false,"ExtraItems[7].NoCharge":false,"ExtraItems[7].PriceNotAvailable":false,"ExtraItems[8].IncludeInContract":false,"ExtraItems[8].IncludeInPrice":false,"ExtraItems[8].NoCharge":false,"ExtraItems[8].PriceNotAvailable":false,"ExtraItems[9].IncludeInContract":false,"ExtraItems[9].IncludeInPrice":false,"ExtraItems[9].NoCharge":false,"ExtraItems[9].PriceNotAvailable":false,"ExtraItems[10].IncludeInContract":false,"ExtraItems[10].IncludeInPrice":false,"ExtraItems[10].NoCharge":false,"ExtraItems[10].PriceNotAvailable":false,"ExtraItems[11].IncludeInContract":false,"ExtraItems[11].IncludeInPrice":false,"ExtraItems[11].NoCharge":false,"ExtraItems[11].PriceNotAvailable":false,"ExtraItems[12].IncludeInContract":false,"ExtraItems[12].IncludeInPrice":false,"ExtraItems[12].NoCharge":false,"ExtraItems[12].PriceNotAvailable":false,"ExtraItems[13].IncludeInContract":false,"ExtraItems[13].IncludeInPrice":false,"ExtraItems[13].NoCharge":false,"ExtraItems[13].PriceNotAvailable":false,"ExtraItems[14].IncludeInContract":false,"ExtraItems[14].IncludeInPrice":false,"ExtraItems[14].NoCharge":false,"ExtraItems[14].PriceNotAvailable":false,"ExtraItems[15].IncludeInContract":false,"ExtraItems[15].IncludeInPrice":false,"ExtraItems[15].NoCharge":false,"ExtraItems[15].PriceNotAvailable":false,"ExtraItems[16].IncludeInContract":false,"ExtraItems[16].IncludeInPrice":false,"ExtraItems[16].NoCharge":false,"ExtraItems[16].PriceNotAvailable":false,"ExtraItems[17].IncludeInContract":false,"ExtraItems[17].IncludeInPrice":false,"ExtraItems[17].NoCharge":false,"ExtraItems[17].PriceNotAvailable":false,"ExtraItems[18].IncludeInContract":false,"ExtraItems[18].IncludeInPrice":false,"ExtraItems[18].NoCharge":false,"ExtraItems[18].PriceNotAvailable":false,"ExtraItems[19].IncludeInContract":false,"ExtraItems[19].IncludeInPrice":false,"ExtraItems[19].NoCharge":false,"ExtraItems[19].PriceNotAvailable":false,"ExtraItems[20].IncludeInContract":false,"ExtraItems[20].IncludeInPrice":false,"ExtraItems[20].NoCharge":false,"ExtraItems[20].PriceNotAvailable":false,"ExtraItems[21].IncludeInContract":false,"ExtraItems[21].IncludeInPrice":false,"ExtraItems[21].NoCharge":false,"ExtraItems[21].PriceNotAvailable":false,"ExtraItems[22].IncludeInContract":false,"ExtraItems[22].IncludeInPrice":false,"ExtraItems[22].NoCharge":false,"ExtraItems[22].PriceNotAvailable":false,"ExtraItems[23].IncludeInContract":false,"ExtraItems[23].IncludeInPrice":false,"ExtraItems[23].NoCharge":false,"ExtraItems[23].PriceNotAvailable":false,"ExtraItems[24].IncludeInContract":false,"ExtraItems[24].IncludeInPrice":false,"ExtraItems[24].NoCharge":false,"ExtraItems[24].PriceNotAvailable":false}AdjuvantContractId
AdjuvantProductTypeGroup:Adjuvant
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22OptionalContractId
OptionalProductTypeGroup:Optional
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22ServiceContractId
ServiceProductTypeGroup:Service
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22contractNotes[0].NoteId
contractNotes[0].ItemId:9801
contractNotes[0].Value:
contractNotes[1].NoteId:0
contractNotes[1].ItemId:9801
contractNotes[1].Value:
contractNotes[2].NoteId:0
contractNotes[2].ItemId:9801
contractNotes[2].Value:
contractNotes[3].NoteId:0
contractNotes[3].ItemId:9801
contractNotes[3].Value:
contractNotes[4].NoteId:0
contractNotes[4].ItemId:9801
contractNotes[4].Value:
contractNotes[5].NoteId:0
contractNotes[5].ItemId:9801
contractNotes[5].Value:
contractNotes[6].NoteId:0
contractNotes[6].ItemId:9801
contractNotes[6].Value:
contractNotes[7].NoteId:0
contractNotes[7].ItemId:9801
contractNotes[7].Value:
contractNotes[8].NoteId:0
contractNotes[8].ItemId:9801
contractNotes[8].Value:
contractNotes[9].NoteId:0
contractNotes[9].ItemId:9801
contractNotes[9].Value:
DXScript:1_145,1_81,1_137,1_99,1_106,1_98,1_130,14_25,14_5,1_78,1_128,1_101,1_85,1_110,1_93,14_1,1_95,1_80,14_2,1_88,14_7,1_90,1_89,14_8,1_143,1_114,1_144,1_109,14_9,1_136,1_135,1_121,14_24,1_131,1_140,1_118,1_120,14_15,1_129,1_123,14_16,14_18,1_127,1_134,1_138,14_21,14_23,1_87,5_5,5_4,4_11,4_10,4_6,4_7,4_9,14_12,4_5,4_12,4_13,1_97,1_91,1_139,1_115,14_11,1_126,1_133,7_51,1_83,7_53,14_17,1_92,1_102,14_0,1_105,1_94,14_3,1_96,1_107,1_119,1_104,14_13,14_14,1_103,1_108,10_2,10_1,10_3,10_4,14_4,9_1,9_5,14_19,9_4,8_10,8_17,8_24,8_26,8_9,8_12,8_13,8_18,14_20,8_21,8_23,8_22,8_16,8_19,8_20,8_14,8_15,8_25,8_11,6_12,14_22

编辑#2

我终于找到了问题。

总之,使用经典复选框而不是DevExpress'复选框解决了这个问题。

我仍然不知道为什么,但似乎DevExpress'粘合剂遇到了一些问题,满足以下条件:

  • 将多个对象发送到操作(多个操作参数)
  • 其中一个参数是包含DevExpress控件值的数组(IList)(在我的情况下是复选框)

只要我的表单接收器操作有多个参数,就会在输出控制台中生成“第一次机会异常”。奇怪的是,当只发布一个参数(单节保存)时,没有显示异常。

现在我使用经典复选框,一切正常,闪电般快!

0 个答案:

没有答案