| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- //
- // 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_USAI
- #define BACKORDER_PROCESS // 允许backorder process
- #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 "Singleton.h"
- //离线模式开关
- #define OFFLINE_MODE
- //google analytics 开关
- //#define GOOGLE_ANALYTICS
- //pdf 调试开关
- #define PDF_DEBUG false
- //#define ENCRYPT_OFF
-
- #define CONTACT_LIST 1
- #define APP_NAME @"USAI Mobile"
- #define COMPANY_SHORT_NAME @"USAI"
- #define COMPANY_NAME @"USAI"
- #define COMPANY_INFO @"Sales: sales@united-us.net\nPhone: 510-574-8180"
- #define COMPANY_WEB @"www.united-us.net"
- #define COMPANY_FULL_NAME @"United Software Applications, Inc."
- #define LOCAL_URL_CUSTOMER_INFO_EDITOR @"customer_info_template"
- #define LOCAL_URL_CUSTOMER_INFO_EDIT @"customer_info_template_edit"
- // http://192.168.0.133:8080/site
- // http://12.196.120.217
- #ifdef test_server
- //------------------- chen server-----------------------
- #define URL_BACK_ORDER_PREVIEW @"http://12.196.120.217/isales/cartDeliveryBackOrderReview.htm"
- #define URL_MOVE_TO_BACK_ORDER @"http://12.196.120.217/isales/moveToBackOrder.htm"
- #define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm"
- #define URL_UPDATE_AUTH @"http://12.196.120.217/isales/login.htm"
- #define URL_LOGOUT @"http://12.196.120.217/isales/loginOut.htm"
- #define URL_RETRIEVE_PASS @"http://12.196.120.217/isales/forgotPassword.htm"
- #define URL_REQUEST_CATMENU @"http://12.196.120.217/isales/menu.htm"
- #define URL_LOAD_HOME @"http://12.196.120.217/isales/homePage.htm"
- #define URL_CATEGORY @"http://12.196.120.217/isales/distinctCategory.htm"
- #define URL_SEARCH @"http://12.196.120.217/isales/search.htm"
- #define URL_ITEM_SEARCH @"http://12.196.120.217/isales/itemSearch.htm"
- #define URL_CATEGORY_LOADMORE @"http://12.196.120.217/isales/categoryMore.htm"
- #define URL_CUSTOMER_ADV_SEARCH @"http://12.196.120.217/isales/getContactAdvance.htm"
- #define URL_ORDER_LIST @"http://12.196.120.217/isales/orderList.htm"
- #define URL_ORDER_DETAIL @"http://12.196.120.217/isales/orderDetail.htm"
- #define URL_COMMIT_ORDER @"http://12.196.120.217/isales/createOrder.htm"
- #define URL_COPY_ORDER @"http://12.196.120.217/isales/copyOrder.htm"
- #define URL_SIGN_ORDER @"http://12.196.120.217/isales/updateOrderSign.htm"
- #define URL_SAVE_ORDER @"http://12.196.120.217/isales/saveOrder.htm"
- #define URL_UPDATE_ORDERCUSTOMER @"http://12.196.120.217/isales/updateOrderCustomerInfo.htm"
- #define URL_NEW_ORDER @"http://12.196.120.217/isales/createNewOrder.htm"
- #define URL_OPEN_ORDER @"http://12.196.120.217/isales/openOrder.htm"
- #define URL_RELEASE_ORDER @"http://12.196.120.217/isales/closeOrder.htm"
- #define URL_DELETE_ORDER @"http://12.196.120.217/isales/deleteOrder.htm"
- #define URL_CANCEL_ORDER @"http://12.196.120.217/isales/cancelOrder.htm"
- #define URL_CART_SET_PRICE @"http://12.196.120.217/isales/setPrice.htm"
- #define URL_CART_ITEM_NOTES @"http://12.196.120.217/isales/setItemNotes.htm"
- #define URL_CART_GENERAL_NOTES @"http://12.196.120.217/isales/updateGeneralNote.htm"
- #define URL_CART_INCRESEMENT @"http://12.196.120.217/isales/increment.htm"
- #define URL_CART @"http://12.196.120.217/isales/cartDtail.htm"
- #define URL_CARTDELIVERY @"http://12.196.120.217/isales/cartDelivery.htm"
- #define URL_ADD_TO_CART @"http://12.196.120.217/isales/addToCart.htm"
- #define URL_CART_REMOVE @"http://12.196.120.217/isales/deleteToCart.htm"
- #define URL_CART_CHECK @"http://12.196.120.217/isales/checkCartItem.htm"
- #define URL_CART2WISH @"http://12.196.120.217/isales/cartRemoveToWishlist.htm"
- #define URL_WISH2CART @"http://12.196.120.217/isales/wishlistRemoveToCart.htm"
- #define URL_CATEGORYADDALL @"http://12.196.120.217/isales/categoryAddAllTo.htm"
- #define URL_SEARCHADDALL @"http://12.196.120.217/isales/searchAddAllTo.htm"
- #define URL_ITEMSEARCHADDALL @"http://12.196.120.217/isales/itemSearchAddAllTo.htm"
- #define URL_ITEM_DETAIL @"http://12.196.120.217/isales/modelDetail.htm"
- #define URL_ADD_TO_WATCHLIST @"http://12.196.120.217/isales/addToWishList.htm"
- #define URL_WATCHLIST @"http://12.196.120.217/isales/wishList.htm"
- #define URL_WATCHLIST_REMOVE @"http://12.196.120.217/isales/deleteToWishList.htm"
- #define URL_ADD_TO_PORTFOLIO @"http://12.196.120.217/isales/addToPortfolio.htm"
- #define URL_PORTFOLIO_REMOVE @"http://12.196.120.217/isales/deleteToPortfolio.htm"
- #define URL_PORTFOLIOLIST_REMOVE @"http://12.196.120.217/isales/deleteTearSheetPdf.htm"
- #define URL_PORTFOLIO @"http://12.196.120.217/isales/portfolios.htm"
- #define URL_PORTFOLIO_SET_PRICE @"http://12.196.120.217/isales/setTearSheetPrice.htm"
- #define URL_DM_PARAMS @"http://12.196.120.217/isales/selectTearSheetParam.htm"
- #define URL_REQUEST_DM @"http://12.196.120.217/isales/getTearSheetPdf.htm"
- #define URL_SAVE_DM_DIRECT @"http://12.196.120.217/isales/getTearSheetPdf.htm"
- #define URL_SAVE_DM @"http://12.196.120.217/isales/saveTearSheetPdf.htm"
- #define URL_DM_LIST @"http://12.196.120.217/isales/tearSheetPdfList.htm"
- //#define URL_DM_SET_QTY @"http://12.196.120.217/isales/setTearSheetAvailableQty.htm"
- #define URL_REQUEST_MODEL_QTY @"http://12.196.120.217/isales/getTearSheetAvailableQty.htm"
- #define URL_CONTACT_LIST @"http://12.196.120.217/isales/getAllContact.htm"
- #define URL_SHIPTO_LIST @"http://12.196.120.217/isales/getShipToContact.htm"
- #define URL_ADDRESS_EDOTOR @"http://12.196.120.217/isales/getAddAddress.htm"
- #define URL_ADDRESS_SAVE @"http://12.196.120.217/isales/saveAddress.htm"
- #define URL_CREDITCARD_EDOTOR @"http://12.196.120.217/isales/creditCard.htm"
- #define URL_CREDITCARD_SAVE @"http://12.196.120.217/isales/saveAddress.htm"
- #define URL_CUSTOMER_INFO @"http://12.196.120.217/isales/getCustomerInfoByContact.htm"
- #define URL_CUSTOMER_PENDINGORDER @"http://12.196.120.217/isales/hasPendingOrderByContact.htm"
- #define URL_NEW_CUSTOMER @"http://12.196.120.217/isales/getAddCustomer.htm"
- #define URL_EDIT_CUSTOMER @"http://12.196.120.217/isales/getUpdateCustomerInfoByContact.htm"
- #define URL_CUSTOMER_SAVE @"http://12.196.120.217/isales/saveCustomer.htm"
- #define URL_CUSTOMER_UPDATE @"http://12.196.120.217/isales/updateCustomer.htm"
- #define URL_UPDATE_CUSTOMER_BCARD @"http://12.196.120.217/isales/updateCustomerBusiCard.htm"
- #define URL_ERR_LOG @"http://12.196.120.217/isales/er_log.htm"
- #define URL_UPLOAD_IMG @"http://12.196.120.217/isales/uploadImg.htm"
- #define URL_NPD_POLICY @"http://12.196.120.217/isales/generalPolicy.htm"
- #define URL_CHECK_OFFLINE @"http://12.196.120.217/offline/initDatas.htm"
- #define URL_UPLOAD_OFFLINE @"http://12.196.120.217/offline/uploadOfflineData.htm"
- #define URL_DOWNLOAD_OFFLINE @"http://12.196.120.217/offline/downloadDatas.htm"
- #define URL_FINISH_DOWNLOAD_OFFLINE @"http://12.196.120.217/offline/confirmVersion.htm"
- #define URL_GET_RESULT @"http://12.196.120.217/offline/getResultBySerial.htm"
- #define URL_SET_PRICE_TYPE @"http://12.196.120.217/isales/setSeePriceType.htm"
- #define URL_GET_CIVEN_PRICE @"http://12.196.120.217/isales/getSeeGivenPrice.htm"
- #define URL_SET_GIVEN_PRICE @"http://12.196.120.217/isales/setSeeGivenPrice.htm"
- #define URL_SET_MERGE_ORDER @"http://12.196.120.217/isales/mergeOrder.htm"
- #define URL_REQUEST_LOGIN @"http://12.196.120.217/isales/requestLogin.htm"
- #define URL_EMAIL_CART @"http://12.196.120.217/isales/sendCartEmail.htm"
- #define URL_NOTIFY_ME @"http://12.196.120.217/isales/notifyMeEmail.htm"
- #define URL_EMAIL_WISHLIST @"http://12.196.120.217/isales/sendWishListEmail.htm"
- #define URL_BLOG @"http://12.196.120.217/blog"
- #else
- //------------------- NPD server-----------------------
- #define URL_UPDATE_AUTH @"https://central.united-us.com/usai_demo/shopping/isales/login.htm"
- #define URL_LOGOUT @"https://central.united-us.com/usai_demo/shopping/isales/loginOut.htm"
- #define URL_RETRIEVE_PASS @"https://central.united-us.com/usai_demo/shopping/isales/forgotPassword.htm"
- #define URL_REQUEST_CATMENU @"https://central.united-us.com/usai_demo/shopping/isales/menu.htm"
- #define URL_LOAD_HOME @"https://central.united-us.com/usai_demo/shopping/isales/homePage.htm"
- #define URL_CATEGORY @"https://central.united-us.com/usai_demo/shopping/isales/distinctCategory.htm"
- #define URL_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/search.htm"
- #define URL_ITEM_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/itemSearch.htm"
- #define URL_CATEGORY_LOADMORE @"https://central.united-us.com/usai_demo/shopping/isales/categoryMore.htm"
- #define URL_ORDER_LIST @"https://central.united-us.com/usai_demo/shopping/isales/orderList.htm"
- #define URL_ORDER_DETAIL @"https://central.united-us.com/usai_demo/shopping/isales/orderDetail.htm"
- #define URL_COMMIT_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/createOrder.htm"
- #define URL_SAVE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/saveOrder.htm"
- #define URL_UPDATE_ORDERCUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/updateOrderCustomerInfo.htm"
- #define URL_NEW_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/createNewOrder.htm"
- #define URL_OPEN_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/openOrder.htm"
- #define URL_RELEASE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/closeOrder.htm"
- #define URL_DELETE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/deleteOrder.htm"
- #define URL_CANCEL_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/cancelOrder.htm"
- #define URL_CART_SET_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setPrice.htm"
- #define URL_CART_INCRESEMENT @"https://central.united-us.com/usai_demo/shopping/isales/increment.htm"
- #define URL_CART @"https://central.united-us.com/usai_demo/shopping/isales/cartDtail.htm"
- #define URL_CARTDELIVERY @"https://central.united-us.com/usai_demo/shopping/isales/cartDelivery.htm"
- #define URL_ADD_TO_CART @"https://central.united-us.com/usai_demo/shopping/isales/addToCart.htm"
- #define URL_CART_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToCart.htm"
- #define URL_CART_CHECK @"https://central.united-us.com/usai_demo/shopping/isales/checkCartItem.htm"
- #define URL_CART2WISH @"https://central.united-us.com/usai_demo/shopping/isales/cartRemoveToWishlist.htm"
- #define URL_WISH2CART @"https://central.united-us.com/usai_demo/shopping/isales/wishlistRemoveToCart.htm"
- #define URL_ITEM_DETAIL @"https://central.united-us.com/usai_demo/shopping/isales/modelDetail.htm"
- #define URL_ADD_TO_WATCHLIST @"https://central.united-us.com/usai_demo/shopping/isales/addToWishList.htm"
- #define URL_WATCHLIST @"https://central.united-us.com/usai_demo/shopping/isales/wishList.htm"
- #define URL_WATCHLIST_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToWishList.htm"
- #define URL_ADD_TO_PORTFOLIO @"https://central.united-us.com/usai_demo/shopping/isales/addToPortfolio.htm"
- #define URL_PORTFOLIO_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToPortfolio.htm"
- #define URL_PORTFOLIO @"https://central.united-us.com/usai_demo/shopping/isales/portfolios.htm"
- #define URL_PORTFOLIO_SET_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setTearSheetPrice.htm"
- #define URL_DM_PARAMS @"https://central.united-us.com/usai_demo/shopping/isales/selectTearSheetParam.htm"
- #define URL_REQUEST_DM @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetPdf.htm"
- #define URL_SAVE_DM_DIRECT @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetPdf.htm"
- #define URL_SAVE_DM @"https://central.united-us.com/usai_demo/shopping/isales/saveTearSheetPdf.htm"
- #define URL_DM_LIST @"https://central.united-us.com/usai_demo/shopping/isales/tearSheetPdfList.htm"
- //#define URL_DM_SET_QTY @"https://central.united-us.com/usai_demo/shopping/isales/setTearSheetAvailableQty.htm"
- #define URL_REQUEST_MODEL_QTY @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetAvailableQty.htm"
- #define URL_CONTACT_LIST @"https://central.united-us.com/usai_demo/shopping/isales/getAllContact.htm"
- #define URL_SHIPTO_LIST @"https://central.united-us.com/usai_demo/shopping/isales/getShipToContact.htm"
- #define URL_ADDRESS_EDOTOR @"https://central.united-us.com/usai_demo/shopping/isales/getAddAddress.htm"
- #define URL_ADDRESS_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveAddress.htm"
- #define URL_CREDITCARD_EDOTOR @"https://central.united-us.com/usai_demo/shopping/isales/creditCard.htm"
- #define URL_CREDITCARD_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveAddress.htm"
- #define URL_CUSTOMER_INFO @"https://central.united-us.com/usai_demo/shopping/isales/getCustomerInfoByContact.htm"
- #define URL_NEW_CUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/getAddCustomer.htm"
- #define URL_CUSTOMER_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveCustomer.htm"
- #define URL_UPDATE_CUSTOMER_BCARD @"https://central.united-us.com/usai_demo/shopping/isales/updateCustomerBusiCard.htm"
- #define URL_CUSTOMER_ADV_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/getContactAdvance.htm"
- #define URL_ERR_LOG @"https://central.united-us.com/usai_demo/shopping/isales/er_log.htm"
- #define URL_UPLOAD_IMG @"https://central.united-us.com/usai_demo/shopping/isales/uploadImg.htm"
- #define URL_COPY_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/copyOrder.htm"
- #define URL_SIGN_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/updateOrderSign.htm"
- #define URL_CUSTOMER_UPDATE @"https://central.united-us.com/usai_demo/shopping/isales/updateCustomer.htm"
- #define URL_CART_GENERAL_NOTES @"https://central.united-us.com/usai_demo/shopping/isales/updateGeneralNote.htm"
- #define URL_CART_ITEM_NOTES @"https://central.united-us.com/usai_demo/shopping/isales/setItemNotes.htm"
- #define URL_EDIT_CUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/getUpdateCustomerInfoByContact.htm"
- #define URL_CUSTOMER_PENDINGORDER @"https://central.united-us.com/usai_demo/shopping/isales/hasPendingOrderByContact.htm"
- #define URL_PORTFOLIOLIST_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteTearSheetPdf.htm"
- #define URL_NPD_POLICY @"https://central.united-us.com/usai_demo/shopping/isales/generalPolicy.htm"
- #define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm"
- #define URL_CHECK_OFFLINE @"https://central.united-us.com/demo/shopping/offline/initDatas.htm"
- #define URL_DOWNLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/downloadDatas.htm"
- #define URL_FINISH_DOWNLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/confirmVersion.htm"
- #define URL_UPLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/uploadOfflineData.htm"
- #define URL_CATEGORYADDALL @"https://central.united-us.com/usai_demo/shopping/isales/categoryAddAllTo.htm"
- #define URL_SEARCHADDALL @"https://central.united-us.com/usai_demo/shopping/isales/searchAddAllTo.htm"
- #define URL_ITEMSEARCHADDALL @"https://central.united-us.com/usai_demo/shopping/isales/itemSearchAddAllTo.htm"
- #define URL_SET_PRICE_TYPE @"https://central.united-us.com/usai_demo/shopping/isales/setSeePriceType.htm"
- #define URL_GET_CIVEN_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/getSeeGivenPrice.htm"
- #define URL_SET_GIVEN_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setSeeGivenPrice.htm"
- #define URL_SET_MERGE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/mergeOrder.htm"
- #define URL_REQUEST_LOGIN @"https://central.united-us.com/usai_demo/shopping/isales/requestLogin.htm"
- #define URL_EMAIL_CART @"https://central.united-us.com/usai_demo/shopping/isales/sendCartEmail.htm"
- #define URL_NOTIFY_ME @"https://central.united-us.com/usai_demo/shopping/isales/notifyMeEmail.htm"
- #define URL_EMAIL_WISHLIST @"https://central.united-us.com/usai_demo/shopping/isales/sendWishListEmail.htm"
- #define URL_BLOG @"https://central.united-us.com/demo/shopping/blog"
- #define URL_MOVE_TO_BACK_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/moveToBackOrder.htm"
- #define URL_BACK_ORDER_PREVIEW @"https://central.united-us.com/usai_demo/shopping/isales/cartDeliveryBackOrderReview.htm"
- #endif
- #endif
- /*
- */
|