public Protocols.ToolkitResultProtocol UpdateEcoLaborDetail(Protocols.DepotRepair.UpdateEcoLaborDetailSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

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

            switch (setupParam.ConstructorCue)
            {
            case 0:
                setup = new FChoice.Toolkits.Clarify.DepotRepair.UpdateEcoLaborDetailSetup(setupParam.EcoDetailObjid);
                break;

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

            return new Protocols.ToolkitResultProtocol( toolkit.UpdateEcoLaborDetail(setup) );
        }