当前位置: 首页>>代码示例>>C#>>正文


C# WorkflowMethod类代码示例

本文整理汇总了C#中WorkflowMethod的典型用法代码示例。如果您正苦于以下问题:C# WorkflowMethod类的具体用法?C# WorkflowMethod怎么用?C# WorkflowMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WorkflowMethod类属于命名空间,在下文中一共展示了WorkflowMethod类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     _lcid = (int)GetSecureInput<object[]>()[0];
     _path = (string)GetSecureInput<object[]>()[1];
     var upload = new WMUploadFiles("Upload flag icon, format: PNG 16x11px", false);
     return new NextCall(upload, onComplete);
 }
开发者ID:kyvkri,项目名称:MG,代码行数:7,代码来源:Cultures.aspx.cs

示例2: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     string url = GetUnsecureInput<string>("url");
     url = url.Replace("###", "_");
     WMContentLinks diag = new WMContentLinks(WAFRuntime.Engine.SystemSession.GetContents<UrlStatus>(AqlUrlStatus.Name == url)[0].Key.CreateCKeyNLR());
     return new NextCall(diag);
 }
开发者ID:kyvkri,项目名称:MG,代码行数:7,代码来源:Default.aspx.cs

示例3: onComplete

 NextCall onComplete(WorkflowMethod invoker)
 {
     var f = (WMUploadFiles)(invoker);
     string destination = _path + "flg" + _lcid + ".png";
     if (WAFRuntime.FileSystem.FileExists(destination)) WAFRuntime.FileSystem.FileDelete(destination);
     WAFRuntime.FileSystem.FileMove(f.GetUploadedFiles().First(), destination);
     return null;
 }
开发者ID:kyvkri,项目名称:MG,代码行数:8,代码来源:Cultures.aspx.cs

示例4: onComplete

 NextCall onComplete(WorkflowMethod invoker)
 {
     var wm = invoker as WMMergeText;
     _c.ResultXml = wm.Result;
     _c.SelectedAction = ComparisonAction.Resolved;
     WFContext.RefreshStartupWindow();
     return null;
 }
开发者ID:kyvkri,项目名称:mgone,代码行数:8,代码来源:Default.aspx.cs

示例5: onComplete

 NextCall onComplete(WorkflowMethod invoker)
 {
     WMCreateContent d = (WMCreateContent)invoker;
        // WFContext.Edit(d.CreatedContentKey);
     WMEditContent editWM = new WMEditContent(d.CreatedContentKey, true);
     //WFContext.RefreshDesktop();
     return new NextCall(editWM);
 }
开发者ID:kyvkri,项目名称:MG,代码行数:8,代码来源:ProductCategoriesPage.aspx.cs

示例6: onComplete

 NextCall onComplete(WorkflowMethod invoker)
 {
     foreach (CKeyNLR key in _selected) {
         Session.DeleteNode(key.NodeId);
     }
     Session.Notify("Deleted " + _selected.Count + " content" + (_selected.Count > 0 ? "s" : "") + ". ");
     WFContext.RefreshStartupRequest();
     return null;
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:9,代码来源:Default.aspx.cs

示例7: onCompleteCreate

 NextCall onCompleteCreate(WorkflowMethod invoker)
 {
     WMCreateContent diag = (WMCreateContent)invoker;
     _key = diag.CreatedContentKey;
     MemDefContentClass classDef = Engine.Definition.ContentClass[_key.ClassId];
     WMEditContent ec;
     ec = new WMEditContent(_key.CreateCKeyNLR(), true, true, false, false, true, false, false, "Create", 400, 700);
     return new NextCall(ec, onCompleteEdit, onCompleteCancel);
 }
开发者ID:kyvkri,项目名称:MG,代码行数:9,代码来源:MVCTemplates.aspx.cs

示例8: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     foreach (CKeyNLR key in _keys) {
         Session.DeleteNode(key.NodeId);
     }
     Session.Notify(_keys.Count + " "+ Local.Text("Web.WAF.Edit.User.UsersUsersDeleted")+ " ");
     WFContext.RefreshStartupWindow();
     return null;
 }
