Esempio n. 1
0
        public EntityShipment SimplePullMethod(EntityShipment objRequest)
        {
            switch (objRequest.ToolKit.ID.ToUpper())
            {
            case "LEXIS":
                LexisInterface objLexis = new LexisInterface();
                objRequest = objLexis.Pull(objRequest);
                break;

            case "LEXISGLOBAL":
                LexisGlobalInterface objLexisGlobal = new LexisGlobalInterface();
                objRequest = objLexisGlobal.Pull(objRequest);
                break;

            case "CMS":
                CMSInterface objCMS = new CMSInterface();
                objRequest = objCMS.Pull(objRequest);
                break;

            case "SAP":
                SAPInterface objSAP = new SAPInterface();
                objRequest = objSAP.Pull(objRequest);
                break;
            }
            return(objRequest);
        }