Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     WMCreateContent d = new WMCreateContent(VisitorSegment.ContentClassId, false, false);
     return new NextCall(d, onComplete);
 }
Esempio n. 4
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     WMCreateContent d = new WMCreateContent(ProductCategory.ContentClassId, false, false);
     return new NextCall(d, onComplete);
 }
Esempio n. 5
0
 protected void btnNewPaymentMethod_Click(object sender, EventArgs e)
 {
     WMCreateContent createContentWM = new WMCreateContent(PaymentMethod.ContentClassId);
     //createContentWM.C
     WAF.Engine.Workflow.Runtime.WorkflowInfo wi = WAFContext.Session.StartWorkflowMethod(createContentWM);
     wi.InBackgroundMode = false;
 }
Esempio n. 6
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     int baseClassId = this.GetSecureInput<int>();
     WMCreateContent diag = new WMCreateContent(baseClassId, false);
     return new NextCall(diag, onCompleteCreate);
 }
Esempio n. 7
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     WorkflowMethod next = new WMCreateContent(GetSecureInput<UniqueList<int>>(), true, false);
     return new NextCall(next, onComplete);
 }
Esempio n. 8
0
 protected void btnAddManufacturer_Click(object sender, EventArgs e)
 {
     WMCreateContent createContentWM = new WMCreateContent(Manufacturer.ContentClassId);
     WAF.Engine.Workflow.Runtime.WorkflowInfo wi = WAFContext.Session.StartWorkflowMethod(createContentWM);
     wi.InBackgroundMode = false;
 }
Esempio n. 9
0
 public override NextCall Invoke(WorkflowMethod invoker)
 {
     int baseClassId = MVCTemplate.ContentClassId;
     WMCreateContent diag = new WMCreateContent(baseClassId, false);
     return new NextCall(diag, onCompleteCreate);
 }