public Protocols.ToolkitResultProtocol MoveSubcase(Protocols.Support.MoveSubcaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.MoveSubcaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.MoveSubcaseSetup(setupParam.SubcaseIDNum, setupParam.NewWipBin); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.SubcaseIDNum = setupParam.SubcaseIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.NewWipBin = setupParam.NewWipBin; } return new Protocols.ToolkitResultProtocol( toolkit.MoveSubcase(setup) ); }
public Protocols.ToolkitResultProtocol MoveSubcase(System.String subcaseIDNum, System.String newWipBin) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.MoveSubcase(subcaseIDNum, newWipBin) ); }