ProductSearchViewController.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // ProductSearchViewController.h
  3. // IBOSSmini
  4. //
  5. // Created by guan hong hou on 2017/5/16.
  6. // Copyright © 2017年 elongtian. All rights reserved.
  7. //
  8. #import "BaseViewController.h"
  9. #import "GoodsSearchModel.h"
  10. #import "GoodsSearchItemModel.h"
  11. #import "DKScanDelegate.h"
  12. #import "OrderHomeViewController.h"
  13. #define IsiPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
  14. @class GoodsSearchCell;
  15. @protocol GoodsSearchVCCellDelegate <NSObject>
  16. @optional
  17. -(void)showGoodsDetail:(int)index;
  18. -(void)textValueChange:(GoodsSearchCell*)cell txtField:(UITextField*)txtfield ;
  19. -(void)beginEdit:(GoodsSearchCell *)cell;
  20. -(void)alertMessage:(NSString*)message;
  21. -(void)joinCart:(GoodsSearchItemModel*)searchItem;
  22. @end
  23. @interface ProductSearchViewController : BaseViewController<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate, GoodsSearchVCCellDelegate,DKScanDelegate>
  24. @property(nonatomic,strong)UITextField *onlyCodeTxt;//唯一编码
  25. @property (strong, nonatomic) UINavigationController *cNav;//父类导航控制器
  26. @property (nonatomic,strong) UIButton *scanBtn;//扫描按钮
  27. @property(nonatomic,strong) ASIDownManager *mDownManager;
  28. @property(nonatomic,strong) NSMutableArray *orderArr;//订单数组
  29. @property(strong) GoodsSearchModel *goodsModel;//产品搜索类
  30. @property(nonatomic,strong) UITableView *tbView;//产品搜索
  31. @property(nonatomic,strong) UIView *separatorView;
  32. @property(nonatomic,strong) UIView *middleSeparatorView;
  33. @property(nonatomic,strong) UIView *vFilterZeroCanSalesQuantity;
  34. @property(nonatomic,strong) UIButton *btnFilterZeroCanSalesQuantity;
  35. @property(nonatomic,strong) UILabel *lblFilterZeroCanSalesQuantity;
  36. @property(nonatomic,strong) NSMutableArray *orderFilterArry;//订单数组
  37. @property(nonatomic,strong) NSMutableArray *orderTempFilterArry;//订单数组
  38. @property(nonatomic,assign)Boolean isFilterCanSalesQuantity;
  39. @property(nonatomic,assign)CGFloat filterHeight;
  40. -(void)reloadDataWithOnlyCode:(NSString *)code;//加载数据方法
  41. @end