public Protocols.ToolkitResultProtocol LogPartsUsedInstall(Protocols.FieldOps.LogPartsUsedInstallSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session );
            FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedInstallSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedInstallSetup(setupParam.PartRequestDetailIDNum, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallSerialNumber);
                    break;
                case 1:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedInstallSetup(setupParam.PartRequestDetailIDNum, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallQuantity);
                    break;
                case 2:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedInstallSetup(setupParam.PartRequestDetailIDNum, setupParam.CaseIDNum, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallSerialNumber);
                    break;
                case 3:
                    setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedInstallSetup(setupParam.PartRequestDetailIDNum, setupParam.CaseIDNum, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallQuantity);
                    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(2048, setupParam.DirtyFieldFlags) )
            {
                setup.InstallPartNumber = setupParam.InstallPartNumber;
            }

            if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) )
            {
                setup.InstallPartRevision = setupParam.InstallPartRevision;
            }

            if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) )
            {
                setup.InstallPartDomain = setupParam.InstallPartDomain;
            }

            if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) )
            {
                setup.InstallSerialNumber = setupParam.InstallSerialNumber;
            }

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

            if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) )
            {
                setup.InstallPrice = setupParam.InstallPrice;
            }

            if( Global.IsPropertyDirty(131072, setupParam.DirtyFieldFlags) )
            {
                setup.FromLocation = setupParam.FromLocation;
            }

            if( Global.IsPropertyDirty(262144, setupParam.DirtyFieldFlags) )
            {
                setup.FromBin = setupParam.FromBin;
            }

            if( Global.IsPropertyDirty(524288, setupParam.DirtyFieldFlags) )
            {
                setup.FromContainer = setupParam.FromContainer;
            }

            if( Global.IsPropertyDirty(1048576, setupParam.DirtyFieldFlags) )
            {
                setup.FromGood = setupParam.FromGood;
            }

            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.LogPartsUsedInstall(setup) );
        }
        public Protocols.ToolkitResultProtocol LogPartsUsedInstall(System.String partRequestDetailIDNum, System.String caseIDNum, System.String installPartNumber, System.String installPartRevision, System.String installPartDomain, System.Int32 installQuantity)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.LogPartsUsedInstall(partRequestDetailIDNum, caseIDNum, installPartNumber, installPartRevision, installPartDomain, installQuantity) );
        }