public Protocols.ToolkitResultProtocol CreateEcoLaborDetail(System.Boolean isRequired, System.Int32 elapsedTime, System.String ecoHeaderIDNum)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

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

            return(new Protocols.ToolkitResultProtocol(toolkit.CreateEcoLaborDetail(isRequired, TimeSpan.FromSeconds(elapsedTime), ecoHeaderIDNum)));
        }
        public Protocols.ToolkitResultProtocol CreateEcoLaborDetail(Protocols.DepotRepair.CreateEcoLaborDetailSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

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

            switch (setupParam.ConstructorCue)
            {
            case 0:
                setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoLaborDetailSetup(setupParam.IsRequired, TimeSpan.FromSeconds(setupParam.ElapsedTime), setupParam.EcoHeaderIDNum);
                break;

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

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

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

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

            if (Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags))
            {
                setup.ElapsedTime = TimeSpan.FromSeconds(setupParam.ElapsedTime);
            }

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

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

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


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

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoLaborDetailSetup(setupParam.IsRequired, TimeSpan.FromSeconds(setupParam.ElapsedTime), setupParam.EcoHeaderIDNum);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

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

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

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

            if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) )
            {
                setup.ElapsedTime = TimeSpan.FromSeconds(setupParam.ElapsedTime);
            }

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

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

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

            return new Protocols.ToolkitResultProtocol( toolkit.CreateEcoLaborDetail(setup) );
        }
        public Protocols.ToolkitResultProtocol CreateEcoLaborDetail(System.Boolean isRequired, System.Int32 elapsedTime, System.String ecoHeaderIDNum)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.CreateEcoLaborDetail(isRequired, TimeSpan.FromSeconds(elapsedTime), ecoHeaderIDNum) );
        }