NewDeliveryRequirementCell.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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 "NewDeliveryRequirementModel.h"
  11. @class NewDeliveryRequirementCell;
  12. @protocol NewDeliveryRequirementKeyBoardDelegate <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:(NewDeliveryRequirementCell*)cell txtField:(UITextField*)txtfield qualityField:(UITextField*)qualityTxt remarkField:(UITextField*)remark ;
  27. /**
  28. 开始编辑
  29. @param cell <#cell description#>
  30. */
  31. - (void)beginEdit:(NewDeliveryRequirementCell *)cell;
  32. /**
  33. 结束编辑
  34. @param cell <#cell description#>
  35. */
  36. - (void)endEdit:(NewDeliveryRequirementCell *)cell;
  37. /**
  38. 到铺贴方式
  39. @param cell <#cell description#>
  40. */
  41. - (void)btnGoPayStyle:(NewDeliveryRequirementCell *)cell;
  42. /**
  43. 到回执类型
  44. @param cell <#cell description#>
  45. */
  46. - (void)btnGoReceiptType:(NewDeliveryRequirementCell *)cell;
  47. /**
  48. 弹出键盘事件
  49. @param cell <#cell description#>
  50. */
  51. - (void)keyboardWillShow:(NewDeliveryRequirementCell *)cell;
  52. /**
  53. 隐藏键盘事件
  54. @param cell <#cell description#>
  55. */
  56. - (void)keyboardWillHide:(NewDeliveryRequirementCell *)cell;
  57. @end
  58. @protocol DataListTableViewCellDetegate <NSObject>
  59. /**
  60. 设置回执类型
  61. @param path <#path description#>
  62. */
  63. - (void)setReceiptType:(NSIndexPath*) path;
  64. - (void)setInstallReceiptType:(NSIndexPath*) path;
  65. @end
  66. @interface NewDeliveryRequirementCell : UITableViewCell<StatusInfoTextDelegate,UITextFieldDelegate>
  67. /**
  68. 编码
  69. */
  70. @property (strong,nonatomic) UILabel * code;
  71. /**
  72. 送货数量
  73. */
  74. @property (strong,nonatomic) UILabel * deliveryQuantity;
  75. /**
  76. 安装回执类型
  77. */
  78. @property (strong,nonatomic) UIButton *btnInstallState;
  79. /**
  80. 安装回执数量
  81. */
  82. @property (strong,nonatomic) UITextField *installReceiptQuantity;
  83. /**
  84. 回执数量
  85. */
  86. @property (strong,nonatomic) UITextField *receiptQuantity;
  87. /**
  88. 出库数量
  89. */
  90. @property (strong,nonatomic) UILabel * outQuantity;
  91. /**
  92. 回执类型
  93. */
  94. @property (strong,nonatomic) UIButton *btstate;
  95. /**
  96. 备注
  97. */
  98. @property (strong,nonatomic) UITextField *remark;
  99. /**
  100. 编码
  101. */
  102. @property (strong,nonatomic) NSString * sCode;
  103. /**
  104. 送货数量
  105. */
  106. @property (strong,nonatomic) NSString * sDeliveryQuantity;
  107. /**
  108. 配送回执类型
  109. */
  110. @property (strong,nonatomic) NSString * sReceiptType;
  111. /**
  112. 回执数量
  113. */
  114. //@property (strong,nonatomic) NSString * sReceiptQuantity;
  115. /**
  116. 回执备注
  117. */
  118. @property (strong,nonatomic) NSString * sReceiptRemarks;
  119. /**
  120. 出库数量
  121. */
  122. @property (strong,nonatomic) NSString * sOutQuantity;
  123. /**
  124. 明细id
  125. */
  126. @property (strong,nonatomic) NSString * sDetailID;
  127. /**
  128. 发票id
  129. */
  130. @property (strong,nonatomic) NSString * sInvoiceID;
  131. /**
  132. 发票明细id
  133. */
  134. @property (strong,nonatomic) NSString * sInvoiceDetailID;
  135. /**
  136. 回执类型
  137. */
  138. @property (strong,nonatomic)NSString *receiptType;
  139. /**
  140. 配送回执模型
  141. */
  142. @property (copy,nonatomic) NewDeliveryRequirementModel* model;
  143. /**
  144. 配送单元格代理
  145. */
  146. @property (nonatomic, weak) id <DataListTableViewCellDetegate> delegate;
  147. /**
  148. 设置配送回执单元格UI和数据
  149. @param model <#model description#>
  150. @param receiptType <#receiptType description#>
  151. */
  152. - (void)parseInfoModel:(NewDeliveryRequirementModel *)model receiptType:(NSString*)receiptType;
  153. /**
  154. 索引路径
  155. */
  156. @property (strong,nonatomic) NSIndexPath *myIndexPath;
  157. /**
  158. 单元格索引
  159. */
  160. @property (nonatomic) NSInteger cellIndex;
  161. /**
  162. 配送回执键盘代理
  163. */
  164. @property (nonatomic, weak) id<NewDeliveryRequirementKeyBoardDelegate> nddelegate;
  165. /**
  166. 是否有小数点
  167. */
  168. @property (nonatomic)BOOL isHaveDian;
  169. @end