private void EnvoyerDemandeEtapeprecedente(List <int> Listid) { ServiceWorkflow.WorkflowClient clientWkf = new ServiceWorkflow.WorkflowClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Workflow")); clientWkf.ExecuterActionSurDemandeParPkIDLigneCompleted += (wkf, wsen) => { if (null != wsen && wsen.Cancelled) { Message.ShowError("Echec de validation", Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); return; } if (string.Empty != wsen.Result && wsen.Result.StartsWith("ERR")) { Message.ShowError("Echec de validation", Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); return; } else { Message.ShowInformation("Validation effectuée avec succès", Langue.lbl_Menu); this.DialogResult = true; } }; clientWkf.ExecuterActionSurDemandeParPkIDLigneAsync(Listid, EtapeActuelle, SessionObject.Enumere.REJETER, UserConnecte.matricule, string.Empty); }
private void RejeterDemandeEtapePrecedente(List <int> Listid, ServiceWorkflow.WorkflowClient clientWkf, Galatee.Silverlight.ServiceAccueil.AcceuilServiceClient client) { clientWkf.ExecuterActionSurDemandeParPkIDLigneCompleted += (wkf, wsen) => { if (null != wsen && wsen.Cancelled) { Message.ShowError("Echec de sortie materiel", Langue.lbl_Menu); return; } if (string.Empty != wsen.Result && wsen.Result.StartsWith("ERR")) { Message.ShowError("Echec de sortie materiel", Langue.lbl_Menu); return; } else { //Message.ShowInformation("Sortie materiel effectuée", Langue.lbl_Menu); this.DialogResult = true; } }; clientWkf.ExecuterActionSurDemandeParPkIDLigneAsync(Listid, EtapeActuelle, SessionObject.Enumere.REJETER, UserConnecte.matricule, string.Empty); }
private void EnvoyerDemandeEtapeSuivante(List <int> Listid) { ServiceWorkflow.WorkflowClient clientWkf = new ServiceWorkflow.WorkflowClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Workflow")); clientWkf.ExecuterActionSurDemandeParPkIDLigneCompleted += (wkf, wsen) => { if (null != wsen && wsen.Cancelled) { Message.ShowError("Echec de sortie materiel", Langue.lbl_Menu); return; } if (string.Empty != wsen.Result && wsen.Result.StartsWith("ERR")) { Message.ShowError("Echec de sortie materiel", Langue.lbl_Menu); return; } else { //Message.ShowInformation("Sortie materiel effectuée", Langue.lbl_Menu); this.DialogResult = true; } }; clientWkf.ExecuterActionSurDemandeParPkIDLigneAsync(Listid, EtapeActuelle, SessionObject.Enumere.TRANSMETTRE, UserConnecte.matricule, string.Empty); }
private void RejeterDemandeEtapePrecedente(List <int> Listid) { ServiceWorkflow.WorkflowClient clientWkf = new ServiceWorkflow.WorkflowClient(Utility.Protocole(), Utility.EndPoint("Workflow")); clientWkf.ExecuterActionSurDemandeParPkIDLigneCompleted += (wkf, wsen) => { if (null != wsen && wsen.Cancelled) { Message.ShowError("Echec de sortie materiel", Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); return; } if (string.Empty != wsen.Result && wsen.Result.StartsWith("ERR")) { Message.ShowError("Echec de sortie materiel", Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); return; } else { this.DialogResult = true; } }; clientWkf.ExecuterActionSurDemandeParPkIDLigneAsync(Listid, EtapeActuel, ServiceWorkflow.CODEACTION.TRANSMETTRE, UserConnecte.matricule, string.Empty); }