config.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. //
  2. // config.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-6-20.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #ifndef RedAnt_ERP_Mobile_config_h
  9. #define RedAnt_ERP_Mobile_config_h
  10. #define BUILD_NPD
  11. #define JSON_TIMEOUT 60
  12. #define RA_NOTIFICATION
  13. //#define GOOGLE_ANALYTICS
  14. #define BACKORDER_PROCESS // 允许backorder process
  15. #define USE_MFI_SCANNER // stock mobile mfi 扫描枪
  16. # ifdef DEBUG
  17. //#define test_server
  18. # endif
  19. #define exception_switch 1
  20. #define notifyMe_switch 1
  21. //#define ab_lager @"Delivery price"
  22. #define flat_price @"MSRP"
  23. #define given_price @"store price"
  24. #import "RASingleton.h"
  25. #define URL_SO_CART @""
  26. #define OFFLINE_MODE
  27. #define PDF_DEBUG false
  28. //#define ENCRYPT_OFF
  29. #define CONTACT_LIST 1
  30. #define APP_NAME @"NPD Mobile"
  31. #define COMPANY_SHORT_NAME @"NPD"
  32. #define COMPANY_NAME @"New Pacific Direct"
  33. #define COMPANY_INFO @"Sales: sales@newpacificdirect.com\nPhone: 510.818.9388"
  34. #define COMPANY_WEB @"www.newpacificdirect.com"
  35. #define COMPANY_FULL_NAME @"New Pacific Direct,Inc."
  36. #define LOCAL_URL_CUSTOMER_INFO_EDITOR @"customer_info_template"
  37. #define LOCAL_URL_CUSTOMER_INFO_EDIT @"customer_info_template_edit"
  38. // http://192.168.2.179:8080/site
  39. // http://12.196.120.217
  40. #ifdef test_server
  41. //------------------- chen server-----------------------
  42. #define URL_BACK_ORDER_PREVIEW @"http://192.168.2.179/pjHmlg/isales/cartDeliveryBackOrderReview.htm"
  43. #define URL_MOVE_TO_BACK_ORDER @"http://192.168.2.179/pjHmlg/isales/moveToBackOrder.htm"
  44. #define URL_ORDER_DISCOUNT @""
  45. #define URL_UPDATE_AUTH @"http://192.168.2.179/pjHmlg/isales/login.htm"
  46. #define URL_LOGOUT @"http://192.168.2.179/pjHmlg/isales/loginOut.htm"
  47. #define URL_RETRIEVE_PASS @"http://192.168.2.179/pjHmlg/isales/forgotPassword.htm"
  48. #define URL_REQUEST_CATMENU @"http://192.168.2.179/pjHmlg/isales/menu.htm"
  49. #define URL_LOAD_HOME @"http://192.168.2.179/pjHmlg/isales/homePage.htm"
  50. #define URL_CATEGORY @"http://192.168.2.179/pjHmlg/isales/distinctCategory.htm"
  51. #define URL_SEARCH @"http://192.168.2.179/pjHmlg/isales/search.htm"
  52. #define URL_ITEM_SEARCH @"http://192.168.2.179/pjHmlg/isales/itemSearch.htm"
  53. #define URL_CATEGORY_LOADMORE @"http://192.168.2.179/pjHmlg/isales/categoryMore.htm"
  54. #define URL_CUSTOMER_ADV_SEARCH @"http://192.168.2.179/pjHmlg/isales/getContactAdvance.htm"
  55. #define URL_ORDER_LIST @"http://192.168.2.179/pjHmlg/isales/orderList.htm"
  56. #define URL_ORDER_DETAIL @"http://192.168.2.179/pjHmlg/isales/orderDetail.htm"
  57. #define URL_COMMIT_ORDER @"http://192.168.2.179/pjHmlg/isales/createOrder.htm"
  58. #define URL_COPY_ORDER @"http://192.168.2.179/pjHmlg/isales/copyOrder.htm"
  59. #define URL_SIGN_ORDER @"http://192.168.2.179/pjHmlg/isales/updateOrderSign.htm"
  60. #define URL_SAVE_ORDER @"http://192.168.2.179/pjHmlg/isales/saveOrder.htm"
  61. #define URL_UPDATE_ORDERCUSTOMER @"http://192.168.2.179/pjHmlg/isales/updateOrderCustomerInfo.htm"
  62. #define URL_NEW_ORDER @"http://192.168.2.179/pjHmlg/isales/createNewOrder.htm"
  63. #define URL_OPEN_ORDER @"http://192.168.2.179/pjHmlg/isales/openOrder.htm"
  64. #define URL_RELEASE_ORDER @"http://192.168.2.179/pjHmlg/isales/closeOrder.htm"
  65. #define URL_DELETE_ORDER @"http://192.168.2.179/pjHmlg/isales/deleteOrder.htm"
  66. #define URL_CANCEL_ORDER @"http://192.168.2.179/pjHmlg/isales/cancelOrder.htm"
  67. #define URL_CART_SET_PRICE @"http://192.168.2.179/pjHmlg/isales/setPrice.htm"
  68. #define URL_CART_ITEM_NOTES @"http://192.168.2.179/pjHmlg/isales/setItemNotes.htm"
  69. #define URL_CART_GENERAL_NOTES @"http://192.168.2.179/pjHmlg/isales/updateGeneralNote.htm"
  70. #define URL_CART_INCRESEMENT @"http://192.168.2.179/pjHmlg/isales/increment.htm"
  71. #define URL_CART @"http://192.168.2.179/pjHmlg/isales/cartDtail.htm"
  72. #define URL_CARTDELIVERY @"http://192.168.2.179/pjHmlg/isales/cartDelivery.htm"
  73. #define URL_ADD_TO_CART @"http://192.168.2.179/pjHmlg/isales/addToCart.htm"
  74. #define URL_CART_REMOVE @"http://192.168.2.179/pjHmlg/isales/deleteToCart.htm"
  75. #define URL_CART_CHECK @"http://192.168.2.179/pjHmlg/isales/checkCartItem.htm"
  76. #define URL_CART2WISH @"http://192.168.2.179/pjHmlg/isales/cartRemoveToWishlist.htm"
  77. #define URL_WISH2CART @"http://192.168.2.179/pjHmlg/isales/wishlistRemoveToCart.htm"
  78. #define URL_CATEGORYADDALL @"http://192.168.2.179/pjHmlg/isales/categoryAddAllTo.htm"
  79. #define URL_SEARCHADDALL @"http://192.168.2.179/pjHmlg/isales/searchAddAllTo.htm"
  80. #define URL_ITEMSEARCHADDALL @"http://192.168.2.179/pjHmlg/isales/itemSearchAddAllTo.htm"
  81. #define URL_ITEM_DETAIL @"http://192.168.2.179/pjHmlg/isales/modelDetail.htm"
  82. #define URL_ADD_TO_WATCHLIST @"http://192.168.2.179/pjHmlg/isales/addToWishList.htm"
  83. #define URL_WATCHLIST @"http://192.168.2.179/pjHmlg/isales/wishList.htm"
  84. #define URL_WATCHLIST_REMOVE @"http://192.168.2.179/pjHmlg/isales/deleteToWishList.htm"
  85. #define URL_ADD_TO_PORTFOLIO @"http://192.168.2.179/pjHmlg/isales/addToPortfolio.htm"
  86. #define URL_PORTFOLIO_REMOVE @"http://192.168.2.179/pjHmlg/isales/deleteToPortfolio.htm"
  87. #define URL_PORTFOLIOLIST_REMOVE @"http://192.168.2.179/pjHmlg/isales/deleteTearSheetPdf.htm"
  88. #define URL_PORTFOLIO @"http://192.168.2.179/pjHmlg/isales/portfolios.htm"
  89. #define URL_PORTFOLIO_SET_PRICE @"http://192.168.2.179/pjHmlg/isales/setTearSheetPrice.htm"
  90. #define URL_DM_PARAMS @"http://192.168.2.179/pjHmlg/isales/selectTearSheetParam.htm"
  91. #define URL_REQUEST_DM @"http://192.168.2.179/pjHmlg/isales/getTearSheetPdf.htm"
  92. #define URL_SAVE_DM_DIRECT @"http://192.168.2.179/pjHmlg/isales/getTearSheetPdf.htm"
  93. #define URL_SAVE_DM @"http://192.168.2.179/pjHmlg/isales/saveTearSheetPdf.htm"
  94. #define URL_DM_LIST @"http://192.168.2.179/pjHmlg/isales/tearSheetPdfList.htm"
  95. //#define URL_DM_SET_QTY @"http://192.168.2.179/pjHmlg/isales/setTearSheetAvailableQty.htm"
  96. #define URL_REQUEST_MODEL_QTY @"http://192.168.2.179/pjHmlg/isales/getTearSheetAvailableQty.htm"
  97. #define URL_CONTACT_LIST @"http://192.168.2.179/pjHmlg/isales/getAllContact.htm"
  98. #define URL_SHIPTO_LIST @"http://192.168.2.179/pjHmlg/isales/getShipToContact.htm"
  99. #define URL_ADDRESS_EDOTOR @"http://192.168.2.179/pjHmlg/isales/getAddAddress.htm"
  100. #define URL_ADDRESS_SAVE @"http://192.168.2.179/pjHmlg/isales/saveAddress.htm"
  101. #define URL_CREDITCARD_EDOTOR @"http://192.168.2.179/pjHmlg/isales/creditCard.htm"
  102. #define URL_CREDITCARD_SAVE @"http://192.168.2.179/pjHmlg/isales/saveAddress.htm"
  103. #define URL_CUSTOMER_INFO @"http://192.168.2.179/pjHmlg/isales/getCustomerInfoByContact.htm"
  104. #define URL_CUSTOMER_PENDINGORDER @"http://192.168.2.179/pjHmlg/isales/hasPendingOrderByContact.htm"
  105. #define URL_NEW_CUSTOMER @"http://192.168.2.179/pjHmlg/isales/getAddCustomer.htm"
  106. #define URL_EDIT_CUSTOMER @"http://192.168.2.179/pjHmlg/isales/getUpdateCustomerInfoByContact.htm"
  107. #define URL_CUSTOMER_SAVE @"http://192.168.2.179/pjHmlg/isales/saveCustomer.htm"
  108. #define URL_CUSTOMER_UPDATE @"http://192.168.2.179/pjHmlg/isales/updateCustomer.htm"
  109. #define URL_UPDATE_CUSTOMER_BCARD @"http://192.168.2.179/pjHmlg/isales/updateCustomerBusiCard.htm"
  110. #define URL_ERR_LOG @"http://192.168.2.179/pjHmlg/isales/er_log.htm"
  111. #define URL_UPLOAD_IMG @"http://192.168.2.179/pjHmlg/isales/uploadImg.htm"
  112. #define URL_NPD_POLICY @"http://192.168.2.179/pjHmlg/isales/generalPolicy.htm"
  113. #define URL_CHECK_OFFLINE @"http://192.168.2.179:8080/site/offline/initDatas.htm"
  114. #define URL_UPLOAD_OFFLINE @"http://192.168.2.179:8080/site/offline/uploadOfflineData.htm"
  115. #define URL_DOWNLOAD_OFFLINE @"http://192.168.2.179:8080/site/offline/downloadDatas.htm"
  116. #define URL_FINISH_DOWNLOAD_OFFLINE @"http://192.168.2.179:8080/site/offline/confirmVersion.htm"
  117. #define URL_GET_RESULT @"http://192.168.2.179:8080/site/offline/getResultBySerial.htm"
  118. #define URL_SET_PRICE_TYPE @"http://192.168.2.179/pjHmlg/isales/setSeePriceType.htm"
  119. #define URL_GET_CIVEN_PRICE @"http://192.168.2.179/pjHmlg/isales/getSeeGivenPrice.htm"
  120. #define URL_SET_GIVEN_PRICE @"http://192.168.2.179/pjHmlg/isales/setSeeGivenPrice.htm"
  121. #define URL_SET_MERGE_ORDER @"http://192.168.2.179/pjHmlg/isales/mergeOrder.htm"
  122. #define URL_REQUEST_LOGIN @"http://192.168.2.179/pjHmlg/isales/requestLogin.htm"
  123. #define URL_EMAIL_CART @"http://192.168.2.179/pjHmlg/isales/sendCartEmail.htm"
  124. #define URL_NOTIFY_ME @"http://192.168.2.179/pjHmlg/isales/notifyMeEmail.htm"
  125. #define URL_EMAIL_WISHLIST @"http://192.168.2.179/pjHmlg/isales/sendWishListEmail.htm"
  126. #define URL_BLOG @"http://192.168.2.179:8080/site/blog"
  127. #define URL_PRIVACY @""
  128. #define URL_DELETE_ACCOUNT @"http://192.168.2.179/pjHmlg/isales/cancelAccount.htm"
  129. #define URL_CHANGE_PASSWORD @""
  130. #define URL_SIGN_UP @""
  131. #else
  132. //------------------- NPD server-----------------------
  133. #define URL_UPDATE_AUTH @"https://www.newpacificdirect.com/isales/login.htm"
  134. #define URL_LOGOUT @"https://www.newpacificdirect.com/isales/loginOut.htm"
  135. #define URL_RETRIEVE_PASS @"https://www.newpacificdirect.com/isales/forgotPassword.htm"
  136. #define URL_ORDER_DISCOUNT @""
  137. #define URL_REQUEST_CATMENU @"https://www.newpacificdirect.com/isales/menu.htm"
  138. #define URL_LOAD_HOME @"https://www.newpacificdirect.com/isales/homePage.htm"
  139. #define URL_CATEGORY @"https://www.newpacificdirect.com/isales/distinctCategory.htm"
  140. #define URL_SEARCH @"https://www.newpacificdirect.com/isales/search.htm"
  141. #define URL_ITEM_SEARCH @"https://www.newpacificdirect.com/isales/itemSearch.htm"
  142. #define URL_CATEGORY_LOADMORE @"https://www.newpacificdirect.com/isales/categoryMore.htm"
  143. #define URL_SERVER_LIST @""
  144. #define URL_SERVER_CHECK @""
  145. #define URL_CHANGE_PASSWORD @""
  146. #define URL_SIGN_UP @""
  147. #define URL_ORDER_LIST @"https://www.newpacificdirect.com/isales/orderList.htm"
  148. #define URL_ORDER_DETAIL @"https://www.newpacificdirect.com/isales/orderDetail.htm"
  149. #define URL_COMMIT_ORDER @"https://www.newpacificdirect.com/isales/createOrder.htm"
  150. #define URL_SAVE_ORDER @"https://www.newpacificdirect.com/isales/saveOrder.htm"
  151. #define URL_UPDATE_ORDERCUSTOMER @"https://www.newpacificdirect.com/isales/updateOrderCustomerInfo.htm"
  152. #define URL_NEW_ORDER @"https://www.newpacificdirect.com/isales/createNewOrder.htm"
  153. #define URL_DELETE_ACCOUNT @"https://www.newpacificdirect.com/isales/cancelAccount.htm"
  154. #define URL_OPEN_ORDER @"https://www.newpacificdirect.com/isales/openOrder.htm"
  155. #define URL_RELEASE_ORDER @"https://www.newpacificdirect.com/isales/closeOrder.htm"
  156. #define URL_DELETE_ORDER @"https://www.newpacificdirect.com/isales/deleteOrder.htm"
  157. #define URL_CANCEL_ORDER @"https://www.newpacificdirect.com/isales/cancelOrder.htm"
  158. #define URL_CART_SET_PRICE @"https://www.newpacificdirect.com/isales/setPrice.htm"
  159. #define URL_CART_INCRESEMENT @"https://www.newpacificdirect.com/isales/increment.htm"
  160. #define URL_CART @"https://www.newpacificdirect.com/isales/cartDtail.htm"
  161. #define URL_CARTDELIVERY @"https://www.newpacificdirect.com/isales/cartDelivery.htm"
  162. #define URL_ADD_TO_CART @"https://www.newpacificdirect.com/isales/addToCart.htm"
  163. #define URL_CART_REMOVE @"https://www.newpacificdirect.com/isales/deleteToCart.htm"
  164. #define URL_CART_CHECK @"https://www.newpacificdirect.com/isales/checkCartItem.htm"
  165. #define URL_CART2WISH @"https://www.newpacificdirect.com/isales/cartRemoveToWishlist.htm"
  166. #define URL_WISH2CART @"https://www.newpacificdirect.com/isales/wishlistRemoveToCart.htm"
  167. #define URL_ITEM_DETAIL @"https://www.newpacificdirect.com/isales/modelDetail.htm"
  168. #define URL_ADD_TO_WATCHLIST @"https://www.newpacificdirect.com/isales/addToWishList.htm"
  169. #define URL_WATCHLIST @"https://www.newpacificdirect.com/isales/wishList.htm"
  170. #define URL_WATCHLIST_REMOVE @"https://www.newpacificdirect.com/isales/deleteToWishList.htm"
  171. #define URL_ADD_TO_PORTFOLIO @"https://www.newpacificdirect.com/isales/addToPortfolio.htm"
  172. #define URL_PORTFOLIO_REMOVE @"https://www.newpacificdirect.com/isales/deleteToPortfolio.htm"
  173. #define URL_PORTFOLIO @"https://www.newpacificdirect.com/isales/portfolios.htm"
  174. #define URL_PORTFOLIO_SET_PRICE @"https://www.newpacificdirect.com/isales/setTearSheetPrice.htm"
  175. #define URL_DM_PARAMS @"https://www.newpacificdirect.com/isales/selectTearSheetParam.htm"
  176. #define URL_REQUEST_DM @"https://www.newpacificdirect.com/isales/getTearSheetPdf.htm"
  177. #define URL_SAVE_DM_DIRECT @"https://www.newpacificdirect.com/isales/getTearSheetPdf.htm"
  178. #define URL_SAVE_DM @"https://www.newpacificdirect.com/isales/saveTearSheetPdf.htm"
  179. #define URL_DM_LIST @"https://www.newpacificdirect.com/isales/tearSheetPdfList.htm"
  180. //#define URL_DM_SET_QTY @"https://www.newpacificdirect.com/isales/setTearSheetAvailableQty.htm"
  181. #define URL_REQUEST_MODEL_QTY @"https://www.newpacificdirect.com/isales/getTearSheetAvailableQty.htm"
  182. #define URL_CONTACT_LIST @"https://www.newpacificdirect.com/isales/getAllContact.htm"
  183. #define URL_SHIPTO_LIST @"https://www.newpacificdirect.com/isales/getShipToContact.htm"
  184. #define URL_ADDRESS_EDOTOR @"https://www.newpacificdirect.com/isales/getAddAddress.htm"
  185. #define URL_ADDRESS_SAVE @"https://www.newpacificdirect.com/isales/saveAddress.htm"
  186. #define URL_CREDITCARD_EDOTOR @"https://www.newpacificdirect.com/isales/creditCard.htm"
  187. #define URL_CREDITCARD_SAVE @"https://www.newpacificdirect.com/isales/saveAddress.htm"
  188. #define URL_CUSTOMER_INFO @"https://www.newpacificdirect.com/isales/getCustomerInfoByContact.htm"
  189. #define URL_NEW_CUSTOMER @"https://www.newpacificdirect.com/isales/getAddCustomer.htm"
  190. #define URL_CUSTOMER_SAVE @"https://www.newpacificdirect.com/isales/saveCustomer.htm"
  191. #define URL_UPDATE_CUSTOMER_BCARD @"https://www.newpacificdirect.com/isales/updateCustomerBusiCard.htm"
  192. #define URL_CUSTOMER_ADV_SEARCH @"https://www.newpacificdirect.com/isales/getContactAdvance.htm"
  193. #define URL_ERR_LOG @"https://www.newpacificdirect.com/isales/er_log.htm"
  194. #define URL_UPLOAD_IMG @"https://www.newpacificdirect.com/isales/uploadImg.htm"
  195. #define URL_COPY_ORDER @"https://www.newpacificdirect.com/isales/copyOrder.htm"
  196. #define URL_SIGN_ORDER @"https://www.newpacificdirect.com/isales/updateOrderSign.htm"
  197. #define URL_CUSTOMER_UPDATE @"https://www.newpacificdirect.com/isales/updateCustomer.htm"
  198. #define URL_CART_GENERAL_NOTES @"https://www.newpacificdirect.com/isales/updateGeneralNote.htm"
  199. #define URL_CART_ITEM_NOTES @"https://www.newpacificdirect.com/isales/setItemNotes.htm"
  200. #define URL_EDIT_CUSTOMER @"https://www.newpacificdirect.com/isales/getUpdateCustomerInfoByContact.htm"
  201. #define URL_CUSTOMER_PENDINGORDER @"https://www.newpacificdirect.com/isales/hasPendingOrderByContact.htm"
  202. #define URL_PORTFOLIOLIST_REMOVE @"https://www.newpacificdirect.com/isales/deleteTearSheetPdf.htm"
  203. #define URL_NPD_POLICY @"https://www.newpacificdirect.com/isales/generalPolicy.htm"
  204. #define URL_CHECK_OFFLINE @"https://www.newpacificdirect.com/offline/initDatas.htm"
  205. #define URL_DOWNLOAD_OFFLINE @"https://www.newpacificdirect.com/offline/downloadDatas.htm"
  206. #define URL_FINISH_DOWNLOAD_OFFLINE @"https://www.newpacificdirect.com/offline/confirmVersion.htm"
  207. #define URL_UPLOAD_OFFLINE @"https://www.newpacificdirect.com/offline/uploadOfflineData.htm"
  208. #define URL_CATEGORYADDALL @"https://www.newpacificdirect.com/isales/categoryAddAllTo.htm"
  209. #define URL_SEARCHADDALL @"https://www.newpacificdirect.com/isales/searchAddAllTo.htm"
  210. #define URL_ITEMSEARCHADDALL @"https://www.newpacificdirect.com/isales/itemSearchAddAllTo.htm"
  211. #define URL_SET_PRICE_TYPE @"https://www.newpacificdirect.com/isales/setSeePriceType.htm"
  212. #define URL_GET_CIVEN_PRICE @"https://www.newpacificdirect.com/isales/getSeeGivenPrice.htm"
  213. #define URL_SET_GIVEN_PRICE @"https://www.newpacificdirect.com/isales/setSeeGivenPrice.htm"
  214. #define URL_SET_MERGE_ORDER @"https://www.newpacificdirect.com/isales/mergeOrder.htm"
  215. #define URL_REQUEST_LOGIN @"https://www.newpacificdirect.com/isales/requestLogin.htm"
  216. #define URL_EMAIL_CART @"https://www.newpacificdirect.com/isales/sendCartEmail.htm"
  217. #define URL_NOTIFY_ME @"https://www.newpacificdirect.com/isales/notifyMeEmail.htm"
  218. #define URL_EMAIL_WISHLIST @"https://www.newpacificdirect.com/isales/sendWishListEmail.htm"
  219. #define URL_BLOG @"https://www.newpacificdirect.com/blog"
  220. #define URL_MOVE_TO_BACK_ORDER @"https://www.newpacificdirect.com/isales/moveToBackOrder.htm"
  221. #define URL_BACK_ORDER_PREVIEW @"https://www.newpacificdirect.com/isales/cartDeliveryBackOrderReview.htm"
  222. #define URL_PRIVACY @"https://www.newpacificdirect.com/privacyPolicy.htm"
  223. #endif
  224. #endif
  225. /*
  226. */