config.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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_HMLG_SCAN_ORDER
  11. #define BACKORDER_PROCESS // 允许backorder process
  12. #define JSON_TIMEOUT 30 //接口超时
  13. #define GLES_SILENCE_DEPRECATION //关闭glkview警告
  14. #define RA_NOTIFICATION
  15. # ifdef DEBUG
  16. //#define test_server
  17. # endif
  18. #define exception_switch 1
  19. #define notifyMe_switch 1
  20. //#define ab_lager @"Delivery price"
  21. #define flat_price @"MSRP"
  22. #define given_price @"store price"
  23. #import "RASingleton.h"
  24. //离线模式开关
  25. //#define OFFLINE_MODE
  26. // 扫码订单开关
  27. #define SCANNER_ORDER
  28. #ifdef SCANNER_ORDER
  29. //#define URL_SO_CONTACT @"abc"
  30. //#define URL_SO_NEW_CONTACT @"offline_order_new_contact"
  31. //#define URL_SO_ORDER @"scan_order"
  32. //#define URL_SO_CART @"scan_cart"
  33. #endif
  34. //google analytics 开关
  35. //#define GOOGLE_ANALYTICS
  36. //pdf 调试开关
  37. #define PDF_DEBUG false
  38. //#define ENCRYPT_OFF
  39. #define CONTACT_LIST 1
  40. #define APP_NAME @"HMLG Scan Order"
  41. #define COMPANY_SHORT_NAME @"HMLG Scan Order"
  42. #define COMPANY_NAME @"Homelegance"
  43. #define COMPANY_INFO @"Email: IT@homelegance.com\nPhone: (510) 933-6888"
  44. #define COMPANY_WEB @"www.united-us.net"
  45. #define COMPANY_FULL_NAME @"United Software Applications, Inc."
  46. #define LOCAL_URL_CUSTOMER_INFO_EDITOR @"customer_info_template"
  47. #define LOCAL_URL_CUSTOMER_INFO_EDIT @"customer_info_template_edit"
  48. #define URL_SCAN_DOWNLOAD @"download/offlineorder/offlineOrderUsers.zip"
  49. // http://192.168.0.133:8080/site
  50. // http://12.196.120.217
  51. #ifdef test_server
  52. #define BASE_URL @"http://192.168.0.133:8088/wm_postgresql/"
  53. //------------------- chen server-----------------------
  54. #else
  55. #define BASE_URL @"https://erp.homelegance.com/"
  56. //
  57. //
  58. ////------------------- NPD server-----------------------
  59. //#define URL_DELETE_ACCOUNT @""
  60. //#define URL_UPDATE_AUTH @"https://central.united-us.com/usai_demo/shopping/isales/login.htm"
  61. //#define URL_LOGOUT @"https://central.united-us.com/usai_demo/shopping/isales/loginOut.htm"
  62. //#define URL_RETRIEVE_PASS @"https://central.united-us.com/usai_demo/shopping/isales/forgotPassword.htm"
  63. //
  64. //#define URL_REQUEST_CATMENU @"https://central.united-us.com/usai_demo/shopping/isales/menu.htm"
  65. //#define URL_LOAD_HOME @"https://central.united-us.com/usai_demo/shopping/isales/homePage.htm"
  66. //#define URL_CATEGORY @"https://central.united-us.com/usai_demo/shopping/isales/distinctCategory.htm"
  67. //#define URL_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/search.htm"
  68. //#define URL_ITEM_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/itemSearch.htm"
  69. //#define URL_CATEGORY_LOADMORE @"https://central.united-us.com/usai_demo/shopping/isales/categoryMore.htm"
  70. //
  71. //
  72. //#define URL_ORDER_LIST @"https://central.united-us.com/usai_demo/shopping/isales/orderList.htm"
  73. //#define URL_ORDER_DETAIL @"https://central.united-us.com/usai_demo/shopping/isales/orderDetail.htm"
  74. //#define URL_COMMIT_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/createOrder.htm"
  75. //#define URL_SAVE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/saveOrder.htm"
  76. //#define URL_UPDATE_ORDERCUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/updateOrderCustomerInfo.htm"
  77. //#define URL_NEW_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/createNewOrder.htm"
  78. //#define URL_OPEN_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/openOrder.htm"
  79. //#define URL_RELEASE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/closeOrder.htm"
  80. //#define URL_DELETE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/deleteOrder.htm"
  81. //#define URL_CANCEL_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/cancelOrder.htm"
  82. //
  83. //
  84. //#define URL_CART_SET_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setPrice.htm"
  85. //#define URL_CART_INCRESEMENT @"https://central.united-us.com/usai_demo/shopping/isales/increment.htm"
  86. //#define URL_CART @"https://central.united-us.com/usai_demo/shopping/isales/cartDtail.htm"
  87. //#define URL_CARTDELIVERY @"https://central.united-us.com/usai_demo/shopping/isales/cartDelivery.htm"
  88. //#define URL_ADD_TO_CART @"https://central.united-us.com/usai_demo/shopping/isales/addToCart.htm"
  89. //#define URL_CART_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToCart.htm"
  90. //#define URL_CART_CHECK @"https://central.united-us.com/usai_demo/shopping/isales/checkCartItem.htm"
  91. //
  92. //#define URL_CART2WISH @"https://central.united-us.com/usai_demo/shopping/isales/cartRemoveToWishlist.htm"
  93. //#define URL_WISH2CART @"https://central.united-us.com/usai_demo/shopping/isales/wishlistRemoveToCart.htm"
  94. //
  95. //#define URL_ITEM_DETAIL @"https://central.united-us.com/usai_demo/shopping/isales/modelDetail.htm"
  96. //
  97. //#define URL_ADD_TO_WATCHLIST @"https://central.united-us.com/usai_demo/shopping/isales/addToWishList.htm"
  98. //#define URL_WATCHLIST @"https://central.united-us.com/usai_demo/shopping/isales/wishList.htm"
  99. //#define URL_WATCHLIST_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToWishList.htm"
  100. //
  101. //
  102. //
  103. //#define URL_ADD_TO_PORTFOLIO @"https://central.united-us.com/usai_demo/shopping/isales/addToPortfolio.htm"
  104. //#define URL_PORTFOLIO_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteToPortfolio.htm"
  105. //#define URL_PORTFOLIO @"https://central.united-us.com/usai_demo/shopping/isales/portfolios.htm"
  106. //#define URL_PORTFOLIO_SET_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setTearSheetPrice.htm"
  107. //#define URL_DM_PARAMS @"https://central.united-us.com/usai_demo/shopping/isales/selectTearSheetParam.htm"
  108. //#define URL_REQUEST_DM @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetPdf.htm"
  109. //#define URL_SAVE_DM_DIRECT @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetPdf.htm"
  110. //#define URL_SAVE_DM @"https://central.united-us.com/usai_demo/shopping/isales/saveTearSheetPdf.htm"
  111. //#define URL_DM_LIST @"https://central.united-us.com/usai_demo/shopping/isales/tearSheetPdfList.htm"
  112. ////#define URL_DM_SET_QTY @"https://central.united-us.com/usai_demo/shopping/isales/setTearSheetAvailableQty.htm"
  113. //#define URL_REQUEST_MODEL_QTY @"https://central.united-us.com/usai_demo/shopping/isales/getTearSheetAvailableQty.htm"
  114. //
  115. //
  116. //#define URL_CONTACT_LIST @"https://central.united-us.com/usai_demo/shopping/isales/getAllContact.htm"
  117. //#define URL_SHIPTO_LIST @"https://central.united-us.com/usai_demo/shopping/isales/getShipToContact.htm"
  118. //
  119. //#define URL_ADDRESS_EDOTOR @"https://central.united-us.com/usai_demo/shopping/isales/getAddAddress.htm"
  120. //#define URL_ADDRESS_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveAddress.htm"
  121. //
  122. //
  123. //#define URL_CREDITCARD_EDOTOR @"https://central.united-us.com/usai_demo/shopping/isales/creditCard.htm"
  124. //#define URL_CREDITCARD_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveAddress.htm"
  125. //
  126. //
  127. //
  128. //#define URL_CUSTOMER_INFO @"https://central.united-us.com/usai_demo/shopping/isales/getCustomerInfoByContact.htm"
  129. //#define URL_NEW_CUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/getAddCustomer.htm"
  130. //#define URL_CUSTOMER_SAVE @"https://central.united-us.com/usai_demo/shopping/isales/saveCustomer.htm"
  131. //#define URL_UPDATE_CUSTOMER_BCARD @"https://central.united-us.com/usai_demo/shopping/isales/updateCustomerBusiCard.htm"
  132. //#define URL_CUSTOMER_ADV_SEARCH @"https://central.united-us.com/usai_demo/shopping/isales/getContactAdvance.htm"
  133. //
  134. //
  135. //
  136. //
  137. //
  138. //#define URL_ERR_LOG @"https://central.united-us.com/usai_demo/shopping/isales/er_log.htm"
  139. //
  140. //#define URL_UPLOAD_IMG @"https://central.united-us.com/usai_demo/shopping/isales/uploadImg.htm"
  141. //
  142. //#define URL_COPY_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/copyOrder.htm"
  143. //#define URL_SIGN_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/updateOrderSign.htm"
  144. //#define URL_CUSTOMER_UPDATE @"https://central.united-us.com/usai_demo/shopping/isales/updateCustomer.htm"
  145. //#define URL_CART_GENERAL_NOTES @"https://central.united-us.com/usai_demo/shopping/isales/updateGeneralNote.htm"
  146. //#define URL_CART_ITEM_NOTES @"https://central.united-us.com/usai_demo/shopping/isales/setItemNotes.htm"
  147. //#define URL_EDIT_CUSTOMER @"https://central.united-us.com/usai_demo/shopping/isales/getUpdateCustomerInfoByContact.htm"
  148. //#define URL_CUSTOMER_PENDINGORDER @"https://central.united-us.com/usai_demo/shopping/isales/hasPendingOrderByContact.htm"
  149. //#define URL_PORTFOLIOLIST_REMOVE @"https://central.united-us.com/usai_demo/shopping/isales/deleteTearSheetPdf.htm"
  150. //#define URL_NPD_POLICY @"https://central.united-us.com/usai_demo/shopping/isales/generalPolicy.htm"
  151. //
  152. //#define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm"
  153. //
  154. //
  155. //#define URL_CHECK_OFFLINE @"https://central.united-us.com/demo/shopping/offline/initDatas.htm"
  156. //
  157. //#define URL_DOWNLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/downloadDatas.htm"
  158. //
  159. //#define URL_FINISH_DOWNLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/confirmVersion.htm"
  160. //#define URL_UPLOAD_OFFLINE @"https://central.united-us.com/demo/shopping/offline/uploadOfflineData.htm"
  161. //
  162. //#define URL_CATEGORYADDALL @"https://central.united-us.com/usai_demo/shopping/isales/categoryAddAllTo.htm"
  163. //#define URL_SEARCHADDALL @"https://central.united-us.com/usai_demo/shopping/isales/searchAddAllTo.htm"
  164. //#define URL_ITEMSEARCHADDALL @"https://central.united-us.com/usai_demo/shopping/isales/itemSearchAddAllTo.htm"
  165. //
  166. //#define URL_SET_PRICE_TYPE @"https://central.united-us.com/usai_demo/shopping/isales/setSeePriceType.htm"
  167. //
  168. //#define URL_GET_CIVEN_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/getSeeGivenPrice.htm"
  169. //
  170. //#define URL_SET_GIVEN_PRICE @"https://central.united-us.com/usai_demo/shopping/isales/setSeeGivenPrice.htm"
  171. //
  172. //#define URL_SET_MERGE_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/mergeOrder.htm"
  173. //
  174. //#define URL_REQUEST_LOGIN @"https://central.united-us.com/usai_demo/shopping/isales/requestLogin.htm"
  175. //
  176. //#define URL_EMAIL_CART @"https://central.united-us.com/usai_demo/shopping/isales/sendCartEmail.htm"
  177. //
  178. //#define URL_NOTIFY_ME @"https://central.united-us.com/usai_demo/shopping/isales/notifyMeEmail.htm"
  179. //
  180. //#define URL_EMAIL_WISHLIST @"https://central.united-us.com/usai_demo/shopping/isales/sendWishListEmail.htm"
  181. //
  182. //#define URL_BLOG @"https://central.united-us.com/demo/shopping/blog"
  183. //
  184. //#define URL_MOVE_TO_BACK_ORDER @"https://central.united-us.com/usai_demo/shopping/isales/moveToBackOrder.htm"
  185. //
  186. //#define URL_BACK_ORDER_PREVIEW @"https://central.united-us.com/usai_demo/shopping/isales/cartDeliveryBackOrderReview.htm"
  187. #endif
  188. #define URL_SERVER_LIST BASE_URL@"offlineorder_isales.php"
  189. #define URL_SCAN_NEWS BASE_URL@"offlineorder_isales.php"
  190. #define URL_SERVER_CHECK @"offlineorder_isales.php"
  191. #define URL_SIGN_UP @"offlineorder_isales.php"
  192. #define URL_RETRIEVE_PASS @"offlineorder_isales.php"
  193. #define URL_UPDATE_AUTH @"offlineorder_isales.php"
  194. #define URL_SEARCH BASE_URL@"offlineorder_isales.php"
  195. #define URL_DELETE_ACCOUNT @"offlineorder_isales.php"
  196. #define URL_PRIVACY @"https://uwa.united-us.net/site/isales_uwa/privacyPolicy.htm"
  197. #define URL_CHANGE_PASSWORD @"offlineorder_isales.php"
  198. #define URL_SCAN_UPLOAD @"offlineorder_isales.php"
  199. #define URL_BACK_ORDER_PREVIEW @""
  200. #define URL_MOVE_TO_BACK_ORDER @""
  201. #define URL_LOGOUT @"http://12.196.120.217/isales/loginOut.htm"
  202. #define URL_REQUEST_CATMENU @""
  203. #define URL_LOAD_HOME @""
  204. #define URL_CATEGORY @""
  205. #define URL_ITEM_SEARCH @""
  206. #define URL_CATEGORY_LOADMORE @""
  207. #define URL_CUSTOMER_ADV_SEARCH @""
  208. #define URL_ORDER_LIST @""
  209. #define URL_ORDER_DETAIL @""
  210. #define URL_COMMIT_ORDER @""
  211. #define URL_COPY_ORDER @""
  212. #define URL_SIGN_ORDER @""
  213. #define URL_SAVE_ORDER @""
  214. #define URL_UPDATE_ORDERCUSTOMER @""
  215. #define URL_NEW_ORDER @""
  216. #define URL_OPEN_ORDER @""
  217. #define URL_RELEASE_ORDER @""
  218. #define URL_DELETE_ORDER @""
  219. #define URL_CANCEL_ORDER @""
  220. #define URL_CART_SET_PRICE @""
  221. #define URL_CART_ITEM_NOTES @""
  222. #define URL_CART_GENERAL_NOTES @""
  223. #define URL_CART_INCRESEMENT @""
  224. #define URL_CART @""
  225. #define URL_CARTDELIVERY @""
  226. #define URL_ADD_TO_CART @""
  227. #define URL_CART_REMOVE @""
  228. #define URL_CART_CHECK @""
  229. #define URL_CART2WISH @""
  230. #define URL_WISH2CART @""
  231. #define URL_CATEGORYADDALL @""
  232. #define URL_SEARCHADDALL @""
  233. #define URL_ITEMSEARCHADDALL @""
  234. #define URL_ITEM_DETAIL @""
  235. #define URL_ADD_TO_WATCHLIST @""
  236. #define URL_WATCHLIST @""
  237. #define URL_WATCHLIST_REMOVE @""
  238. #define URL_ADD_TO_PORTFOLIO @""
  239. #define URL_PORTFOLIO_REMOVE @""
  240. #define URL_PORTFOLIOLIST_REMOVE @""
  241. #define URL_PORTFOLIO @""
  242. #define URL_PORTFOLIO_SET_PRICE @""
  243. #define URL_DM_PARAMS @""
  244. #define URL_REQUEST_DM @""
  245. #define URL_SAVE_DM_DIRECT @""
  246. #define URL_SAVE_DM @""
  247. #define URL_DM_LIST @""
  248. //#define URL_DM_SET_QTY @"http://12.196.120.217/isales/setTearSheetAvailableQty.htm"
  249. #define URL_REQUEST_MODEL_QTY @""
  250. #define URL_CONTACT_LIST @""
  251. #define URL_SHIPTO_LIST @""
  252. #define URL_ADDRESS_EDOTOR @""
  253. #define URL_ADDRESS_SAVE @""
  254. #define URL_CREDITCARD_EDOTOR @""
  255. #define URL_CREDITCARD_SAVE @""
  256. #define URL_CUSTOMER_INFO @""
  257. #define URL_CUSTOMER_PENDINGORDER @""
  258. #define URL_NEW_CUSTOMER @""
  259. #define URL_EDIT_CUSTOMER @""
  260. #define URL_CUSTOMER_SAVE @""
  261. #define URL_CUSTOMER_UPDATE @""
  262. #define URL_UPDATE_CUSTOMER_BCARD @""
  263. #define URL_ERR_LOG @""
  264. #define URL_UPLOAD_IMG @""
  265. #define URL_NPD_POLICY @""
  266. #define URL_CHECK_OFFLINE @""
  267. #define URL_UPLOAD_OFFLINE @""
  268. #define URL_DOWNLOAD_OFFLINE @""
  269. #define URL_FINISH_DOWNLOAD_OFFLINE @""
  270. #define URL_GET_RESULT @""
  271. #define URL_SET_PRICE_TYPE @""
  272. #define URL_GET_CIVEN_PRICE @""
  273. #define URL_SET_GIVEN_PRICE @""
  274. #define URL_SET_MERGE_ORDER @""
  275. #define URL_REQUEST_LOGIN @""
  276. #define URL_EMAIL_CART @""
  277. #define URL_NOTIFY_ME @""
  278. #define URL_EMAIL_WISHLIST @""
  279. #define URL_BLOG @""
  280. #endif
  281. /*
  282. */