• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# WorkflowMethod类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Invoke

 public override NextCall Invoke(WorkflowMethod invoker)
 {
     WFContext.Info.InBackgroundMode = false;
     string t;
     if (_selected.Count == 1) {
         t = Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundDeleteContent") + " " + Session.GetContent(_selected[0]).Name + "\"?";
     } else {
         t = Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundDeleteThese") + " " + _selected.Count + " " + Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundContens");
     }
     WMConfirmQuestion q = new WMConfirmQuestion(t);
     return new NextCall(q, onComplete);
 }
开发者ID:kyvkri,项目名称:mgone,代码行数:12,代码来源:Default.aspx.cs


示例17: onCompleteCreate

 NextCall onCompleteCreate(WorkflowMethod invoker)
 {
     WMCreateContent diag = (WMCreateContent)invoker;
     _key = diag.CreatedContentKey;
     MemDefContentClass classDef = Engine.Definition.ContentClass[_key.ClassId];
     WMEditContent ec;
     if (classDef.AllParentsIncThis.Contains(SMS.ContentClassId)) {
         ec = new WMEditContent(_key.CreateCKeyNLR(), true, false, false, false, true, false, false, "Send SMS", 250, 500);
     } else {
         ec = new WMEditContent(_key.CreateCKeyNLR(), true, false, false, false, true, false, false, "Send MMS", 450, 760);
     }
     return new NextCall(ec, onCompleteEdit, onCompleteCancel);
 }
开发者ID:kyvkri,项目名称:MG,代码行数:13,代码来源:Default.aspx.cs


示例18: Continue

 NextCall Continue(WorkflowMethod invoker)
 {
     WFContext.InBackgroundMode = false;
     WFContext.EstimateProgress = true;
     WFContext.Caption = "Preparing for update...";
     _updateScript = new SystemUpdateScript(WAFContext.PathFromRootToAppFolder, Engine.Dao.DbProvider, true);
     _updateScript.ProgressUpdate += updateScript_ProgressUpdate;
     if (_updateScript.Update()) {
         return null; // done
     } else {
         throw new WDCancelException();
     }
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:13,代码来源:update.cs


示例19: onComplete

 //NextCall onTypeSelected(WorkflowMethod invoker) {
 //    WMCreateContent cc = (WMCreateContent)invoker;
 //    CreatedContent = cc.CreatedContentKey;
 //    var d = new WMFindContent(ListSelectionMode.Single, null, new UniqueList<int>(SegmentDimension.ContentClassId), true, "Please select which dimension the segment belongs to:", "Select", null, false, "");
 //    return new NextCall(d, onComplete);
 //}
 NextCall onComplete(WorkflowMethod invoker)
 {
     WMCreateContent cc = (WMCreateContent)invoker;
     CreatedContent = cc.CreatedContentKey;
     VisitorSegment segment = Session.GetContent<VisitorSegment>(CreatedContent);
     List<SegmentationSettings> settings = WFContext.Session.Query<SegmentationSettings>().Where(AqlContent.SiteId == WFContext.Session.SiteId).Where(AqlSegmentationSettings.LCID == WFContext.Session.LCID).Where(AqlSegmentationSettings.IsDerived == false).Execute();
     if (settings.Count > 0) {
         SegmentationSettings root = settings[0];
         segment.SegmentSettings.Set(root.NodeId);
         segment.UpdateChanges();
     }
     WFContext.Edit(CreatedContent);
     return null;// new NextCall(editWM);
 }
开发者ID:kyvkri,项目名称:mg-git,代码行数:20,代码来源:Segmentation.aspx.cs


示例20: onCompleteEdit

 NextCall onCompleteEdit(WorkflowMethod invoker)
 {
     MessageBase mb = WFContext.Session.GetContent<MessageBase>(_key);
     mb.Status = MessageStatus.Outbox;
     mb.UpdateChanges();
     WFContext.RefreshDesktop();
     Info.InBackgroundMode = false;
     try {
         Messaging.SendMessagesInOutbox(true);
         Thread.Sleep(1000);
     } catch(Exception err) {
         Session.Notify(DialogueIcon.Warning, "Unable to send message", err.Message);
     }
     return null;
 }
开发者ID:kyvkri,项目名称:mgone,代码行数:15,代码来源:Default.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# WorkflowRuntime类代码示例发布时间:2022-05-24
下一篇:
C# WorkflowInvoker类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap