public Protocols.ToolkitResultProtocol AcceptCase(System.String caseIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.AcceptCase(caseIDNum) ); }
public Protocols.ToolkitResultProtocol AcceptCase(Protocols.Support.AcceptCaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.AcceptCaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.AcceptCaseSetup(setupParam.CaseIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.AcceptDate = setupParam.AcceptDate; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.WipBin = setupParam.WipBin; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } return new Protocols.ToolkitResultProtocol( toolkit.AcceptCase(setup) ); }
public Protocols.ToolkitResultProtocol ChangeSubcaseStatus(System.String subcaseIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.ChangeSubcaseStatus(subcaseIDNum) ); }
public Protocols.ToolkitResultProtocol UpdateSubcaseCommitment(Protocols.Support.UpdateSubcaseCommitmentSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.UpdateSubcaseCommitmentSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.UpdateSubcaseCommitmentSetup(setupParam.SubcaseIDNum, setupParam.CommitmentDate, setupParam.CommitmentObjid); 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.Title = setupParam.Title; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.ActionType = setupParam.ActionType; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.CommitmentDate = setupParam.CommitmentDate; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.CommitmentObjid = setupParam.CommitmentObjid; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.PriorWarning = TimeSpan.FromSeconds(setupParam.PriorWarning); } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.IsMadeToCustomer = setupParam.IsMadeToCustomer; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.ContactFirstName = setupParam.ContactFirstName; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.ContactLastName = setupParam.ContactLastName; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.ContactPhone = setupParam.ContactPhone; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.Notes = setupParam.Notes; } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.UpdateDate = setupParam.UpdateDate; } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.ToolkitResultProtocol( toolkit.UpdateSubcaseCommitment(setup) ); }
public Protocols.ToolkitResultProtocol UpdateSubcaseCommitment(System.String subcaseIDNum, System.DateTime commitmentDate, System.Int32 commitmentObjid) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.UpdateSubcaseCommitment(subcaseIDNum, commitmentDate, commitmentObjid) ); }
public Protocols.ToolkitResultProtocol ForwardCase(System.String caseIDNum, System.String newQueue) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.ForwardCase(caseIDNum, newQueue) ); }
public Protocols.ToolkitResultProtocol CreateCaseObjid(Protocols.Support.CreateCaseObjidSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.CreateCaseObjidSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.CreateCaseObjidSetup(); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.ContactFirstName = setupParam.ContactFirstName; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.ContactLastName = setupParam.ContactLastName; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.ContactPhone = setupParam.ContactPhone; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.SitePartObjid = setupParam.SitePartObjid; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.Title = setupParam.Title; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.CaseType = setupParam.CaseType; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.Priority = setupParam.Priority; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.Serverity = setupParam.Serverity; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.Status = setupParam.Status; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.PhoneLogNotes = setupParam.PhoneLogNotes; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.Queue = setupParam.Queue; } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.CreateDate = setupParam.CreateDate; } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.PhoneEndDate = setupParam.PhoneEndDate; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) ) { setup.ContactObjid = setupParam.ContactObjid; } if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) ) { setup.SiteObjid = setupParam.SiteObjid; } if( Global.IsPropertyDirty(131072, setupParam.DirtyFieldFlags) ) { setup.PartRevisionObjid = setupParam.PartRevisionObjid; } if( Global.IsPropertyDirty(262144, setupParam.DirtyFieldFlags) ) { setup.ContractObjid = setupParam.ContractObjid; } if( Global.IsPropertyDirty(524288, setupParam.DirtyFieldFlags) ) { setup.AddressObjid = setupParam.AddressObjid; } if( Global.IsPropertyDirty(1048576, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.ToolkitResultProtocol( toolkit.CreateCaseObjid(setup) ); }
public Protocols.ToolkitResultProtocol CreateCase(System.String siteIDNum, System.String contactFirstName, System.String contactLastName, System.String contactPhone) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CreateCase(siteIDNum, contactFirstName, contactLastName, contactPhone) ); }
public Protocols.Support.LogSubcaseResearchResultProtocol LogSubcaseResearch(System.String subcaseIDNum, System.Int32 researchDuration) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.Support.LogSubcaseResearchResultProtocol( toolkit.LogSubcaseResearch(subcaseIDNum, TimeSpan.FromSeconds(researchDuration)) ); }
public Protocols.Support.LogSubcaseNoteResultProtocol LogSubcaseNote(System.String subcaseIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.Support.LogSubcaseNoteResultProtocol( toolkit.LogSubcaseNote(subcaseIDNum) ); }
public Protocols.Support.LogSubcaseEmailResultProtocol LogSubcaseEmail(Protocols.Support.LogSubcaseEmailSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.LogSubcaseEmailSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.LogSubcaseEmailSetup(setupParam.SubcaseIDNum); 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.ActionType = setupParam.ActionType; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.LogDate = setupParam.LogDate; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.Message = setupParam.Message; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.Recipient = setupParam.Recipient; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.CCList = setupParam.CCList; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.NewStatus = setupParam.NewStatus; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.CommitmentTitle = setupParam.CommitmentTitle; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.CommitmentNotes = setupParam.CommitmentNotes; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.CommitmentDueDate = setupParam.CommitmentDueDate; } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.CommitmentPriorWarning = TimeSpan.FromSeconds(setupParam.CommitmentPriorWarning); } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.IsCommitmentToCustomer = setupParam.IsCommitmentToCustomer; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { setup.CommitmentActionType = setupParam.CommitmentActionType; } if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) ) { setup.CommitmentContactObjid = setupParam.CommitmentContactObjid; } if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(65536, setupParam.DirtyFieldFlags) ) { setup.SendEmail = setupParam.SendEmail; } if( Global.IsPropertyDirty(131072, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.Support.LogSubcaseEmailResultProtocol( toolkit.LogSubcaseEmail(setup) ); }
public Protocols.ToolkitResultProtocol LogSubcaseCommitment(System.String subcaseIDNum, System.String title, System.Int32 priorWarning, System.String contactFirstName, System.String contactLastName, System.String contactPhone) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.LogSubcaseCommitment(subcaseIDNum, title, TimeSpan.FromSeconds(priorWarning), contactFirstName, contactLastName, contactPhone) ); }
public Protocols.Support.GetCaseTimeAndExpensesResultProtocol GetCaseTimeAndExpenses(System.String caseIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.Support.GetCaseTimeAndExpensesResultProtocol( toolkit.GetCaseTimeAndExpenses(caseIDNum) ); }
public Protocols.ToolkitResultProtocol FulfillCommitment(System.Int32 logObjid) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.FulfillCommitment(logObjid) ); }
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) ); }
public Protocols.ToolkitResultProtocol CloseSubcase(Protocols.Support.CloseSubcaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.CloseSubcaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.CloseSubcaseSetup(setupParam.SubcaseIDNum); 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.Status = setupParam.Status; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.Resolution = setupParam.Resolution; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.Summary = setupParam.Summary; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.CloseDate = setupParam.CloseDate; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.ToolkitResultProtocol( toolkit.CloseSubcase(setup) ); }
public Protocols.ToolkitResultProtocol UnrelateCaseFromParentCase(Protocols.Support.UnrelateCaseFromParentCaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.UnrelateCaseFromParentCaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.UnrelateCaseFromParentCaseSetup(setupParam.CaseIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } return new Protocols.ToolkitResultProtocol( toolkit.UnrelateCaseFromParentCase(setup) ); }
public Protocols.ToolkitResultProtocol CreateCaseObjid() { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.CreateCaseObjid() ); }
public Protocols.ToolkitResultProtocol UpdateCase(Protocols.Support.UpdateCaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.UpdateCaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.UpdateCaseSetup(setupParam.CaseIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.Priority = setupParam.Priority; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.Severity = setupParam.Severity; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.CaseType = setupParam.CaseType; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.UpdateDate = setupParam.UpdateDate; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.OnlyOwner = setupParam.OnlyOwner; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.Title = setupParam.Title; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.PartRevisionObjid = setupParam.PartRevisionObjid; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.SitePartObjid = setupParam.SitePartObjid; } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.ContractObjid = setupParam.ContractObjid; } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.ClearSitePartRelation = setupParam.ClearSitePartRelation; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { setup.ClearContractRelation = setupParam.ClearContractRelation; } if( Global.IsPropertyDirty(16384, setupParam.DirtyFieldFlags) ) { setup.ClearPartRevisionRelation = setupParam.ClearPartRevisionRelation; } if( Global.IsPropertyDirty(32768, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.ToolkitResultProtocol( toolkit.UpdateCase(setup) ); }
public Protocols.ToolkitResultProtocol CreateSubcase(Protocols.Support.CreateSubcaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.CreateSubcaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.CreateSubcaseSetup(setupParam.CaseIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.Title = setupParam.Title; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.IsGeneral = setupParam.IsGeneral; } if( Global.IsPropertyDirty(8, setupParam.DirtyFieldFlags) ) { setup.Priority = setupParam.Priority; } if( Global.IsPropertyDirty(16, setupParam.DirtyFieldFlags) ) { setup.Severity = setupParam.Severity; } if( Global.IsPropertyDirty(32, setupParam.DirtyFieldFlags) ) { setup.Status = setupParam.Status; } if( Global.IsPropertyDirty(64, setupParam.DirtyFieldFlags) ) { setup.Notes = setupParam.Notes; } if( Global.IsPropertyDirty(128, setupParam.DirtyFieldFlags) ) { setup.Queue = setupParam.Queue; } if( Global.IsPropertyDirty(256, setupParam.DirtyFieldFlags) ) { setup.CreateDate = setupParam.CreateDate; } if( Global.IsPropertyDirty(512, setupParam.DirtyFieldFlags) ) { setup.DueDate = setupParam.DueDate; } if( Global.IsPropertyDirty(1024, setupParam.DirtyFieldFlags) ) { setup.PriorWarning = TimeSpan.FromSeconds(setupParam.PriorWarning); } if( Global.IsPropertyDirty(2048, setupParam.DirtyFieldFlags) ) { setup.UserName = setupParam.UserName; } if( Global.IsPropertyDirty(4096, setupParam.DirtyFieldFlags) ) { setup.GenerateTimeBombs = setupParam.GenerateTimeBombs; } if( Global.IsPropertyDirty(8192, setupParam.DirtyFieldFlags) ) { foreach(Protocols.AdditionalFieldProtocol field in setupParam.AdditionalFields){setup.AdditionalFields.Append( field.FieldName, field.FieldType, field.FieldValue);} } return new Protocols.ToolkitResultProtocol( toolkit.CreateSubcase(setup) ); }
public Protocols.ToolkitResultProtocol DispatchSubcase(System.String subcaseIDNum, System.String queue) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.DispatchSubcase(subcaseIDNum, queue) ); }