Ejemplo n.º 1
0
        public InvoiceValueModel GetInvoiceValue(string InvoiceDocNumber, string FISCALYEAR)
        {
            //SAPCommonService objSAPCommonService = new SAPCommonService();
            SAPCommonService objSAPCommon = new SAPCommonService();
            //RfcDestination rfcDest = null;

            RfcDestination rfcDest = RfcDestinationManager.TryGetDestination("accelyides");

            if (rfcDest == null)
            {
                RfcDestinationManager.RegisterDestinationConfiguration(objSAPCommon);
                rfcDest = RfcDestinationManager.GetDestination("accelyides");
            }

            //RfcDestinationManager.UnregisterDestinationConfiguration(objSAPCommon);
            //RfcDestinationManager.RegisterDestinationConfiguration(objSAPCommon);
            //RfcDestination rfcDest = null;
            //rfcDest = RfcDestinationManager.GetDestination("accelyides");
            InvoiceValueModel invoiceValueModel = GetInvoiceValue(rfcDest, InvoiceDocNumber, FISCALYEAR);

            return(invoiceValueModel);
        }
Ejemplo n.º 2
0
        public VendorDetModel GetVendorsList()
        {
            //SAPCommonService objSAPCommonService = new SAPCommonService();
            SAPCommonService objSAPCommon = new SAPCommonService();
            //RfcDestination rfcDest = null;

            RfcDestination rfcDest = RfcDestinationManager.TryGetDestination("accelyides");

            if (rfcDest == null)
            {
                RfcDestinationManager.RegisterDestinationConfiguration(objSAPCommon);
                rfcDest = RfcDestinationManager.GetDestination("accelyides");
            }

            //RfcDestinationManager.UnregisterDestinationConfiguration(objSAPCommon);
            //RfcDestinationManager.RegisterDestinationConfiguration(objSAPCommon);
            //RfcDestination rfcDest = null;
            //rfcDest = RfcDestinationManager.GetDestination("accelyides");
            VendorDetModel vendorDetModel = GetVendorDetails(rfcDest);

            return(vendorDetModel);
        }