public Protocols.ToolkitResultProtocol CreatePartRevision(Protocols.Interfaces.CreatePartRevisionSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.CreatePartRevisionSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.CreatePartRevisionSetup(setupParam.PartNumber, setupParam.PartDomain, setupParam.PartRevision); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.PartNumber = setupParam.PartNumber; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.PartDomain = setupParam.PartDomain; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.PartRevision = setupParam.PartRevision; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.ReplacePartNumber = setupParam.ReplacePartNumber; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.ReplacePartDomain = setupParam.ReplacePartDomain; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.ReplacePartRevision = setupParam.ReplacePartRevision; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.ReplaceDate = setupParam.ReplaceDate; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.Status = setupParam.Status; } return new Protocols.ToolkitResultProtocol( toolkit.CreatePartRevision(setup) ); }
public Protocols.ToolkitResultProtocol CreatePartRevision(System.String partNumber, System.String partDomain, System.String partRevision) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CreatePartRevision(partNumber, partDomain, partRevision) ); }