| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- //
- // OrderVC.h
- // IBOSSmini
- //
- // Created by guan hong hou on 2018/1/24.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- // 功能描述:订单控制器
- #import "BaseViewController.h"
- #import "OrderListDelegate.h"
- #import "CustomerCodeSearchModel.h"
- #import "CustomerCodeSearchVC.h"
- #import "SalesOrderBusinessDepartmentVC.h"
- #import "SalesManModel.h"
- #import "SalesManFrame.h"
- #import "SalesManVC.h"
- #import "CustomerReportTextVC.h"
- #import "IntermediateCustomerModel.h"
- #import "IntermediateCustomerFrame.h"
- #import "IntermediateCustomerVC.h"
- #import "EarnestModel.h"
- #import "EarnestAmountVC.h"
- #import "EarnestModel.h"
- #import "SBJsonWriter.h"
- #import "DateFormat.h"
- #import "FeeAmountModel.h"
- #import "FeeAmountVC.h"
- #import "NewOrderGoodsDetailVC.h"
- @class NewOrderGiftDetailVC;
- @class NewSalesOrderHomeVC;
- @interface NewOrderVC : BaseViewController<UIScrollViewDelegate,OrderListDelegate,OrderDelegate,UITextFieldDelegate,FeeAmountDelegate>
- /**
- 客户编码输入控件
- */
- @property(nonatomic,strong) UITextField *txtCustomerCode;
- /**
- 主界面视图
- */
- @property(nonatomic,strong)UIView *vBody;
- /**
- 客户编码右箭头
- */
- @property(nonatomic,strong)UIButton *btnCustomerCode;
- /**
- 客户名称
- */
- @property(nonatomic,strong) UITextField *txtCustomerName;
- /**
- 电话
- */
- @property(nonatomic,strong) UITextField *txtTelephone;
- /**
- 业务部门控件
- */
- @property(nonatomic,strong) UILabel *lblOrganizationName;
- /**
- 业务员控件
- */
- @property(nonatomic,strong) UILabel *lblStaff;
- /**
- 渠道控件
- */
- @property(nonatomic,strong) UILabel *lblChannel;
- /**
- 客户区域控件
- */
- @property(nonatomic,strong) UILabel *lblCustomerArea;
- /**
- 客户地址控件
- */
- @property(nonatomic,strong) UITextField *txtCustomerAddress;
- /**
- 备注控件
- */
- @property(nonatomic,strong) UITextField *txtRemarks;
- /**
- 顶部数据数组
- */
- @property (strong, nonatomic) NSMutableArray *topDataList;
- /**
- 底部数据数组
- */
- @property (strong, nonatomic) NSMutableArray *bottomDataList;
- /**
- 顶部数据视图
- */
- @property(nonatomic,strong)UIView *vTop;
- /**
- 底部数据视图
- */
- @property(nonatomic,strong)UIView *vBottom;
- /**
- 更多信息视图
- */
- @property(nonatomic,strong)UIView *vOperation;
- /**
- 分隔线
- */
- @property(nonatomic,strong)UIView *separator1;
- /**
- 分隔线
- */
- @property(nonatomic,strong)UIView *separator2;
- /**
- 客户地址视图
- */
- @property(nonatomic,strong)UIView *vCustomerAddress;
- /**
- 备注视图
- */
- @property(nonatomic,strong)UIView *vRemarks;
- /**
- 客户区域视图
- */
- @property(nonatomic,strong)UIView * vCustomerArea;
- /**
- 部门视图
- */
- @property(nonatomic,strong)UIView * vDepartment;
- /**
- 客户性质视图
- */
- @property(nonatomic,strong)UIView * vCustomerType;
- /**
- 客户性质控件
- */
- @property(nonatomic,strong) UILabel *lblCustomerType;
- @property(nonatomic,strong)UIView * vPerformanceAccountingCategory;
- @property(nonatomic,strong) UILabel *lblPerformanceAccountingCategory;
- @property(nonatomic,strong)UIView * vFeesAmount;
- @property(nonatomic,strong) UILabel *lblFeesAmount;
- @property(nonatomic,strong)UIView * vTotalM2;
- @property(nonatomic,strong) UILabel *lblTotalM2;
- /**
- 中间客户视图
- */
- @property(nonatomic,strong)UIView * vIntermediateCustomer;
- /**
- 中间客户控件
- */
- @property(nonatomic,strong) UILabel *lblIntermediateCustomer;
- /**
- 定金视图
- */
- @property(nonatomic,strong)UIView * vPayment;
- /**
- 定金控件
- */
- @property(nonatomic,strong)UILabel *lblPayment;
- /**
- 货物总额视图
- */
- @property(nonatomic,strong)UIView * vGoodsAmount;
- /**
- 货物总额控件
- */
- @property(nonatomic,strong)UILabel *lblGoodsAmount;
- /**
- 合计总额视图
- */
- @property(nonatomic,strong)UIView *vTotalAmount;
- /**
- 合计总额控件
- */
- @property(nonatomic,strong)UILabel *lblTotalAmount;
- /**
- 合同号视图
- */
- @property(nonatomic,strong)UIView *vContractNo;
- /**
- 合同号控件
- */
- @property(nonatomic,strong)UITextField *txtContractNo;
- /**
- 联系人视图
- */
- @property(nonatomic,strong)UIView *vContactPerson;
- /**
- 联系人控件
- */
- @property(nonatomic,strong)UITextField *txtContactPerson;
- /**
- 联系方式视图
- */
- @property(nonatomic,strong)UIView *vContactWay;
- /**
- 联系方式控件
- */
- @property(nonatomic,strong)UITextField *txtContactWay;
- /**
- 整单折扣视图
- */
- @property(nonatomic,strong)UIView *vFullDiscount;
- /**
- 整单折扣控件
- */
- @property(nonatomic,strong)UILabel *lblFullDiscount;
- /**
- 转销售视图
- */
- @property(nonatomic,strong)UIView* vToSalesAmount;
- /**
- 转销售控件
- */
- @property(nonatomic,strong)UILabel *lblToSalesAmount;
- /**
- 安装日期视图
- */
- @property(nonatomic,strong)UIView* vInstallDate;
- /**
- 安装日期控件
- */
- @property(nonatomic,strong)UILabel *lblInstallDate;
- /**
- 配送日期视图
- */
- @property(nonatomic,strong)UIView* vDeliveryDate;
- /**
- 配送日期控件
- */
- @property(nonatomic,strong)UILabel *lblDeliveryDate;
- /**
- 楼层视图
- */
- @property(nonatomic,strong)UIView *vFloor;
- /**
- 楼层控件
- */
- @property(nonatomic,strong)UILabel *lblFloor;
- /**
- 装修进度视图
- */
- @property(nonatomic,strong)UIView *vDecorationProgress;
- /**
- 装修进度控件
- */
- @property(nonatomic,strong)UILabel *lblDecorationProgress;
- /**
- 重量视图
- */
- @property(nonatomic,strong)UIView *vWeight;
- @property(nonatomic,strong)UILabel *lblWeight;
- @property(nonatomic,strong)UIView *vVolume;
- @property(nonatomic,strong)UILabel *lblVolume;
- @property(nonatomic,strong)UIView *vPaymentRate;
- @property(nonatomic,strong)UILabel *lblPaymentRate;
- @property(nonatomic,strong)UIView *vMarkPriceAmount;
- @property(nonatomic,strong)UILabel *lblMarkPriceAmount;
- @property(nonatomic,strong)UIView *vOrderNo;
- @property(nonatomic,strong)UILabel *lblOrderNo;
- @property(nonatomic,strong)UINavigationController *orderNav;
- @property(nonatomic,assign) Boolean editFLag;
- @property(nonatomic,strong) NSString *organizationId;
- @property(nonatomic,strong)NSString *organizationCode;
- @property(nonatomic,strong)NSString *organizationName;
- @property(nonatomic,strong) ASIDownManager *mDownManager;
- @property (strong, nonatomic) NSMutableArray *orderSearchList;
- @property(nonatomic,strong) NSString *channelId;
- @property(nonatomic,strong) NSString *channelName;
- @property(nonatomic,strong) NSString *staffId;
- @property(nonatomic,strong) NSString *staffName;
- @property(nonatomic,strong) NSString *customerId;
- @property(nonatomic,strong) NSString *customerCode;
- @property(nonatomic,strong) NSString *customerName;
- @property(nonatomic,strong) NSString *filingId;
- @property(nonatomic,strong) NSString *telephone;
- @property(nonatomic,strong) NSString *address;
- @property(nonatomic,strong) NSString *customerTypeId;
- @property(nonatomic,strong) NSString *customerTypeName;
- @property(nonatomic,strong) NSString *customerAreaId;
- @property(nonatomic,strong) NSString *customerAreaName;
- @property(nonatomic,strong) NSString *performanceAccountingId;
- @property(nonatomic,strong) NSString *performanceAccountingName;
- @property(nonatomic,strong) UIView *vStaff;
- @property(nonatomic,strong) UIView *vChannel;
- @property (nonatomic,strong) ASIDownManager *downManager;
- @property (strong, nonatomic) NSMutableArray *departmentDataList;
- @property(nonatomic,strong) BusinessDepartmentModel *mainDepartmentModel;
- @property(nonatomic,strong) BusinessDepartmentModel *originalMainDepartmentModel;
- @property (strong, nonatomic) NSMutableArray *secondaryDepartmentList;
- @property(nonatomic,strong)NSString *mainDepartmentCommission;
- @property (strong, nonatomic) NSMutableArray *departmentCheckedList;
- @property (strong, nonatomic) NSMutableArray *salesmanDataList;
- @property(strong,nonatomic)SalesManModel *mainSalesMan;
- @property(strong,nonatomic)SalesManModel *originalMainSalesMan;
- @property (strong, nonatomic) NSMutableArray *secondarySalesManList;
- @property (strong, nonatomic) NSMutableArray *salesManCheckedList;
- @property(nonatomic,strong)NSString *mainSalesManCommission;
- @property (strong, nonatomic) NSMutableArray *intermediateCustomerList;
- @property (strong, nonatomic) NSMutableArray *intermediateCustomerCheckedList;
- @property (strong, nonatomic) NSMutableArray *earnestAmountList;
- @property (strong, nonatomic) NSMutableArray *earnestCheckedList;
- @property (strong, nonatomic) NSMutableArray *feesAmountList;
- @property (strong, nonatomic) NSMutableArray *feesAmountCheckedList;
- @property(nonatomic,strong)NSString *decorationProgressId;
- @property(nonatomic,strong)NSString *decorationProgressName;
- @property(nonatomic,strong)NSString *floorsId;
- @property(nonatomic,strong)NSString *floorsName;
- @property(nonatomic,strong)NSString *deliveryDate;
- @property(nonatomic,strong)NSString *installDate;
- @property(nonatomic,strong)UIView *vTelephone;
- @property(nonatomic,strong) UIView *vCustomerName;
- @property(nonatomic,strong) UIView *vCustomerCode;
- @property(nonatomic,strong) NSString *totalAmount;
- @property(nonatomic,strong) NSString *paymentRate;
- @property(nonatomic,strong) NSString *paymentAmount;
- @property(nonatomic,strong) NSString *toSalesAmount;
- @property(nonatomic,strong) NSString *markedPriceAmount;
- @property(nonatomic,strong) NSString *fullDiscount;
- @property(nonatomic,strong) NSString *weight;
- @property(nonatomic,strong) NSString *volume;
- @property(nonatomic,strong) NSString *M2;
- @property(nonatomic,strong) NSString *contacts;
- @property(nonatomic,strong) NSString *goodsAmount;
- @property(nonatomic,strong) NSString *customerAddress;
- @property(nonatomic,strong) NSString *contractNo;
- @property(nonatomic,strong) NSString *remarks;
- @property(nonatomic,strong)NSString *feeAmount;
- @property(nonatomic,strong) NSString *contactWay;
- @property(nonatomic,strong) NewOrderGoodsDetailVC *orderGoodsDetailVC;
- @property(nonatomic,strong) NewOrderGiftDetailVC *orderGiftDetailVC;
- @property(nonatomic,strong) NewSalesOrderHomeVC *homeVC;
- @property(nonatomic,strong) NSMutableArray *originalSecondaryDepartmentList;
- @property(nonatomic,strong) NSMutableArray *originalSecondaryStaffList;
- -(void) loadBusinessDepartmentData;
- @property(nonatomic,strong) NSMutableArray *originalIntermediateCustomerList;
- @property(nonatomic,assign) NSInteger editStatus;
- @property(nonatomic,strong) NSString *orderNo;
- @property(nonatomic,strong) NSMutableArray *businessDepartmentTempList;
- @property(nonatomic,strong) NSMutableArray *salesmanTempList;
- @property(nonatomic,strong) NSMutableArray *intermediateCustomerTempList;
- -(void)setTextEnable:(Boolean) enabled;
- -(void)refreshEditStatus;
- - (void)updateGoodsSalePrice;
- @end
|