Commit 4543bc8c authored by Sandy's avatar Sandy

销售录入界面搭建

parent 6cdc809b
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
1928FD021CC487A10077BE34 /* SalesInputViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1928FCFC1CC487A10077BE34 /* SalesInputViewController.m */; };
1928FD031CC487A10077BE34 /* SalesInputTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1928FD001CC487A10077BE34 /* SalesInputTopView.m */; };
1928FD041CC487A10077BE34 /* SalesInputTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1928FD011CC487A10077BE34 /* SalesInputTopView.xib */; };
1928FD081CC4ABD80077BE34 /* SalesInputTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 1928FD061CC4ABD80077BE34 /* SalesInputTableViewCell.m */; };
1928FD091CC4ABD80077BE34 /* SalesInputTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1928FD071CC4ABD80077BE34 /* SalesInputTableViewCell.xib */; };
A0D453625552DAC91D4EB4A7 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C5987243B74E897E93DEC7D3 /* libPods.a */; }; A0D453625552DAC91D4EB4A7 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C5987243B74E897E93DEC7D3 /* libPods.a */; };
C10F161B1BF77CA00065F18C /* ICRAboutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16121BF77CA00065F18C /* ICRAboutViewController.m */; }; C10F161B1BF77CA00065F18C /* ICRAboutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16121BF77CA00065F18C /* ICRAboutViewController.m */; };
C10F161C1BF77CA00065F18C /* ICRConfigurationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16141BF77CA00065F18C /* ICRConfigurationViewController.m */; }; C10F161C1BF77CA00065F18C /* ICRConfigurationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16141BF77CA00065F18C /* ICRConfigurationViewController.m */; };
...@@ -706,6 +711,14 @@ ...@@ -706,6 +711,14 @@
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
1928FCFB1CC487A10077BE34 /* SalesInputViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputViewController.h; sourceTree = "<group>"; };
1928FCFC1CC487A10077BE34 /* SalesInputViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputViewController.m; sourceTree = "<group>"; };
1928FCFF1CC487A10077BE34 /* SalesInputTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputTopView.h; sourceTree = "<group>"; };
1928FD001CC487A10077BE34 /* SalesInputTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputTopView.m; sourceTree = "<group>"; };
1928FD011CC487A10077BE34 /* SalesInputTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SalesInputTopView.xib; sourceTree = "<group>"; };
1928FD051CC4ABD80077BE34 /* SalesInputTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputTableViewCell.h; sourceTree = "<group>"; };
1928FD061CC4ABD80077BE34 /* SalesInputTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputTableViewCell.m; sourceTree = "<group>"; };
1928FD071CC4ABD80077BE34 /* SalesInputTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SalesInputTableViewCell.xib; sourceTree = "<group>"; };
710E0C5D8A5E02D32E5C6C2D /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; }; 710E0C5D8A5E02D32E5C6C2D /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
C10F16111BF77CA00065F18C /* ICRAboutViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ICRAboutViewController.h; path = view_iPhone/templates/settings/ICRAboutViewController.h; sourceTree = "<group>"; }; C10F16111BF77CA00065F18C /* ICRAboutViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ICRAboutViewController.h; path = view_iPhone/templates/settings/ICRAboutViewController.h; sourceTree = "<group>"; };
C10F16121BF77CA00065F18C /* ICRAboutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ICRAboutViewController.m; path = view_iPhone/templates/settings/ICRAboutViewController.m; sourceTree = "<group>"; }; C10F16121BF77CA00065F18C /* ICRAboutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ICRAboutViewController.m; path = view_iPhone/templates/settings/ICRAboutViewController.m; sourceTree = "<group>"; };
...@@ -1935,6 +1948,45 @@ ...@@ -1935,6 +1948,45 @@
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
1928FCF91CC487A10077BE34 /* salesInput */ = {
isa = PBXGroup;
children = (
1928FCFA1CC487A10077BE34 /* Controller */,
1928FCFD1CC487A10077BE34 /* Model */,
1928FCFE1CC487A10077BE34 /* View */,
);
path = salesInput;
sourceTree = "<group>";
};
1928FCFA1CC487A10077BE34 /* Controller */ = {
isa = PBXGroup;
children = (
1928FCFB1CC487A10077BE34 /* SalesInputViewController.h */,
1928FCFC1CC487A10077BE34 /* SalesInputViewController.m */,
);
path = Controller;
sourceTree = "<group>";
};
1928FCFD1CC487A10077BE34 /* Model */ = {
isa = PBXGroup;
children = (
);
path = Model;
sourceTree = "<group>";
};
1928FCFE1CC487A10077BE34 /* View */ = {
isa = PBXGroup;
children = (
1928FCFF1CC487A10077BE34 /* SalesInputTopView.h */,
1928FD001CC487A10077BE34 /* SalesInputTopView.m */,
1928FD011CC487A10077BE34 /* SalesInputTopView.xib */,
1928FD051CC4ABD80077BE34 /* SalesInputTableViewCell.h */,
1928FD061CC4ABD80077BE34 /* SalesInputTableViewCell.m */,
1928FD071CC4ABD80077BE34 /* SalesInputTableViewCell.xib */,
);
path = View;
sourceTree = "<group>";
};
C10F17831BF7ACA80065F18C /* 3rd */ = { C10F17831BF7ACA80065F18C /* 3rd */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -2715,6 +2767,7 @@ ...@@ -2715,6 +2767,7 @@
C1D58B3D1BB1BC9200D297FE /* templates */ = { C1D58B3D1BB1BC9200D297FE /* templates */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
1928FCF91CC487A10077BE34 /* salesInput */,
C1A069FB1BE1046B0082006F /* affairs */, C1A069FB1BE1046B0082006F /* affairs */,
C18A95231C01E7B100429BF7 /* announcement */, C18A95231C01E7B100429BF7 /* announcement */,
C19BBBDE1BBE85B300831290 /* common */, C19BBBDE1BBE85B300831290 /* common */,
...@@ -4258,6 +4311,7 @@ ...@@ -4258,6 +4311,7 @@
C19BBC1A1BBE865400831290 /* VankeFloorListBoard_iPhone.xml in Resources */, C19BBC1A1BBE865400831290 /* VankeFloorListBoard_iPhone.xml in Resources */,
C19AC8981C1735E600DE260E /* notice_icon@2x.png in Resources */, C19AC8981C1735E600DE260E /* notice_icon@2x.png in Resources */,
C1D5948C1BB2E5DD00D297FE /* contact-them@2x.png in Resources */, C1D5948C1BB2E5DD00D297FE /* contact-them@2x.png in Resources */,
1928FD041CC487A10077BE34 /* SalesInputTopView.xib in Resources */,
C19AC89D1C1735E600DE260E /* rejected@3x.png in Resources */, C19AC89D1C1735E600DE260E /* rejected@3x.png in Resources */,
C1CF9F571BEFB1530033C35E /* PriorityTagRed@2x.png in Resources */, C1CF9F571BEFB1530033C35E /* PriorityTagRed@2x.png in Resources */,
C10F18701BF8EE600065F18C /* VankeStatementListBoard_iPhone.xml in Resources */, C10F18701BF8EE600065F18C /* VankeStatementListBoard_iPhone.xml in Resources */,
...@@ -4337,6 +4391,7 @@ ...@@ -4337,6 +4391,7 @@
C19AC8961C1735E600DE260E /* money_reduce@2x.png in Resources */, C19AC8961C1735E600DE260E /* money_reduce@2x.png in Resources */,
C10F18661BF8EE020065F18C /* VankeStatementListItemCell_iPhone.xml in Resources */, C10F18661BF8EE020065F18C /* VankeStatementListItemCell_iPhone.xml in Resources */,
C165078D1BB96C2800CB2FC1 /* pwd_icon@2x.png in Resources */, C165078D1BB96C2800CB2FC1 /* pwd_icon@2x.png in Resources */,
1928FD091CC4ABD80077BE34 /* SalesInputTableViewCell.xib in Resources */,
C1D595161BB42A7200D297FE /* navigation-menu@2x.png in Resources */, C1D595161BB42A7200D297FE /* navigation-menu@2x.png in Resources */,
C1CF9F361BEF232A0033C35E /* VankeNoticeListBoard_iPhone.xml in Resources */, C1CF9F361BEF232A0033C35E /* VankeNoticeListBoard_iPhone.xml in Resources */,
C1DED2AE1BCEAC530049BB2D /* location_icon@2x.png in Resources */, C1DED2AE1BCEAC530049BB2D /* location_icon@2x.png in Resources */,
...@@ -4785,6 +4840,7 @@ ...@@ -4785,6 +4840,7 @@
C1D5988B1BB44B2000D297FE /* Bee_UIAnimationZoom.m in Sources */, C1D5988B1BB44B2000D297FE /* Bee_UIAnimationZoom.m in Sources */,
C1D598AF1BB44B2000D297FE /* Bee_UISlider.m in Sources */, C1D598AF1BB44B2000D297FE /* Bee_UISlider.m in Sources */,
C10F18261BF7ACA80065F18C /* ICRUIAppearance.m in Sources */, C10F18261BF7ACA80065F18C /* ICRUIAppearance.m in Sources */,
1928FD081CC4ABD80077BE34 /* SalesInputTableViewCell.m in Sources */,
C10F161D1BF77CA00065F18C /* ICRHelpAndFeedBackViewController.m in Sources */, C10F161D1BF77CA00065F18C /* ICRHelpAndFeedBackViewController.m in Sources */,
C1D599611BB44B2100D297FE /* Bee_HTTPServer2.m in Sources */, C1D599611BB44B2100D297FE /* Bee_HTTPServer2.m in Sources */,
C19BBC101BBE861700831290 /* VankeFloorDetailBoardPhoto_iPhone.m in Sources */, C19BBC101BBE861700831290 /* VankeFloorDetailBoardPhoto_iPhone.m in Sources */,
...@@ -4907,6 +4963,7 @@ ...@@ -4907,6 +4963,7 @@
C1CF9F401BEF4A770033C35E /* VankeNoticeListBoardCell_iPhone.m in Sources */, C1CF9F401BEF4A770033C35E /* VankeNoticeListBoardCell_iPhone.m in Sources */,
C1D5984D1BB44B2000D297FE /* BeeMessage+BeeNetwork.mm in Sources */, C1D5984D1BB44B2000D297FE /* BeeMessage+BeeNetwork.mm in Sources */,
C10F184B1BF7ACA80065F18C /* IBTUIViewController.m in Sources */, C10F184B1BF7ACA80065F18C /* IBTUIViewController.m in Sources */,
1928FD021CC487A10077BE34 /* SalesInputViewController.m in Sources */,
C1D599391BB44B2100D297FE /* Bee_Singleton.mm in Sources */, C1D599391BB44B2100D297FE /* Bee_Singleton.mm in Sources */,
C1D598501BB44B2000D297FE /* Bee_Model.mm in Sources */, C1D598501BB44B2000D297FE /* Bee_Model.mm in Sources */,
C1D598EB1BB44B2000D297FE /* UIScrollView+LayoutParser.m in Sources */, C1D598EB1BB44B2000D297FE /* UIScrollView+LayoutParser.m in Sources */,
...@@ -4936,6 +4993,7 @@ ...@@ -4936,6 +4993,7 @@
C10F18271BF7ACA80065F18C /* ICRAttachmentUnit.m in Sources */, C10F18271BF7ACA80065F18C /* ICRAttachmentUnit.m in Sources */,
C1D598511BB44B2000D297FE /* Bee_UIApplication.m in Sources */, C1D598511BB44B2000D297FE /* Bee_UIApplication.m in Sources */,
C1D5985C1BB44B2000D297FE /* Bee_UIStack.m in Sources */, C1D5985C1BB44B2000D297FE /* Bee_UIStack.m in Sources */,
1928FD031CC487A10077BE34 /* SalesInputTopView.m in Sources */,
C12804D71BC124A3001ECBAA /* VankeWeatherModel.m in Sources */, C12804D71BC124A3001ECBAA /* VankeWeatherModel.m in Sources */,
C19BBBFF1BBE85F500831290 /* VankeServiceDashBoard_iPhone.m in Sources */, C19BBBFF1BBE85F500831290 /* VankeServiceDashBoard_iPhone.m in Sources */,
C1D5998B1BB44B2100D297FE /* CXMLNode_CreationExtensions.m in Sources */, C1D5998B1BB44B2100D297FE /* CXMLNode_CreationExtensions.m in Sources */,
...@@ -5122,7 +5180,7 @@ ...@@ -5122,7 +5180,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.vanke; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.vanke;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "da8de50e-62c2-4312-8dda-7c81fb04858d"; PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = ""; VERSIONING_SYSTEM = "";
}; };
...@@ -5149,7 +5207,7 @@ ...@@ -5149,7 +5207,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.gomore.vanke; PRODUCT_BUNDLE_IDENTIFIER = com.gomore.vanke;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "da8de50e-62c2-4312-8dda-7c81fb04858d"; PROVISIONING_PROFILE = "";
TARGETED_DEVICE_FAMILY = 1; TARGETED_DEVICE_FAMILY = 1;
VERSIONING_SYSTEM = ""; VERSIONING_SYSTEM = "";
}; };
......
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "right_icon.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "right_icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"filename" : "sales_top_input_pic.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "sales_top_input_pic@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0.10</string> <string>1.0.11</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#import "VankeNoticeListBoard_iPhone.h" #import "VankeNoticeListBoard_iPhone.h"
#import "VankeStatementListBoard_iPhone.h" #import "VankeStatementListBoard_iPhone.h"
#import "ICRAnnouncementViewController.h" #import "ICRAnnouncementViewController.h"
#import "SalesInputViewController.h"
#pragma mark - #pragma mark -
@interface VankeAffairsBoard_iPhone() @interface VankeAffairsBoard_iPhone()
...@@ -92,8 +92,8 @@ ON_DID_DISAPPEAR( signal ) ...@@ -92,8 +92,8 @@ ON_DID_DISAPPEAR( signal )
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnNotice, signal) { ON_SIGNAL3(VankeAffairsBoard_iPhone, btnNotice, signal) {
[[VankeAppBoard_iPhone sharedInstance] hideMenu]; [[VankeAppBoard_iPhone sharedInstance] hideMenu];
VankeNoticeListBoard_iPhone *board = [VankeNoticeListBoard_iPhone board]; // VankeNoticeListBoard_iPhone *board = [VankeNoticeListBoard_iPhone board];
// ICRAnnouncementViewController *board = [ICRAnnouncementViewController board]; ICRAnnouncementViewController *board = [ICRAnnouncementViewController board];
[self.stack pushBoard:board animated:YES]; [self.stack pushBoard:board animated:YES];
} }
...@@ -123,7 +123,13 @@ ON_SIGNAL3(VankeAffairsBoard_iPhone, btnBill, signal) { ...@@ -123,7 +123,13 @@ ON_SIGNAL3(VankeAffairsBoard_iPhone, btnBill, signal) {
} }
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnSaleInput, signal) { ON_SIGNAL3(VankeAffairsBoard_iPhone, btnSaleInput, signal) {
[GEToast showWithText:@"销售录入正在开发中..." bottomOffset:60.0f duration:1.0f]; // SalesInputViewController *salesVC = [[SalesInputViewController alloc] init];
SalesInputViewController *salesVC = [SalesInputViewController board];
[self.stack pushBoard:salesVC animated:YES];
// [salesVC setHidesBottomBarWhenPushed:YES];
// [self.navigationController pushViewController:salesVC animated:YES];
//[GEToast showWithText:@"销售录入正在开发中..." bottomOffset:60.0f duration:1.0f];
} }
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnServiceApply, signal) { ON_SIGNAL3(VankeAffairsBoard_iPhone, btnServiceApply, signal) {
......
//
// SalesInputViewController.h
// vanke
//
// Created by Z on 16/4/15.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "IBTUIViewController.h"
@interface SalesInputViewController : IBTUIViewController
@end
//
// SalesInputViewController.m
// vanke
//
// Created by Z on 16/4/15.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "SalesInputViewController.h"
#import "SalesInputTopView.h"
#import "SalesInputTableViewCell.h"
#import "VankeAppBoard_iPhone.h"
#define kCellID @"SalesInputTableViewCell.h"
@interface SalesInputViewController ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UITableView *tableView;
@end
@implementation SalesInputViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
[self setUpNavigationBar];
[self setUpTopView];
[self setUpTableView];
// Do any additional setup after loading the view.
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
}
ON_WILL_APPEAR( signal )
{
[[VankeAppBoard_iPhone sharedInstance] hideMenu];
}
- (void)setUpTableView {
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 364, SCREEN_WIDTH, SCREEN_HEIGHT - 364) style:UITableViewStylePlain];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
[self.tableView registerNib:[UINib nibWithNibName:@"SalesInputTableViewCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:kCellID];
[self.view addSubview:self.tableView];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return 6;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
SalesInputTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID forIndexPath:indexPath];
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 50;
}
- (void)setUpNavigationBar {
self.navigationItem.title = @"销售录入";
UIBarButtonItem *rightBtn = [[UIBarButtonItem alloc] initWithTitle:@"历史" style:UIBarButtonItemStyleDone target:self action:@selector(goToHistory)];
rightBtn.tintColor = [UIColor whiteColor];
self.navigationItem.rightBarButtonItem = rightBtn;
}
- (void)setUpTopView {
SalesInputTopView *topView = [self viewWithNibName:@"SalesInputTopView"];
topView.frame = CGRectMake(0, 64, 0, 300);
[self.view addSubview:topView];
}
- (id)viewWithNibName:(NSString *)viewName {
NSArray* nibView = [[NSBundle mainBundle] loadNibNamed:viewName owner:nil options:nil];
return [nibView objectAtIndex:0];
}
- (void)goToHistory {
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
//
// SalesInputTableViewCell.h
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SalesInputTableViewCell : UITableViewCell
@end
//
// SalesInputTableViewCell.m
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "SalesInputTableViewCell.h"
@interface SalesInputTableViewCell ()<UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UITextField *textFieldAmount;
@property (weak, nonatomic) IBOutlet UITextField *txtfieldSum;
@end
@implementation SalesInputTableViewCell
- (void)awakeFromNib {
// Initialization code
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
[self.superview endEditing:YES];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9530"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="60" id="KGk-i7-Jjw" customClass="SalesInputTableViewCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="60"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="59"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付方式" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="42B-69-MrJ">
<rect key="frame" x="8" y="19" width="104" height="22"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="DwV-QQ-nIc">
<rect key="frame" x="243" y="7" width="104" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="vCb-q8-qdd"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="IOd-nI-Sgk">
<rect key="frame" x="126" y="7" width="103" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="Tti-cq-XrO"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<constraints>
<constraint firstItem="42B-69-MrJ" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="30G-yc-aMR"/>
<constraint firstItem="IOd-nI-Sgk" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="4zD-3a-Npn"/>
<constraint firstItem="DwV-QQ-nIc" firstAttribute="leading" secondItem="IOd-nI-Sgk" secondAttribute="trailing" constant="14" id="IDn-fs-A6c"/>
<constraint firstItem="IOd-nI-Sgk" firstAttribute="leading" secondItem="42B-69-MrJ" secondAttribute="trailing" constant="14" id="K0R-E6-pq2"/>
<constraint firstItem="IOd-nI-Sgk" firstAttribute="width" secondItem="42B-69-MrJ" secondAttribute="width" id="LyE-89-ZUP"/>
<constraint firstItem="DwV-QQ-nIc" firstAttribute="trailing" secondItem="H2p-sc-9uM" secondAttribute="trailingMargin" constant="-20" id="X6v-gb-CsP"/>
<constraint firstItem="DwV-QQ-nIc" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="gLQ-a3-OwZ"/>
<constraint firstItem="IOd-nI-Sgk" firstAttribute="leading" secondItem="42B-69-MrJ" secondAttribute="trailing" constant="14" id="m7d-pg-dI8"/>
<constraint firstItem="DwV-QQ-nIc" firstAttribute="leading" secondItem="IOd-nI-Sgk" secondAttribute="trailing" constant="14" id="nFY-mV-eit"/>
<constraint firstItem="42B-69-MrJ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" id="nZ2-4B-4Hr"/>
<constraint firstItem="DwV-QQ-nIc" firstAttribute="width" secondItem="42B-69-MrJ" secondAttribute="width" id="wRK-zA-B9k"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="textFieldAmount" destination="IOd-nI-Sgk" id="5cG-QC-dtr"/>
<outlet property="txtfieldSum" destination="DwV-QQ-nIc" id="sTl-vV-Iet"/>
</connections>
<point key="canvasLocation" x="158.5" y="379"/>
</tableViewCell>
</objects>
</document>
//
// SalesInputTopView.h
// vanke
//
// Created by Z on 16/4/15.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SalesInputTopView : UIView
@end
//
// SalesInputTopView.m
// vanke
//
// Created by Z on 16/4/15.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "SalesInputTopView.h"
@interface SalesInputTopView ()
@property (weak, nonatomic) IBOutlet UIView *viewRedBac;
@end
@implementation SalesInputTopView
- (void)awakeFromNib {
self.viewRedBac.layer.cornerRadius = 7;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment