public ActionResult Edit(FormCollection collection) { string str1 = this.Request.QueryString["id"]; string str2 = this.Request.QueryString["typeid"]; RoadFlow.Platform.AppLibrary appLibrary = new RoadFlow.Platform.AppLibrary(); RoadFlow.Data.Model.AppLibrary model1 = (RoadFlow.Data.Model.AppLibrary)null; if (str1.IsGuid()) { model1 = appLibrary.Get(str1.ToGuid(), false); } bool flag1 = !str1.IsGuid(); string oldXML = string.Empty; int index1; if (model1 == null) { model1 = new RoadFlow.Data.Model.AppLibrary(); model1.ID = Guid.NewGuid(); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__0 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__0 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "TypeOptions", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj1 = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__0.Target((CallSite)AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__0, this.ViewBag, new RoadFlow.Platform.AppLibrary().GetTypeOptions(str2)); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__1 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__1 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "OpenOptions", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj2 = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__1.Target((CallSite)AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__1, this.ViewBag, new RoadFlow.Platform.Dictionary().GetOptionsByCode("appopenmodel", RoadFlow.Platform.Dictionary.OptionValueField.Value, "", "", true)); } else { oldXML = model1.Serialize(); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__2 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__2 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "TypeOptions", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj1 = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__2.Target((CallSite)AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__2, this.ViewBag, new RoadFlow.Platform.AppLibrary().GetTypeOptions(model1.Type.ToString())); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__3 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__3 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "OpenOptions", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field Func <CallSite, object, string, object> target = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__3.Target; // ISSUE: reference to a compiler-generated field CallSite <Func <CallSite, object, string, object> > p3 = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__3; object viewBag = this.ViewBag; RoadFlow.Platform.Dictionary dictionary = new RoadFlow.Platform.Dictionary(); string code = "appopenmodel"; int num1 = 3; index1 = model1.OpenMode; string str3 = index1.ToString(); string attr = ""; int num2 = 1; string optionsByCode = dictionary.GetOptionsByCode(code, (RoadFlow.Platform.Dictionary.OptionValueField)num1, str3, attr, num2 != 0); object obj2 = target((CallSite)p3, viewBag, optionsByCode); } if (collection != null) { string str3 = collection["title"]; string str4 = collection["address"]; string str5 = collection["openModel"]; string str6 = collection["width"]; string str7 = collection["height"]; string str8 = collection["Params"]; string str9 = collection["Note"]; string str10 = collection["Ico"]; string str11 = collection["IcoColor"]; string str12 = collection["type"]; model1.Address = str4.Trim(); model1.Height = str7.ToIntOrNull(); model1.Note = str9; model1.OpenMode = str5.ToInt(); model1.Params = str8; model1.Title = str3; model1.Type = str12.ToGuid(); model1.Width = str6.ToIntOrNull(); model1.Ico = str10.IsNullOrEmpty() ? (string)null : str10; model1.Color = str11.IsNullOrEmpty() ? (string)null : str11.Trim(); string str13 = this.Request.QueryString["pagesize"]; string str14 = this.Request.QueryString["pagenumber"]; using (TransactionScope transactionScope = new TransactionScope()) { if (flag1) { appLibrary.Add(model1); RoadFlow.Platform.Log.Add("添加了应用程序库", model1.Serialize(), RoadFlow.Platform.Log.Types.菜单权限, "", "", (RoadFlow.Data.Model.Users)null); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__4 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__4 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "Script", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__4.Target((CallSite)AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__4, this.ViewBag, "alert('添加成功!');new RoadUI.Window().reloadOpener(undefined,undefined,\"query('" + str13 + "','" + str14 + "')\");new RoadUI.Window().close();"); } else { appLibrary.Update(model1); RoadFlow.Platform.Log.Add("修改了应用程序库", "", RoadFlow.Platform.Log.Types.菜单权限, oldXML, model1.Serialize(), (RoadFlow.Data.Model.Users)null); // ISSUE: reference to a compiler-generated field if (AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__5 == null) { // ISSUE: reference to a compiler-generated field AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__5 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.SetMember(CSharpBinderFlags.None, "Script", typeof(AppLibraryController), (IEnumerable <CSharpArgumentInfo>) new CSharpArgumentInfo[2] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string)null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, (string)null) })); } // ISSUE: reference to a compiler-generated field // ISSUE: reference to a compiler-generated field object obj = AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__5.Target((CallSite)AppLibraryController.\u003C\u003Eo__5.\u003C\u003Ep__5, this.ViewBag, "alert('修改成功!');new RoadUI.Window().reloadOpener(undefined,undefined,\"query('" + str13 + "','" + str14 + "')\");new RoadUI.Window().close();"); } RoadFlow.Platform.AppLibraryButtons1 appLibraryButtons1_1 = new RoadFlow.Platform.AppLibraryButtons1(); string str15 = this.Request.Form["buttonindex"] ?? ""; List <RoadFlow.Data.Model.AppLibraryButtons1> allByAppId = appLibraryButtons1_1.GetAllByAppID(model1.ID); List <RoadFlow.Data.Model.AppLibraryButtons1> appLibraryButtons1List = new List <RoadFlow.Data.Model.AppLibraryButtons1>(); char[] chArray = new char[1] { ',' }; string[] strArray = str15.Split(chArray); for (index1 = 0; index1 < strArray.Length; ++index1) { string index = strArray[index1]; string str16 = this.Request.Form["button_" + index]; string str17 = this.Request.Form["buttonname_" + index]; string str18 = this.Request.Form["buttonevents_" + index]; string str19 = this.Request.Form["buttonico_" + index]; string str20 = this.Request.Form["showtype_" + index]; string str21 = this.Request.Form["buttonsort_" + index]; if (!str17.IsNullOrEmpty() && !str18.IsNullOrEmpty()) { RoadFlow.Data.Model.AppLibraryButtons1 model2 = allByAppId.Find((Predicate <RoadFlow.Data.Model.AppLibraryButtons1>)(p => p.ID == index.ToGuid())); bool flag2 = false; if (model2 == null) { flag2 = true; model2 = new RoadFlow.Data.Model.AppLibraryButtons1(); model2.ID = Guid.NewGuid(); } else { appLibraryButtons1List.Add(model2); } model2.AppLibraryID = model1.ID; if (str16.IsGuid()) { model2.ButtonID = new Guid?(str16.ToGuid()); } model2.Events = str18; model2.Ico = str19; model2.Name = str17.Trim1(); model2.Sort = str21.ToInt(0); model2.ShowType = str20.ToInt(0); model2.Type = 0; if (flag2) { appLibraryButtons1_1.Add(model2); } else { appLibraryButtons1_1.Update(model2); } } } foreach (RoadFlow.Data.Model.AppLibraryButtons1 appLibraryButtons1_2 in allByAppId) { RoadFlow.Data.Model.AppLibraryButtons1 sub = appLibraryButtons1_2; if (appLibraryButtons1List.Find((Predicate <RoadFlow.Data.Model.AppLibraryButtons1>)(p => p.ID == sub.ID)) == null) { appLibraryButtons1_1.Delete(sub.ID); } } transactionScope.Complete(); appLibraryButtons1_1.ClearCache(); } new RoadFlow.Platform.Menu().ClearAllDataTableCache(); new RoadFlow.Platform.WorkFlow().ClearStartFlowsCache(); appLibrary.ClearCache(); } return((ActionResult)this.View((object)model1)); }