public Protocols.ToolkitResultProtocol AddModuleToCR(System.Int32 fixObjid, System.String fileName) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Quality.QualityToolkit toolkit = new FChoice.Toolkits.Clarify.Quality.QualityToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.AddModuleToCR(fixObjid, fileName) ); }
public Protocols.ToolkitResultProtocol AddModuleToCR(Protocols.Quality.AddModuleToCRSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Quality.QualityToolkit toolkit = new FChoice.Toolkits.Clarify.Quality.QualityToolkit( session ); FChoice.Toolkits.Clarify.Quality.AddModuleToCRSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Quality.AddModuleToCRSetup(setupParam.FixObjid, setupParam.FileName); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.FixObjid = setupParam.FixObjid; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.FileName = setupParam.FileName; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.FileRevision = setupParam.FileRevision; } return new Protocols.ToolkitResultProtocol( toolkit.AddModuleToCR(setup) ); }