public Protocols.ToolkitResultProtocol CreateEcoMaterialDetail(System.Boolean isRequired, System.String ecoHeaderIDNum, System.Int32 partRevisionObjid) { ClarifySession session = Global.GetSession(AuthHeader); FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session); return(new Protocols.ToolkitResultProtocol(toolkit.CreateEcoMaterialDetail(isRequired, ecoHeaderIDNum, partRevisionObjid))); }
public Protocols.ToolkitResultProtocol CreateEcoMaterialDetail(Protocols.DepotRepair.CreateEcoMaterialDetailSetupProtocol setupParam) { ClarifySession session = Global.GetSession(AuthHeader); FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session); FChoice.Toolkits.Clarify.DepotRepair.CreateEcoMaterialDetailSetup setup; switch (setupParam.ConstructorCue) { case 0: setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoMaterialDetailSetup(setupParam.IsRequired, setupParam.EcoHeaderIDNum, setupParam.PartRevisionObjid); 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(32, setupParam.DirtyFieldFlags)) { setup.Location = setupParam.Location; } 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.CreateEcoMaterialDetail(setup))); }
public Protocols.ToolkitResultProtocol CreateEcoMaterialDetail(Protocols.DepotRepair.CreateEcoMaterialDetailSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session ); FChoice.Toolkits.Clarify.DepotRepair.CreateEcoMaterialDetailSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.DepotRepair.CreateEcoMaterialDetailSetup(setupParam.IsRequired, setupParam.EcoHeaderIDNum, setupParam.PartRevisionObjid); 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(32, setupParam.DirtyFieldFlags) ) { setup.Location = setupParam.Location; } 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.CreateEcoMaterialDetail(setup) ); }
public Protocols.ToolkitResultProtocol CreateEcoMaterialDetail(System.Boolean isRequired, System.String ecoHeaderIDNum, System.Int32 partRevisionObjid) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CreateEcoMaterialDetail(isRequired, ecoHeaderIDNum, partRevisionObjid) ); }