public Protocols.ToolkitResultProtocol CreateEcoItem(FChoice.Toolkits.Clarify.EcoItemAppliesTo appliesTo, System.Boolean isActive, System.String ecoHeaderIDNum, System.Int32 applyPartRevisionObjid, System.Int32 resultPartRevisionObjid)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session);

            return(new Protocols.ToolkitResultProtocol(toolkit.CreateEcoItem(appliesTo, isActive, ecoHeaderIDNum, applyPartRevisionObjid, resultPartRevisionObjid)));
        }
        public Protocols.ToolkitResultProtocol CreateEcoItem(Protocols.DepotRepair.CreateEcoItemSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session);
            FChoice.Toolkits.Clarify.DepotRepair.CreateEcoItemSetup setup;

            switch (setupParam.ConstructorCue)
            {
            case 0:
                setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoItemSetup(setupParam.AppliesTo, setupParam.IsActive, setupParam.EcoHeaderIDNum, setupParam.ApplyPartRevisionObjid, setupParam.ResultPartRevisionObjid);
                break;

            default:
                throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

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

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

            if (Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags))
            {
                setup.EcoHeaderIDNum = setupParam.EcoHeaderIDNum;
            }

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

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


            return(new Protocols.ToolkitResultProtocol(toolkit.CreateEcoItem(setup)));
        }
        public Protocols.ToolkitResultProtocol CreateEcoItem(Protocols.DepotRepair.CreateEcoItemSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );
            FChoice.Toolkits.Clarify.DepotRepair.CreateEcoItemSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoItemSetup(setupParam.AppliesTo, setupParam.IsActive, setupParam.EcoHeaderIDNum, setupParam.ApplyPartRevisionObjid, setupParam.ResultPartRevisionObjid);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

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

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

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.EcoHeaderIDNum = setupParam.EcoHeaderIDNum;
            }

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

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

            return new Protocols.ToolkitResultProtocol( toolkit.CreateEcoItem(setup) );
        }
        public Protocols.ToolkitResultProtocol CreateEcoItem(FChoice.Toolkits.Clarify.EcoItemAppliesTo appliesTo, System.Boolean isActive, System.String ecoHeaderIDNum, System.Int32 applyPartRevisionObjid, System.Int32 resultPartRevisionObjid)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CreateEcoItem(appliesTo, isActive, ecoHeaderIDNum, applyPartRevisionObjid, resultPartRevisionObjid) );
        }