public Protocols.ToolkitResultProtocol UnrelateContractItemFromSitePart(Protocols.Contracts.UnrelateContractItemFromSitePartSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session ); FChoice.Toolkits.Clarify.Contracts.UnrelateContractItemFromSitePartSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Contracts.UnrelateContractItemFromSitePartSetup(setupParam.ContractObjid, 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.ContractObjid = setupParam.ContractObjid; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.PartNumber = setupParam.PartNumber; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.PartDomain = setupParam.PartDomain; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.PartRevision = setupParam.PartRevision; } return new Protocols.ToolkitResultProtocol( toolkit.UnrelateContractItemFromSitePart(setup) ); }
public Protocols.ToolkitResultProtocol UnrelateContractItemFromSitePart(System.Int32 contractObjid, System.String partNumber, System.String partDomain, System.String partRevision) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Contracts.ContractsToolkit toolkit = new FChoice.Toolkits.Clarify.Contracts.ContractsToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.UnrelateContractItemFromSitePart(contractObjid, partNumber, partDomain, partRevision) ); }