0

ユーザーが契約書に記載されているすべての情報を編集できるページを作成しました。

契約のすべての主要部分をさまざまな形式 (同じページ内) に分けました。これにより、セクションのみを送信/保存できるだけでなく、契約全体を保存することもできます。一度にすべてのフォームを保存したい場合は、データをシリアル化し、ajax を使用してコントローラーに投稿します。

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

コントラクトのすべての部分にアクション (フォーム レシーバー) があり、[このセクションを保存] をクリックしてから数ミリ秒でそれらのアクションが呼び出されます。ただし、コントラクト全体を保存すると、コントローラーのアクションが呼び出されるまでに時間がかかります(5-10 秒)。この遅延は、ブラウザーでの ajax "post" 呼び出しと、保存アクションの 1 行目のブレークポイントの間で発生します。あなたが尋ねるかもしれないように、これはセクションを保存する責任がある署名の1つのアクションです:

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」アクションを変更して、実際のパラメーターを 1 つだけ取り、アクションがすぐに呼び出されるようにしました。

複数のパラメータがあるとすぐに、読み込みに時間がかかります (追加されたパラメータにほとんど情報が含まれていない場合でも)。

また、データ量が影響するかどうかもテストしました。そうではありません。「madatoryItems」セクションは、50 個のアイテムがあってもすぐに保存できますが、小さな完全なコントラクト (ほぼ同じ量のデータ) では、サーバーにアクセスするのに約 10 秒かかります。

これはすべて開発中に発生します。「データベースのパフォーマンス」や保存ロジックの問題ではありません。アクションが呼び出される前に全体の遅延が発生します。遅いのはパラメーターバインディングのようですが、その理由はわかりません。

それがあなたの答えに影響を与えるかどうかはわかりませんが、保存するセクションが複数ある場合、多くの「初回例外」に気付きました。以下にいくつかの行を示しますが、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

前もって感謝します!

特定の完全保存の投稿データを追加するように求められました...質問を更新して、実際の保存方法を使用しました(投稿を簡素化するために使用したより単純な方法ではありません)。これが投稿された実際のデータです(クロムで表示)。このコントラクトには 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 のバインダーで以下の条件を満たしていて不具合があったようです。

  • 複数のオブジェクトがアクションに送信される (複数のアクション パラメータ)
  • パラメータの 1 つは、DevExpress コントロール (私の場合はチェックボックス) からの値を含む配列 (IList) です。

フォーム受信者アクションに複数のパラメーターがあるとすぐに、出力コンソールに「最初のチャンス例外」が生成されました。奇妙なことに、1 つのパラメーターのみが投稿された場​​合 (単一セクションの保存)、例外は表示されませんでした。

従来のチェックボックスを使用するようになったので、すべて正常に動作し、稲妻のように高速になりました!

4

0 に答える 0