/// <summary>
        /// Get Approve service ref
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        private ApprovalsMgmt_PortClient GetApprove(UserMobile user)
        {
            ApprovalsMgmt_PortClient approvalsMgmt = new ApprovalsMgmt_PortClient();

            approvalsMgmt.ClientCredentials.Windows.ClientCredential.UserName = user.User_Name;
            approvalsMgmt.ClientCredentials.Windows.ClientCredential.Password = CryptDecrypt.Decrypt(user.Password);
            return(approvalsMgmt);
        }
        /// <summary>
        /// Get RecordLink service ref
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        private RecordLinkPage_PortClient GetRecordLink(UserMobile user)
        {
            RecordLinkPage_PortClient linkPage_PortClient = new RecordLinkPage_PortClient();

            linkPage_PortClient.ClientCredentials.Windows.ClientCredential.UserName = user.User_Name;
            linkPage_PortClient.ClientCredentials.Windows.ClientCredential.Password = CryptDecrypt.Decrypt(user.Password);
            return(linkPage_PortClient);
        }
        /// <summary>
        /// Get SalesOrder service ref
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        private PurchaseOrders_PortClient GetSalesOrder(UserMobile user)
        {
            PurchaseOrders_PortClient purchaseOrders_PortClient = new PurchaseOrders_PortClient();

            purchaseOrders_PortClient.ClientCredentials.Windows.ClientCredential.UserName = user.User_Name;
            purchaseOrders_PortClient.ClientCredentials.Windows.ClientCredential.Password = CryptDecrypt.Decrypt(user.Password);
            return(purchaseOrders_PortClient);
        }
Esempio n. 4
0
        /// <summary>
        /// Connect service lines
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        private LinesPurchasOrders_PortClient GetLines(UserMobile user)
        {
            LinesPurchasOrders_PortClient linesPurchasOrders_PortClient = new LinesPurchasOrders_PortClient();

            linesPurchasOrders_PortClient.ClientCredentials.Windows.ClientCredential.UserName = user.User_Name;
            linesPurchasOrders_PortClient.ClientCredentials.Windows.ClientCredential.Password = CryptDecrypt.Decrypt(user.Password);
            return(linesPurchasOrders_PortClient);
        }