NewDispatchRequirementCell.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. //
  2. // NewDeliveryRequirementCell.h
  3. // IBOSSHSH
  4. //
  5. // Created by ssl on 2018/1/15.
  6. // Copyright © 2018年 elongtian. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "StatusInfoTextVC.h"
  10. #import "NewDispatchRequirementModel.h"
  11. @class NewDispatchRequirementCell;
  12. @protocol NewDispatchRequirementKeyBoardDelegate <NSObject>
  13. @optional
  14. /**
  15. 出示配送信息明细
  16. @param index <#index description#>
  17. */
  18. - (void)showDeliveryInfoDetail:(int)index;
  19. /**
  20. 文本值变化
  21. @param cell <#cell description#>
  22. @param txtfield <#txtfield description#>
  23. @param qualityTxt <#qualityTxt description#>
  24. @param remark <#remark description#>
  25. */
  26. - (void)textValueChange:(NewDispatchRequirementCell*)cell txtField:(UITextField*)txtfield qualityField:(UITextField*)qualityTxt remarkField:(UITextField*)remark ;
  27. /**
  28. 开始编辑
  29. @param cell <#cell description#>
  30. */
  31. - (void)beginEdit:(NewDispatchRequirementCell *)cell;
  32. /**
  33. 结束编辑
  34. @param cell <#cell description#>
  35. */
  36. - (void)endEdit:(NewDispatchRequirementCell *)cell;
  37. /**
  38. 到铺贴方式
  39. @param cell <#cell description#>
  40. */
  41. - (void)btnGoPayStyle:(NewDispatchRequirementCell *)cell;
  42. /**
  43. 到回执类型
  44. @param cell <#cell description#>
  45. */
  46. - (void)btnGoReceiptType:(NewDispatchRequirementCell *)cell;
  47. /**
  48. 弹出键盘事件
  49. @param cell <#cell description#>
  50. */
  51. - (void)keyboardWillShow:(NewDispatchRequirementCell *)cell;
  52. /**
  53. 隐藏键盘事件
  54. @param cell <#cell description#>
  55. */
  56. - (void)keyboardWillHide:(NewDispatchRequirementCell *)cell;
  57. @end
  58. @protocol DeliveryListTableViewCellDetegate <NSObject>
  59. /**
  60. 设置回执类型
  61. @param path <#path description#>
  62. */
  63. - (void)setDeliveryReceiptType:(NSIndexPath*) path;
  64. - (void)setInstallReceiptType:(NSIndexPath*) path;
  65. @end
  66. @interface NewDispatchRequirementCell : UITableViewCell<StatusInfoTextDelegate,UITextFieldDelegate>
  67. /**
  68. 编码
  69. */
  70. @property (strong,nonatomic) UILabel * code;
  71. @property (strong,nonatomic) UILabel * lblOnlyCode;
  72. @property (strong,nonatomic) UILabel * goodsName;
  73. @property (strong,nonatomic) UILabel * lblOutQuantity;
  74. /**
  75. 送货数量
  76. */
  77. @property (strong,nonatomic) UILabel * deliveryQuantity;
  78. /**
  79. 安装回执类型
  80. */
  81. @property (strong,nonatomic) UIButton *btnInstallState;
  82. /**
  83. 安装回执数量
  84. */
  85. @property (strong,nonatomic) UITextField *installReceiptQuantity;
  86. /**
  87. 回执数量
  88. */
  89. @property (strong,nonatomic) UITextField *receiptQuantity;
  90. /**
  91. 出库数量
  92. */
  93. @property (strong,nonatomic) UILabel * outQuantity;
  94. /**
  95. 回执类型
  96. */
  97. @property (strong,nonatomic) UIButton *btstate;
  98. /**
  99. 备注
  100. */
  101. @property (strong,nonatomic) UITextField *remark;
  102. /**
  103. 编码
  104. */
  105. @property (strong,nonatomic) NSString * sCode;
  106. /**
  107. 送货数量
  108. */
  109. @property (strong,nonatomic) NSString * sDeliveryQuantity;
  110. /**
  111. 配送回执类型
  112. */
  113. @property (strong,nonatomic) NSString * sReceiptType;
  114. /**
  115. 回执数量
  116. */
  117. //@property (strong,nonatomic) NSString * sReceiptQuantity;
  118. /**
  119. 回执备注
  120. */
  121. @property (strong,nonatomic) NSString * sReceiptRemarks;
  122. /**
  123. 出库数量
  124. */
  125. @property (strong,nonatomic) NSString * sOutQuantity;
  126. /**
  127. 明细id
  128. */
  129. @property (strong,nonatomic) NSString * sDetailID;
  130. /**
  131. 发票id
  132. */
  133. @property (strong,nonatomic) NSString * sInvoiceID;
  134. /**
  135. 发票明细id
  136. */
  137. @property (strong,nonatomic) NSString * sInvoiceDetailID;
  138. /**
  139. 回执类型
  140. */
  141. @property (strong,nonatomic)NSString *receiptType;
  142. /**
  143. 配送回执模型
  144. */
  145. @property (copy,nonatomic) NewDispatchRequirementModel* ml;
  146. /**
  147. 配送单元格代理
  148. */
  149. @property (nonatomic, weak) id <DeliveryListTableViewCellDetegate> dispatchDelegate;
  150. /**
  151. 设置配送回执单元格UI和数据
  152. @param model <#model description#>
  153. @param receiptType <#receiptType description#>
  154. */
  155. - (void)parseInfoModel:(NewDispatchRequirementModel *)model receiptType:(NSString*)receiptType receiptFlag:(NSString*)receiptFlag;
  156. /**
  157. 索引路径
  158. */
  159. @property (strong,nonatomic) NSIndexPath *myIndexPath;
  160. /**
  161. 单元格索引
  162. */
  163. @property (nonatomic) NSInteger cellIndex;
  164. /**
  165. 配送回执键盘代理
  166. */
  167. @property (nonatomic, weak) id<NewDispatchRequirementKeyBoardDelegate> nddelegate;
  168. /**
  169. 是否有小数点
  170. */
  171. @property (nonatomic)BOOL isHaveDian;
  172. @property (strong,nonatomic) UILabel *lblFinalDeliveryReceiptQuantity;
  173. @property (strong,nonatomic) UILabel *lblFinalInstallReceiptQuantity;
  174. @end