public Protocols.ToolkitResultProtocol LogPartsUsedRemove(Protocols.FieldOps.LogPartsUsedRemoveSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session );
            FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedRemoveSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedRemoveSetup(setupParam.PartRequestDetailIDNum, setupParam.RemoveSitePartObjid);
                    break;
                case 1:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedRemoveSetup(setupParam.PartRequestDetailIDNum, setupParam.CaseIDNum, setupParam.RemoveSitePartObjid);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.PartRequestDetailIDNum = setupParam.PartRequestDetailIDNum;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.CaseIDNum = setupParam.CaseIDNum;
            }

            if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) )
            {
                setup.ParentSitePartObjid = setupParam.ParentSitePartObjid;
            }

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.InstallAtSite = setupParam.InstallAtSite;
            }

            if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) )
            {
                setup.RemoveSitePartObjid = setupParam.RemoveSitePartObjid;
            }

            if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) )
            {
                setup.ToLocation = setupParam.ToLocation;
            }

            if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) )
            {
                setup.ToBin = setupParam.ToBin;
            }

            if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) )
            {
                setup.ToContainer = setupParam.ToContainer;
            }

            if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) )
            {
                setup.ToGood = setupParam.ToGood;
            }

            if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) )
            {
                setup.FailureCode = setupParam.FailureCode;
            }

            if (Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags))
            {
                setup.RemoveQuantity = setupParam.RemoveQuantity;
            }

            if( Global.IsPropertyDirty(2097152, setupParam.DirtyFieldFlags) )
            {
                setup.EngineerUserName = setupParam.EngineerUserName;
            }

            if( Global.IsPropertyDirty(4194304, setupParam.DirtyFieldFlags) )
            {
                setup.UserName = setupParam.UserName;
            }

            if( Global.IsPropertyDirty(8388608, setupParam.DirtyFieldFlags) )
            {
                setup.AllowMove = setupParam.AllowMove;
            }

            if( Global.IsPropertyDirty(16777216, setupParam.DirtyFieldFlags) )
            {
                setup.LogDate = setupParam.LogDate;
            }

            return new Protocols.ToolkitResultProtocol( toolkit.LogPartsUsedRemove(setup) );
        }
        public Protocols.ToolkitResultProtocol LogPartsUsedRemove(System.String partRequestDetailIDNum, System.String caseIDNum, System.Int32 removeSitePartObjid)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.LogPartsUsedRemove(partRequestDetailIDNum, caseIDNum, removeSitePartObjid) );
        }