// // config.h // RedAnt ERP Mobile // // Created by Ray on 14-6-20. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved. // #ifndef RedAnt_ERP_Mobile_config_h #define RedAnt_ERP_Mobile_config_h #define BUILD_CONTRAST #define QUERY_BY_UPC #define BACKORDER_PROCESS // 允许backorder process #define JSON_TIMEOUT 30 //#define IGNORE_SOLD_IN_QTY #define USE_BLE_SCANNER #define RA_NOTIFICATION # ifdef DEBUG # define test_server # endif #define exception_switch 1 #define notifyMe_switch 1 //#define ab_lager @"Delivery price" #define flat_price @"MSRP" #define given_price @"store price" #import "RASingleton.h" //离线模式开关 #define OFFLINE_MODE //google analytics 开关 //#define GOOGLE_ANALYTICS //pdf 调试开关 #define PDF_DEBUG false //#define ENCRYPT_OFF #define CONTACT_LIST 1 #define APP_NAME @"CONTRAST Mobile" #define COMPANY_SHORT_NAME @"CONTRAST" #define COMPANY_NAME @"CONTRAST" #define COMPANY_INFO @"Sales: sales@contrast-inc.com\nPhone: 510-475-9888" #define COMPANY_WEB @"redant.contrast-inc.com" #define COMPANY_FULL_NAME @"Contrast, Inc." #define LOCAL_URL_CUSTOMER_INFO_EDITOR @"customer_info_template" #define LOCAL_URL_CUSTOMER_INFO_EDIT @"customer_info_template_edit" // http://192.168.0.161:8080/site // http://12.196.120.217 #ifdef test_server //------------------- chen server----------------------- #define URL_BACK_ORDER_PREVIEW @"http://192.168.0.142:8093/pjHmlg//isales/cartDeliveryBackOrderReview.htm" #define URL_MOVE_TO_BACK_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/moveToBackOrder.htm" #define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm" #define URL_UPDATE_AUTH @"http://192.168.0.142:8093/pjHmlg//isales/login.htm" #define URL_LOGOUT @"http://192.168.0.142:8093/pjHmlg//isales/loginOut.htm" #define URL_RETRIEVE_PASS @"http://192.168.0.142:8093/pjHmlg//isales/forgotPassword.htm" #define URL_REQUEST_CATMENU @"http://192.168.0.142:8093/pjHmlg//isales/menu.htm" #define URL_LOAD_HOME @"http://192.168.0.142:8093/pjHmlg//isales/homePage.htm" #define URL_CATEGORY @"http://192.168.0.142:8093/pjHmlg//isales/distinctCategory.htm" #define URL_SEARCH @"http://192.168.0.142:8093/pjHmlg//isales/search.htm" #define URL_ITEM_SEARCH @"http://192.168.0.142:8093/pjHmlg//isales/itemSearch.htm" #define URL_CATEGORY_LOADMORE @"http://192.168.0.142:8093/pjHmlg//isales/categoryMore.htm" #define URL_CUSTOMER_ADV_SEARCH @"http://192.168.0.142:8093/pjHmlg//isales/getContactAdvance.htm" #define URL_ORDER_LIST @"http://192.168.0.142:8093/pjHmlg//isales/orderList.htm" #define URL_ORDER_DETAIL @"http://192.168.0.142:8093/pjHmlg//isales/orderDetail.htm" #define URL_COMMIT_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/createOrder.htm" #define URL_COPY_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/copyOrder.htm" #define URL_SIGN_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/updateOrderSign.htm" #define URL_SAVE_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/saveOrder.htm" #define URL_UPDATE_ORDERCUSTOMER @"http://192.168.0.142:8093/pjHmlg//isales/updateOrderCustomerInfo.htm" #define URL_NEW_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/createNewOrder.htm" #define URL_OPEN_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/openOrder.htm" #define URL_RELEASE_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/closeOrder.htm" #define URL_DELETE_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/deleteOrder.htm" #define URL_CANCEL_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/cancelOrder.htm" #define URL_CART_SET_PRICE @"http://192.168.0.142:8093/pjHmlg//isales/setPrice.htm" #define URL_CART_ITEM_NOTES @"http://192.168.0.142:8093/pjHmlg//isales/setItemNotes.htm" #define URL_CART_GENERAL_NOTES @"http://192.168.0.142:8093/pjHmlg//isales/updateGeneralNote.htm" #define URL_CART_INCRESEMENT @"http://192.168.0.142:8093/pjHmlg//isales/increment.htm" #define URL_CART @"http://192.168.0.142:8093/pjHmlg//isales/cartDtail.htm" #define URL_CARTDELIVERY @"http://192.168.0.142:8093/pjHmlg//isales/cartDelivery.htm" #define URL_ADD_TO_CART @"http://192.168.0.142:8093/pjHmlg//isales/addToCart.htm" #define URL_CART_REMOVE @"http://192.168.0.142:8093/pjHmlg//isales/deleteToCart.htm" #define URL_CART_CHECK @"http://192.168.0.142:8093/pjHmlg//isales/checkCartItem.htm" #define URL_CART2WISH @"http://192.168.0.142:8093/pjHmlg//isales/cartRemoveToWishlist.htm" #define URL_WISH2CART @"http://192.168.0.142:8093/pjHmlg//isales/wishlistRemoveToCart.htm" #define URL_CATEGORYADDALL @"http://192.168.0.142:8093/pjHmlg//isales/categoryAddAllTo.htm" #define URL_SEARCHADDALL @"http://192.168.0.142:8093/pjHmlg//isales/searchAddAllTo.htm" #define URL_ITEMSEARCHADDALL @"http://192.168.0.142:8093/pjHmlg//isales/itemSearchAddAllTo.htm" #define URL_ITEM_DETAIL @"http://192.168.0.142:8093/pjHmlg//isales/modelDetail.htm" #define URL_ADD_TO_WATCHLIST @"http://192.168.0.142:8093/pjHmlg//isales/addToWishList.htm" #define URL_WATCHLIST @"http://192.168.0.142:8093/pjHmlg//isales/wishList.htm" #define URL_WATCHLIST_REMOVE @"http://192.168.0.142:8093/pjHmlg//isales/deleteToWishList.htm" #define URL_ADD_TO_PORTFOLIO @"http://192.168.0.142:8093/pjHmlg//isales/addToPortfolio.htm" #define URL_PORTFOLIO_REMOVE @"http://192.168.0.142:8093/pjHmlg//isales/deleteToPortfolio.htm" #define URL_PORTFOLIOLIST_REMOVE @"http://192.168.0.142:8093/pjHmlg//isales/deleteTearSheetPdf.htm" #define URL_PORTFOLIO @"http://192.168.0.142:8093/pjHmlg//isales/portfolios.htm" #define URL_PORTFOLIO_SET_PRICE @"http://192.168.0.142:8093/pjHmlg//isales/setTearSheetPrice.htm" #define URL_DM_PARAMS @"http://192.168.0.142:8093/pjHmlg//isales/selectTearSheetParam.htm" #define URL_REQUEST_DM @"http://192.168.0.142:8093/pjHmlg//isales/getTearSheetPdf.htm" #define URL_SAVE_DM_DIRECT @"http://192.168.0.142:8093/pjHmlg//isales/getTearSheetPdf.htm" #define URL_SAVE_DM @"http://192.168.0.142:8093/pjHmlg//isales/saveTearSheetPdf.htm" #define URL_DM_LIST @"http://192.168.0.142:8093/pjHmlg//isales/tearSheetPdfList.htm" //#define URL_DM_SET_QTY @"http://192.168.0.142:8093/pjHmlg//isales/setTearSheetAvailableQty.htm" #define URL_REQUEST_MODEL_QTY @"http://192.168.0.142:8093/pjHmlg//isales/getTearSheetAvailableQty.htm" #define URL_CONTACT_LIST @"http://192.168.0.142:8093/pjHmlg//isales/getAllContact.htm" #define URL_SHIPTO_LIST @"http://192.168.0.142:8093/pjHmlg//isales/getShipToContact.htm" #define URL_ADDRESS_EDOTOR @"http://192.168.0.142:8093/pjHmlg//isales/getAddAddress.htm" #define URL_ADDRESS_SAVE @"http://192.168.0.142:8093/pjHmlg//isales/saveAddress.htm" #define URL_CREDITCARD_EDOTOR @"http://192.168.0.142:8093/pjHmlg//isales/creditCard.htm" #define URL_CREDITCARD_SAVE @"http://192.168.0.142:8093/pjHmlg//isales/saveAddress.htm" #define URL_CUSTOMER_INFO @"http://192.168.0.142:8093/pjHmlg//isales/getCustomerInfoByContact.htm" #define URL_CUSTOMER_PENDINGORDER @"http://192.168.0.142:8093/pjHmlg//isales/hasPendingOrderByContact.htm" #define URL_NEW_CUSTOMER @"http://192.168.0.142:8093/pjHmlg//isales/getAddCustomer.htm" #define URL_EDIT_CUSTOMER @"http://192.168.0.142:8093/pjHmlg//isales/getUpdateCustomerInfoByContact.htm" #define URL_CUSTOMER_SAVE @"http://192.168.0.142:8093/pjHmlg//isales/saveCustomer.htm" #define URL_CUSTOMER_UPDATE @"http://192.168.0.142:8093/pjHmlg//isales/updateCustomer.htm" #define URL_UPDATE_CUSTOMER_BCARD @"http://192.168.0.142:8093/pjHmlg//isales/updateCustomerBusiCard.htm" #define URL_CHANGE_PASSWORD @"" #define URL_SIGN_UP @"" //#define URL_ORDER_DISCOUNT @"http://192.168.0.142:8093/pjHmlg//isales/setOrderItemDiscount.htm" #define URL_ORDER_DISCOUNT @"http://192.168.0.142:8093/pjHmlg//isales/setOrderDiscount.htm" #define URL_ERR_LOG @"http://192.168.0.142:8093/pjHmlg//isales/er_log.htm" #define URL_UPLOAD_IMG @"http://192.168.0.142:8093/pjHmlg//isales/uploadImg.htm" #define URL_NPD_POLICY @"http://192.168.0.142:8093/pjHmlg//isales/generalPolicy.htm" #define URL_CHECK_OFFLINE @"http://192.168.0.142:8093/pjHmlg//offline/initDatas.htm" #define URL_UPLOAD_OFFLINE @"http://192.168.0.142:8093/pjHmlg//offline/uploadOfflineData.htm" #define URL_DOWNLOAD_OFFLINE @"http://192.168.0.142:8093/pjHmlg//offline/downloadDatas.htm" #define URL_FINISH_DOWNLOAD_OFFLINE @"http://192.168.0.142:8093/pjHmlg//offline/confirmVersion.htm" #define URL_GET_RESULT @"http://192.168.0.142:8093/pjHmlg//offline/getResultBySerial.htm" #define URL_SET_PRICE_TYPE @"http://192.168.0.142:8093/pjHmlg//isales/setSeePriceType.htm" #define URL_GET_CIVEN_PRICE @"http://192.168.0.142:8093/pjHmlg//isales/getSeeGivenPrice.htm" #define URL_SET_GIVEN_PRICE @"http://192.168.0.142:8093/pjHmlg//isales/setSeeGivenPrice.htm" #define URL_SET_MERGE_ORDER @"http://192.168.0.142:8093/pjHmlg//isales/mergeOrder.htm" #define URL_REQUEST_LOGIN @"http://192.168.0.142:8093/pjHmlg//isales/requestLogin.htm" #define URL_EMAIL_CART @"http://192.168.0.142:8093/pjHmlg//isales/sendCartEmail.htm" #define URL_NOTIFY_ME @"http://192.168.0.142:8093/pjHmlg//isales/notifyMeEmail.htm" #define URL_EMAIL_WISHLIST @"http://192.168.0.142:8093/pjHmlg//isales/sendWishListEmail.htm" #define URL_BLOG @"http://12.196.120.217/blog" #define URL_DELETE_ACCOUNT @"" #else //------------------- NPD server-----------------------OAt5HU #define URL_CHANGE_PASSWORD @"" #define URL_SIGN_UP @"" #define URL_UPDATE_AUTH @"https://redant.contrast-inc.com/isales/login.htm" #define URL_LOGOUT @"https://redant.contrast-inc.com/isales/loginOut.htm" #define URL_RETRIEVE_PASS @"https://redant.contrast-inc.com/isales/forgotPassword.htm" #define URL_ORDER_DISCOUNT @"https://redant.contrast-inc.com/isales/setOrderItemDiscount.htm" #define URL_REQUEST_CATMENU @"https://redant.contrast-inc.com/isales/menu.htm" #define URL_LOAD_HOME @"https://redant.contrast-inc.com/isales/homePage.htm" #define URL_CATEGORY @"https://redant.contrast-inc.com/isales/distinctCategory.htm" #define URL_SEARCH @"https://redant.contrast-inc.com/isales/search.htm" #define URL_ITEM_SEARCH @"https://redant.contrast-inc.com/isales/itemSearch.htm" #define URL_CATEGORY_LOADMORE @"https://redant.contrast-inc.com/isales/categoryMore.htm" #define URL_ORDER_LIST @"https://redant.contrast-inc.com/isales/orderList.htm" #define URL_ORDER_DETAIL @"https://redant.contrast-inc.com/isales/orderDetail.htm" #define URL_COMMIT_ORDER @"https://redant.contrast-inc.com/isales/createOrder.htm" #define URL_SAVE_ORDER @"https://redant.contrast-inc.com/isales/saveOrder.htm" #define URL_UPDATE_ORDERCUSTOMER @"https://redant.contrast-inc.com/isales/updateOrderCustomerInfo.htm" #define URL_NEW_ORDER @"https://redant.contrast-inc.com/isales/createNewOrder.htm" #define URL_OPEN_ORDER @"https://redant.contrast-inc.com/isales/openOrder.htm" #define URL_RELEASE_ORDER @"https://redant.contrast-inc.com/isales/closeOrder.htm" #define URL_DELETE_ORDER @"https://redant.contrast-inc.com/isales/deleteOrder.htm" #define URL_CANCEL_ORDER @"https://redant.contrast-inc.com/isales/cancelOrder.htm" #define URL_CART_SET_PRICE @"https://redant.contrast-inc.com/isales/setPrice.htm" #define URL_CART_INCRESEMENT @"https://redant.contrast-inc.com/isales/increment.htm" #define URL_CART @"https://redant.contrast-inc.com/isales/cartDtail.htm" #define URL_CARTDELIVERY @"https://redant.contrast-inc.com/isales/cartDelivery.htm" #define URL_ADD_TO_CART @"https://redant.contrast-inc.com/isales/addToCart.htm" #define URL_CART_REMOVE @"https://redant.contrast-inc.com/isales/deleteToCart.htm" #define URL_CART_CHECK @"https://redant.contrast-inc.com/isales/checkCartItem.htm" #define URL_CART2WISH @"https://redant.contrast-inc.com/isales/cartRemoveToWishlist.htm" #define URL_WISH2CART @"https://redant.contrast-inc.com/isales/wishlistRemoveToCart.htm" #define URL_ITEM_DETAIL @"https://redant.contrast-inc.com/isales/modelDetail.htm" #define URL_ADD_TO_WATCHLIST @"https://redant.contrast-inc.com/isales/addToWishList.htm" #define URL_WATCHLIST @"https://redant.contrast-inc.com/isales/wishList.htm" #define URL_WATCHLIST_REMOVE @"https://redant.contrast-inc.com/isales/deleteToWishList.htm" #define URL_ADD_TO_PORTFOLIO @"https://redant.contrast-inc.com/isales/addToPortfolio.htm" #define URL_PORTFOLIO_REMOVE @"https://redant.contrast-inc.com/isales/deleteToPortfolio.htm" #define URL_PORTFOLIO @"https://redant.contrast-inc.com/isales/portfolios.htm" #define URL_PORTFOLIO_SET_PRICE @"https://redant.contrast-inc.com/isales/setTearSheetPrice.htm" #define URL_DM_PARAMS @"https://redant.contrast-inc.com/isales/selectTearSheetParam.htm" #define URL_REQUEST_DM @"https://redant.contrast-inc.com/isales/getTearSheetPdf.htm" #define URL_SAVE_DM_DIRECT @"https://redant.contrast-inc.com/isales/getTearSheetPdf.htm" #define URL_SAVE_DM @"https://redant.contrast-inc.com/isales/saveTearSheetPdf.htm" #define URL_DM_LIST @"https://redant.contrast-inc.com/isales/tearSheetPdfList.htm" //#define URL_DM_SET_QTY @"https://redant.contrast-inc.com/isales/setTearSheetAvailableQty.htm" #define URL_REQUEST_MODEL_QTY @"https://redant.contrast-inc.com/isales/getTearSheetAvailableQty.htm" #define URL_DELETE_ACCOUNT @"" #define URL_CONTACT_LIST @"https://redant.contrast-inc.com/isales/getAllContact.htm" #define URL_SHIPTO_LIST @"https://redant.contrast-inc.com/isales/getShipToContact.htm" #define URL_ADDRESS_EDOTOR @"https://redant.contrast-inc.com/isales/getAddAddress.htm" #define URL_ADDRESS_SAVE @"https://redant.contrast-inc.com/isales/saveAddress.htm" #define URL_CREDITCARD_EDOTOR @"https://redant.contrast-inc.com/isales/creditCard.htm" #define URL_CREDITCARD_SAVE @"https://redant.contrast-inc.com/isales/saveAddress.htm" #define URL_CUSTOMER_INFO @"https://redant.contrast-inc.com/isales/getCustomerInfoByContact.htm" #define URL_NEW_CUSTOMER @"https://redant.contrast-inc.com/isales/getAddCustomer.htm" #define URL_CUSTOMER_SAVE @"https://redant.contrast-inc.com/isales/saveCustomer.htm" #define URL_UPDATE_CUSTOMER_BCARD @"https://redant.contrast-inc.com/isales/updateCustomerBusiCard.htm" #define URL_CUSTOMER_ADV_SEARCH @"https://redant.contrast-inc.com/isales/getContactAdvance.htm" #define URL_ERR_LOG @"https://redant.contrast-inc.com/isales/er_log.htm" #define URL_UPLOAD_IMG @"https://redant.contrast-inc.com/isales/uploadImg.htm" #define URL_COPY_ORDER @"https://redant.contrast-inc.com/isales/copyOrder.htm" #define URL_SIGN_ORDER @"https://redant.contrast-inc.com/isales/updateOrderSign.htm" #define URL_CUSTOMER_UPDATE @"https://redant.contrast-inc.com/isales/updateCustomer.htm" #define URL_CART_GENERAL_NOTES @"https://redant.contrast-inc.com/isales/updateGeneralNote.htm" #define URL_CART_ITEM_NOTES @"https://redant.contrast-inc.com/isales/setItemNotes.htm" #define URL_EDIT_CUSTOMER @"https://redant.contrast-inc.com/isales/getUpdateCustomerInfoByContact.htm" #define URL_CUSTOMER_PENDINGORDER @"https://redant.contrast-inc.com/isales/hasPendingOrderByContact.htm" #define URL_PORTFOLIOLIST_REMOVE @"https://redant.contrast-inc.com/isales/deleteTearSheetPdf.htm" #define URL_NPD_POLICY @"https://redant.contrast-inc.com/isales/generalPolicy.htm" #define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm" #define URL_CHECK_OFFLINE @"https://redant.contrast-inc.com/offline/initDatas.htm" #define URL_DOWNLOAD_OFFLINE @"https://redant.contrast-inc.com/offline/downloadDatas.htm" #define URL_FINISH_DOWNLOAD_OFFLINE @"https://redant.contrast-inc.com/offline/confirmVersion.htm" #define URL_UPLOAD_OFFLINE @"https://redant.contrast-inc.com/offline/uploadOfflineData.htm" #define URL_CATEGORYADDALL @"https://redant.contrast-inc.com/isales/categoryAddAllTo.htm" #define URL_SEARCHADDALL @"https://redant.contrast-inc.com/isales/searchAddAllTo.htm" #define URL_ITEMSEARCHADDALL @"https://redant.contrast-inc.com/isales/itemSearchAddAllTo.htm" #define URL_SET_PRICE_TYPE @"https://redant.contrast-inc.com/isales/setSeePriceType.htm" #define URL_GET_CIVEN_PRICE @"https://redant.contrast-inc.com/isales/getSeeGivenPrice.htm" #define URL_SET_GIVEN_PRICE @"https://redant.contrast-inc.com/isales/setSeeGivenPrice.htm" #define URL_SET_MERGE_ORDER @"https://redant.contrast-inc.com/isales/mergeOrder.htm" #define URL_REQUEST_LOGIN @"https://redant.contrast-inc.com/isales/requestLogin.htm" #define URL_EMAIL_CART @"https://redant.contrast-inc.com/isales/sendCartEmail.htm" #define URL_NOTIFY_ME @"https://redant.contrast-inc.com/isales/notifyMeEmail.htm" #define URL_EMAIL_WISHLIST @"https://redant.contrast-inc.com/isales/sendWishListEmail.htm" #define URL_BLOG @"https://central.united-us.com/demo/blog" #define URL_MOVE_TO_BACK_ORDER @"https://redant.contrast-inc.com/isales/moveToBackOrder.htm" #define URL_BACK_ORDER_PREVIEW @"https://redant.contrast-inc.com/isales/cartDeliveryBackOrderReview.htm" #endif #endif /* */