public Protocols.ToolkitResultProtocol LogPartsUsedUpgrade(Protocols.FieldOps.LogPartsUsedUpgradeSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session ); FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedUpgradeSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedUpgradeSetup(setupParam.PartRequestDetailIDNum, setupParam.RemoveSitePartObjid, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallSerialNumber); break; case 1: setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedUpgradeSetup(setupParam.PartRequestDetailIDNum, setupParam.RemoveSitePartObjid, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallQuantity); break; case 2: setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedUpgradeSetup(setupParam.PartRequestDetailIDNum, setupParam.CaseIDNum, setupParam.RemoveSitePartObjid, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallSerialNumber); break; case 3: setup = new FChoice.Toolkits.Clarify.FieldOps.LogPartsUsedUpgradeSetup(setupParam.PartRequestDetailIDNum, setupParam.CaseIDNum, setupParam.RemoveSitePartObjid, setupParam.InstallPartNumber, setupParam.InstallPartRevision, setupParam.InstallPartDomain, setupParam.InstallQuantity); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.PartRequestDetailIDNum = setupParam.PartRequestDetailIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.ParentSitePartObjid = setupParam.ParentSitePartObjid; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.InstallAtSite = setupParam.InstallAtSite; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.RemoveSitePartObjid = setupParam.RemoveSitePartObjid; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.ToLocation = setupParam.ToLocation; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.ToBin = setupParam.ToBin; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.ToContainer = setupParam.ToContainer; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.ToGood = setupParam.ToGood; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.FailureCode = setupParam.FailureCode; } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.InstallPartNumber = setupParam.InstallPartNumber; } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.InstallPartRevision = setupParam.InstallPartRevision; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { setup.InstallPartDomain = setupParam.InstallPartDomain; } if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) ) { setup.InstallSerialNumber = setupParam.InstallSerialNumber; } if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) ) { setup.InstallQuantity = setupParam.InstallQuantity; } if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) ) { setup.InstallPrice = setupParam.InstallPrice; } if( Global.IsPropertyDirty(131072, setupParam.DirtyFieldFlags) ) { setup.FromLocation = setupParam.FromLocation; } if( Global.IsPropertyDirty(262144, setupParam.DirtyFieldFlags) ) { setup.FromBin = setupParam.FromBin; } if( Global.IsPropertyDirty(524288, setupParam.DirtyFieldFlags) ) { setup.FromContainer = setupParam.FromContainer; } if( Global.IsPropertyDirty(1048576, setupParam.DirtyFieldFlags) ) { setup.FromGood = setupParam.FromGood; } if( Global.IsPropertyDirty(2097152, setupParam.DirtyFieldFlags) ) { setup.EngineerUserName = setupParam.EngineerUserName; } if( Global.IsPropertyDirty(4194304, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(8388608, setupParam.DirtyFieldFlags) ) { setup.AllowMove = setupParam.AllowMove; } if( Global.IsPropertyDirty(16777216, setupParam.DirtyFieldFlags) ) { setup.LogDate = setupParam.LogDate; } return new Protocols.ToolkitResultProtocol( toolkit.LogPartsUsedUpgrade(setup) ); }
public Protocols.ToolkitResultProtocol LogPartsUsedUpgrade(System.String partRequestDetailIDNum, System.String caseIDNum, System.Int32 removeSitePartObjid, System.String installPartNumber, System.String installPartRevision, System.String installPartDomain, System.Int32 installQuantity) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit toolkit = new FChoice.Toolkits.Clarify.FieldOps.FieldOpsToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.LogPartsUsedUpgrade(partRequestDetailIDNum, caseIDNum, removeSitePartObjid, installPartNumber, installPartRevision, installPartDomain, installQuantity) ); }