NewOrderVC.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. //
  2. // OrderVC.h
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2018/1/24.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. // 功能描述:订单控制器
  9. #import "BaseViewController.h"
  10. #import "OrderListDelegate.h"
  11. #import "CustomerCodeSearchModel.h"
  12. #import "CustomerCodeSearchVC.h"
  13. #import "SalesOrderBusinessDepartmentVC.h"
  14. #import "SalesManModel.h"
  15. #import "SalesManFrame.h"
  16. #import "SalesManVC.h"
  17. #import "CustomerReportTextVC.h"
  18. #import "IntermediateCustomerModel.h"
  19. #import "IntermediateCustomerFrame.h"
  20. #import "IntermediateCustomerVC.h"
  21. #import "EarnestModel.h"
  22. #import "EarnestAmountVC.h"
  23. #import "EarnestModel.h"
  24. #import "SBJsonWriter.h"
  25. #import "DateFormat.h"
  26. #import "FeeAmountModel.h"
  27. #import "FeeAmountVC.h"
  28. #import "NewOrderGoodsDetailVC.h"
  29. @class NewOrderGiftDetailVC;
  30. @class NewSalesOrderHomeVC;
  31. @interface NewOrderVC : BaseViewController<UIScrollViewDelegate,OrderListDelegate,OrderDelegate,UITextFieldDelegate,FeeAmountDelegate>
  32. /**
  33. 客户编码输入控件
  34. */
  35. @property(nonatomic,strong) UITextField *txtCustomerCode;
  36. /**
  37. 主界面视图
  38. */
  39. @property(nonatomic,strong)UIView *vBody;
  40. /**
  41. 客户编码右箭头
  42. */
  43. @property(nonatomic,strong)UIButton *btnCustomerCode;
  44. /**
  45. 客户名称
  46. */
  47. @property(nonatomic,strong) UITextField *txtCustomerName;
  48. /**
  49. 电话
  50. */
  51. @property(nonatomic,strong) UITextField *txtTelephone;
  52. /**
  53. 业务部门控件
  54. */
  55. @property(nonatomic,strong) UILabel *lblOrganizationName;
  56. /**
  57. 业务员控件
  58. */
  59. @property(nonatomic,strong) UILabel *lblStaff;
  60. /**
  61. 渠道控件
  62. */
  63. @property(nonatomic,strong) UILabel *lblChannel;
  64. /**
  65. 客户区域控件
  66. */
  67. @property(nonatomic,strong) UILabel *lblCustomerArea;
  68. /**
  69. 客户地址控件
  70. */
  71. @property(nonatomic,strong) UITextField *txtCustomerAddress;
  72. /**
  73. 备注控件
  74. */
  75. @property(nonatomic,strong) UITextField *txtRemarks;
  76. /**
  77. 顶部数据数组
  78. */
  79. @property (strong, nonatomic) NSMutableArray *topDataList;
  80. /**
  81. 底部数据数组
  82. */
  83. @property (strong, nonatomic) NSMutableArray *bottomDataList;
  84. /**
  85. 顶部数据视图
  86. */
  87. @property(nonatomic,strong)UIView *vTop;
  88. /**
  89. 底部数据视图
  90. */
  91. @property(nonatomic,strong)UIView *vBottom;
  92. /**
  93. 更多信息视图
  94. */
  95. @property(nonatomic,strong)UIView *vOperation;
  96. /**
  97. 分隔线
  98. */
  99. @property(nonatomic,strong)UIView *separator1;
  100. /**
  101. 分隔线
  102. */
  103. @property(nonatomic,strong)UIView *separator2;
  104. /**
  105. 客户地址视图
  106. */
  107. @property(nonatomic,strong)UIView *vCustomerAddress;
  108. /**
  109. 备注视图
  110. */
  111. @property(nonatomic,strong)UIView *vRemarks;
  112. /**
  113. 客户区域视图
  114. */
  115. @property(nonatomic,strong)UIView * vCustomerArea;
  116. /**
  117. 部门视图
  118. */
  119. @property(nonatomic,strong)UIView * vDepartment;
  120. /**
  121. 客户性质视图
  122. */
  123. @property(nonatomic,strong)UIView * vCustomerType;
  124. /**
  125. 客户性质控件
  126. */
  127. @property(nonatomic,strong) UILabel *lblCustomerType;
  128. @property(nonatomic,strong)UIView * vPerformanceAccountingCategory;
  129. @property(nonatomic,strong) UILabel *lblPerformanceAccountingCategory;
  130. @property(nonatomic,strong)UIView * vFeesAmount;
  131. @property(nonatomic,strong) UILabel *lblFeesAmount;
  132. @property(nonatomic,strong)UIView * vTotalM2;
  133. @property(nonatomic,strong) UILabel *lblTotalM2;
  134. /**
  135. 中间客户视图
  136. */
  137. @property(nonatomic,strong)UIView * vIntermediateCustomer;
  138. /**
  139. 中间客户控件
  140. */
  141. @property(nonatomic,strong) UILabel *lblIntermediateCustomer;
  142. /**
  143. 定金视图
  144. */
  145. @property(nonatomic,strong)UIView * vPayment;
  146. /**
  147. 定金控件
  148. */
  149. @property(nonatomic,strong)UILabel *lblPayment;
  150. /**
  151. 货物总额视图
  152. */
  153. @property(nonatomic,strong)UIView * vGoodsAmount;
  154. /**
  155. 货物总额控件
  156. */
  157. @property(nonatomic,strong)UILabel *lblGoodsAmount;
  158. /**
  159. 合计总额视图
  160. */
  161. @property(nonatomic,strong)UIView *vTotalAmount;
  162. /**
  163. 合计总额控件
  164. */
  165. @property(nonatomic,strong)UILabel *lblTotalAmount;
  166. /**
  167. 合同号视图
  168. */
  169. @property(nonatomic,strong)UIView *vContractNo;
  170. /**
  171. 合同号控件
  172. */
  173. @property(nonatomic,strong)UITextField *txtContractNo;
  174. /**
  175. 联系人视图
  176. */
  177. @property(nonatomic,strong)UIView *vContactPerson;
  178. /**
  179. 联系人控件
  180. */
  181. @property(nonatomic,strong)UITextField *txtContactPerson;
  182. /**
  183. 联系方式视图
  184. */
  185. @property(nonatomic,strong)UIView *vContactWay;
  186. /**
  187. 联系方式控件
  188. */
  189. @property(nonatomic,strong)UITextField *txtContactWay;
  190. /**
  191. 整单折扣视图
  192. */
  193. @property(nonatomic,strong)UIView *vFullDiscount;
  194. /**
  195. 整单折扣控件
  196. */
  197. @property(nonatomic,strong)UILabel *lblFullDiscount;
  198. /**
  199. 转销售视图
  200. */
  201. @property(nonatomic,strong)UIView* vToSalesAmount;
  202. /**
  203. 转销售控件
  204. */
  205. @property(nonatomic,strong)UILabel *lblToSalesAmount;
  206. /**
  207. 安装日期视图
  208. */
  209. @property(nonatomic,strong)UIView* vInstallDate;
  210. /**
  211. 安装日期控件
  212. */
  213. @property(nonatomic,strong)UILabel *lblInstallDate;
  214. /**
  215. 配送日期视图
  216. */
  217. @property(nonatomic,strong)UIView* vDeliveryDate;
  218. /**
  219. 配送日期控件
  220. */
  221. @property(nonatomic,strong)UILabel *lblDeliveryDate;
  222. /**
  223. 楼层视图
  224. */
  225. @property(nonatomic,strong)UIView *vFloor;
  226. /**
  227. 楼层控件
  228. */
  229. @property(nonatomic,strong)UILabel *lblFloor;
  230. /**
  231. 装修进度视图
  232. */
  233. @property(nonatomic,strong)UIView *vDecorationProgress;
  234. /**
  235. 装修进度控件
  236. */
  237. @property(nonatomic,strong)UILabel *lblDecorationProgress;
  238. /**
  239. 重量视图
  240. */
  241. @property(nonatomic,strong)UIView *vWeight;
  242. @property(nonatomic,strong)UILabel *lblWeight;
  243. @property(nonatomic,strong)UIView *vVolume;
  244. @property(nonatomic,strong)UILabel *lblVolume;
  245. @property(nonatomic,strong)UIView *vPaymentRate;
  246. @property(nonatomic,strong)UILabel *lblPaymentRate;
  247. @property(nonatomic,strong)UIView *vMarkPriceAmount;
  248. @property(nonatomic,strong)UILabel *lblMarkPriceAmount;
  249. @property(nonatomic,strong)UIView *vOrderNo;
  250. @property(nonatomic,strong)UILabel *lblOrderNo;
  251. @property(nonatomic,strong)UINavigationController *orderNav;
  252. @property(nonatomic,assign) Boolean editFLag;
  253. @property(nonatomic,strong) NSString *organizationId;
  254. @property(nonatomic,strong)NSString *organizationCode;
  255. @property(nonatomic,strong)NSString *organizationName;
  256. @property(nonatomic,strong) ASIDownManager *mDownManager;
  257. @property (strong, nonatomic) NSMutableArray *orderSearchList;
  258. @property(nonatomic,strong) NSString *channelId;
  259. @property(nonatomic,strong) NSString *channelName;
  260. @property(nonatomic,strong) NSString *staffId;
  261. @property(nonatomic,strong) NSString *staffName;
  262. @property(nonatomic,strong) NSString *customerId;
  263. @property(nonatomic,strong) NSString *customerCode;
  264. @property(nonatomic,strong) NSString *customerName;
  265. @property(nonatomic,strong) NSString *filingId;
  266. @property(nonatomic,strong) NSString *telephone;
  267. @property(nonatomic,strong) NSString *address;
  268. @property(nonatomic,strong) NSString *customerTypeId;
  269. @property(nonatomic,strong) NSString *customerTypeName;
  270. @property(nonatomic,strong) NSString *customerAreaId;
  271. @property(nonatomic,strong) NSString *customerAreaName;
  272. @property(nonatomic,strong) NSString *performanceAccountingId;
  273. @property(nonatomic,strong) NSString *performanceAccountingName;
  274. @property(nonatomic,strong) UIView *vStaff;
  275. @property(nonatomic,strong) UIView *vChannel;
  276. @property (nonatomic,strong) ASIDownManager *downManager;
  277. @property (strong, nonatomic) NSMutableArray *departmentDataList;
  278. @property(nonatomic,strong) BusinessDepartmentModel *mainDepartmentModel;
  279. @property(nonatomic,strong) BusinessDepartmentModel *originalMainDepartmentModel;
  280. @property (strong, nonatomic) NSMutableArray *secondaryDepartmentList;
  281. @property(nonatomic,strong)NSString *mainDepartmentCommission;
  282. @property (strong, nonatomic) NSMutableArray *departmentCheckedList;
  283. @property (strong, nonatomic) NSMutableArray *salesmanDataList;
  284. @property(strong,nonatomic)SalesManModel *mainSalesMan;
  285. @property(strong,nonatomic)SalesManModel *originalMainSalesMan;
  286. @property (strong, nonatomic) NSMutableArray *secondarySalesManList;
  287. @property (strong, nonatomic) NSMutableArray *salesManCheckedList;
  288. @property(nonatomic,strong)NSString *mainSalesManCommission;
  289. @property (strong, nonatomic) NSMutableArray *intermediateCustomerList;
  290. @property (strong, nonatomic) NSMutableArray *intermediateCustomerCheckedList;
  291. @property (strong, nonatomic) NSMutableArray *earnestAmountList;
  292. @property (strong, nonatomic) NSMutableArray *earnestCheckedList;
  293. @property (strong, nonatomic) NSMutableArray *feesAmountList;
  294. @property (strong, nonatomic) NSMutableArray *feesAmountCheckedList;
  295. @property(nonatomic,strong)NSString *decorationProgressId;
  296. @property(nonatomic,strong)NSString *decorationProgressName;
  297. @property(nonatomic,strong)NSString *floorsId;
  298. @property(nonatomic,strong)NSString *floorsName;
  299. @property(nonatomic,strong)NSString *deliveryDate;
  300. @property(nonatomic,strong)NSString *installDate;
  301. @property(nonatomic,strong)UIView *vTelephone;
  302. @property(nonatomic,strong) UIView *vCustomerName;
  303. @property(nonatomic,strong) UIView *vCustomerCode;
  304. @property(nonatomic,strong) NSString *totalAmount;
  305. @property(nonatomic,strong) NSString *paymentRate;
  306. @property(nonatomic,strong) NSString *paymentAmount;
  307. @property(nonatomic,strong) NSString *toSalesAmount;
  308. @property(nonatomic,strong) NSString *markedPriceAmount;
  309. @property(nonatomic,strong) NSString *fullDiscount;
  310. @property(nonatomic,strong) NSString *weight;
  311. @property(nonatomic,strong) NSString *volume;
  312. @property(nonatomic,strong) NSString *M2;
  313. @property(nonatomic,strong) NSString *contacts;
  314. @property(nonatomic,strong) NSString *goodsAmount;
  315. @property(nonatomic,strong) NSString *customerAddress;
  316. @property(nonatomic,strong) NSString *contractNo;
  317. @property(nonatomic,strong) NSString *remarks;
  318. @property(nonatomic,strong)NSString *feeAmount;
  319. @property(nonatomic,strong) NSString *contactWay;
  320. @property(nonatomic,strong) NewOrderGoodsDetailVC *orderGoodsDetailVC;
  321. @property(nonatomic,strong) NewOrderGiftDetailVC *orderGiftDetailVC;
  322. @property(nonatomic,strong) NewSalesOrderHomeVC *homeVC;
  323. @property(nonatomic,strong) NSMutableArray *originalSecondaryDepartmentList;
  324. @property(nonatomic,strong) NSMutableArray *originalSecondaryStaffList;
  325. -(void) loadBusinessDepartmentData;
  326. @property(nonatomic,strong) NSMutableArray *originalIntermediateCustomerList;
  327. @property(nonatomic,assign) NSInteger editStatus;
  328. @property(nonatomic,strong) NSString *orderNo;
  329. @property(nonatomic,strong) NSMutableArray *businessDepartmentTempList;
  330. @property(nonatomic,strong) NSMutableArray *salesmanTempList;
  331. @property(nonatomic,strong) NSMutableArray *intermediateCustomerTempList;
  332. -(void)setTextEnable:(Boolean) enabled;
  333. -(void)refreshEditStatus;
  334. - (void)updateGoodsSalePrice;
  335. @end