Ejemplo n.º 1
0
        public static LinkedTab CreateTab(Signing.DocuSignWeb.Recipient recipient,
                                          string name, string value,
                                          string anchorString, int XOffset, int YOffset)
        {
            LinkedTab tab = new LinkedTab();

            tab.Recipient                         = recipient;
            tab.Tab.Type                          = Signing.DocuSignWeb.TabTypeCode.Custom;
            tab.Tab.Name                          = name;
            tab.Tab.TabLabel                      = name;
            tab.Tab.Value                         = value;
            tab.Tab.AnchorTabItem                 = new DocuSignWeb.AnchorTab();
            tab.Tab.AnchorTabItem.XOffset         = XOffset;
            tab.Tab.AnchorTabItem.YOffset         = YOffset;
            tab.Tab.AnchorTabItem.AnchorTabString = anchorString;
            return(tab);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// A shortcut function to create a fully functional anchor tab
        /// </summary>
        /// <returns>A linked tab which has a fully qualified anchor tab item</returns>
        public static LinkedTab CreateTab(
            Signing.DocuSignWeb.TabTypeCode tabType,
            Signing.DocuSignWeb.Recipient recipient,
            string anchorString, int XOffset, int YOffset)
        {
            Debug.Assert(tabType != DocuSignWeb.TabTypeCode.Custom, "A wrong helper function is used" +
                         " custom tabs should not be created with CreateStandardTab");
            LinkedTab tab = new LinkedTab();

            tab.Recipient                         = recipient;
            tab.Tab.Type                          = tabType;
            tab.Tab.AnchorTabItem                 = new DocuSignWeb.AnchorTab();
            tab.Tab.AnchorTabItem.XOffset         = XOffset;
            tab.Tab.AnchorTabItem.YOffset         = YOffset;
            tab.Tab.AnchorTabItem.AnchorTabString = anchorString;
            return(tab);
        }
Ejemplo n.º 3
0
 public LinkedTemplateReferenceRoleAssignment(DocuSignWeb.Recipient signer, string roleName)
 {
     this.signer = signer;
     referenceRoleAssignment.RoleName = roleName;
 }
Ejemplo n.º 4
0
 public static Envelope CreateEnvelopeFromServerTemplates(
     AccountCredentials accountCredentials,
     TemplateReference[] templateRefs,
     Recipient[] signers,
     EnvelopeInformation envelopeInfo,
     bool ActivateEnvelope)
 {
     DocuSignWeb.APIServiceSoap apiService = CreateApiProxy(accountCredentials);
     DocuSignWeb.EnvelopeStatus envStatus = apiService.CreateEnvelopeFromTemplates(
         templateRefs, signers, envelopeInfo, ActivateEnvelope);
     return new Envelope(envStatus.EnvelopeID, accountCredentials);
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void CreateEnvelopeFromTemplatesAsync(TemplateReference[] TemplateReferences, Recipient[] Recipients, EnvelopeInformation EnvelopeInformation, bool ActivateEnvelope, object userState)
 {
     if ((this.CreateEnvelopeFromTemplatesOperationCompleted == null)) {
         this.CreateEnvelopeFromTemplatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateEnvelopeFromTemplatesOperationCompleted);
     }
     this.InvokeAsync("CreateEnvelopeFromTemplates", new object[] {
                 TemplateReferences,
                 Recipients,
                 EnvelopeInformation,
                 ActivateEnvelope}, this.CreateEnvelopeFromTemplatesOperationCompleted, userState);
 }
Ejemplo n.º 6
0
 /// <remarks/>
 public void CreateEnvelopeFromTemplatesAsync(TemplateReference[] TemplateReferences, Recipient[] Recipients, EnvelopeInformation EnvelopeInformation, bool ActivateEnvelope)
 {
     this.CreateEnvelopeFromTemplatesAsync(TemplateReferences, Recipients, EnvelopeInformation, ActivateEnvelope, null);
 }
Ejemplo n.º 7
0
 public EnvelopeStatus CreateEnvelopeFromTemplates(TemplateReference[] TemplateReferences, Recipient[] Recipients, EnvelopeInformation EnvelopeInformation, bool ActivateEnvelope)
 {
     object[] results = this.Invoke("CreateEnvelopeFromTemplates", new object[] {
                 TemplateReferences,
                 Recipients,
                 EnvelopeInformation,
                 ActivateEnvelope});
     return ((EnvelopeStatus)(results[0]));
 }
Ejemplo n.º 8
0
 /// <remarks/>
 public System.IAsyncResult BeginCreateEnvelopeFromTemplates(TemplateReference[] TemplateReferences, Recipient[] Recipients, EnvelopeInformation EnvelopeInformation, bool ActivateEnvelope, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateEnvelopeFromTemplates", new object[] {
                 TemplateReferences,
                 Recipients,
                 EnvelopeInformation,
                 ActivateEnvelope}, callback, asyncState);
 }