public Protocols.ToolkitResultProtocol CheckClearQualityTransition(Protocols.Quality.CheckClearQualityTransitionSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Quality.QualityToolkit toolkit = new FChoice.Toolkits.Clarify.Quality.QualityToolkit( session ); FChoice.Toolkits.Clarify.Quality.CheckClearQualityTransitionSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Quality.CheckClearQualityTransitionSetup(setupParam.OldCondition, setupParam.OldStatus, setupParam.NewCondition, setupParam.NewStatus, setupParam.UserName); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.OldCondition = setupParam.OldCondition; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.OldStatus = setupParam.OldStatus; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.NewCondition = setupParam.NewCondition; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.NewStatus = setupParam.NewStatus; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } return new Protocols.ToolkitResultProtocol( toolkit.CheckClearQualityTransition(setup) ); }
public Protocols.ToolkitResultProtocol CheckClearQualityTransition(System.String oldCondition, System.String oldStatus, System.String newCondition, System.String newStatus, System.String userName) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Quality.QualityToolkit toolkit = new FChoice.Toolkits.Clarify.Quality.QualityToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CheckClearQualityTransition(oldCondition, oldStatus, newCondition, newStatus, userName) ); }