public void Add() { // Web Service of the Entity to be used Sync.WMS.WMSDataImportWS.DocRequest wsEntity = new DocRequest(); //Required Fields wsEntity.DocSeries = "VGR"; wsEntity.DocNum = 52; wsEntity.WarehouseCode = "A1"; wsEntity.ERPCompany = "DEMOWMS510"; wsEntity.EntityCode = "0280"; //This field is essential. Eye Peak wil search for the document by the following fields wsEntity.ERPDocID = wsEntity.DocSeries + wsEntity.DocNum.ToString(); //Linhas do documento DocDetail[] docLines = new DocDetail[1]; docLines[0] = new WMSDataImportWS.DocDetail(); docLines[0].SKU = "2000000027"; docLines[0].Qty = 10; docLines[0].DocLineNum = 1; docLines[0].Warehouse = "A1"; docLines[0].ERPProductCode = "ERPProductCode"; docLines[0].PreparationDate = DateTime.Now; docLines[0].ContainerQty = 1; //Set the lines to the document wsEntity.DocLines = docLines; //Saving object result; result = m_WSClient.SaveDoc(wsEntity); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); #region Document Document document = new Document(); document.documentId = "1"; document.name = "test_document.pdf"; DocDetail docDetail = new DocDetail(); docDetail.document = document; #endregion #region RecipientCreation SignHere objSignHere = new SignHere(); objSignHere.xPosition = "100"; objSignHere.yPosition = "100"; objSignHere.documentId = "1"; objSignHere.pageNumber = "1"; SignHereTab objSignHereTab = new SignHereTab(); objSignHereTab.signHere = objSignHere; Tab objTab = new Tab(); objTab.signHereTabs = objSignHereTab; signer objSigner = new signer(); objSigner.recipientId = "1"; objSigner.name = "jay"; objSigner.email = "*****@*****.**"; objSigner.tabs = objTab; List <signer> signerList = new List <signer>(); signerList.Add(objSigner); Recipients recip = new Recipients(); recip.signers = signerList; #endregion envelopeDefinition data = new envelopeDefinition(); data.emailSubject = "Hello"; data.emailBlurb = "Hello"; data.status = signatureStatus.sent; data.documents = docDetail; data.recipients = recip; string response = docusignMethods.RequestSignatureFromDocument(@"C:\Users\jay\Desktop\test_document.pdf", data); }
public void Change() { // Web Service of the Entity to be used Sync.WMS.WMSDataImportWS.DocRequest wsEntity = new DocRequest(); //This field is essential. Eye Peak wil search for the document by the following fields wsEntity.ERPDocID = "VGT/2018" + "70"; wsEntity.ERPCompany = "DEMOWMS510"; //Required Fields wsEntity.DocSeries = "VGT/2018"; wsEntity.DocNum = 70; wsEntity.WarehouseCode = "A1"; wsEntity.ERPCompany = "DEMOWMS"; wsEntity.EntityCode = "F0001"; wsEntity.Active = true; //Documetn Lines DocDetail[] docLines = new DocDetail[1]; docLines[0] = new WMSDataImportWS.DocDetail(); docLines[0].SKU = "A0001"; docLines[0].Qty = 20; docLines[0].DocLineNum = 1; docLines[0].Warehouse = "A1"; docLines[0].PreparationDate = DateTime.Now; docLines[0].ContainerQty = 1; //This field is essential. Eye Peak will search the lines by this field docLines[0].ERPDocDetailID = wsEntity.ERPDocID + "1"; //Set the lines to the document wsEntity.DocLines = docLines; //Saving object result; result = m_WSClient.SaveDoc(wsEntity); }