Skip to content

Commit

Permalink
赊账查询除了筛选 其他完成
Browse files Browse the repository at this point in the history
  • Loading branch information
woaomo committed Sep 4, 2015
1 parent 90e3109 commit 1ca611f
Show file tree
Hide file tree
Showing 9 changed files with 364 additions and 9 deletions.
16 changes: 16 additions & 0 deletions YHB_Prj/YHB_Prj.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
AB25793F1B8F02010015039A /* IQToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = AB25792E1B8F02010015039A /* IQToolbar.m */; };
AB2579401B8F02010015039A /* IQUIView+IQKeyboardToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = AB2579301B8F02010015039A /* IQUIView+IQKeyboardToolbar.m */; };
AB2579411B8F02010015039A /* IQKeyboardManager.bundle in Resources */ = {isa = PBXBuildFile; fileRef = AB2579331B8F02010015039A /* IQKeyboardManager.bundle */; };
AB358E431B99855C007D62E9 /* YDCXDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB358E421B99855C007D62E9 /* YDCXDetailViewController.m */; };
AB358E471B99B47B007D62E9 /* YDCXDetailCell.m in Sources */ = {isa = PBXBuildFile; fileRef = AB358E451B99B47B007D62E9 /* YDCXDetailCell.m */; };
AB358E481B99B47B007D62E9 /* YDCXDetailCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB358E461B99B47B007D62E9 /* YDCXDetailCell.xib */; };
AB3877A61B97D0F500DD7468 /* YDCXViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AB3877A51B97D0F500DD7468 /* YDCXViewController.m */; };
AB3877AA1B97D7F700DD7468 /* YDCXCell.m in Sources */ = {isa = PBXBuildFile; fileRef = AB3877A81B97D7F700DD7468 /* YDCXCell.m */; };
AB3877AB1B97D7F700DD7468 /* YDCXCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB3877A91B97D7F700DD7468 /* YDCXCell.xib */; };
Expand Down Expand Up @@ -302,6 +305,11 @@
AB2579301B8F02010015039A /* IQUIView+IQKeyboardToolbar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "IQUIView+IQKeyboardToolbar.m"; sourceTree = "<group>"; };
AB2579311B8F02010015039A /* KeyboardManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeyboardManager.h; sourceTree = "<group>"; };
AB2579331B8F02010015039A /* IQKeyboardManager.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = IQKeyboardManager.bundle; sourceTree = "<group>"; };
AB358E411B99855C007D62E9 /* YDCXDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YDCXDetailViewController.h; sourceTree = "<group>"; };
AB358E421B99855C007D62E9 /* YDCXDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YDCXDetailViewController.m; sourceTree = "<group>"; };
AB358E441B99B47B007D62E9 /* YDCXDetailCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YDCXDetailCell.h; sourceTree = "<group>"; };
AB358E451B99B47B007D62E9 /* YDCXDetailCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YDCXDetailCell.m; sourceTree = "<group>"; };
AB358E461B99B47B007D62E9 /* YDCXDetailCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = YDCXDetailCell.xib; sourceTree = "<group>"; };
AB3877A41B97D0F500DD7468 /* YDCXViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YDCXViewController.h; sourceTree = "<group>"; };
AB3877A51B97D0F500DD7468 /* YDCXViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YDCXViewController.m; sourceTree = "<group>"; };
AB3877A71B97D7F700DD7468 /* YDCXCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YDCXCell.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -863,6 +871,11 @@
children = (
AB3877A41B97D0F500DD7468 /* YDCXViewController.h */,
AB3877A51B97D0F500DD7468 /* YDCXViewController.m */,
AB358E411B99855C007D62E9 /* YDCXDetailViewController.h */,
AB358E421B99855C007D62E9 /* YDCXDetailViewController.m */,
AB358E441B99B47B007D62E9 /* YDCXDetailCell.h */,
AB358E451B99B47B007D62E9 /* YDCXDetailCell.m */,
AB358E461B99B47B007D62E9 /* YDCXDetailCell.xib */,
AB3877A71B97D7F700DD7468 /* YDCXCell.h */,
AB3877A81B97D7F700DD7468 /* YDCXCell.m */,
AB3877A91B97D7F700DD7468 /* YDCXCell.xib */,
Expand Down Expand Up @@ -1697,6 +1710,7 @@
FF5C872E1B83279600F79EC1 /* FirstViewController.xib in Resources */,
FF012FAE1B8EB92C00AE563C /* HYGLViewController.xib in Resources */,
FF5CC70B1B93FA0B00F55713 /* JCCXViewController.xib in Resources */,
AB358E481B99B47B007D62E9 /* YDCXDetailCell.xib in Resources */,
FF5CC6FB1B93EE5300F55713 /* RKSPCell.xib in Resources */,
AB40EAC61B8C021800DE5ED7 /* SupplierTableViewCell.xib in Resources */,
AB2579411B8F02010015039A /* IQKeyboardManager.bundle in Resources */,
Expand Down Expand Up @@ -1767,6 +1781,7 @@
AB42ACD91B8BE303001FB93A /* GateTableViewCell.m in Sources */,
FF3C20041A2EE7480081D3C7 /* FactoryModel.m in Sources */,
AB2579341B8F02010015039A /* IQNSArray+Sort.m in Sources */,
AB358E471B99B47B007D62E9 /* YDCXDetailCell.m in Sources */,
FF5CC6FD1B93EE5300F55713 /* RKSPMode.m in Sources */,
AB25793D1B8F02010015039A /* IQBarButtonItem.m in Sources */,
FF4DFCFA1B856C2B00617660 /* LoginMode.m in Sources */,
Expand Down Expand Up @@ -1844,6 +1859,7 @@
FF4DFD081B85B21C00617660 /* NSDateTool.m in Sources */,
FF2A6C6B1A0F3B7B001607AC /* MKAnnotationView+WebCache.m in Sources */,
FF5C87271B830F3000F79EC1 /* LoginManager.m in Sources */,
AB358E431B99855C007D62E9 /* YDCXDetailViewController.m in Sources */,
FF5CC6F91B93EE5300F55713 /* GysMode.m in Sources */,
FF5C87201B83024C00F79EC1 /* FMResultSet.m in Sources */,
AB88441B1B913DBB00FA526D /* ChooseLocaViewController.m in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion YHB_Prj/YHB_Prj/Yudanchaxun/Model/DJYDCXDetailList.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@property (nonatomic, assign) double discountRate;
@property (nonatomic, assign) double srlStatus;
@property (nonatomic, assign) double saleNum;
@property (nonatomic, strong) NSString *salePrice;
@property (nonatomic, assign) double salePrice;
@property (nonatomic, assign) double productId;
@property (nonatomic, assign) double sid;
@property (nonatomic, strong) NSString *realMoney;
Expand Down
10 changes: 5 additions & 5 deletions YHB_Prj/YHB_Prj/Yudanchaxun/Model/DJYDCXDetailList.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ - (instancetype)initWithDictionary:(NSDictionary *)dict
self.discountRate = [[self objectOrNilForKey:kDJYDCXDetailListDiscountRate fromDictionary:dict] doubleValue];
self.srlStatus = [[self objectOrNilForKey:kDJYDCXDetailListSrlStatus fromDictionary:dict] doubleValue];
self.saleNum = [[self objectOrNilForKey:kDJYDCXDetailListSaleNum fromDictionary:dict] doubleValue];
self.salePrice = [self objectOrNilForKey:kDJYDCXDetailListSalePrice fromDictionary:dict];
self.salePrice = [[self objectOrNilForKey:kDJYDCXDetailListSalePrice fromDictionary:dict] doubleValue];
self.productId = [[self objectOrNilForKey:kDJYDCXDetailListProductId fromDictionary:dict] doubleValue];
self.sid = [[self objectOrNilForKey:kDJYDCXDetailListSid fromDictionary:dict] doubleValue];
self.realMoney = [self objectOrNilForKey:kDJYDCXDetailListRealMoney fromDictionary:dict];
Expand All @@ -102,7 +102,7 @@ - (NSDictionary *)dictionaryRepresentation
[mutableDict setValue:[NSNumber numberWithDouble:self.discountRate] forKey:kDJYDCXDetailListDiscountRate];
[mutableDict setValue:[NSNumber numberWithDouble:self.srlStatus] forKey:kDJYDCXDetailListSrlStatus];
[mutableDict setValue:[NSNumber numberWithDouble:self.saleNum] forKey:kDJYDCXDetailListSaleNum];
[mutableDict setValue:self.salePrice forKey:kDJYDCXDetailListSalePrice];
[mutableDict setValue:[NSNumber numberWithDouble:self.salePrice] forKey:kDJYDCXDetailListSalePrice];
[mutableDict setValue:[NSNumber numberWithDouble:self.productId] forKey:kDJYDCXDetailListProductId];
[mutableDict setValue:[NSNumber numberWithDouble:self.sid] forKey:kDJYDCXDetailListSid];
[mutableDict setValue:self.realMoney forKey:kDJYDCXDetailListRealMoney];
Expand Down Expand Up @@ -142,7 +142,7 @@ - (id)initWithCoder:(NSCoder *)aDecoder
self.discountRate = [aDecoder decodeDoubleForKey:kDJYDCXDetailListDiscountRate];
self.srlStatus = [aDecoder decodeDoubleForKey:kDJYDCXDetailListSrlStatus];
self.saleNum = [aDecoder decodeDoubleForKey:kDJYDCXDetailListSaleNum];
self.salePrice = [aDecoder decodeObjectForKey:kDJYDCXDetailListSalePrice];
self.salePrice = [aDecoder decodeDoubleForKey:kDJYDCXDetailListSalePrice];
self.productId = [aDecoder decodeDoubleForKey:kDJYDCXDetailListProductId];
self.sid = [aDecoder decodeDoubleForKey:kDJYDCXDetailListSid];
self.realMoney = [aDecoder decodeObjectForKey:kDJYDCXDetailListRealMoney];
Expand All @@ -165,7 +165,7 @@ - (void)encodeWithCoder:(NSCoder *)aCoder
[aCoder encodeDouble:_discountRate forKey:kDJYDCXDetailListDiscountRate];
[aCoder encodeDouble:_srlStatus forKey:kDJYDCXDetailListSrlStatus];
[aCoder encodeDouble:_saleNum forKey:kDJYDCXDetailListSaleNum];
[aCoder encodeObject:_salePrice forKey:kDJYDCXDetailListSalePrice];
[aCoder encodeDouble:_salePrice forKey:kDJYDCXDetailListSaleNum];
[aCoder encodeDouble:_productId forKey:kDJYDCXDetailListProductId];
[aCoder encodeDouble:_sid forKey:kDJYDCXDetailListSid];
[aCoder encodeObject:_realMoney forKey:kDJYDCXDetailListRealMoney];
Expand All @@ -190,7 +190,7 @@ - (id)copyWithZone:(NSZone *)zone
copy.discountRate = self.discountRate;
copy.srlStatus = self.srlStatus;
copy.saleNum = self.saleNum;
copy.salePrice = [self.salePrice copyWithZone:zone];
copy.salePrice = self.salePrice;
copy.productId = self.productId;
copy.sid = self.sid;
copy.realMoney = [self.realMoney copyWithZone:zone];
Expand Down
21 changes: 21 additions & 0 deletions YHB_Prj/YHB_Prj/Yudanchaxun/YDCXDetailCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// YDCXDetailCell.h
// YHB_Prj
//
// Created by Johnny's on 15/9/4.
// Copyright (c) 2015年 striveliu. All rights reserved.
//

#import <UIKit/UIKit.h>
@class DJYDCXDetailList;

@interface YDCXDetailCell : UITableViewCell
@property (strong, nonatomic) IBOutlet UILabel *labelName;
@property (strong, nonatomic) IBOutlet UILabel *labelNum;
@property (strong, nonatomic) IBOutlet UILabel *labelZhe;
@property (strong, nonatomic) IBOutlet UILabel *labelSum;
@property (strong, nonatomic) IBOutlet UILabel *labelPri;

+ (CGFloat)heightForCell;
- (void)setCellWithMode:(DJYDCXDetailList *)aMode;
@end
48 changes: 48 additions & 0 deletions YHB_Prj/YHB_Prj/Yudanchaxun/YDCXDetailCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
//
// YDCXDetailCell.m
// YHB_Prj
//
// Created by Johnny's on 15/9/4.
// Copyright (c) 2015年 striveliu. All rights reserved.
//

#import "YDCXDetailCell.h"
#import "DJYDCXDetailList.h"

@implementation YDCXDetailCell

- (void)awakeFromNib {
// Initialization code
}

+(CGFloat)heightForCell
{
return 90;
}

- (void)setCellWithMode:(DJYDCXDetailList *)aMode
{
[self resetCell];
self.labelName.text = aMode.productName;
self.labelNum.text = [NSString stringWithFormat:@"%d", (int)aMode.saleNum];
self.labelPri.text = [NSString stringWithFormat:@"%.2f", aMode.salePrice];
self.labelSum.text = [NSString stringWithFormat:@"%.2f", aMode.payableMoney];
self.labelZhe.text = [NSString stringWithFormat:@"%.2f%%", aMode.discountRate];
}

- (void)resetCell
{
self.labelName.text = @"";
self.labelNum.text = @"";
self.labelPri.text = @"";
self.labelSum.text = @"";
self.labelZhe.text = @"";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];

// Configure the view for the selected state
}

@end
Loading

0 comments on commit 1ca611f

Please sign in to comment.