开发者ID:kyvkri,项目名称:mgone,代码行数:9,代码来源:Users.aspx.cs

示例9: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     foreach (CKeyNLR key in _keys) {
         Session.DeleteNode(key.NodeId);
     }
     Session.Notify(_keys.Count + " user(s) deleted. ");
     WFContext.RefreshStartupWindow();
     return null;
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:9,代码来源:Users.aspx.cs

示例10: onComplete

    NextCall onComplete(WorkflowMethod invoker)
    {
        foreach (CKeyNLR key in _selected) {
            Session.DeleteNode(key.NodeId);
        }

        Session.Notify(Local.Text("Web.WAF.Dialogues.Main.FindContentInfoNotifyDeleted") + " " + _selected.Count + " " + Local.Text("Web.WAF.Dialogues.Main.FindContentInfoNotifyContent") + (_selected.Count > 0 ? "s" : "") + ". ");
        WFContext.RefreshStartupRequest();
        return null;
    }
开发者ID:kyvkri,项目名称:mgone,代码行数:10,代码来源:Default.aspx.cs

示例11: onComplete

 NextCall onComplete(WorkflowMethod invoker)
 {
     WMQuestion q = (WMQuestion)invoker;
     if (q.Answer == ExchangeResult.Ok) {
         Session.SendExchangeValue(_exchangedId, ExchangeResult.Ok, new object[] { _selected, q.AnswerCustomIndex == 1 }, true);
     } else {
         throw new WDCancelException();
     }
     return null;
 }
开发者ID:kyvkri,项目名称:MG,代码行数:10,代码来源:Default.aspx.cs

示例12: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     string selectedKeysString = GetUnsecureInput<string>("SelectedValues");
     UniqueList<CKeyNLR> selectedContents = new UniqueList<CKeyNLR>();
     foreach (string keyString in selectedKeysString.Split('|')) {
         if (keyString != null && keyString.Length > 0) selectedContents.Add(new CKeyNLR(keyString));
     }
     WMContentTreeView.SetDefaultSelectedContents(selectedContents, RelHierarchical.RelationId, Session.CompleteKeyC(Session.SiteId), false);
     WMCreateContent diag = new WMCreateContent(0, false);
     return new NextCall(diag, onComplete);
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:11,代码来源:Default.aspx.cs

示例13: onCompleteEdit

 NextCall onCompleteEdit(WorkflowMethod invoker)
 {
     MessageBase mb = WFContext.Session.GetContent<MessageBase>(_key);
     mb.Status = MessageStatus.Outbox;
     mb.UpdateChanges();
     WFContext.RefreshDesktop();
     Info.InBackgroundMode = false;
     Messaging.SendMessagesInOutbox(true);
     Thread.Sleep(1000);
     return null;
 }
开发者ID:kyvkri,项目名称:MG,代码行数:11,代码来源:Default.aspx.cs

示例14: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     WFContext.Info.InBackgroundMode = false;
     string t;
     if (_selected.Count == 1) {
         t = "Deleted the content \"" + Session.GetContent(_selected[0]).Name + "\"?";
     } else {
         t = "Deleted these " + _selected.Count + " contents?";
     }
     WMConfirmQuestion q = new WMConfirmQuestion(t);
     return new NextCall(q, onComplete);
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:12,代码来源:Default.aspx.cs

示例15: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     MemDefContentClass baseClassDef = WAFRuntime.Definitions.ContentClass[DiscountBase.ContentClassId];
     UniqueList<int> classesToInclude = new UniqueList<int>();
     foreach (int classId in baseClassDef.AllDescendantsIncThis) {
         if (classId != DiscountBase.ContentClassId) {
             classesToInclude.Add(classId);
         }
     }
     WMCreateContent d = new WMCreateContent(classesToInclude, false, false);
     return new NextCall(d, onComplete);
 }
开发者ID:kyvkri,项目名称:mgone,代码行数:12,代码来源:DiscountsPage.aspx.cs


注:本文中的WorkflowMethod类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。