QER.Customizer/QER.Customizer/ITShopOrg.cs
Decompiler Source FileQER.Customizer.ITShopOrgDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- ExtendedMethod registration: MoveProductNode at line 1894
- ExtendedMethod registration: MoveProducts at line 1898
- ExtendedMethod registration: MoveBoard at line 1899
- ExtendedMethod registration: MoveShop at line 1903
- ExtendedMethod registration: DeleteBoard at line 1907
- CallMethodAsync: Abort at line 339
Typed Edges
- No typed edges extracted for this source.
References
- No direct source references extracted.
Referenced By
- No direct source references extracted.
C# source-derived context
Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.
reads entity values references DB/Dialog objects IT Shop related markers
Summary: classes ITShopOrg, MP, _003C_003Ec__DisplayClass7_0; methods _003C_MoveProducts_003Eb__0, MoveNext, SetStateMachine, MoveProductNode, MoveProductNode_OnSaving, _MoveProductNode; references ITShopOrg, ITShopSrc, Method_ITShop, OrgRoot, Person, PersonWantsOrg; markers reads entity values, references DB/Dialog objects, IT Shop related markers
Classes
ITShopOrg MP _003C_003Ec__DisplayClass7_0Methods
- _003C_MoveProducts_003Eb__0
- MoveNext
- SetStateMachine
- MoveProductNode
- MoveProductNode_OnSaving
- _MoveProductNode
- MoveProducts
- MoveProducts_OnSaving
- _MoveProducts
- MoveShop
- MoveShop_OnSaving
- _MoveShop
- MoveBoard
- MoveBoard_OnSaving
- _MoveBoard
- DeleteBoard
- DeleteBoard_OnSaving
- DeleteBoardDepedentObjects
- OnSavingAsync
- CheckAutoChildOrg
- CheckCustomerNode
- ValidTemplateCheck
- ValidITShopParentCheck
- Check_UID_ParentITShopOrg
DB/Dialog object references
OIM key/entity markers
UID_ITShopTarget UID_ITShopSources UID_ParentITShopOrg UID_ITShopOrg UID_OrgParent UID_OrgBoardTemplate UID_ITShopSrcAPI/entity calls
GetValue ExistsAsync Source SqlFormatter StartTempQueueAsync DeepDeleteAsync From User IsDeleted IsToDelete MetaData Database MarkForDeletionRegistrations / handlers
None extracted.
Complete Source
1using System;2using System.Collections;3using System.Collections.Generic;4using System.Diagnostics;5using System.Linq;6using System.Runtime.CompilerServices;7using System.Runtime.InteropServices;8using System.Threading;9using System.Threading.Tasks;10using VI.Base;11using VI.DB;12using VI.DB.DataAccess;13using VI.DB.Entities;1415namespace QER.Customizer;1617public class ITShopOrg : OrgBaseEntityLogic18{19 private class MP20 {21 public string UID_ITShopTarget = "";2223 public string[] UID_ITShopSources = System.Array.Empty<string>();24 }2526 [CompilerGenerated]27 private sealed class _003C_003Ec__DisplayClass7_028 {29 public ISqlFormatter fSql;3031 internal string _003C_MoveProducts_003Eb__0(string uidProduct)32 {33 return "(" + fSql.FormatUidValue(uidProduct) + ")";34 }35 }3637 [StructLayout((LayoutKind)3)]38 [CompilerGenerated]39 private struct _003CCheckCustomerNode_003Ed__19 : IAsyncStateMachine40 {41 public int _003C_003E1__state;4243 public AsyncTaskMethodBuilder _003C_003Et__builder;4445 public LogicParameter lp;4647 private ConfiguredTaskAwaiter<bool> _003C_003Eu__1;4849 private void MoveNext()50 {51 //IL_0118: Unknown result type (might be due to invalid IL or missing references)52 //IL_011d: Unknown result type (might be due to invalid IL or missing references)53 //IL_0124: Unknown result type (might be due to invalid IL or missing references)54 //IL_00d4: Unknown result type (might be due to invalid IL or missing references)55 //IL_00df: Unknown result type (might be due to invalid IL or missing references)56 //IL_00e4: Unknown result type (might be due to invalid IL or missing references)57 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)58 //IL_00ed: Unknown result type (might be due to invalid IL or missing references)59 //IL_0101: Unknown result type (might be due to invalid IL or missing references)60 //IL_0102: Unknown result type (might be due to invalid IL or missing references)61 int num = _003C_003E1__state;62 try63 {64 ConfiguredTaskAwaiter<bool> val;65 if (num == 0)66 {67 val = _003C_003Eu__1;68 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<bool>);69 num = (_003C_003E1__state = -1);70 goto IL_0133;71 }72 if (!lp.Entity.IsLoaded || lp.Entity.Columns["UID_ParentITShopOrg"].IsChanged)73 {74 ISqlFormatter sqlFormatter = lp.SqlFormatter;75 string whereclause = sqlFormatter.AndRelation(sqlFormatter.UidComparison("UID_ParentITShopOrg", lp.Entity.GetValue<string>("UID_ParentITShopOrg")), sqlFormatter.Comparison("ITShopInfo", "CU", ValType.String), sqlFormatter.UidComparison("UID_ITShopOrg", lp.Entity.GetValue<string>("UID_ITShopOrg"), CompareOperator.NotEqual));76 val = lp.Session.Source().ExistsAsync("ITShopOrg", whereclause, lp.CancellationToken).ConfigureAwait(false)77 .GetAwaiter();78 if (!val.IsCompleted)79 {80 num = (_003C_003E1__state = 0);81 _003C_003Eu__1 = val;82 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<bool>, _003CCheckCustomerNode_003Ed__19>(ref val, ref this);83 return;84 }85 goto IL_0133;86 }87 goto end_IL_0007;88 IL_0133:89 if (val.GetResult())90 {91 throw new ViException(2133176, ExceptionRelevance.EndUser);92 }93 end_IL_0007:;94 }95 catch (System.Exception exception)96 {97 _003C_003E1__state = -2;98 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);99 return;100 }101 _003C_003E1__state = -2;102 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();103 }104105 [DebuggerHidden]106 private void SetStateMachine(IAsyncStateMachine stateMachine)107 {108 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);109 }110 }111112 [StructLayout((LayoutKind)3)]113 [CompilerGenerated]114 private struct _003CCheck_UID_ParentITShopOrg_003Ed__22 : IAsyncStateMachine115 {116 public int _003C_003E1__state;117118 public AsyncTaskMethodBuilder<bool> _003C_003Et__builder;119120 public ISession session;121122 public IEntity entity;123124 public string uidParentITShopOrg;125126 public CancellationToken ct;127128 private ConfiguredTaskAwaiter _003C_003Eu__1;129130 private void MoveNext()131 {132 //IL_0075: Unknown result type (might be due to invalid IL or missing references)133 //IL_007a: Unknown result type (might be due to invalid IL or missing references)134 //IL_0081: Unknown result type (might be due to invalid IL or missing references)135 //IL_0032: Unknown result type (might be due to invalid IL or missing references)136 //IL_003d: Unknown result type (might be due to invalid IL or missing references)137 //IL_0042: Unknown result type (might be due to invalid IL or missing references)138 //IL_0045: Unknown result type (might be due to invalid IL or missing references)139 //IL_004a: Unknown result type (might be due to invalid IL or missing references)140 //IL_005e: Unknown result type (might be due to invalid IL or missing references)141 //IL_005f: Unknown result type (might be due to invalid IL or missing references)142 int num = _003C_003E1__state;143 bool result;144 try145 {146 ConfiguredTaskAwaiter val2;147 if (num != 0)148 {149 ConfiguredTaskAwaitable val = OrgBaseEntityLogic.ValidParentCheck(session, entity, uidParentITShopOrg, "UID_ITShopOrg", "UID_ParentITShopOrg", "ITShopOrg", checkOrgRoot: false, "", ct).ConfigureAwait(false);150 val2 = ((ConfiguredTaskAwaitable)(ref val)).GetAwaiter();151 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)152 {153 num = (_003C_003E1__state = 0);154 _003C_003Eu__1 = val2;155 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CCheck_UID_ParentITShopOrg_003Ed__22>(ref val2, ref this);156 return;157 }158 }159 else160 {161 val2 = _003C_003Eu__1;162 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);163 num = (_003C_003E1__state = -1);164 }165 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();166 result = true;167 }168 catch (System.Exception exception)169 {170 _003C_003E1__state = -2;171 _003C_003Et__builder.SetException(exception);172 return;173 }174 _003C_003E1__state = -2;175 _003C_003Et__builder.SetResult(result);176 }177178 [DebuggerHidden]179 private void SetStateMachine(IAsyncStateMachine stateMachine)180 {181 _003C_003Et__builder.SetStateMachine(stateMachine);182 }183 }184185 [StructLayout((LayoutKind)3)]186 [CompilerGenerated]187 private struct _003CDeleteBoardDepedentObjects_003Ed__16 : IAsyncStateMachine188 {189 public int _003C_003E1__state;190191 public AsyncTaskMethodBuilder _003C_003Et__builder;192193 public IEntity entity;194195 public LogicReadWriteParameters parameter;196197 public CancellationToken ct;198199 private ISqlFormatter _003CfSql_003E5__2;200201 private ConfiguredTaskAwaiter _003C_003Eu__1;202203 private ConfiguredTaskAwaiter<IEntityCollection> _003C_003Eu__2;204205 private System.Collections.Generic.IEnumerator<IEntity> _003C_003E7__wrap2;206207 private IEntity _003CePwO_003E5__4;208209 private ConfiguredValueTaskAwaiter _003C_003Eu__3;210211 private ConfiguredTaskAwaiter<IDeepDelete> _003C_003Eu__4;212213 private void MoveNext()214 {215 //IL_00bb: Unknown result type (might be due to invalid IL or missing references)216 //IL_00c0: Unknown result type (might be due to invalid IL or missing references)217 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)218 //IL_01a7: Unknown result type (might be due to invalid IL or missing references)219 //IL_01ac: Unknown result type (might be due to invalid IL or missing references)220 //IL_01b4: Unknown result type (might be due to invalid IL or missing references)221 //IL_0396: Unknown result type (might be due to invalid IL or missing references)222 //IL_039b: Unknown result type (might be due to invalid IL or missing references)223 //IL_03a3: Unknown result type (might be due to invalid IL or missing references)224 //IL_0409: Unknown result type (might be due to invalid IL or missing references)225 //IL_040e: Unknown result type (might be due to invalid IL or missing references)226 //IL_0415: Unknown result type (might be due to invalid IL or missing references)227 //IL_015e: Unknown result type (might be due to invalid IL or missing references)228 //IL_0169: Unknown result type (might be due to invalid IL or missing references)229 //IL_016e: Unknown result type (might be due to invalid IL or missing references)230 //IL_0172: Unknown result type (might be due to invalid IL or missing references)231 //IL_0177: Unknown result type (might be due to invalid IL or missing references)232 //IL_03c5: Unknown result type (might be due to invalid IL or missing references)233 //IL_03d0: Unknown result type (might be due to invalid IL or missing references)234 //IL_03d5: Unknown result type (might be due to invalid IL or missing references)235 //IL_03d9: Unknown result type (might be due to invalid IL or missing references)236 //IL_03de: Unknown result type (might be due to invalid IL or missing references)237 //IL_0074: Unknown result type (might be due to invalid IL or missing references)238 //IL_007f: Unknown result type (might be due to invalid IL or missing references)239 //IL_0084: Unknown result type (might be due to invalid IL or missing references)240 //IL_0088: Unknown result type (might be due to invalid IL or missing references)241 //IL_008d: Unknown result type (might be due to invalid IL or missing references)242 //IL_018c: Unknown result type (might be due to invalid IL or missing references)243 //IL_018e: Unknown result type (might be due to invalid IL or missing references)244 //IL_0264: Unknown result type (might be due to invalid IL or missing references)245 //IL_0269: Unknown result type (might be due to invalid IL or missing references)246 //IL_0271: Unknown result type (might be due to invalid IL or missing references)247 //IL_03f2: Unknown result type (might be due to invalid IL or missing references)248 //IL_03f3: Unknown result type (might be due to invalid IL or missing references)249 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)250 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)251 //IL_0299: Unknown result type (might be due to invalid IL or missing references)252 //IL_02a4: Unknown result type (might be due to invalid IL or missing references)253 //IL_02a9: Unknown result type (might be due to invalid IL or missing references)254 //IL_02ad: Unknown result type (might be due to invalid IL or missing references)255 //IL_02b2: Unknown result type (might be due to invalid IL or missing references)256 //IL_02e0: Unknown result type (might be due to invalid IL or missing references)257 //IL_02e5: Unknown result type (might be due to invalid IL or missing references)258 //IL_02ec: Unknown result type (might be due to invalid IL or missing references)259 //IL_02c6: Unknown result type (might be due to invalid IL or missing references)260 //IL_02c7: Unknown result type (might be due to invalid IL or missing references)261 //IL_0217: Unknown result type (might be due to invalid IL or missing references)262 //IL_0226: Unknown result type (might be due to invalid IL or missing references)263 //IL_022b: Unknown result type (might be due to invalid IL or missing references)264 //IL_022f: Unknown result type (might be due to invalid IL or missing references)265 //IL_0234: Unknown result type (might be due to invalid IL or missing references)266 //IL_0249: Unknown result type (might be due to invalid IL or missing references)267 //IL_024b: Unknown result type (might be due to invalid IL or missing references)268 //IL_034d: Unknown result type (might be due to invalid IL or missing references)269 //IL_0358: Unknown result type (might be due to invalid IL or missing references)270 //IL_035d: Unknown result type (might be due to invalid IL or missing references)271 //IL_0361: Unknown result type (might be due to invalid IL or missing references)272 //IL_0366: Unknown result type (might be due to invalid IL or missing references)273 //IL_037b: Unknown result type (might be due to invalid IL or missing references)274 //IL_037d: Unknown result type (might be due to invalid IL or missing references)275 int num = _003C_003E1__state;276 try277 {278 ConfiguredTaskAwaitable val4;279 ConfiguredTaskAwaiter val;280 ConfiguredTaskAwaiter<IEntityCollection> val3;281 ConfiguredTaskAwaiter<IDeepDelete> val2;282 IEntityCollection result;283 Query query;284 switch (num)285 {286 default:287 if (entity.GetValue<string>("ITShopInfo").ToUpperInvariant() != "BO")288 {289 throw new ViException(2133212, ExceptionRelevance.EndUser);290 }291 _003CfSql_003E5__2 = parameter.Session.SqlFormatter();292 val4 = parameter.Session.StartTempQueueAsync(ct).ConfigureAwait(false);293 val = ((ConfiguredTaskAwaitable)(ref val4)).GetAwaiter();294 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)295 {296 num = (_003C_003E1__state = 0);297 _003C_003Eu__1 = val;298 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val, ref this);299 return;300 }301 goto IL_00d6;302 case 0:303 val = _003C_003Eu__1;304 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);305 num = (_003C_003E1__state = -1);306 goto IL_00d6;307 case 1:308 val3 = _003C_003Eu__2;309 _003C_003Eu__2 = default(ConfiguredTaskAwaiter<IEntityCollection>);310 num = (_003C_003E1__state = -1);311 goto IL_01c3;312 case 2:313 case 3:314 try315 {316 if (num != 2)317 {318 if (num != 3)319 {320 goto IL_0309;321 }322 val = _003C_003Eu__1;323 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);324 num = (_003C_003E1__state = -1);325 goto IL_02fb;326 }327 ConfiguredValueTaskAwaiter val5 = _003C_003Eu__3;328 _003C_003Eu__3 = default(ConfiguredValueTaskAwaiter);329 num = (_003C_003E1__state = -1);330 goto IL_0280;331 IL_02fb:332 ((ConfiguredTaskAwaiter)(ref val)).GetResult();333 _003CePwO_003E5__4 = null;334 goto IL_0309;335 IL_0309:336 if (((System.Collections.IEnumerator)_003C_003E7__wrap2).MoveNext())337 {338 _003CePwO_003E5__4 = _003C_003E7__wrap2.Current;339 ConfiguredValueTaskAwaitable val6 = _003CePwO_003E5__4.CallMethodAsync("Abort", "", "", "QER-Delete-Shelf", ct).ConfigureAwait(false);340 val5 = ((ConfiguredValueTaskAwaitable)(ref val6)).GetAwaiter();341 if (!((ConfiguredValueTaskAwaiter)(ref val5)).IsCompleted)342 {343 num = (_003C_003E1__state = 2);344 _003C_003Eu__3 = val5;345 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val5, ref this);346 return;347 }348 goto IL_0280;349 }350 goto end_IL_01d8;351 IL_0280:352 ((ConfiguredValueTaskAwaiter)(ref val5)).GetResult();353 val4 = parameter.UnitOfWork.PutAsync(_003CePwO_003E5__4, ct).ConfigureAwait(false);354 val = ((ConfiguredTaskAwaitable)(ref val4)).GetAwaiter();355 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)356 {357 num = (_003C_003E1__state = 3);358 _003C_003Eu__1 = val;359 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val, ref this);360 return;361 }362 goto IL_02fb;363 end_IL_01d8:;364 }365 finally366 {367 if (num < 0 && _003C_003E7__wrap2 != null)368 {369 ((System.IDisposable)_003C_003E7__wrap2).Dispose();370 }371 }372 _003C_003E7__wrap2 = null;373 val2 = entity.DeepDeleteAsync(parameter.Session, DeepDeleteBehavior.ForceDelete | DeepDeleteBehavior.IgnoreRootEntity, ct).ConfigureAwait(false).GetAwaiter();374 if (!val2.IsCompleted)375 {376 num = (_003C_003E1__state = 4);377 _003C_003Eu__4 = val2;378 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<IDeepDelete>, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val2, ref this);379 return;380 }381 goto IL_03b2;382 case 4:383 val2 = _003C_003Eu__4;384 _003C_003Eu__4 = default(ConfiguredTaskAwaiter<IDeepDelete>);385 num = (_003C_003E1__state = -1);386 goto IL_03b2;387 case 5:388 {389 val = _003C_003Eu__1;390 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);391 num = (_003C_003E1__state = -1);392 break;393 }394 IL_03b2:395 val4 = val2.GetResult().ExecuteAsync(parameter.UnitOfWork, ct).ConfigureAwait(false);396 val = ((ConfiguredTaskAwaitable)(ref val4)).GetAwaiter();397 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)398 {399 num = (_003C_003E1__state = 5);400 _003C_003Eu__1 = val;401 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val, ref this);402 return;403 }404 break;405 IL_01c3:406 result = val3.GetResult();407 _003C_003E7__wrap2 = ((System.Collections.Generic.IEnumerable<IEntity>)result).GetEnumerator();408 goto case 2;409 IL_00d6:410 ((ConfiguredTaskAwaiter)(ref val)).GetResult();411 query = Query.From("PersonWantsOrg").Where(_003CfSql_003E5__2.AndRelation(string.Format("OrderState in ( select OrderState from QER_VPWOOrderState where {0} )", (object)_003CfSql_003E5__2.Comparison("IsClosed", false, ValType.Bool)), _003CfSql_003E5__2.UidComparison("UID_OrgParent", entity.GetValue<string>("UID_ITShopOrg")))).SelectAll();412 val3 = parameter.Session.Source().GetCollectionAsync(query, EntityCollectionLoadType.Bulk, ct).ConfigureAwait(false)413 .GetAwaiter();414 if (!val3.IsCompleted)415 {416 num = (_003C_003E1__state = 1);417 _003C_003Eu__2 = val3;418 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<IEntityCollection>, _003CDeleteBoardDepedentObjects_003Ed__16>(ref val3, ref this);419 return;420 }421 goto IL_01c3;422 }423 ((ConfiguredTaskAwaiter)(ref val)).GetResult();424 }425 catch (System.Exception exception)426 {427 _003C_003E1__state = -2;428 _003CfSql_003E5__2 = null;429 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);430 return;431 }432 _003C_003E1__state = -2;433 _003CfSql_003E5__2 = null;434 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();435 }436437 [DebuggerHidden]438 private void SetStateMachine(IAsyncStateMachine stateMachine)439 {440 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);441 }442 }443444 [StructLayout((LayoutKind)3)]445 [CompilerGenerated]446 private struct _003CDeleteBoard_OnSaving_003Ed__15 : IAsyncStateMachine447 {448 public int _003C_003E1__state;449450 public AsyncTaskMethodBuilder _003C_003Et__builder;451452 public ITShopOrg _003C_003E4__this;453454 public IEntity entity;455456 public LogicReadWriteParameters parameter;457458 public object o;459460 public CancellationToken ct;461462 private System.IDisposable _003C_003E7__wrap1;463464 private ConfiguredTaskAwaiter _003C_003Eu__1;465466 private void MoveNext()467 {468 //IL_0077: Unknown result type (might be due to invalid IL or missing references)469 //IL_007c: Unknown result type (might be due to invalid IL or missing references)470 //IL_0083: Unknown result type (might be due to invalid IL or missing references)471 //IL_0034: Unknown result type (might be due to invalid IL or missing references)472 //IL_003f: Unknown result type (might be due to invalid IL or missing references)473 //IL_0044: Unknown result type (might be due to invalid IL or missing references)474 //IL_0047: Unknown result type (might be due to invalid IL or missing references)475 //IL_004c: Unknown result type (might be due to invalid IL or missing references)476 //IL_0060: Unknown result type (might be due to invalid IL or missing references)477 //IL_0061: Unknown result type (might be due to invalid IL or missing references)478 int num = _003C_003E1__state;479 ITShopOrg iTShopOrg = _003C_003E4__this;480 try481 {482 if (num != 0)483 {484 _003C_003E7__wrap1 = iTShopOrg.StartInternalProcess();485 }486 try487 {488 ConfiguredTaskAwaiter val2;489 if (num != 0)490 {491 ConfiguredTaskAwaitable val = DeleteBoardDepedentObjects(entity, parameter, o, ct).ConfigureAwait(false);492 val2 = ((ConfiguredTaskAwaitable)(ref val)).GetAwaiter();493 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)494 {495 num = (_003C_003E1__state = 0);496 _003C_003Eu__1 = val2;497 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CDeleteBoard_OnSaving_003Ed__15>(ref val2, ref this);498 return;499 }500 }501 else502 {503 val2 = _003C_003Eu__1;504 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);505 num = (_003C_003E1__state = -1);506 }507 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();508 }509 finally510 {511 if (num < 0 && _003C_003E7__wrap1 != null)512 {513 _003C_003E7__wrap1.Dispose();514 }515 }516 _003C_003E7__wrap1 = null;517 }518 catch (System.Exception exception)519 {520 _003C_003E1__state = -2;521 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);522 return;523 }524 _003C_003E1__state = -2;525 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();526 }527528 [DebuggerHidden]529 private void SetStateMachine(IAsyncStateMachine stateMachine)530 {531 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);532 }533 }534535 [StructLayout((LayoutKind)3)]536 [CompilerGenerated]537 private struct _003CMoveBoard_003Ed__11 : IAsyncStateMachine538 {539 public int _003C_003E1__state;540541 public AsyncTaskMethodBuilder<MP> _003C_003Et__builder;542543 public string uidNewShop;544545 public IEntity entity;546547 public ISession session;548549 public CancellationToken ct;550551 private ConfiguredTaskAwaiter _003C_003Eu__1;552553 private void MoveNext()554 {555 //IL_0082: Unknown result type (might be due to invalid IL or missing references)556 //IL_0087: Unknown result type (might be due to invalid IL or missing references)557 //IL_008e: Unknown result type (might be due to invalid IL or missing references)558 //IL_003e: Unknown result type (might be due to invalid IL or missing references)559 //IL_0049: Unknown result type (might be due to invalid IL or missing references)560 //IL_004e: Unknown result type (might be due to invalid IL or missing references)561 //IL_0052: Unknown result type (might be due to invalid IL or missing references)562 //IL_0057: Unknown result type (might be due to invalid IL or missing references)563 //IL_006b: Unknown result type (might be due to invalid IL or missing references)564 //IL_006c: Unknown result type (might be due to invalid IL or missing references)565 int num = _003C_003E1__state;566 MP result;567 try568 {569 ConfiguredTaskAwaiter val;570 if (num == 0)571 {572 val = _003C_003Eu__1;573 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);574 num = (_003C_003E1__state = -1);575 goto IL_009d;576 }577 MP mP = new MP578 {579 UID_ITShopTarget = uidNewShop580 };581 if (entity.IsInteractive)582 {583 ConfiguredTaskAwaitable val2 = _MoveBoard(session, entity, mP, ct).ConfigureAwait(false);584 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();585 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)586 {587 num = (_003C_003E1__state = 0);588 _003C_003Eu__1 = val;589 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveBoard_003Ed__11>(ref val, ref this);590 return;591 }592 goto IL_009d;593 }594 result = mP;595 goto end_IL_0007;596 IL_009d:597 ((ConfiguredTaskAwaiter)(ref val)).GetResult();598 result = null;599 end_IL_0007:;600 }601 catch (System.Exception exception)602 {603 _003C_003E1__state = -2;604 _003C_003Et__builder.SetException(exception);605 return;606 }607 _003C_003E1__state = -2;608 _003C_003Et__builder.SetResult(result);609 }610611 [DebuggerHidden]612 private void SetStateMachine(IAsyncStateMachine stateMachine)613 {614 _003C_003Et__builder.SetStateMachine(stateMachine);615 }616 }617618 [StructLayout((LayoutKind)3)]619 [CompilerGenerated]620 private struct _003CMoveBoard_OnSaving_003Ed__12 : IAsyncStateMachine621 {622 public int _003C_003E1__state;623624 public AsyncTaskMethodBuilder _003C_003Et__builder;625626 public MP mp;627628 public LogicReadWriteParameters parameter;629630 public IEntity entity;631632 public CancellationToken ct;633634 private ConfiguredTaskAwaiter _003C_003Eu__1;635636 private void MoveNext()637 {638 //IL_0072: Unknown result type (might be due to invalid IL or missing references)639 //IL_0077: Unknown result type (might be due to invalid IL or missing references)640 //IL_007e: Unknown result type (might be due to invalid IL or missing references)641 //IL_002f: Unknown result type (might be due to invalid IL or missing references)642 //IL_003a: Unknown result type (might be due to invalid IL or missing references)643 //IL_003f: Unknown result type (might be due to invalid IL or missing references)644 //IL_0042: Unknown result type (might be due to invalid IL or missing references)645 //IL_0047: Unknown result type (might be due to invalid IL or missing references)646 //IL_005b: Unknown result type (might be due to invalid IL or missing references)647 //IL_005c: Unknown result type (might be due to invalid IL or missing references)648 int num = _003C_003E1__state;649 try650 {651 ConfiguredTaskAwaiter val;652 if (num == 0)653 {654 val = _003C_003Eu__1;655 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);656 num = (_003C_003E1__state = -1);657 goto IL_008d;658 }659 if (mp != null)660 {661 ConfiguredTaskAwaitable val2 = _MoveBoard(parameter.Session, entity, mp, ct).ConfigureAwait(false);662 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();663 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)664 {665 num = (_003C_003E1__state = 0);666 _003C_003Eu__1 = val;667 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveBoard_OnSaving_003Ed__12>(ref val, ref this);668 return;669 }670 goto IL_008d;671 }672 goto end_IL_0007;673 IL_008d:674 ((ConfiguredTaskAwaiter)(ref val)).GetResult();675 end_IL_0007:;676 }677 catch (System.Exception exception)678 {679 _003C_003E1__state = -2;680 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);681 return;682 }683 _003C_003E1__state = -2;684 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();685 }686687 [DebuggerHidden]688 private void SetStateMachine(IAsyncStateMachine stateMachine)689 {690 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);691 }692 }693694 [StructLayout((LayoutKind)3)]695 [CompilerGenerated]696 private struct _003CMoveProductNode_003Ed__2 : IAsyncStateMachine697 {698 public int _003C_003E1__state;699700 public AsyncTaskMethodBuilder<MP> _003C_003Et__builder;701702 public string uidNewBoard;703704 public IEntity entity;705706 public ISession session;707708 public CancellationToken ct;709710 private ConfiguredTaskAwaiter _003C_003Eu__1;711712 private void MoveNext()713 {714 //IL_0082: Unknown result type (might be due to invalid IL or missing references)715 //IL_0087: Unknown result type (might be due to invalid IL or missing references)716 //IL_008e: Unknown result type (might be due to invalid IL or missing references)717 //IL_003e: Unknown result type (might be due to invalid IL or missing references)718 //IL_0049: Unknown result type (might be due to invalid IL or missing references)719 //IL_004e: Unknown result type (might be due to invalid IL or missing references)720 //IL_0052: Unknown result type (might be due to invalid IL or missing references)721 //IL_0057: Unknown result type (might be due to invalid IL or missing references)722 //IL_006b: Unknown result type (might be due to invalid IL or missing references)723 //IL_006c: Unknown result type (might be due to invalid IL or missing references)724 int num = _003C_003E1__state;725 MP result;726 try727 {728 ConfiguredTaskAwaiter val;729 if (num == 0)730 {731 val = _003C_003Eu__1;732 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);733 num = (_003C_003E1__state = -1);734 goto IL_009d;735 }736 MP mP = new MP737 {738 UID_ITShopTarget = uidNewBoard739 };740 if (entity.IsInteractive)741 {742 ConfiguredTaskAwaitable val2 = _MoveProductNode(session, entity, mP, ct).ConfigureAwait(false);743 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();744 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)745 {746 num = (_003C_003E1__state = 0);747 _003C_003Eu__1 = val;748 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveProductNode_003Ed__2>(ref val, ref this);749 return;750 }751 goto IL_009d;752 }753 result = mP;754 goto end_IL_0007;755 IL_009d:756 ((ConfiguredTaskAwaiter)(ref val)).GetResult();757 result = null;758 end_IL_0007:;759 }760 catch (System.Exception exception)761 {762 _003C_003E1__state = -2;763 _003C_003Et__builder.SetException(exception);764 return;765 }766 _003C_003E1__state = -2;767 _003C_003Et__builder.SetResult(result);768 }769770 [DebuggerHidden]771 private void SetStateMachine(IAsyncStateMachine stateMachine)772 {773 _003C_003Et__builder.SetStateMachine(stateMachine);774 }775 }776777 [StructLayout((LayoutKind)3)]778 [CompilerGenerated]779 private struct _003CMoveProductNode_OnSaving_003Ed__3 : IAsyncStateMachine780 {781 public int _003C_003E1__state;782783 public AsyncTaskMethodBuilder _003C_003Et__builder;784785 public MP mp;786787 public LogicReadWriteParameters parameter;788789 public IEntity entity;790791 public CancellationToken ct;792793 private ConfiguredTaskAwaiter _003C_003Eu__1;794795 private void MoveNext()796 {797 //IL_0072: Unknown result type (might be due to invalid IL or missing references)798 //IL_0077: Unknown result type (might be due to invalid IL or missing references)799 //IL_007e: Unknown result type (might be due to invalid IL or missing references)800 //IL_002f: Unknown result type (might be due to invalid IL or missing references)801 //IL_003a: Unknown result type (might be due to invalid IL or missing references)802 //IL_003f: Unknown result type (might be due to invalid IL or missing references)803 //IL_0042: Unknown result type (might be due to invalid IL or missing references)804 //IL_0047: Unknown result type (might be due to invalid IL or missing references)805 //IL_005b: Unknown result type (might be due to invalid IL or missing references)806 //IL_005c: Unknown result type (might be due to invalid IL or missing references)807 int num = _003C_003E1__state;808 try809 {810 ConfiguredTaskAwaiter val;811 if (num == 0)812 {813 val = _003C_003Eu__1;814 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);815 num = (_003C_003E1__state = -1);816 goto IL_008d;817 }818 if (mp != null)819 {820 ConfiguredTaskAwaitable val2 = _MoveProductNode(parameter.Session, entity, mp, ct).ConfigureAwait(false);821 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();822 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)823 {824 num = (_003C_003E1__state = 0);825 _003C_003Eu__1 = val;826 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveProductNode_OnSaving_003Ed__3>(ref val, ref this);827 return;828 }829 goto IL_008d;830 }831 goto end_IL_0007;832 IL_008d:833 ((ConfiguredTaskAwaiter)(ref val)).GetResult();834 end_IL_0007:;835 }836 catch (System.Exception exception)837 {838 _003C_003E1__state = -2;839 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);840 return;841 }842 _003C_003E1__state = -2;843 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();844 }845846 [DebuggerHidden]847 private void SetStateMachine(IAsyncStateMachine stateMachine)848 {849 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);850 }851 }852853 [StructLayout((LayoutKind)3)]854 [CompilerGenerated]855 private struct _003CMoveProducts_003Ed__5 : IAsyncStateMachine856 {857 public int _003C_003E1__state;858859 public AsyncTaskMethodBuilder<MP> _003C_003Et__builder;860861 public string[] uidProducts;862863 public string uidNewBoard;864865 public IEntity entity;866867 public ISession session;868869 public CancellationToken ct;870871 private ConfiguredTaskAwaiter _003C_003Eu__1;872873 private void MoveNext()874 {875 //IL_0091: Unknown result type (might be due to invalid IL or missing references)876 //IL_0096: Unknown result type (might be due to invalid IL or missing references)877 //IL_009d: Unknown result type (might be due to invalid IL or missing references)878 //IL_004d: Unknown result type (might be due to invalid IL or missing references)879 //IL_0058: Unknown result type (might be due to invalid IL or missing references)880 //IL_005d: Unknown result type (might be due to invalid IL or missing references)881 //IL_0061: Unknown result type (might be due to invalid IL or missing references)882 //IL_0066: Unknown result type (might be due to invalid IL or missing references)883 //IL_007a: Unknown result type (might be due to invalid IL or missing references)884 //IL_007b: Unknown result type (might be due to invalid IL or missing references)885 int num = _003C_003E1__state;886 MP result;887 try888 {889 ConfiguredTaskAwaiter val;890 if (num == 0)891 {892 val = _003C_003Eu__1;893 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);894 num = (_003C_003E1__state = -1);895 goto IL_00ac;896 }897 MP mP = new MP898 {899 UID_ITShopSources = uidProducts,900 UID_ITShopTarget = uidNewBoard901 };902 if (entity.IsInteractive)903 {904 ConfiguredTaskAwaitable val2 = _MoveProducts(session, entity, mP, ct).ConfigureAwait(false);905 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();906 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)907 {908 num = (_003C_003E1__state = 0);909 _003C_003Eu__1 = val;910 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveProducts_003Ed__5>(ref val, ref this);911 return;912 }913 goto IL_00ac;914 }915 result = mP;916 goto end_IL_0007;917 IL_00ac:918 ((ConfiguredTaskAwaiter)(ref val)).GetResult();919 result = null;920 end_IL_0007:;921 }922 catch (System.Exception exception)923 {924 _003C_003E1__state = -2;925 _003C_003Et__builder.SetException(exception);926 return;927 }928 _003C_003E1__state = -2;929 _003C_003Et__builder.SetResult(result);930 }931932 [DebuggerHidden]933 private void SetStateMachine(IAsyncStateMachine stateMachine)934 {935 _003C_003Et__builder.SetStateMachine(stateMachine);936 }937 }938939 [StructLayout((LayoutKind)3)]940 [CompilerGenerated]941 private struct _003CMoveProducts_OnSaving_003Ed__6 : IAsyncStateMachine942 {943 public int _003C_003E1__state;944945 public AsyncTaskMethodBuilder _003C_003Et__builder;946947 public MP mp;948949 public LogicReadWriteParameters parameter;950951 public IEntity entity;952953 public CancellationToken ct;954955 private ConfiguredTaskAwaiter _003C_003Eu__1;956957 private void MoveNext()958 {959 //IL_0072: Unknown result type (might be due to invalid IL or missing references)960 //IL_0077: Unknown result type (might be due to invalid IL or missing references)961 //IL_007e: Unknown result type (might be due to invalid IL or missing references)962 //IL_002f: Unknown result type (might be due to invalid IL or missing references)963 //IL_003a: Unknown result type (might be due to invalid IL or missing references)964 //IL_003f: Unknown result type (might be due to invalid IL or missing references)965 //IL_0042: Unknown result type (might be due to invalid IL or missing references)966 //IL_0047: Unknown result type (might be due to invalid IL or missing references)967 //IL_005b: Unknown result type (might be due to invalid IL or missing references)968 //IL_005c: Unknown result type (might be due to invalid IL or missing references)969 int num = _003C_003E1__state;970 try971 {972 ConfiguredTaskAwaiter val;973 if (num == 0)974 {975 val = _003C_003Eu__1;976 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);977 num = (_003C_003E1__state = -1);978 goto IL_008d;979 }980 if (mp != null)981 {982 ConfiguredTaskAwaitable val2 = _MoveProducts(parameter.Session, entity, mp, ct).ConfigureAwait(false);983 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();984 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)985 {986 num = (_003C_003E1__state = 0);987 _003C_003Eu__1 = val;988 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveProducts_OnSaving_003Ed__6>(ref val, ref this);989 return;990 }991 goto IL_008d;992 }993 goto end_IL_0007;994 IL_008d:995 ((ConfiguredTaskAwaiter)(ref val)).GetResult();996 end_IL_0007:;997 }998 catch (System.Exception exception)999 {1000 _003C_003E1__state = -2;1001 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1002 return;1003 }1004 _003C_003E1__state = -2;1005 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1006 }10071008 [DebuggerHidden]1009 private void SetStateMachine(IAsyncStateMachine stateMachine)1010 {1011 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1012 }1013 }10141015 [StructLayout((LayoutKind)3)]1016 [CompilerGenerated]1017 private struct _003CMoveShop_003Ed__8 : IAsyncStateMachine1018 {1019 public int _003C_003E1__state;10201021 public AsyncTaskMethodBuilder<MP> _003C_003Et__builder;10221023 public string uidNewCenter;10241025 public IEntity entity;10261027 public ISession session;10281029 public CancellationToken ct;10301031 private ConfiguredTaskAwaiter _003C_003Eu__1;10321033 private void MoveNext()1034 {1035 //IL_0082: Unknown result type (might be due to invalid IL or missing references)1036 //IL_0087: Unknown result type (might be due to invalid IL or missing references)1037 //IL_008e: Unknown result type (might be due to invalid IL or missing references)1038 //IL_003e: Unknown result type (might be due to invalid IL or missing references)1039 //IL_0049: Unknown result type (might be due to invalid IL or missing references)1040 //IL_004e: Unknown result type (might be due to invalid IL or missing references)1041 //IL_0052: Unknown result type (might be due to invalid IL or missing references)1042 //IL_0057: Unknown result type (might be due to invalid IL or missing references)1043 //IL_006b: Unknown result type (might be due to invalid IL or missing references)1044 //IL_006c: Unknown result type (might be due to invalid IL or missing references)1045 int num = _003C_003E1__state;1046 MP result;1047 try1048 {1049 ConfiguredTaskAwaiter val;1050 if (num == 0)1051 {1052 val = _003C_003Eu__1;1053 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1054 num = (_003C_003E1__state = -1);1055 goto IL_009d;1056 }1057 MP mP = new MP1058 {1059 UID_ITShopTarget = uidNewCenter1060 };1061 if (entity.IsInteractive)1062 {1063 ConfiguredTaskAwaitable val2 = _MoveShop(session, entity, mP, ct).ConfigureAwait(false);1064 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();1065 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)1066 {1067 num = (_003C_003E1__state = 0);1068 _003C_003Eu__1 = val;1069 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveShop_003Ed__8>(ref val, ref this);1070 return;1071 }1072 goto IL_009d;1073 }1074 result = mP;1075 goto end_IL_0007;1076 IL_009d:1077 ((ConfiguredTaskAwaiter)(ref val)).GetResult();1078 result = null;1079 end_IL_0007:;1080 }1081 catch (System.Exception exception)1082 {1083 _003C_003E1__state = -2;1084 _003C_003Et__builder.SetException(exception);1085 return;1086 }1087 _003C_003E1__state = -2;1088 _003C_003Et__builder.SetResult(result);1089 }10901091 [DebuggerHidden]1092 private void SetStateMachine(IAsyncStateMachine stateMachine)1093 {1094 _003C_003Et__builder.SetStateMachine(stateMachine);1095 }1096 }10971098 [StructLayout((LayoutKind)3)]1099 [CompilerGenerated]1100 private struct _003CMoveShop_OnSaving_003Ed__9 : IAsyncStateMachine1101 {1102 public int _003C_003E1__state;11031104 public AsyncTaskMethodBuilder _003C_003Et__builder;11051106 public MP mp;11071108 public LogicReadWriteParameters parameter;11091110 public IEntity entity;11111112 public CancellationToken ct;11131114 private ConfiguredTaskAwaiter _003C_003Eu__1;11151116 private void MoveNext()1117 {1118 //IL_0072: Unknown result type (might be due to invalid IL or missing references)1119 //IL_0077: Unknown result type (might be due to invalid IL or missing references)1120 //IL_007e: Unknown result type (might be due to invalid IL or missing references)1121 //IL_002f: Unknown result type (might be due to invalid IL or missing references)1122 //IL_003a: Unknown result type (might be due to invalid IL or missing references)1123 //IL_003f: Unknown result type (might be due to invalid IL or missing references)1124 //IL_0042: Unknown result type (might be due to invalid IL or missing references)1125 //IL_0047: Unknown result type (might be due to invalid IL or missing references)1126 //IL_005b: Unknown result type (might be due to invalid IL or missing references)1127 //IL_005c: Unknown result type (might be due to invalid IL or missing references)1128 int num = _003C_003E1__state;1129 try1130 {1131 ConfiguredTaskAwaiter val;1132 if (num == 0)1133 {1134 val = _003C_003Eu__1;1135 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1136 num = (_003C_003E1__state = -1);1137 goto IL_008d;1138 }1139 if (mp != null)1140 {1141 ConfiguredTaskAwaitable val2 = _MoveShop(parameter.Session, entity, mp, ct).ConfigureAwait(false);1142 val = ((ConfiguredTaskAwaitable)(ref val2)).GetAwaiter();1143 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)1144 {1145 num = (_003C_003E1__state = 0);1146 _003C_003Eu__1 = val;1147 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003CMoveShop_OnSaving_003Ed__9>(ref val, ref this);1148 return;1149 }1150 goto IL_008d;1151 }1152 goto end_IL_0007;1153 IL_008d:1154 ((ConfiguredTaskAwaiter)(ref val)).GetResult();1155 end_IL_0007:;1156 }1157 catch (System.Exception exception)1158 {1159 _003C_003E1__state = -2;1160 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1161 return;1162 }1163 _003C_003E1__state = -2;1164 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1165 }11661167 [DebuggerHidden]1168 private void SetStateMachine(IAsyncStateMachine stateMachine)1169 {1170 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1171 }1172 }11731174 [StructLayout((LayoutKind)3)]1175 [CompilerGenerated]1176 private struct _003COnSavingAsync_003Ed__17 : IAsyncStateMachine1177 {1178 public int _003C_003E1__state;11791180 public AsyncTaskMethodBuilder<Diff> _003C_003Et__builder;11811182 public LogicReadWriteParameters parameters;11831184 public ITShopOrg _003C_003E4__this;11851186 public IEntity entity;11871188 public CancellationToken cancellationToken;11891190 private LogicParameter _003Clp_003E5__2;11911192 private ConfiguredTaskAwaiter _003C_003Eu__1;11931194 private ConfiguredTaskAwaiter<Diff> _003C_003Eu__2;11951196 private void MoveNext()1197 {1198 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)1199 //IL_00ed: Unknown result type (might be due to invalid IL or missing references)1200 //IL_00f4: Unknown result type (might be due to invalid IL or missing references)1201 //IL_0173: Unknown result type (might be due to invalid IL or missing references)1202 //IL_0178: Unknown result type (might be due to invalid IL or missing references)1203 //IL_017f: Unknown result type (might be due to invalid IL or missing references)1204 //IL_0265: Unknown result type (might be due to invalid IL or missing references)1205 //IL_026a: Unknown result type (might be due to invalid IL or missing references)1206 //IL_0271: Unknown result type (might be due to invalid IL or missing references)1207 //IL_038d: Unknown result type (might be due to invalid IL or missing references)1208 //IL_0392: Unknown result type (might be due to invalid IL or missing references)1209 //IL_0399: Unknown result type (might be due to invalid IL or missing references)1210 //IL_040a: Unknown result type (might be due to invalid IL or missing references)1211 //IL_040f: Unknown result type (might be due to invalid IL or missing references)1212 //IL_0417: Unknown result type (might be due to invalid IL or missing references)1213 //IL_03c4: Unknown result type (might be due to invalid IL or missing references)1214 //IL_03cf: Unknown result type (might be due to invalid IL or missing references)1215 //IL_03d4: Unknown result type (might be due to invalid IL or missing references)1216 //IL_03d8: Unknown result type (might be due to invalid IL or missing references)1217 //IL_03dd: Unknown result type (might be due to invalid IL or missing references)1218 //IL_03f2: Unknown result type (might be due to invalid IL or missing references)1219 //IL_03f4: Unknown result type (might be due to invalid IL or missing references)1220 //IL_005b: Unknown result type (might be due to invalid IL or missing references)1221 //IL_0137: Unknown result type (might be due to invalid IL or missing references)1222 //IL_013c: Unknown result type (might be due to invalid IL or missing references)1223 //IL_0140: Unknown result type (might be due to invalid IL or missing references)1224 //IL_0145: Unknown result type (might be due to invalid IL or missing references)1225 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)1226 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)1227 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)1228 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)1229 //IL_0159: Unknown result type (might be due to invalid IL or missing references)1230 //IL_015a: Unknown result type (might be due to invalid IL or missing references)1231 //IL_0351: Unknown result type (might be due to invalid IL or missing references)1232 //IL_0356: Unknown result type (might be due to invalid IL or missing references)1233 //IL_035a: Unknown result type (might be due to invalid IL or missing references)1234 //IL_035f: Unknown result type (might be due to invalid IL or missing references)1235 //IL_00ce: Unknown result type (might be due to invalid IL or missing references)1236 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)1237 //IL_0373: Unknown result type (might be due to invalid IL or missing references)1238 //IL_0374: Unknown result type (might be due to invalid IL or missing references)1239 //IL_0229: Unknown result type (might be due to invalid IL or missing references)1240 //IL_022e: Unknown result type (might be due to invalid IL or missing references)1241 //IL_0232: Unknown result type (might be due to invalid IL or missing references)1242 //IL_0237: Unknown result type (might be due to invalid IL or missing references)1243 //IL_024b: Unknown result type (might be due to invalid IL or missing references)1244 //IL_024c: Unknown result type (might be due to invalid IL or missing references)1245 int num = _003C_003E1__state;1246 ITShopOrg iTShopOrg = _003C_003E4__this;1247 Diff result;1248 try1249 {1250 ConfiguredTaskAwaitable val3;1251 ConfiguredTaskAwaiter val2;1252 ConfiguredTaskAwaiter<Diff> val;1253 switch (num)1254 {1255 default:1256 if (!parameters.Session.User().IsAdministrativeAccount && !iTShopOrg.IsInternalProcess)1257 {1258 _003Clp_003E5__2 = new LogicParameter(entity, parameters, cancellationToken);1259 if (!entity.IsLoaded || entity.IsDeleted() || entity.Columns["UID_ParentITShopOrg"].IsChanged)1260 {1261 val3 = CheckAutoChildOrg(_003Clp_003E5__2).ConfigureAwait(false);1262 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();1263 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)1264 {1265 num = (_003C_003E1__state = 0);1266 _003C_003Eu__1 = val2;1267 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003COnSavingAsync_003Ed__17>(ref val2, ref this);1268 return;1269 }1270 goto IL_0103;1271 }1272 goto IL_010a;1273 }1274 goto IL_03b6;1275 case 0:1276 val2 = _003C_003Eu__1;1277 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1278 num = (_003C_003E1__state = -1);1279 goto IL_0103;1280 case 1:1281 val2 = _003C_003Eu__1;1282 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1283 num = (_003C_003E1__state = -1);1284 goto IL_018e;1285 case 2:1286 val2 = _003C_003Eu__1;1287 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1288 num = (_003C_003E1__state = -1);1289 goto IL_0280;1290 case 3:1291 val2 = _003C_003Eu__1;1292 _003C_003Eu__1 = default(ConfiguredTaskAwaiter);1293 num = (_003C_003E1__state = -1);1294 goto IL_03a8;1295 case 4:1296 {1297 val = _003C_003Eu__2;1298 _003C_003Eu__2 = default(ConfiguredTaskAwaiter<Diff>);1299 num = (_003C_003E1__state = -1);1300 break;1301 }1302 IL_03a8:1303 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();1304 goto IL_03af;1305 IL_018e:1306 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();1307 goto IL_0195;1308 IL_03af:1309 _003Clp_003E5__2 = null;1310 goto IL_03b6;1311 IL_0287:1312 if (entity.IsLoaded && !entity.IsToDelete() && entity.Columns.ChangedAny("UID_ParentITShopOrg", "ITShopInfo") && entity.Columns["ITShopInfo"].GetOldValue<string>().ToUpperInvariant() == "BO")1313 {1314 throw new ViException(2133428, ExceptionRelevance.EndUser);1315 }1316 if (!entity.IsLoaded || entity.Columns["UID_ParentITShopOrg"].IsChanged || entity.Columns["ITShopInfo"].IsChanged)1317 {1318 val3 = ValidITShopParentCheck(_003Clp_003E5__2).ConfigureAwait(false);1319 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();1320 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)1321 {1322 num = (_003C_003E1__state = 3);1323 _003C_003Eu__1 = val2;1324 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003COnSavingAsync_003Ed__17>(ref val2, ref this);1325 return;1326 }1327 goto IL_03a8;1328 }1329 goto IL_03af;1330 IL_0195:1331 if (entity.Columns.Contains("UID_OrgBoardTemplate") && (entity.Columns["ITShopInfo"].IsChanged || entity.Columns["UID_OrgBoardTemplate"].IsChanged) && entity.GetValue<string>("ITShopInfo").Length > 0 && entity.GetValue<string>("UID_OrgBoardTemplate").Length > 0)1332 {1333 val3 = ValidTemplateCheck(_003Clp_003E5__2).ConfigureAwait(false);1334 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();1335 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)1336 {1337 num = (_003C_003E1__state = 2);1338 _003C_003Eu__1 = val2;1339 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003COnSavingAsync_003Ed__17>(ref val2, ref this);1340 return;1341 }1342 goto IL_0280;1343 }1344 goto IL_0287;1345 IL_0280:1346 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();1347 goto IL_0287;1348 IL_0103:1349 ((ConfiguredTaskAwaiter)(ref val2)).GetResult();1350 goto IL_010a;1351 IL_010a:1352 if (entity.GetValue<string>("ITShopInfo").ToUpperInvariant() == "CU")1353 {1354 val3 = CheckCustomerNode(_003Clp_003E5__2).ConfigureAwait(false);1355 val2 = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();1356 if (!((ConfiguredTaskAwaiter)(ref val2)).IsCompleted)1357 {1358 num = (_003C_003E1__state = 1);1359 _003C_003Eu__1 = val2;1360 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003COnSavingAsync_003Ed__17>(ref val2, ref this);1361 return;1362 }1363 goto IL_018e;1364 }1365 goto IL_0195;1366 IL_03b6:1367 val = ((StateBasedEntityLogic)iTShopOrg).OnSavingAsync(entity, parameters, cancellationToken).ConfigureAwait(false).GetAwaiter();1368 if (!val.IsCompleted)1369 {1370 num = (_003C_003E1__state = 4);1371 _003C_003Eu__2 = val;1372 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<Diff>, _003COnSavingAsync_003Ed__17>(ref val, ref this);1373 return;1374 }1375 break;1376 }1377 result = val.GetResult();1378 }1379 catch (System.Exception exception)1380 {1381 _003C_003E1__state = -2;1382 _003C_003Et__builder.SetException(exception);1383 return;1384 }1385 _003C_003E1__state = -2;1386 _003C_003Et__builder.SetResult(result);1387 }13881389 [DebuggerHidden]1390 private void SetStateMachine(IAsyncStateMachine stateMachine)1391 {1392 _003C_003Et__builder.SetStateMachine(stateMachine);1393 }1394 }13951396 [StructLayout((LayoutKind)3)]1397 [CompilerGenerated]1398 private struct _003CValidITShopParentCheck_003Ed__21 : IAsyncStateMachine1399 {1400 public int _003C_003E1__state;14011402 public AsyncTaskMethodBuilder _003C_003Et__builder;14031404 public LogicParameter lp;14051406 private string[][] _003CvvValidParents_003E5__2;14071408 private ConfiguredTaskAwaiter<string> _003C_003Eu__1;14091410 private void MoveNext()1411 {1412 //IL_017d: Unknown result type (might be due to invalid IL or missing references)1413 //IL_0182: Unknown result type (might be due to invalid IL or missing references)1414 //IL_018a: Unknown result type (might be due to invalid IL or missing references)1415 //IL_0131: Unknown result type (might be due to invalid IL or missing references)1416 //IL_0137: Unknown result type (might be due to invalid IL or missing references)1417 //IL_013f: Unknown result type (might be due to invalid IL or missing references)1418 //IL_0144: Unknown result type (might be due to invalid IL or missing references)1419 //IL_0148: Unknown result type (might be due to invalid IL or missing references)1420 //IL_014d: Unknown result type (might be due to invalid IL or missing references)1421 //IL_0162: Unknown result type (might be due to invalid IL or missing references)1422 //IL_0164: Unknown result type (might be due to invalid IL or missing references)1423 int num = _003C_003E1__state;1424 try1425 {1426 string text;1427 ConfiguredTaskAwaiter<string> val;1428 if (num != 0)1429 {1430 ISqlFormatter sqlFormatter = lp.SqlFormatter;1431 _003CvvValidParents_003E5__2 = new string[7][]1432 {1433 new string[2] { "RT", "SC" },1434 new string[2] { "RT", "SH" },1435 new string[2] { "SC", "SH" },1436 new string[2] { "SH", "BO" },1437 new string[2] { "BO", "PR" },1438 new string[2] { "SH", "CU" },1439 new string[2] { "RT", "RT" }1440 };1441 if (lp.Entity.GetValue<string>("UID_ParentITShopOrg").Length <= 0)1442 {1443 text = "RT";1444 goto IL_01ae;1445 }1446 val = lp.Session.Source().GetSingleValueAsync<string>("ITShopOrg", "ITShopInfo", sqlFormatter.UidComparison("UID_ITShopOrg", lp.Entity.GetValue<string>("UID_ParentITShopOrg"))).ConfigureAwait(false)1447 .GetAwaiter();1448 if (!val.IsCompleted)1449 {1450 num = (_003C_003E1__state = 0);1451 _003C_003Eu__1 = val;1452 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<string>, _003CValidITShopParentCheck_003Ed__21>(ref val, ref this);1453 return;1454 }1455 }1456 else1457 {1458 val = _003C_003Eu__1;1459 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<string>);1460 num = (_003C_003E1__state = -1);1461 }1462 text = val.GetResult().ToUpperInvariant();1463 goto IL_01ae;1464 IL_01ae:1465 string text2 = lp.Entity.GetValue<string>("ITShopInfo").ToUpperInvariant();1466 string[][] array = _003CvvValidParents_003E5__2;1467 int num2 = 0;1468 while (true)1469 {1470 if (num2 < array.Length)1471 {1472 string[] array2 = array[num2];1473 if (array2[0] == text && array2[1] == text2)1474 {1475 break;1476 }1477 num2++;1478 continue;1479 }1480 throw new ViException(2133195, ExceptionRelevance.EndUser);1481 }1482 }1483 catch (System.Exception exception)1484 {1485 _003C_003E1__state = -2;1486 _003CvvValidParents_003E5__2 = null;1487 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1488 return;1489 }1490 _003C_003E1__state = -2;1491 _003CvvValidParents_003E5__2 = null;1492 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1493 }14941495 [DebuggerHidden]1496 private void SetStateMachine(IAsyncStateMachine stateMachine)1497 {1498 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1499 }1500 }15011502 [StructLayout((LayoutKind)3)]1503 [CompilerGenerated]1504 private struct _003CValidTemplateCheck_003Ed__20 : IAsyncStateMachine1505 {1506 public int _003C_003E1__state;15071508 public AsyncTaskMethodBuilder _003C_003Et__builder;15091510 public LogicParameter lp;15111512 private ConfiguredTaskAwaiter<string> _003C_003Eu__1;15131514 private void MoveNext()1515 {1516 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)1517 //IL_00c6: Unknown result type (might be due to invalid IL or missing references)1518 //IL_00cd: Unknown result type (might be due to invalid IL or missing references)1519 //IL_0077: Unknown result type (might be due to invalid IL or missing references)1520 //IL_007d: Unknown result type (might be due to invalid IL or missing references)1521 //IL_0085: Unknown result type (might be due to invalid IL or missing references)1522 //IL_008a: Unknown result type (might be due to invalid IL or missing references)1523 //IL_008e: Unknown result type (might be due to invalid IL or missing references)1524 //IL_0093: Unknown result type (might be due to invalid IL or missing references)1525 //IL_00a7: Unknown result type (might be due to invalid IL or missing references)1526 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)1527 int num = _003C_003E1__state;1528 try1529 {1530 ConfiguredTaskAwaiter<string> val;1531 if (num == 0)1532 {1533 val = _003C_003Eu__1;1534 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<string>);1535 num = (_003C_003E1__state = -1);1536 goto IL_00dc;1537 }1538 if (lp.Session.MetaData().IsTableEnabled("ITShopSrc"))1539 {1540 ISqlFormatter sqlFormatter = lp.SqlFormatter;1541 val = lp.Session.Source().GetSingleValueAsync<string>("ITShopSrc", "ITShopInfo", sqlFormatter.UidComparison("UID_ITShopSrc", lp.Entity.GetValue<string>("UID_OrgBoardTemplate"))).ConfigureAwait(false)1542 .GetAwaiter();1543 if (!val.IsCompleted)1544 {1545 num = (_003C_003E1__state = 0);1546 _003C_003Eu__1 = val;1547 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<string>, _003CValidTemplateCheck_003Ed__20>(ref val, ref this);1548 return;1549 }1550 goto IL_00dc;1551 }1552 goto end_IL_0007;1553 IL_00dc:1554 string text = val.GetResult().ToUpperInvariant();1555 string text2 = lp.Entity.GetValue<string>("ITShopInfo").ToUpperInvariant();1556 if (!(text2 == "SC"))1557 {1558 if (text2 == "BO" && !(text == "BT") && !(text == "BG") && !(text == "BO"))1559 {1560 throw new ViException(2133182, ExceptionRelevance.EndUser, lp.Entity.Columns["UID_OrgBoardTemplate"].Columnname);1561 }1562 }1563 else if (text != "ST")1564 {1565 throw new ViException(2133181, ExceptionRelevance.EndUser, lp.Entity.Columns["UID_OrgBoardTemplate"].Columnname);1566 }1567 end_IL_0007:;1568 }1569 catch (System.Exception exception)1570 {1571 _003C_003E1__state = -2;1572 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1573 return;1574 }1575 _003C_003E1__state = -2;1576 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1577 }15781579 [DebuggerHidden]1580 private void SetStateMachine(IAsyncStateMachine stateMachine)1581 {1582 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1583 }1584 }15851586 [StructLayout((LayoutKind)3)]1587 [CompilerGenerated]1588 private struct _003C_MoveBoard_003Ed__13 : IAsyncStateMachine1589 {1590 public int _003C_003E1__state;15911592 public AsyncTaskMethodBuilder _003C_003Et__builder;15931594 public MP mp;15951596 public ISession session;15971598 public IEntity entity;15991600 public CancellationToken ct;16011602 private ConfiguredTaskAwaiter<int> _003C_003Eu__1;16031604 private void MoveNext()1605 {1606 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)1607 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)1608 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)1609 //IL_007c: Unknown result type (might be due to invalid IL or missing references)1610 //IL_0087: Unknown result type (might be due to invalid IL or missing references)1611 //IL_008c: Unknown result type (might be due to invalid IL or missing references)1612 //IL_0090: Unknown result type (might be due to invalid IL or missing references)1613 //IL_0095: Unknown result type (might be due to invalid IL or missing references)1614 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)1615 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)1616 int num = _003C_003E1__state;1617 try1618 {1619 ConfiguredTaskAwaiter<int> val;1620 if (num != 0)1621 {1622 string uID_ITShopTarget = mp.UID_ITShopTarget;1623 ISqlFormatter sqlFormatter = session.SqlFormatter();1624 string statement = sqlFormatter.StoredProcedure(new SqlFunction("QER", "GITShop", "PITShop_BoardMove"), sqlFormatter.FormatUidValue(entity.GetValue<string>("UID_ITShopOrg")), sqlFormatter.FormatUidValue(uID_ITShopTarget));1625 val = session.Resolve<IDbSession>().SqlExecuteNonQueryInContextAsync(session, statement, ct).ConfigureAwait(false)1626 .GetAwaiter();1627 if (!val.IsCompleted)1628 {1629 num = (_003C_003E1__state = 0);1630 _003C_003Eu__1 = val;1631 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<int>, _003C_MoveBoard_003Ed__13>(ref val, ref this);1632 return;1633 }1634 }1635 else1636 {1637 val = _003C_003Eu__1;1638 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<int>);1639 num = (_003C_003E1__state = -1);1640 }1641 val.GetResult();1642 }1643 catch (System.Exception exception)1644 {1645 _003C_003E1__state = -2;1646 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1647 return;1648 }1649 _003C_003E1__state = -2;1650 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1651 }16521653 [DebuggerHidden]1654 private void SetStateMachine(IAsyncStateMachine stateMachine)1655 {1656 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1657 }1658 }16591660 [StructLayout((LayoutKind)3)]1661 [CompilerGenerated]1662 private struct _003C_MoveProductNode_003Ed__4 : IAsyncStateMachine1663 {1664 public int _003C_003E1__state;16651666 public AsyncTaskMethodBuilder _003C_003Et__builder;16671668 public MP mp;16691670 public ISession session;16711672 public IEntity entity;16731674 public CancellationToken ct;16751676 private ConfiguredTaskAwaiter<int> _003C_003Eu__1;16771678 private void MoveNext()1679 {1680 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)1681 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)1682 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)1683 //IL_007c: Unknown result type (might be due to invalid IL or missing references)1684 //IL_0087: Unknown result type (might be due to invalid IL or missing references)1685 //IL_008c: Unknown result type (might be due to invalid IL or missing references)1686 //IL_0090: Unknown result type (might be due to invalid IL or missing references)1687 //IL_0095: Unknown result type (might be due to invalid IL or missing references)1688 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)1689 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)1690 int num = _003C_003E1__state;1691 try1692 {1693 ConfiguredTaskAwaiter<int> val;1694 if (num != 0)1695 {1696 string uID_ITShopTarget = mp.UID_ITShopTarget;1697 ISqlFormatter sqlFormatter = session.SqlFormatter();1698 string statement = sqlFormatter.StoredProcedure(new SqlFunction("QER", "GITShop", "PITShopProductNodeMove"), sqlFormatter.FormatUidValue(entity.GetValue<string>("UID_ITShopOrg")), sqlFormatter.FormatUidValue(uID_ITShopTarget));1699 val = session.Resolve<IDbSession>().SqlExecuteNonQueryInContextAsync(session, statement, ct).ConfigureAwait(false)1700 .GetAwaiter();1701 if (!val.IsCompleted)1702 {1703 num = (_003C_003E1__state = 0);1704 _003C_003Eu__1 = val;1705 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<int>, _003C_MoveProductNode_003Ed__4>(ref val, ref this);1706 return;1707 }1708 }1709 else1710 {1711 val = _003C_003Eu__1;1712 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<int>);1713 num = (_003C_003E1__state = -1);1714 }1715 val.GetResult();1716 }1717 catch (System.Exception exception)1718 {1719 _003C_003E1__state = -2;1720 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1721 return;1722 }1723 _003C_003E1__state = -2;1724 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1725 }17261727 [DebuggerHidden]1728 private void SetStateMachine(IAsyncStateMachine stateMachine)1729 {1730 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1731 }1732 }17331734 [StructLayout((LayoutKind)3)]1735 [CompilerGenerated]1736 private struct _003C_MoveProducts_003Ed__7 : IAsyncStateMachine1737 {1738 public int _003C_003E1__state;17391740 public AsyncTaskMethodBuilder _003C_003Et__builder;17411742 public MP mp;17431744 public ISession session;17451746 public CancellationToken ct;17471748 private ConfiguredTaskAwaiter<int> _003C_003Eu__1;17491750 private void MoveNext()1751 {1752 //IL_011c: Unknown result type (might be due to invalid IL or missing references)1753 //IL_0121: Unknown result type (might be due to invalid IL or missing references)1754 //IL_0129: Unknown result type (might be due to invalid IL or missing references)1755 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)1756 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)1757 //IL_00e6: Unknown result type (might be due to invalid IL or missing references)1758 //IL_00ea: Unknown result type (might be due to invalid IL or missing references)1759 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)1760 //IL_0104: Unknown result type (might be due to invalid IL or missing references)1761 //IL_0106: Unknown result type (might be due to invalid IL or missing references)1762 int num = _003C_003E1__state;1763 try1764 {1765 ConfiguredTaskAwaiter<int> val;1766 if (num != 0)1767 {1768 _003C_003Ec__DisplayClass7_0 CS_0024_003C_003E8__locals4 = new _003C_003Ec__DisplayClass7_0();1769 string[] uID_ITShopSources = mp.UID_ITShopSources;1770 string uID_ITShopTarget = mp.UID_ITShopTarget;1771 CS_0024_003C_003E8__locals4.fSql = session.SqlFormatter();1772 if (uID_ITShopSources.Length > CS_0024_003C_003E8__locals4.fSql.InClauseLimit)1773 {1774 throw new ViException("Maximum count of elements exceeded.", ExceptionRelevance.Technical);1775 }1776 string text = string.Join(", ", Enumerable.Select<string, string>((System.Collections.Generic.IEnumerable<string>)uID_ITShopSources, (Func<string, string>)((string uidProduct) => "(" + CS_0024_003C_003E8__locals4.fSql.FormatUidValue(uidProduct) + ")")));1777 string systemIdentifier = session.Database().SystemIdentifier;1778 global::_003C_003Ey__InlineArray2<object> buffer = default(global::_003C_003Ey__InlineArray2<object>);1779 global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray2<object>, object>(ref buffer, 0) = text;1780 global::_003CPrivateImplementationDetails_003E.InlineArrayElementRef<global::_003C_003Ey__InlineArray2<object>, object>(ref buffer, 1) = CS_0024_003C_003E8__locals4.fSql.FormatUidValue(uID_ITShopTarget);1781 string statement = SqlStrings.Format(systemIdentifier, "ITShopOrg_MoveProducts", global::_003CPrivateImplementationDetails_003E.InlineArrayAsReadOnlySpan<global::_003C_003Ey__InlineArray2<object>, object>(in buffer, 2));1782 val = session.Resolve<IDbSession>().SqlExecuteNonQueryInContextAsync(session, statement, ct).ConfigureAwait(false)1783 .GetAwaiter();1784 if (!val.IsCompleted)1785 {1786 num = (_003C_003E1__state = 0);1787 _003C_003Eu__1 = val;1788 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<int>, _003C_MoveProducts_003Ed__7>(ref val, ref this);1789 return;1790 }1791 }1792 else1793 {1794 val = _003C_003Eu__1;1795 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<int>);1796 num = (_003C_003E1__state = -1);1797 }1798 val.GetResult();1799 }1800 catch (System.Exception exception)1801 {1802 _003C_003E1__state = -2;1803 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1804 return;1805 }1806 _003C_003E1__state = -2;1807 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1808 }18091810 [DebuggerHidden]1811 private void SetStateMachine(IAsyncStateMachine stateMachine)1812 {1813 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1814 }1815 }18161817 [StructLayout((LayoutKind)3)]1818 [CompilerGenerated]1819 private struct _003C_MoveShop_003Ed__10 : IAsyncStateMachine1820 {1821 public int _003C_003E1__state;18221823 public AsyncTaskMethodBuilder _003C_003Et__builder;18241825 public MP mp;18261827 public ISession session;18281829 public IEntity entity;18301831 public CancellationToken ct;18321833 private ConfiguredTaskAwaiter<int> _003C_003Eu__1;18341835 private void MoveNext()1836 {1837 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)1838 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)1839 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)1840 //IL_007c: Unknown result type (might be due to invalid IL or missing references)1841 //IL_0087: Unknown result type (might be due to invalid IL or missing references)1842 //IL_008c: Unknown result type (might be due to invalid IL or missing references)1843 //IL_0090: Unknown result type (might be due to invalid IL or missing references)1844 //IL_0095: Unknown result type (might be due to invalid IL or missing references)1845 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)1846 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)1847 int num = _003C_003E1__state;1848 try1849 {1850 ConfiguredTaskAwaiter<int> val;1851 if (num != 0)1852 {1853 string uID_ITShopTarget = mp.UID_ITShopTarget;1854 ISqlFormatter sqlFormatter = session.SqlFormatter();1855 string statement = sqlFormatter.StoredProcedure(new SqlFunction("QER", "GITShop", "PITShop_ShopMove"), sqlFormatter.FormatUidValue(entity.GetValue<string>("UID_ITShopOrg")), sqlFormatter.FormatUidValue(uID_ITShopTarget));1856 val = session.Resolve<IDbSession>().SqlExecuteNonQueryInContextAsync(session, statement, ct).ConfigureAwait(false)1857 .GetAwaiter();1858 if (!val.IsCompleted)1859 {1860 num = (_003C_003E1__state = 0);1861 _003C_003Eu__1 = val;1862 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<int>, _003C_MoveShop_003Ed__10>(ref val, ref this);1863 return;1864 }1865 }1866 else1867 {1868 val = _003C_003Eu__1;1869 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<int>);1870 num = (_003C_003E1__state = -1);1871 }1872 val.GetResult();1873 }1874 catch (System.Exception exception)1875 {1876 _003C_003E1__state = -2;1877 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);1878 return;1879 }1880 _003C_003E1__state = -2;1881 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();1882 }18831884 [DebuggerHidden]1885 private void SetStateMachine(IAsyncStateMachine stateMachine)1886 {1887 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);1888 }1889 }18901891 public ITShopOrg()1892 {1893 Check("UID_ParentITShopOrg").AsExpensive<string>((Func<ISession, IEntity, IEntityWalker, string, CancellationToken, System.Threading.Tasks.Task<bool>>)Check_UID_ParentITShopOrg).DependsOn("UID_ITShopOrg");1894 RegisterExtendedMethod("MoveProductNode").As<string, MP>((Func<ISession, IEntity, string, CancellationToken, System.Threading.Tasks.Task<MP>>)MoveProductNode).OnSaving(MoveProductNode_OnSaving).Enabled()1895 .From("[IsLoaded]", "ITShopInfo")1896 .As<bool, string>((Func<bool, string, bool>)((bool b, string i) => b && string.Equals(i, "PR", (StringComparison)5)))1897 .Description("Method_ITShopOrg_MoveProductNode");1898 RegisterExtendedMethod("MoveProducts").As<string[], string, MP>((Func<ISession, IEntity, string[], string, CancellationToken, System.Threading.Tasks.Task<MP>>)MoveProducts).OnSaving(MoveProducts_OnSaving).Description("Method_ITShopOrg_MoveProducts");1899 RegisterExtendedMethod("MoveBoard").As<string, MP>((Func<ISession, IEntity, string, CancellationToken, System.Threading.Tasks.Task<MP>>)MoveBoard).OnSaving(MoveBoard_OnSaving).Enabled()1900 .From("[IsLoaded]", "ITShopInfo")1901 .As<bool, string>((Func<bool, string, bool>)((bool b, string i) => b && string.Equals(i, "BO", (StringComparison)5)))1902 .Description("Method_ITShopOrg_MoveBoard");1903 RegisterExtendedMethod("MoveShop").As<string, MP>((Func<ISession, IEntity, string, CancellationToken, System.Threading.Tasks.Task<MP>>)MoveShop).OnSaving(MoveShop_OnSaving).Enabled()1904 .From("[IsLoaded]", "ITShopInfo")1905 .As<bool, string>((Func<bool, string, bool>)((bool b, string i) => b && string.Equals(i, "SH", (StringComparison)5)))1906 .Description("Method_ITShopOrg_MoveShop");1907 RegisterExtendedMethod("DeleteBoard").As<object>((Func<ISession, IEntity, CancellationToken, System.Threading.Tasks.Task<object>>)DeleteBoard).OnSaving(DeleteBoard_OnSaving).Behavior(MethodBehavior.Overrideable)1908 .Enabled()1909 .From("[IsLoaded]", "ITShopInfo")1910 .As<bool, string>((Func<bool, string, bool>)((bool b, string i) => b && string.Equals(i, "BO", (StringComparison)5)))1911 .Description("Method_ITShopOrg_DeleteBoard");1912 }19131914 [AsyncStateMachine(typeof(_003CMoveProductNode_003Ed__2))]1915 private async System.Threading.Tasks.Task<MP?> MoveProductNode(ISession session, IEntity entity, string uidNewBoard, CancellationToken ct = default(CancellationToken))1916 {1917 //IL_0002: Unknown result type (might be due to invalid IL or missing references)1918 //IL_0007: Unknown result type (might be due to invalid IL or missing references)1919 //IL_0026: Unknown result type (might be due to invalid IL or missing references)1920 //IL_0028: Unknown result type (might be due to invalid IL or missing references)1921 MP mP = new MP1922 {1923 UID_ITShopTarget = uidNewBoard1924 };1925 if (!entity.IsInteractive)1926 {1927 return mP;1928 }1929 await _MoveProductNode(session, entity, mP, ct).ConfigureAwait(false);1930 return null;1931 }19321933 [AsyncStateMachine(typeof(_003CMoveProductNode_OnSaving_003Ed__3))]1934 private System.Threading.Tasks.Task MoveProductNode_OnSaving(IEntity entity, LogicReadWriteParameters parameter, MP? mp, CancellationToken ct = default(CancellationToken))1935 {1936 //IL_0002: Unknown result type (might be due to invalid IL or missing references)1937 //IL_0007: Unknown result type (might be due to invalid IL or missing references)1938 //IL_0026: Unknown result type (might be due to invalid IL or missing references)1939 //IL_0028: Unknown result type (might be due to invalid IL or missing references)1940 _003CMoveProductNode_OnSaving_003Ed__3 _003CMoveProductNode_OnSaving_003Ed__ = default(_003CMoveProductNode_OnSaving_003Ed__3);1941 _003CMoveProductNode_OnSaving_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();1942 _003CMoveProductNode_OnSaving_003Ed__.entity = entity;1943 _003CMoveProductNode_OnSaving_003Ed__.parameter = parameter;1944 _003CMoveProductNode_OnSaving_003Ed__.mp = mp;1945 _003CMoveProductNode_OnSaving_003Ed__.ct = ct;1946 _003CMoveProductNode_OnSaving_003Ed__._003C_003E1__state = -1;1947 ((AsyncTaskMethodBuilder)(ref _003CMoveProductNode_OnSaving_003Ed__._003C_003Et__builder)).Start<_003CMoveProductNode_OnSaving_003Ed__3>(ref _003CMoveProductNode_OnSaving_003Ed__);1948 return ((AsyncTaskMethodBuilder)(ref _003CMoveProductNode_OnSaving_003Ed__._003C_003Et__builder)).Task;1949 }19501951 [AsyncStateMachine(typeof(_003C_MoveProductNode_003Ed__4))]1952 private static System.Threading.Tasks.Task _MoveProductNode(ISession session, IEntity entity, MP mp, CancellationToken ct = default(CancellationToken))1953 {1954 //IL_0002: Unknown result type (might be due to invalid IL or missing references)1955 //IL_0007: Unknown result type (might be due to invalid IL or missing references)1956 //IL_0026: Unknown result type (might be due to invalid IL or missing references)1957 //IL_0027: Unknown result type (might be due to invalid IL or missing references)1958 _003C_MoveProductNode_003Ed__4 _003C_MoveProductNode_003Ed__ = default(_003C_MoveProductNode_003Ed__4);1959 _003C_MoveProductNode_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();1960 _003C_MoveProductNode_003Ed__.session = session;1961 _003C_MoveProductNode_003Ed__.entity = entity;1962 _003C_MoveProductNode_003Ed__.mp = mp;1963 _003C_MoveProductNode_003Ed__.ct = ct;1964 _003C_MoveProductNode_003Ed__._003C_003E1__state = -1;1965 ((AsyncTaskMethodBuilder)(ref _003C_MoveProductNode_003Ed__._003C_003Et__builder)).Start<_003C_MoveProductNode_003Ed__4>(ref _003C_MoveProductNode_003Ed__);1966 return ((AsyncTaskMethodBuilder)(ref _003C_MoveProductNode_003Ed__._003C_003Et__builder)).Task;1967 }19681969 [AsyncStateMachine(typeof(_003CMoveProducts_003Ed__5))]1970 private async System.Threading.Tasks.Task<MP?> MoveProducts(ISession session, IEntity entity, string[] uidProducts, string uidNewBoard, CancellationToken ct)1971 {1972 //IL_0002: Unknown result type (might be due to invalid IL or missing references)1973 //IL_0007: Unknown result type (might be due to invalid IL or missing references)1974 //IL_002f: Unknown result type (might be due to invalid IL or missing references)1975 //IL_0031: Unknown result type (might be due to invalid IL or missing references)1976 MP mP = new MP1977 {1978 UID_ITShopSources = uidProducts,1979 UID_ITShopTarget = uidNewBoard1980 };1981 if (!entity.IsInteractive)1982 {1983 return mP;1984 }1985 await _MoveProducts(session, entity, mP, ct).ConfigureAwait(false);1986 return null;1987 }19881989 [AsyncStateMachine(typeof(_003CMoveProducts_OnSaving_003Ed__6))]1990 private System.Threading.Tasks.Task MoveProducts_OnSaving(IEntity entity, LogicReadWriteParameters parameter, MP? mp, CancellationToken ct)1991 {1992 //IL_0002: Unknown result type (might be due to invalid IL or missing references)1993 //IL_0007: Unknown result type (might be due to invalid IL or missing references)1994 //IL_0026: Unknown result type (might be due to invalid IL or missing references)1995 //IL_0028: Unknown result type (might be due to invalid IL or missing references)1996 _003CMoveProducts_OnSaving_003Ed__6 _003CMoveProducts_OnSaving_003Ed__ = default(_003CMoveProducts_OnSaving_003Ed__6);1997 _003CMoveProducts_OnSaving_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();1998 _003CMoveProducts_OnSaving_003Ed__.entity = entity;1999 _003CMoveProducts_OnSaving_003Ed__.parameter = parameter;2000 _003CMoveProducts_OnSaving_003Ed__.mp = mp;2001 _003CMoveProducts_OnSaving_003Ed__.ct = ct;2002 _003CMoveProducts_OnSaving_003Ed__._003C_003E1__state = -1;2003 ((AsyncTaskMethodBuilder)(ref _003CMoveProducts_OnSaving_003Ed__._003C_003Et__builder)).Start<_003CMoveProducts_OnSaving_003Ed__6>(ref _003CMoveProducts_OnSaving_003Ed__);2004 return ((AsyncTaskMethodBuilder)(ref _003CMoveProducts_OnSaving_003Ed__._003C_003Et__builder)).Task;2005 }20062007 [AsyncStateMachine(typeof(_003C_MoveProducts_003Ed__7))]2008 private static System.Threading.Tasks.Task _MoveProducts(ISession session, IEntity entity, MP mp, CancellationToken ct)2009 {2010 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2011 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2012 //IL_001e: Unknown result type (might be due to invalid IL or missing references)2013 //IL_001f: Unknown result type (might be due to invalid IL or missing references)2014 _003C_MoveProducts_003Ed__7 _003C_MoveProducts_003Ed__ = default(_003C_MoveProducts_003Ed__7);2015 _003C_MoveProducts_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2016 _003C_MoveProducts_003Ed__.session = session;2017 _003C_MoveProducts_003Ed__.mp = mp;2018 _003C_MoveProducts_003Ed__.ct = ct;2019 _003C_MoveProducts_003Ed__._003C_003E1__state = -1;2020 ((AsyncTaskMethodBuilder)(ref _003C_MoveProducts_003Ed__._003C_003Et__builder)).Start<_003C_MoveProducts_003Ed__7>(ref _003C_MoveProducts_003Ed__);2021 return ((AsyncTaskMethodBuilder)(ref _003C_MoveProducts_003Ed__._003C_003Et__builder)).Task;2022 }20232024 [AsyncStateMachine(typeof(_003CMoveShop_003Ed__8))]2025 private async System.Threading.Tasks.Task<MP?> MoveShop(ISession session, IEntity entity, string uidNewCenter, CancellationToken ct)2026 {2027 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2028 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2029 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2030 //IL_0028: Unknown result type (might be due to invalid IL or missing references)2031 MP mP = new MP2032 {2033 UID_ITShopTarget = uidNewCenter2034 };2035 if (!entity.IsInteractive)2036 {2037 return mP;2038 }2039 await _MoveShop(session, entity, mP, ct).ConfigureAwait(false);2040 return null;2041 }20422043 [AsyncStateMachine(typeof(_003CMoveShop_OnSaving_003Ed__9))]2044 private System.Threading.Tasks.Task MoveShop_OnSaving(IEntity entity, LogicReadWriteParameters parameter, MP? mp, CancellationToken ct)2045 {2046 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2047 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2048 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2049 //IL_0028: Unknown result type (might be due to invalid IL or missing references)2050 _003CMoveShop_OnSaving_003Ed__9 _003CMoveShop_OnSaving_003Ed__ = default(_003CMoveShop_OnSaving_003Ed__9);2051 _003CMoveShop_OnSaving_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2052 _003CMoveShop_OnSaving_003Ed__.entity = entity;2053 _003CMoveShop_OnSaving_003Ed__.parameter = parameter;2054 _003CMoveShop_OnSaving_003Ed__.mp = mp;2055 _003CMoveShop_OnSaving_003Ed__.ct = ct;2056 _003CMoveShop_OnSaving_003Ed__._003C_003E1__state = -1;2057 ((AsyncTaskMethodBuilder)(ref _003CMoveShop_OnSaving_003Ed__._003C_003Et__builder)).Start<_003CMoveShop_OnSaving_003Ed__9>(ref _003CMoveShop_OnSaving_003Ed__);2058 return ((AsyncTaskMethodBuilder)(ref _003CMoveShop_OnSaving_003Ed__._003C_003Et__builder)).Task;2059 }20602061 [AsyncStateMachine(typeof(_003C_MoveShop_003Ed__10))]2062 private static System.Threading.Tasks.Task _MoveShop(ISession session, IEntity entity, MP mp, CancellationToken ct)2063 {2064 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2065 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2066 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2067 //IL_0027: Unknown result type (might be due to invalid IL or missing references)2068 _003C_MoveShop_003Ed__10 _003C_MoveShop_003Ed__ = default(_003C_MoveShop_003Ed__10);2069 _003C_MoveShop_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2070 _003C_MoveShop_003Ed__.session = session;2071 _003C_MoveShop_003Ed__.entity = entity;2072 _003C_MoveShop_003Ed__.mp = mp;2073 _003C_MoveShop_003Ed__.ct = ct;2074 _003C_MoveShop_003Ed__._003C_003E1__state = -1;2075 ((AsyncTaskMethodBuilder)(ref _003C_MoveShop_003Ed__._003C_003Et__builder)).Start<_003C_MoveShop_003Ed__10>(ref _003C_MoveShop_003Ed__);2076 return ((AsyncTaskMethodBuilder)(ref _003C_MoveShop_003Ed__._003C_003Et__builder)).Task;2077 }20782079 [AsyncStateMachine(typeof(_003CMoveBoard_003Ed__11))]2080 private async System.Threading.Tasks.Task<MP?> MoveBoard(ISession session, IEntity entity, string uidNewShop, CancellationToken ct)2081 {2082 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2083 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2084 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2085 //IL_0028: Unknown result type (might be due to invalid IL or missing references)2086 MP mP = new MP2087 {2088 UID_ITShopTarget = uidNewShop2089 };2090 if (!entity.IsInteractive)2091 {2092 return mP;2093 }2094 await _MoveBoard(session, entity, mP, ct).ConfigureAwait(false);2095 return null;2096 }20972098 [AsyncStateMachine(typeof(_003CMoveBoard_OnSaving_003Ed__12))]2099 private System.Threading.Tasks.Task MoveBoard_OnSaving(IEntity entity, LogicReadWriteParameters parameter, MP? mp, CancellationToken ct)2100 {2101 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2102 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2103 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2104 //IL_0028: Unknown result type (might be due to invalid IL or missing references)2105 _003CMoveBoard_OnSaving_003Ed__12 _003CMoveBoard_OnSaving_003Ed__ = default(_003CMoveBoard_OnSaving_003Ed__12);2106 _003CMoveBoard_OnSaving_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2107 _003CMoveBoard_OnSaving_003Ed__.entity = entity;2108 _003CMoveBoard_OnSaving_003Ed__.parameter = parameter;2109 _003CMoveBoard_OnSaving_003Ed__.mp = mp;2110 _003CMoveBoard_OnSaving_003Ed__.ct = ct;2111 _003CMoveBoard_OnSaving_003Ed__._003C_003E1__state = -1;2112 ((AsyncTaskMethodBuilder)(ref _003CMoveBoard_OnSaving_003Ed__._003C_003Et__builder)).Start<_003CMoveBoard_OnSaving_003Ed__12>(ref _003CMoveBoard_OnSaving_003Ed__);2113 return ((AsyncTaskMethodBuilder)(ref _003CMoveBoard_OnSaving_003Ed__._003C_003Et__builder)).Task;2114 }21152116 [AsyncStateMachine(typeof(_003C_MoveBoard_003Ed__13))]2117 private static System.Threading.Tasks.Task _MoveBoard(ISession session, IEntity entity, MP mp, CancellationToken ct)2118 {2119 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2120 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2121 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2122 //IL_0027: Unknown result type (might be due to invalid IL or missing references)2123 _003C_MoveBoard_003Ed__13 _003C_MoveBoard_003Ed__ = default(_003C_MoveBoard_003Ed__13);2124 _003C_MoveBoard_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2125 _003C_MoveBoard_003Ed__.session = session;2126 _003C_MoveBoard_003Ed__.entity = entity;2127 _003C_MoveBoard_003Ed__.mp = mp;2128 _003C_MoveBoard_003Ed__.ct = ct;2129 _003C_MoveBoard_003Ed__._003C_003E1__state = -1;2130 ((AsyncTaskMethodBuilder)(ref _003C_MoveBoard_003Ed__._003C_003Et__builder)).Start<_003C_MoveBoard_003Ed__13>(ref _003C_MoveBoard_003Ed__);2131 return ((AsyncTaskMethodBuilder)(ref _003C_MoveBoard_003Ed__._003C_003Et__builder)).Task;2132 }21332134 private System.Threading.Tasks.Task<object> DeleteBoard(ISession session, IEntity entity, CancellationToken ct)2135 {2136 entity.MarkForDeletion();2137 return NullTask<object>.Instance;2138 }21392140 [AsyncStateMachine(typeof(_003CDeleteBoard_OnSaving_003Ed__15))]2141 private System.Threading.Tasks.Task DeleteBoard_OnSaving(IEntity entity, LogicReadWriteParameters parameter, object o, CancellationToken ct)2142 {2143 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2144 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2145 //IL_002e: Unknown result type (might be due to invalid IL or missing references)2146 //IL_0030: Unknown result type (might be due to invalid IL or missing references)2147 _003CDeleteBoard_OnSaving_003Ed__15 _003CDeleteBoard_OnSaving_003Ed__ = default(_003CDeleteBoard_OnSaving_003Ed__15);2148 _003CDeleteBoard_OnSaving_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2149 _003CDeleteBoard_OnSaving_003Ed__._003C_003E4__this = this;2150 _003CDeleteBoard_OnSaving_003Ed__.entity = entity;2151 _003CDeleteBoard_OnSaving_003Ed__.parameter = parameter;2152 _003CDeleteBoard_OnSaving_003Ed__.o = o;2153 _003CDeleteBoard_OnSaving_003Ed__.ct = ct;2154 _003CDeleteBoard_OnSaving_003Ed__._003C_003E1__state = -1;2155 ((AsyncTaskMethodBuilder)(ref _003CDeleteBoard_OnSaving_003Ed__._003C_003Et__builder)).Start<_003CDeleteBoard_OnSaving_003Ed__15>(ref _003CDeleteBoard_OnSaving_003Ed__);2156 return ((AsyncTaskMethodBuilder)(ref _003CDeleteBoard_OnSaving_003Ed__._003C_003Et__builder)).Task;2157 }21582159 [AsyncStateMachine(typeof(_003CDeleteBoardDepedentObjects_003Ed__16))]2160 public static System.Threading.Tasks.Task DeleteBoardDepedentObjects(IEntity entity, LogicReadWriteParameters parameter, object o, CancellationToken ct)2161 {2162 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2163 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2164 //IL_001e: Unknown result type (might be due to invalid IL or missing references)2165 //IL_001f: Unknown result type (might be due to invalid IL or missing references)2166 _003CDeleteBoardDepedentObjects_003Ed__16 _003CDeleteBoardDepedentObjects_003Ed__ = default(_003CDeleteBoardDepedentObjects_003Ed__16);2167 _003CDeleteBoardDepedentObjects_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2168 _003CDeleteBoardDepedentObjects_003Ed__.entity = entity;2169 _003CDeleteBoardDepedentObjects_003Ed__.parameter = parameter;2170 _003CDeleteBoardDepedentObjects_003Ed__.ct = ct;2171 _003CDeleteBoardDepedentObjects_003Ed__._003C_003E1__state = -1;2172 ((AsyncTaskMethodBuilder)(ref _003CDeleteBoardDepedentObjects_003Ed__._003C_003Et__builder)).Start<_003CDeleteBoardDepedentObjects_003Ed__16>(ref _003CDeleteBoardDepedentObjects_003Ed__);2173 return ((AsyncTaskMethodBuilder)(ref _003CDeleteBoardDepedentObjects_003Ed__._003C_003Et__builder)).Task;2174 }21752176 [AsyncStateMachine(typeof(_003COnSavingAsync_003Ed__17))]2177 public override async System.Threading.Tasks.Task<Diff> OnSavingAsync(IEntity entity, LogicReadWriteParameters parameters, CancellationToken cancellationToken)2178 {2179 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2180 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2181 //IL_0026: Unknown result type (might be due to invalid IL or missing references)2182 //IL_0027: Unknown result type (might be due to invalid IL or missing references)2183 if (!parameters.Session.User().IsAdministrativeAccount && !base.IsInternalProcess)2184 {2185 LogicParameter lp = new LogicParameter(entity, parameters, cancellationToken);2186 if (!entity.IsLoaded || entity.IsDeleted() || entity.Columns["UID_ParentITShopOrg"].IsChanged)2187 {2188 await CheckAutoChildOrg(lp).ConfigureAwait(false);2189 }2190 if (entity.GetValue<string>("ITShopInfo").ToUpperInvariant() == "CU")2191 {2192 await CheckCustomerNode(lp).ConfigureAwait(false);2193 }2194 if (entity.Columns.Contains("UID_OrgBoardTemplate") && (entity.Columns["ITShopInfo"].IsChanged || entity.Columns["UID_OrgBoardTemplate"].IsChanged) && entity.GetValue<string>("ITShopInfo").Length > 0 && entity.GetValue<string>("UID_OrgBoardTemplate").Length > 0)2195 {2196 await ValidTemplateCheck(lp).ConfigureAwait(false);2197 }2198 if (entity.IsLoaded && !entity.IsToDelete() && entity.Columns.ChangedAny("UID_ParentITShopOrg", "ITShopInfo") && entity.Columns["ITShopInfo"].GetOldValue<string>().ToUpperInvariant() == "BO")2199 {2200 throw new ViException(2133428, ExceptionRelevance.EndUser);2201 }2202 if (!entity.IsLoaded || entity.Columns["UID_ParentITShopOrg"].IsChanged || entity.Columns["ITShopInfo"].IsChanged)2203 {2204 await ValidITShopParentCheck(lp).ConfigureAwait(false);2205 }2206 }2207 return await base.OnSavingAsync(entity, parameters, cancellationToken).ConfigureAwait(false);2208 }22092210 private static System.Threading.Tasks.Task CheckAutoChildOrg(LogicParameter lp)2211 {2212 if (lp.Entity == null || lp.Session.User().IsAdministrativeAccount)2213 {2214 return NullTask.Instance;2215 }2216 if (lp.Entity.GetValue<string>("ITShopInfo").ToUpperInvariant() == "PR")2217 {2218 throw new ViException(2133006, ExceptionRelevance.EndUser);2219 }2220 return NullTask.Instance;2221 }22222223 [AsyncStateMachine(typeof(_003CCheckCustomerNode_003Ed__19))]2224 private static System.Threading.Tasks.Task CheckCustomerNode(LogicParameter lp)2225 {2226 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2227 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2228 _003CCheckCustomerNode_003Ed__19 _003CCheckCustomerNode_003Ed__ = default(_003CCheckCustomerNode_003Ed__19);2229 _003CCheckCustomerNode_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2230 _003CCheckCustomerNode_003Ed__.lp = lp;2231 _003CCheckCustomerNode_003Ed__._003C_003E1__state = -1;2232 ((AsyncTaskMethodBuilder)(ref _003CCheckCustomerNode_003Ed__._003C_003Et__builder)).Start<_003CCheckCustomerNode_003Ed__19>(ref _003CCheckCustomerNode_003Ed__);2233 return ((AsyncTaskMethodBuilder)(ref _003CCheckCustomerNode_003Ed__._003C_003Et__builder)).Task;2234 }22352236 [AsyncStateMachine(typeof(_003CValidTemplateCheck_003Ed__20))]2237 private static System.Threading.Tasks.Task ValidTemplateCheck(LogicParameter lp)2238 {2239 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2240 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2241 _003CValidTemplateCheck_003Ed__20 _003CValidTemplateCheck_003Ed__ = default(_003CValidTemplateCheck_003Ed__20);2242 _003CValidTemplateCheck_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2243 _003CValidTemplateCheck_003Ed__.lp = lp;2244 _003CValidTemplateCheck_003Ed__._003C_003E1__state = -1;2245 ((AsyncTaskMethodBuilder)(ref _003CValidTemplateCheck_003Ed__._003C_003Et__builder)).Start<_003CValidTemplateCheck_003Ed__20>(ref _003CValidTemplateCheck_003Ed__);2246 return ((AsyncTaskMethodBuilder)(ref _003CValidTemplateCheck_003Ed__._003C_003Et__builder)).Task;2247 }22482249 [AsyncStateMachine(typeof(_003CValidITShopParentCheck_003Ed__21))]2250 private static System.Threading.Tasks.Task ValidITShopParentCheck(LogicParameter lp)2251 {2252 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2253 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2254 _003CValidITShopParentCheck_003Ed__21 _003CValidITShopParentCheck_003Ed__ = default(_003CValidITShopParentCheck_003Ed__21);2255 _003CValidITShopParentCheck_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();2256 _003CValidITShopParentCheck_003Ed__.lp = lp;2257 _003CValidITShopParentCheck_003Ed__._003C_003E1__state = -1;2258 ((AsyncTaskMethodBuilder)(ref _003CValidITShopParentCheck_003Ed__._003C_003Et__builder)).Start<_003CValidITShopParentCheck_003Ed__21>(ref _003CValidITShopParentCheck_003Ed__);2259 return ((AsyncTaskMethodBuilder)(ref _003CValidITShopParentCheck_003Ed__._003C_003Et__builder)).Task;2260 }22612262 [AsyncStateMachine(typeof(_003CCheck_UID_ParentITShopOrg_003Ed__22))]2263 private async System.Threading.Tasks.Task<bool> Check_UID_ParentITShopOrg(ISession session, IEntity entity, IEntityWalker walker, string uidParentITShopOrg, CancellationToken ct)2264 {2265 //IL_0002: Unknown result type (might be due to invalid IL or missing references)2266 //IL_0007: Unknown result type (might be due to invalid IL or missing references)2267 //IL_0027: Unknown result type (might be due to invalid IL or missing references)2268 //IL_0029: Unknown result type (might be due to invalid IL or missing references)2269 await OrgBaseEntityLogic.ValidParentCheck(session, entity, uidParentITShopOrg, "UID_ITShopOrg", "UID_ParentITShopOrg", "ITShopOrg", checkOrgRoot: false, "", ct).ConfigureAwait(false);2270 return true;2271 }2272}2273