Commit e1c7f866 authored by Sandy's avatar Sandy

界面计算金额、日期选择逻辑等细节调整

parent cb899c68
......@@ -7,6 +7,18 @@
objects = {
/* Begin PBXBuildFile section */
19000E861CC6215000DF8D71 /* ChooseShopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E761CC6215000DF8D71 /* ChooseShopViewController.m */; };
19000E871CC6215000DF8D71 /* HistoryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E781CC6215000DF8D71 /* HistoryViewController.m */; };
19000E881CC6215000DF8D71 /* SalesInputViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E7A1CC6215000DF8D71 /* SalesInputViewController.m */; };
19000E891CC6215000DF8D71 /* HistoryTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E7E1CC6215000DF8D71 /* HistoryTopView.m */; };
19000E8A1CC6215000DF8D71 /* HistoryTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19000E7F1CC6215000DF8D71 /* HistoryTopView.xib */; };
19000E8B1CC6215000DF8D71 /* SalesInputTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E811CC6215000DF8D71 /* SalesInputTableViewCell.m */; };
19000E8C1CC6215000DF8D71 /* SalesInputTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19000E821CC6215000DF8D71 /* SalesInputTableViewCell.xib */; };
19000E8D1CC6215000DF8D71 /* SalesInputTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E841CC6215000DF8D71 /* SalesInputTopView.m */; };
19000E8E1CC6215000DF8D71 /* SalesInputTopView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19000E851CC6215000DF8D71 /* SalesInputTopView.xib */; };
19000E911CC71DD200DF8D71 /* MyToolBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E901CC71DD200DF8D71 /* MyToolBar.m */; };
19000E941CC74DB000DF8D71 /* SalesInputTotalVIew.m in Sources */ = {isa = PBXBuildFile; fileRef = 19000E931CC74DB000DF8D71 /* SalesInputTotalVIew.m */; };
19000E961CC74DC800DF8D71 /* SalesInputTotalView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19000E951CC74DC800DF8D71 /* SalesInputTotalView.xib */; };
A0D453625552DAC91D4EB4A7 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C5987243B74E897E93DEC7D3 /* libPods.a */; };
C10F161B1BF77CA00065F18C /* ICRAboutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16121BF77CA00065F18C /* ICRAboutViewController.m */; };
C10F161C1BF77CA00065F18C /* ICRConfigurationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C10F16141BF77CA00065F18C /* ICRConfigurationViewController.m */; };
......@@ -706,6 +718,26 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
19000E751CC6215000DF8D71 /* ChooseShopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ChooseShopViewController.h; sourceTree = "<group>"; };
19000E761CC6215000DF8D71 /* ChooseShopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ChooseShopViewController.m; sourceTree = "<group>"; };
19000E771CC6215000DF8D71 /* HistoryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HistoryViewController.h; sourceTree = "<group>"; };
19000E781CC6215000DF8D71 /* HistoryViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HistoryViewController.m; sourceTree = "<group>"; };
19000E791CC6215000DF8D71 /* SalesInputViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputViewController.h; sourceTree = "<group>"; };
19000E7A1CC6215000DF8D71 /* SalesInputViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputViewController.m; sourceTree = "<group>"; };
19000E7D1CC6215000DF8D71 /* HistoryTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HistoryTopView.h; sourceTree = "<group>"; };
19000E7E1CC6215000DF8D71 /* HistoryTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HistoryTopView.m; sourceTree = "<group>"; };
19000E7F1CC6215000DF8D71 /* HistoryTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HistoryTopView.xib; sourceTree = "<group>"; };
19000E801CC6215000DF8D71 /* SalesInputTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputTableViewCell.h; sourceTree = "<group>"; };
19000E811CC6215000DF8D71 /* SalesInputTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputTableViewCell.m; sourceTree = "<group>"; };
19000E821CC6215000DF8D71 /* SalesInputTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SalesInputTableViewCell.xib; sourceTree = "<group>"; };
19000E831CC6215000DF8D71 /* SalesInputTopView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputTopView.h; sourceTree = "<group>"; };
19000E841CC6215000DF8D71 /* SalesInputTopView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputTopView.m; sourceTree = "<group>"; };
19000E851CC6215000DF8D71 /* SalesInputTopView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SalesInputTopView.xib; sourceTree = "<group>"; };
19000E8F1CC71DD200DF8D71 /* MyToolBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyToolBar.h; sourceTree = "<group>"; };
19000E901CC71DD200DF8D71 /* MyToolBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyToolBar.m; sourceTree = "<group>"; };
19000E921CC74DB000DF8D71 /* SalesInputTotalVIew.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SalesInputTotalVIew.h; sourceTree = "<group>"; };
19000E931CC74DB000DF8D71 /* SalesInputTotalVIew.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SalesInputTotalVIew.m; sourceTree = "<group>"; };
19000E951CC74DC800DF8D71 /* SalesInputTotalView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SalesInputTotalView.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>"; };
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>"; };
......@@ -1935,6 +1967,57 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
19000E731CC6215000DF8D71 /* salesInput */ = {
isa = PBXGroup;
children = (
19000E741CC6215000DF8D71 /* Controller */,
19000E7B1CC6215000DF8D71 /* Model */,
19000E7C1CC6215000DF8D71 /* View */,
);
path = salesInput;
sourceTree = "<group>";
};
19000E741CC6215000DF8D71 /* Controller */ = {
isa = PBXGroup;
children = (
19000E751CC6215000DF8D71 /* ChooseShopViewController.h */,
19000E761CC6215000DF8D71 /* ChooseShopViewController.m */,
19000E771CC6215000DF8D71 /* HistoryViewController.h */,
19000E781CC6215000DF8D71 /* HistoryViewController.m */,
19000E791CC6215000DF8D71 /* SalesInputViewController.h */,
19000E7A1CC6215000DF8D71 /* SalesInputViewController.m */,
);
path = Controller;
sourceTree = "<group>";
};
19000E7B1CC6215000DF8D71 /* Model */ = {
isa = PBXGroup;
children = (
);
path = Model;
sourceTree = "<group>";
};
19000E7C1CC6215000DF8D71 /* View */ = {
isa = PBXGroup;
children = (
19000E8F1CC71DD200DF8D71 /* MyToolBar.h */,
19000E901CC71DD200DF8D71 /* MyToolBar.m */,
19000E7D1CC6215000DF8D71 /* HistoryTopView.h */,
19000E7E1CC6215000DF8D71 /* HistoryTopView.m */,
19000E7F1CC6215000DF8D71 /* HistoryTopView.xib */,
19000E801CC6215000DF8D71 /* SalesInputTableViewCell.h */,
19000E811CC6215000DF8D71 /* SalesInputTableViewCell.m */,
19000E821CC6215000DF8D71 /* SalesInputTableViewCell.xib */,
19000E831CC6215000DF8D71 /* SalesInputTopView.h */,
19000E841CC6215000DF8D71 /* SalesInputTopView.m */,
19000E851CC6215000DF8D71 /* SalesInputTopView.xib */,
19000E921CC74DB000DF8D71 /* SalesInputTotalVIew.h */,
19000E931CC74DB000DF8D71 /* SalesInputTotalVIew.m */,
19000E951CC74DC800DF8D71 /* SalesInputTotalView.xib */,
);
path = View;
sourceTree = "<group>";
};
C10F17831BF7ACA80065F18C /* 3rd */ = {
isa = PBXGroup;
children = (
......@@ -2715,6 +2798,7 @@
C1D58B3D1BB1BC9200D297FE /* templates */ = {
isa = PBXGroup;
children = (
19000E731CC6215000DF8D71 /* salesInput */,
C1A069FB1BE1046B0082006F /* affairs */,
C18A95231C01E7B100429BF7 /* announcement */,
C19BBBDE1BBE85B300831290 /* common */,
......@@ -4193,6 +4277,7 @@
C1D58B131BB1BC9200D297FE /* Frameworks */,
C1D58B141BB1BC9200D297FE /* Resources */,
5CBECAF0D12B43E974C62C13 /* Copy Pods Resources */,
4AB0343CA6092CE59163E5B9 /* Embed Pods Frameworks */,
);
buildRules = (
);
......@@ -4252,6 +4337,7 @@
C1DED3301BCEC4B40049BB2D /* business_checked@2x.png in Resources */,
C14D6F571BB8041B00210172 /* homepage_logo.png in Resources */,
C1DED2AD1BCEAC530049BB2D /* location_icon.png in Resources */,
19000E8E1CC6215000DF8D71 /* SalesInputTopView.xib in Resources */,
C16BA6241BD393B7001ACB26 /* VankePassengerDetailBoard_iPhone.xml in Resources */,
C117865C1C0B3A5900DB7E4B /* unconfirmed_big@2x.png in Resources */,
C19BBC1A1BBE865400831290 /* VankeFloorListBoard_iPhone.xml in Resources */,
......@@ -4267,6 +4353,7 @@
C1A06A0E1BE10B080082006F /* sale_input@2x.png in Resources */,
C19AC8A81C1735E600DE260E /* wave_line@2x.png in Resources */,
C11786501C0B3A5900DB7E4B /* red_point@2x.png in Resources */,
19000E8A1CC6215000DF8D71 /* HistoryTopView.xib in Resources */,
C1A06A091BE10B080082006F /* bill.png in Resources */,
C19AC8891C1735E600DE260E /* bill_default_image@3x.png in Resources */,
C19BBC061BBE85F500831290 /* VankeWeatherCell_iPhone.xml in Resources */,
......@@ -4336,6 +4423,7 @@
C19AC8961C1735E600DE260E /* money_reduce@2x.png in Resources */,
C10F18661BF8EE020065F18C /* VankeStatementListItemCell_iPhone.xml in Resources */,
C165078D1BB96C2800CB2FC1 /* pwd_icon@2x.png in Resources */,
19000E8C1CC6215000DF8D71 /* SalesInputTableViewCell.xib in Resources */,
C1D595161BB42A7200D297FE /* navigation-menu@2x.png in Resources */,
C1CF9F361BEF232A0033C35E /* VankeNoticeListBoard_iPhone.xml in Resources */,
C1DED2AE1BCEAC530049BB2D /* location_icon@2x.png in Resources */,
......@@ -4354,6 +4442,7 @@
C14D6F7B1BB8098400210172 /* people.png in Resources */,
C16507891BB96C2800CB2FC1 /* login_bg@2x.png in Resources */,
C1DED32D1BCEC4B40049BB2D /* blue_bg.png in Resources */,
19000E961CC74DC800DF8D71 /* SalesInputTotalView.xib in Resources */,
C19AC88E1C1735E600DE260E /* confirmed_big@2x.png in Resources */,
C117865B1C0B3A5900DB7E4B /* unconfirmed@3x.png in Resources */,
C165078A1BB96C2800CB2FC1 /* logo.png in Resources */,
......@@ -4463,6 +4552,21 @@
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
4AB0343CA6092CE59163E5B9 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
5CBECAF0D12B43E974C62C13 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
......@@ -4516,6 +4620,7 @@
C19BBC1B1BBE865400831290 /* VankeFloorListBoardCell_iPhone.m in Sources */,
C18A95381C01E8E100429BF7 /* ICRAnnocementContentView.m in Sources */,
C1D598621BB44B2000D297FE /* BeeUIBoard+Popover.m in Sources */,
19000E911CC71DD200DF8D71 /* MyToolBar.m in Sources */,
C19ADE431BC81ACB00206213 /* VankeSaleVolumeModel.m in Sources */,
C1D599251BB44B2100D297FE /* NSObject+BeeKeychain.mm in Sources */,
C1D5985F1BB44B2000D297FE /* BeeUIBoard+ModalBoard.m in Sources */,
......@@ -4555,6 +4660,7 @@
C1D598591BB44B2000D297FE /* Bee_UIConfig.m in Sources */,
C12805091BC55773001ECBAA /* VankeBaseAPI.m in Sources */,
C1D599041BB44B2000D297FE /* BeeUISignal+SourceModel.m in Sources */,
19000E941CC74DB000DF8D71 /* SalesInputTotalVIew.m in Sources */,
C1D599291BB44B2100D297FE /* Bee_ActiveProtocol.m in Sources */,
C1D599241BB44B2100D297FE /* Bee_UserDefaults.mm in Sources */,
C1D599321BB44B2100D297FE /* NSObject+BeeDatabase.m in Sources */,
......@@ -4576,12 +4682,14 @@
C1D598411BB44B2000D297FE /* Bee_Package.mm in Sources */,
C1D598BF1BB44B2000D297FE /* UIView+PinchGesture.m in Sources */,
C1D599891BB44B2100D297FE /* CXMLNamespaceNode.m in Sources */,
19000E871CC6215000DF8D71 /* HistoryViewController.m in Sources */,
C18A952E1C01E84E00429BF7 /* ICRAnnouncement.m in Sources */,
C1D599471BB44B2100D297FE /* NSObject+BeeNotification.mm in Sources */,
C18A953B1C01E8E100429BF7 /* ICRAttachmentCellContentView.m in Sources */,
C1D5996D1BB44B2100D297FE /* Bee_Socket.m in Sources */,
C1D598721BB44B2000D297FE /* BeeUIStyle+Builder.m in Sources */,
C1D5992C1BB44B2100D297FE /* Bee_MYSQL.m in Sources */,
19000E8B1CC6215000DF8D71 /* SalesInputTableViewCell.m in Sources */,
C10F183A1BF7ACA80065F18C /* IBTCommon.m in Sources */,
C1E0AD7C1C12FC7200DE6BB9 /* SRMonthPicker.m in Sources */,
C1D599831BB44B2100D297FE /* CXMLDocument.m in Sources */,
......@@ -4723,6 +4831,7 @@
C1D5988A1BB44B2000D297FE /* Bee_UIAnimationStyling.m in Sources */,
C1D599571BB44B2100D297FE /* Bee_HTTPConfig.m in Sources */,
C1D599501BB44B2100D297FE /* Bee_Language.m in Sources */,
19000E861CC6215000DF8D71 /* ChooseShopViewController.m in Sources */,
C1D5993E1BB44B2100D297FE /* NSArray+BeeExtension.mm in Sources */,
C10F18331BF7ACA80065F18C /* IBTRefreshTableView.m in Sources */,
C10F18421BF7ACA80065F18C /* IBTTableViewCell.m in Sources */,
......@@ -4750,6 +4859,7 @@
C1D598641BB44B2000D297FE /* BeeUIStack+BackwardCompatible.m in Sources */,
C1D598A51BB44B2000D297FE /* Bee_UILabel.m in Sources */,
C1D5997F1BB44B2100D297FE /* OpenUDID.m in Sources */,
19000E8D1CC6215000DF8D71 /* SalesInputTopView.m in Sources */,
C1D598E51BB44B2000D297FE /* UITextView+BeeUILayout.m in Sources */,
C1D599091BB44B2000D297FE /* Bee_StreamViewModel.mm in Sources */,
C18A95401C01E98200429BF7 /* IBTModel.m in Sources */,
......@@ -4815,6 +4925,7 @@
C1D598AC1BB44B2000D297FE /* Bee_UIScrollView.m in Sources */,
C1D599191BB44B2100D297FE /* UITextField+XMLParser.m in Sources */,
C1D599521BB44B2100D297FE /* Bee_Network.m in Sources */,
19000E881CC6215000DF8D71 /* SalesInputViewController.m in Sources */,
C1D5991B1BB44B2100D297FE /* UIView+XMLParser.m in Sources */,
C12804DA1BC12A67001ECBAA /* VankeWeatherController.m in Sources */,
C1D599211BB44B2100D297FE /* Bee_FileCache.mm in Sources */,
......@@ -4917,6 +5028,7 @@
C1D5993F1BB44B2100D297FE /* NSBundle+BeeExtension.m in Sources */,
C10F182D1BF7ACA80065F18C /* ICRFunctionItemControl.m in Sources */,
C10F183B1BF7ACA80065F18C /* IBTCustomButtom.m in Sources */,
19000E891CC6215000DF8D71 /* HistoryTopView.m in Sources */,
C10F18271BF7ACA80065F18C /* ICRAttachmentUnit.m in Sources */,
C1D598511BB44B2000D297FE /* Bee_UIApplication.m in Sources */,
C1D5985C1BB44B2000D297FE /* Bee_UIStack.m in Sources */,
......
......@@ -92,6 +92,10 @@ typedef NS_ENUM(NSUInteger, ICRAttachmentType) {
success:(void (^)(id))succ
failure:(void (^)(id))fail;
- (void)postUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail;
- (void)getUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail;
@end
......
......@@ -20,6 +20,7 @@
#import "IBTCommon.h"
#import "VankeCommonModel.h"
#import "ICRDataBaseController.h"
#import "VankeConfig.h"
//#import "ICRStoreResult.h"
#define MAX_CONCURRENCY_UPLOAD 1
......@@ -705,4 +706,20 @@ acceptTypeJson:YES
// TODO
}
- (void)getUrl:(NSString *)url params:(id)params success:(void (^)(id data))succ failure:(void (^)(id data))fail {
NSString *requestUrl = [VANKE_SERVER_BASE_URL stringByAppendingFormat:@"/%@", @"shop/query"];
[self GET:requestUrl parameters:params needToken:YES acceptTypeJson:YES success:^(AFHTTPRequestOperation *operation, id responseObject) {
succ(responseObject);
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
fail(error);
}];
}
@end
......@@ -28,6 +28,7 @@
//new HTTP
//#define HTTP_REST_API_BASE_URL @"http://218.244.151.129:8281/cruiser-server/rest"
#define WS(weakSelf) __weak __typeof(&*self)weakSelf = self;
// Import Headers
#import "ICRUtilsMacro.h"
......
{
"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
......@@ -22,7 +22,11 @@
#define VANKE_BAIDU_WEATHER_SERVER_URL @"http://api.map.baidu.com/telematics/v3/weather"
// 后台服务基准地址
#define VANKE_SERVER_BASE_URL @"http://140.206.62.178:8080/wanke-server/rest"
//#define VANKE_SERVER_BASE_URL @"http://140.206.62.178:8080/wanke-server/rest"
// 测试环境
#define VANKE_SERVER_BASE_URL @"http://218.244.151.129:7580/wanke-server/rest"
// 后台多媒体文件基准地址
#define VANKE_SERVER_MEDIA_BASE_URL @"http://140.206.62.178:8080"
......
......@@ -23,6 +23,7 @@
#import "VankeNoticeListBoard_iPhone.h"
#import "VankeStatementListBoard_iPhone.h"
#import "ICRAnnouncementViewController.h"
#import "SalesInputViewController.h"
#pragma mark -
......@@ -123,7 +124,13 @@ ON_SIGNAL3(VankeAffairsBoard_iPhone, btnBill, signal) {
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnSaleInput, signal) {
[GEToast showWithText:@"销售录入正在开发中..." bottomOffset:60.0f duration:1.0f];
// [GEToast showWithText:@"销售录入正在开发中..." bottomOffset:60.0f duration:1.0f];
SalesInputViewController *salesVC = [[SalesInputViewController alloc] init];
VankeCommonModel *model = [VankeCommonModel sharedInstance];
[model curUserIsTenant];
[self.navigationController pushViewController:salesVC animated:YES];
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnServiceApply, signal) {
......
//
// ChooseShopViewController.h
// vanke
//
// Created by Z on 16/4/19.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^block)(NSString *);
@interface ChooseShopViewController : UIViewController
@property (nonatomic, copy) block chooseBlock;
@end
//
// ChooseShopViewController.m
// vanke
//
// Created by Z on 16/4/19.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "ChooseShopViewController.h"
#import "UIImage+Helper.h"
#import "ICRHTTPController.h"
#define kCellId @"searchCell"
@interface ChooseShopViewController ()<UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate>
@property (nonatomic, strong) UISearchBar *searchBar;
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, copy) NSString *searchText;
@end
@implementation ChooseShopViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"选择商铺";
[self setUPSearchBar];
[self setUpTableView];
// Do any additional setup after loading the view.
}
- (void)setUPSearchBar {
self.searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 50)];
self.searchBar.backgroundImage = [UIImage imageWithColor:[UIColor colorWithRed:0.953 green:0.439 blue:0.063 alpha:1.000]];
self.searchBar.tintColor = [UIColor whiteColor];
self.searchBar.placeholder = @"请输入关键字";
self.searchBar.delegate = self;
[self.view addSubview:self.searchBar];
}
#pragma mark =========== searbar delegate ===========
- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar {
[self.view endEditing:YES];
searchBar.showsCancelButton = NO;
}
- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText {
self.searchText = searchText;
}
- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar {
searchBar.showsCancelButton = YES;
return YES;
}
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
[self searchShopName:self.searchText];
[self.view endEditing:YES];
}
- (void)searchShopName:(NSString *)name {
NSDictionary *param = @{@"codeOrNameLike":name,
@"projectIdEquals":@""};
ICRHTTPController *httpCtrl = [ICRHTTPController sharedController];
[httpCtrl getUrl:@"rest/shop/" params:param success:^(id data){
NSLog(@"d");
} failure:^(id data){
}];
}
- (void)setUpTableView {
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, self.searchBar.bottom, SCREEN_WIDTH, SCREEN_HEIGHT - self.searchBar.bottom - 64) style:UITableViewStylePlain];
// self.tableView.backgroundColor = [UIColor greenColor];
self.tableView.delegate = self;
self.tableView.dataSource = self;
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:kCellId];
[self.view addSubview:self.tableView];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 20;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellId forIndexPath:indexPath];
cell.textLabel.text = [NSString stringWithFormat:@"星巴克【A01-0%ld】", (long)indexPath.row];
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
self.chooseBlock(@"选择好了商铺");
[self.navigationController popViewControllerAnimated:YES];
}
- (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
//
// HistoryViewController.h
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HistoryViewController : UIViewController
@end
//
// HistoryViewController.m
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "HistoryViewController.h"
#import "HistoryTopView.h"
#define klineCount 19 //列数
#define kListWidth 100 //一个表格的宽度
#define kListHeight 40
#define kBottomHeight 60 //表格最底部的那行的宽度
@interface HistoryViewController ()<UIScrollViewDelegate>
@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) HistoryTopView *topView;
@end
@implementation HistoryViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.automaticallyAdjustsScrollViewInsets = NO;
self.title = @"历史";
self.titles = @[@"日期",@"金额(元)",@"现金",@"刷卡",@"优惠券"];
self.view.backgroundColor = [UIColor whiteColor];
[self setUpTopView];
[self setUPScrollView];
// Do any additional setup after loading the view.
}
- (void)setUPScrollView {
self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 150, SCREEN_WIDTH, SCREEN_HEIGHT - 150 - 64)];
self.scrollView.contentSize = CGSizeMake(kListWidth * self.titles.count, kListHeight * klineCount + kBottomHeight);
self.scrollView.bounces = NO;
self.scrollView.delegate = self;
//双层for循环,i待代表列数,j代表行数
for (int i = 0; i < self.titles.count; i++) {
for (int j = 0; j < klineCount; j++) {
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(kListWidth * i, kListHeight + kListHeight * j, kListWidth, kListHeight)];
label.textAlignment = NSTextAlignmentCenter;
label.text = [NSString stringWithFormat:@"假数据假%d", j];
[self.scrollView insertSubview:label atIndex:0];//防止前面的别挡住
label.backgroundColor = [UIColor colorWithRed:1.000 green:0.976 blue:0.953 alpha:1.000];
if (i == 0) {
label.tag = 3000 + j;
}else if(i == 1){//金额
label.textColor = [UIColor redColor];
}
}
//顶部的浮动视图
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(kListWidth * i, 0, kListWidth, 44)];
label.tag = 1000 + i;
label.text = self.titles[i];
label.font = [UIFont systemFontOfSize:19];
label.textAlignment = NSTextAlignmentCenter;
if (i != 0) {
[self.scrollView insertSubview:label belowSubview:[self.scrollView viewWithTag:1000 + i -1]];//防止前面的别挡住
}else{
[self.scrollView addSubview:label];
}
label.backgroundColor = [UIColor whiteColor];
label.backgroundColor = [UIColor colorWithRed:1.000 green:0.976 blue:0.953 alpha:1.000];
//底部浮动的视图
UILabel *labelBottom = [[UILabel alloc] initWithFrame:CGRectMake(kListWidth * i, self.scrollView.contentOffset.y + self.scrollView.height - kBottomHeight, kListWidth, kBottomHeight)];
labelBottom.text = self.titles[i];
labelBottom.backgroundColor = [UIColor grayColor];
labelBottom.font = [UIFont systemFontOfSize:28];
labelBottom.textAlignment = NSTextAlignmentCenter;
labelBottom.tag = 2000 + i;
[self.scrollView addSubview:labelBottom];
if (i != 0) {
[self.scrollView insertSubview:labelBottom belowSubview:[self.scrollView viewWithTag:2000 + i -1]];//防止前面的别挡住
if (i==1) {
labelBottom.textColor = [UIColor redColor];
}else{
labelBottom.textColor = [UIColor whiteColor];
}
}else{
[self.scrollView addSubview:labelBottom];
}
}
[self.view addSubview:self.scrollView];
}
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
for (int i = 0; i < self.titles.count; i++) {
UILabel *label = (UILabel *)[scrollView viewWithTag:1000 + i];
label.y = scrollView.contentOffset.y;
UILabel *labelBottom = (UILabel *)[scrollView viewWithTag:2000 + i];
labelBottom.y = self.scrollView.contentOffset.y + self.scrollView.height - kBottomHeight;
if (i == 0) {
label.x = scrollView.contentOffset.x;
labelBottom.x = scrollView.contentOffset.x;
}
}
for (int i = 0; i < klineCount; i++) {
UILabel *label = (UILabel *)[scrollView viewWithTag:3000 + i];
label.x = scrollView.contentOffset.x;
}
}
- (void)setUpTopView {
HistoryTopView *topView = [self viewWithNibName:@"HistoryTopView"];
topView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 150 + 64);
self.topView = topView;
self.topView.userInteractionEnabled = YES;
[topView.buttonStartDate addTarget:self action:@selector(startDateAction) forControlEvents:UIControlEventTouchUpInside];
[topView.buttonEndDate addTarget:self action:@selector(endDateAction) forControlEvents:UIControlEventTouchUpInside];
[self setUpDatePicker];
[self.view addSubview:topView];
}
- (void)setUpDatePicker {
UIDatePicker *startDatePicker = [[UIDatePicker alloc] init];
startDatePicker.date = [NSDate dateWithTimeInterval:-60 * 60 * 24 sinceDate:[NSDate date]];
startDatePicker.tag = 1100;
startDatePicker.datePickerMode = UIDatePickerModeDate;
[startDatePicker addTarget:self action:@selector(oneDatePickerValueChanged:) forControlEvents:UIControlEventValueChanged];
self.topView.startDate.inputView = startDatePicker;
UIDatePicker *endDatePicker = [[UIDatePicker alloc] init];
endDatePicker.tag = 1200;
endDatePicker.date = [NSDate date];
endDatePicker.datePickerMode = UIDatePickerModeDate;
[endDatePicker addTarget:self action:@selector(oneDatePickerValueChanged:) forControlEvents:UIControlEventValueChanged];
self.topView.endDate.inputView = endDatePicker;
}
- (void)oneDatePickerValueChanged:(UIDatePicker *)datePicker {
NSDate *date = datePicker.date;
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd"];
NSString *strTime = [df stringFromDate:date];
switch (datePicker.tag) {
case 1100:
{
self.topView.startDate.text = strTime;
}
break;
case 1200:
{
self.topView.endDate.text = strTime;
}
break;
default:
break;
}
}
- (void)startDateAction {
NSLog(@"start");
[self.topView startDateBecomeFistRespond];
}
- (void)endDateAction {
NSLog(@"end");
[self.topView endDateBecomeFistRespond];
}
- (id)viewWithNibName:(NSString *)viewName {
NSArray* nibView = [[NSBundle mainBundle] loadNibNamed:viewName owner:nil options:nil];
return [nibView objectAtIndex:0];
}
- (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
//
// SalesInputViewController.h
// vanke
//
// Created by Z on 16/4/15.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "IBTUIViewController.h"
@interface SalesInputViewController : UIViewController
@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"
#import "HistoryViewController.h"
#import "ChooseShopViewController.h"
#import "VankeUserLoginAPI.h"
#import "ICRHTTPController.h"
#import "MyToolBar.h"
#import "SalesInputTotalVIew.h"
#import "ICRAppMacro.h"
#define kCellCount 20
#define kCellID @"SalesInputTableViewCell.h"
@interface SalesInputViewController ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) SalesInputTopView *topView;
@property (nonatomic, strong) UIDatePicker *datePicker;
@property (nonatomic, strong) UIImage *navigationbarColorImage;
@property (nonatomic, strong) SalesInputTotalVIew *totalView;
@property (nonatomic, strong) NSString *selectDate;
@property (nonatomic, strong) NSMutableDictionary *cellDataDic;
@end
@implementation SalesInputViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.cellDataDic = [NSMutableDictionary dictionary];
self.view.backgroundColor = [UIColor whiteColor];
[self setUpNavigationBar];
[self setUpTopView];
[self setUpTableView];
[self setUpTotalView];
// Do any additional setup after loading the view.
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[[VankeAppBoard_iPhone sharedInstance] hideMenu];
}
ON_WILL_APPEAR( signal )
{
[[VankeAppBoard_iPhone sharedInstance] hideMenu];
}
- (void)setUpTableView {
self.tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 125, SCREEN_WIDTH, SCREEN_HEIGHT - self.topView.bottom) style:UITableViewStylePlain];
self.tableView.contentInset = UIEdgeInsetsMake(179, 0, 0, 0);
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 kCellCount;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
SalesInputTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID forIndexPath:indexPath];
[cell cellWithArray:[self getCellDataArrWithIndexPath:indexPath]];
WS(weakSelf)
cell.updateCellData = ^(NSArray *dataArr){
NSLog(@"%@", dataArr);
[weakSelf.cellDataDic setObject:dataArr forKey:indexPath];
[weakSelf countTotalMonney];
};
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 50;
}
- (void)setUpNavigationBar {
self.navigationItem.title = @"销售录入";
self.navigationController.navigationBar.backgroundImage = [UIImage imageWithColor:[UIColor colorWithRed:0.953 green:0.439 blue:0.063 alpha:1.000]];
UIBarButtonItem *rightBtn = [[UIBarButtonItem alloc] initWithTitle:@"历史" style:UIBarButtonItemStyleDone target:self action:@selector(goToHistory)];
rightBtn.tintColor = [UIColor whiteColor];
self.navigationItem.rightBarButtonItem = rightBtn;
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
}
- (void)setUpTopView {
SalesInputTopView *topView = [self viewWithNibName:@"SalesInputTopView"];
topView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 125 + 64);
self.topView = topView;
topView.textfieldDate.inputView = self.datePicker;
topView.nameTapActionBlock = ^{
[self chooseShopAction];
};
[self.view addSubview:topView];
}
- (void)setUpTotalView {
self.totalView = [self viewWithNibName:@"SalesInputTotalView"];
self.totalView.frame = CGRectMake(0, -179, SCREEN_WIDTH, 179);
[self.tableView addSubview:self.totalView];
}
- (void)pickerDoneAction {
[self.view endEditing:YES];
}
- (void)chooseShopAction {
ChooseShopViewController *chooseVC = [[ChooseShopViewController alloc] init];
chooseVC.chooseBlock = ^(NSString *string){
[self.topView setShopName:string];
};
[self.navigationController pushViewController:chooseVC animated:YES];
}
- (UIDatePicker *)datePicker {
if (!_datePicker) {
_datePicker = [[UIDatePicker alloc] init];
_datePicker.backgroundColor = [UIColor colorWithWhite:0.902 alpha:1.000];
_datePicker.date = [NSDate date];
_datePicker.datePickerMode = UIDatePickerModeDate;
[_datePicker addTarget:self action:@selector(oneDatePickerValueChanged:) forControlEvents:UIControlEventValueChanged]; // 添加监听器
}
return _datePicker;
}
#pragma mark - 实现oneDatePicker的监听方法
- (void)oneDatePickerValueChanged:(UIDatePicker *) sender {
NSDate *date = sender.date;
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy-MM-dd"];
NSString *strTime = [df stringFromDate:date];
self.topView.textfieldDate.text = strTime;
NSLog(@"%@", strTime);
}
- (void)countTotalMonney {
CGFloat count = 0;
for (NSIndexPath *obj in self.cellDataDic.allKeys) {
NSArray *array = [self.cellDataDic objectForKey:obj];
CGFloat monney = [array[0] floatValue];
CGFloat bill = [array[1] floatValue];
count = count + monney * bill;
}
self.totalView.labelTotal.text = [NSString stringWithFormat:@"%.0f",count];
}
- (id)viewWithNibName:(NSString *)viewName {
NSArray* nibView = [[NSBundle mainBundle] loadNibNamed:viewName owner:nil options:nil];
return [nibView objectAtIndex:0];
}
- (NSArray *)getCellDataArrWithIndexPath:(NSIndexPath *)indextPath {
if (![self.cellDataDic objectForKey:indextPath]) {
[self.cellDataDic setObject:@[@"0",@"0"] forKey:indextPath];
}
return [self.cellDataDic objectForKey:indextPath];
}
- (void)goToHistory {
HistoryViewController *history = [[HistoryViewController alloc] init];
[self.navigationController pushViewController:history animated:YES];
}
- (void)setUpData {
ICRHTTPController *httpCtrl = [ICRHTTPController sharedController];
NSDictionary *myDictionary = @{@"shopCodeEquals" : @"a",
@"beginDateEquals" : @"a",
@"endDateEquals" : @"a",
@"pageNumber" : @0,
@"pageSize" : @0};
}
- (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
//
// HistoryTopView.h
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HistoryTopView : UIView
@property (weak, nonatomic) IBOutlet UIButton *buttonStartDate;
@property (weak, nonatomic) IBOutlet UIButton *buttonEndDate;
@property (weak, nonatomic) IBOutlet UITextField *startDate;
@property (weak, nonatomic) IBOutlet UITextField *endDate;
- (void)startDateBecomeFistRespond;
- (void)endDateBecomeFistRespond;
@end
//
// HistoryTopView.m
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "HistoryTopView.h"
@interface HistoryTopView ()
@property (weak, nonatomic) IBOutlet UIButton *buttonQuery;
@end
@implementation HistoryTopView
-(void)awakeFromNib {
self.buttonQuery.layer.cornerRadius = 5;
}
- (void)startDateBecomeFistRespond {
[self.startDate becomeFirstResponder];
}
- (void)endDateBecomeFistRespond {
[self.endDate becomeFirstResponder];
}
- (IBAction)queryAction:(id)sender {
NSLog(@"查询");
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@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"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="HistoryTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="150"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PXR-kT-YMR">
<rect key="frame" x="0.0" y="0.0" width="375" height="72"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="sales_top_input_pic" translatesAutoresizingMaskIntoConstraints="NO" id="Y5W-EN-8ml">
<rect key="frame" x="28" y="16" width="51" height="51"/>
<constraints>
<constraint firstAttribute="height" constant="51" id="9f9-hy-N2g"/>
<constraint firstAttribute="width" constant="51" id="tPB-0D-CvI"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="星巴克【A01-01】" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="V51-vf-Qaf">
<rect key="frame" x="129" y="31" width="213" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="javen_right_icon" translatesAutoresizingMaskIntoConstraints="NO" id="w5x-NT-NnM">
<rect key="frame" x="349" y="32" width="16" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="ULk-f7-HNz"/>
<constraint firstAttribute="width" constant="16" id="USv-dN-rIb"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oEx-Id-X1s">
<rect key="frame" x="137" y="15" width="228" height="53"/>
<constraints>
<constraint firstAttribute="height" constant="53" id="S2o-aV-dMZ"/>
</constraints>
</button>
</subviews>
<color key="backgroundColor" red="0.95294117649999999" green="0.43921568630000002" blue="0.062745098040000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="V51-vf-Qaf" firstAttribute="leading" secondItem="Y5W-EN-8ml" secondAttribute="trailing" constant="50" id="4T6-qZ-ihG"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="72" id="DBz-TJ-xhd"/>
<constraint firstItem="V51-vf-Qaf" firstAttribute="centerY" secondItem="oEx-Id-X1s" secondAttribute="centerY" id="GIY-Pd-AJg"/>
<constraint firstAttribute="height" constant="72" id="I3a-zj-qCA"/>
<constraint firstItem="w5x-NT-NnM" firstAttribute="leading" secondItem="V51-vf-Qaf" secondAttribute="trailing" constant="7" id="JsG-ew-JKR"/>
<constraint firstItem="oEx-Id-X1s" firstAttribute="leading" secondItem="Y5W-EN-8ml" secondAttribute="trailing" constant="58" id="L0P-wQ-8ec"/>
<constraint firstAttribute="trailing" secondItem="oEx-Id-X1s" secondAttribute="trailing" constant="10" id="Ohn-pl-jUQ"/>
<constraint firstItem="V51-vf-Qaf" firstAttribute="centerY" secondItem="Y5W-EN-8ml" secondAttribute="centerY" id="R05-eu-7lR"/>
<constraint firstItem="w5x-NT-NnM" firstAttribute="centerY" secondItem="V51-vf-Qaf" secondAttribute="centerY" id="cqM-l6-boG"/>
<constraint firstItem="Y5W-EN-8ml" firstAttribute="top" secondItem="PXR-kT-YMR" secondAttribute="top" constant="16" id="lqG-Wj-NBD"/>
<constraint firstItem="Y5W-EN-8ml" firstAttribute="leading" secondItem="PXR-kT-YMR" secondAttribute="leading" constant="28" id="pEb-EZ-7ap"/>
<constraint firstAttribute="trailing" secondItem="V51-vf-Qaf" secondAttribute="trailing" constant="33" id="wSw-CC-Fl6"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="shU-x6-kGg">
<rect key="frame" x="6" y="79" width="106" height="32"/>
<constraints>
<constraint firstAttribute="width" constant="106" id="MD8-L4-YJC"/>
<constraint firstAttribute="height" constant="32" id="Nl8-UA-X04"/>
</constraints>
<inset key="titleEdgeInsets" minX="-45" minY="0.0" maxX="0.0" maxY="0.0"/>
<inset key="imageEdgeInsets" minX="75" minY="0.0" maxX="0.0" maxY="0.0"/>
<state key="normal" title="起始日期" image="right_arrow.png">
<color key="titleColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="C34-UB-Ftu">
<rect key="frame" x="120" y="79" width="106" height="32"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="9Pt-sM-tRq"/>
<constraint firstAttribute="width" constant="106" id="I3h-Hj-5gF"/>
</constraints>
<inset key="titleEdgeInsets" minX="-45" minY="0.0" maxX="0.0" maxY="0.0"/>
<inset key="imageEdgeInsets" minX="75" minY="0.0" maxX="0.0" maxY="0.0"/>
<state key="normal" title="截止日期" image="right_arrow.png">
<color key="titleColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="UAX-J6-XYl">
<rect key="frame" x="258" y="79" width="104" height="59"/>
<color key="backgroundColor" red="0.95294117649999999" green="0.43921568630000002" blue="0.062745098040000002" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="47" id="SdU-ok-lNc"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="查询">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="queryAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="H4K-wr-euJ"/>
</connections>
</button>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="2016-03-23" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="s5M-pR-dBt">
<rect key="frame" x="7" y="116" width="104" height="22"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="Gbo-UM-1e3"/>
<constraint firstAttribute="width" constant="104" id="dyk-1A-rlU"/>
</constraints>
<color key="textColor" red="0.95294117649999999" green="0.43921568630000002" blue="0.062745098040000002" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="2016-03-23" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="lFq-9J-b3V">
<rect key="frame" x="121" y="116" width="104" height="22"/>
<color key="textColor" red="0.95294117649999999" green="0.43921568630000002" blue="0.062745098040000002" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="lFq-9J-b3V" firstAttribute="top" secondItem="C34-UB-Ftu" secondAttribute="bottom" constant="5" id="33r-96-BTZ"/>
<constraint firstItem="C34-UB-Ftu" firstAttribute="leading" secondItem="shU-x6-kGg" secondAttribute="trailing" constant="15" id="3Eo-YW-8kP"/>
<constraint firstAttribute="trailing" secondItem="PXR-kT-YMR" secondAttribute="trailing" id="5XY-Tc-4ry"/>
<constraint firstItem="shU-x6-kGg" firstAttribute="top" secondItem="PXR-kT-YMR" secondAttribute="bottom" constant="7" id="8au-mN-6it"/>
<constraint firstItem="UAX-J6-XYl" firstAttribute="bottom" secondItem="lFq-9J-b3V" secondAttribute="bottom" id="A4Z-LJ-7Ka"/>
<constraint firstAttribute="trailing" secondItem="UAX-J6-XYl" secondAttribute="trailing" constant="13" id="Cel-GW-x5K"/>
<constraint firstItem="C34-UB-Ftu" firstAttribute="leading" secondItem="shU-x6-kGg" secondAttribute="trailing" constant="8" id="F8G-tG-xFQ"/>
<constraint firstItem="PXR-kT-YMR" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="MDB-X5-TaT"/>
<constraint firstItem="PXR-kT-YMR" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="N8m-wN-G38"/>
<constraint firstItem="s5M-pR-dBt" firstAttribute="top" secondItem="shU-x6-kGg" secondAttribute="bottom" constant="5" id="RNe-vY-WQY"/>
<constraint firstItem="UAX-J6-XYl" firstAttribute="leading" secondItem="C34-UB-Ftu" secondAttribute="trailing" constant="32" id="nXG-UH-THj"/>
<constraint firstItem="s5M-pR-dBt" firstAttribute="centerX" secondItem="shU-x6-kGg" secondAttribute="centerX" id="qXk-MA-Vxd"/>
<constraint firstItem="shU-x6-kGg" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="6" id="sqg-Jk-Ztm"/>
<constraint firstItem="UAX-J6-XYl" firstAttribute="top" secondItem="C34-UB-Ftu" secondAttribute="top" id="tRu-Nu-g6I"/>
<constraint firstItem="C34-UB-Ftu" firstAttribute="centerY" secondItem="shU-x6-kGg" secondAttribute="centerY" id="tZs-d5-g4g"/>
<constraint firstItem="lFq-9J-b3V" firstAttribute="centerX" secondItem="C34-UB-Ftu" secondAttribute="centerX" id="wbH-c4-OUk"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<variation key="default">
<mask key="constraints">
<exclude reference="3Eo-YW-8kP"/>
</mask>
</variation>
<connections>
<outlet property="buttonEndDate" destination="C34-UB-Ftu" id="r9I-wT-vQG"/>
<outlet property="buttonQuery" destination="UAX-J6-XYl" id="3qB-KF-68k"/>
<outlet property="buttonStartDate" destination="shU-x6-kGg" id="sxM-47-6VB"/>
<outlet property="endDate" destination="lFq-9J-b3V" id="x3l-kf-JWf"/>
<outlet property="startDate" destination="s5M-pR-dBt" id="Lhk-eU-uZW"/>
</connections>
<point key="canvasLocation" x="254.5" y="25"/>
</view>
</objects>
<resources>
<image name="javen_right_icon" width="16" height="27"/>
<image name="right_arrow.png" width="32" height="32"/>
<image name="sales_top_input_pic" width="63" height="63"/>
</resources>
</document>
//
// MyToolBar.h
// CapitalChamberlain
//
// Created by Jerry on 15/12/23.
// Copyright © 2015年 SunShine. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MyToolBar : UIToolbar
- (instancetype)initWithFrame:(CGRect)frame target:(id)target lefTitle:(NSString *)leftTitle leftAction:(SEL)leftAcrtion rightTitle:(NSString *)rightTitle rightAction:(SEL)rightAction;
@end
//
// MyToolBar.m
// CapitalChamberlain
//
// Created by Jerry on 15/12/23.
// Copyright © 2015年 SunShine. All rights reserved.
//
#import "MyToolBar.h"
@implementation MyToolBar
- (instancetype)initWithFrame:(CGRect)frame target:(id)target lefTitle:(NSString *)leftTitle leftAction:(SEL)leftAcrtion rightTitle:(NSString *)rightTitle rightAction:(SEL)rightAction
{
self = [super initWithFrame:frame];
if (self) {
[self setBarStyle:UIBarStyleDefault];
// self.backgroundColor = kBackroundColor;
UIBarButtonItem * helloButton = [[UIBarButtonItem alloc]initWithTitle:leftTitle style:UIBarButtonItemStyleBordered target:target action:leftAcrtion];
UIBarButtonItem * btnSpace = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:target action:nil];
UIBarButtonItem * doneButton = [[UIBarButtonItem alloc]initWithTitle:rightTitle style:UIBarButtonItemStyleDone target:target action:rightAction];
[doneButton setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys:[UIColor grayColor],NSForegroundColorAttributeName, [UIFont systemFontOfSize:17],NSFontAttributeName ,nil] forState:UIControlStateNormal];
NSArray * buttonsArray = [NSArray arrayWithObjects:helloButton,btnSpace,doneButton,nil];
[self setItems:buttonsArray];
}
return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
//
// SalesInputTableViewCell.h
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void (^myBlock)(NSArray *);
@interface SalesInputTableViewCell : UITableViewCell
@property (nonatomic, copy) myBlock updateCellData;
- (void)cellWithArray:(NSArray *)array;
@end
//
// SalesInputTableViewCell.m
// vanke
//
// Created by Z on 16/4/18.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "SalesInputTableViewCell.h"
@interface SalesInputTableViewCell ()<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UITextField *textFieldAmount;
@property (weak, nonatomic) IBOutlet UITextField *txtfieldSum;
@end
@implementation SalesInputTableViewCell
- (void)awakeFromNib {
self.textFieldAmount.delegate = self;
self.txtfieldSum.delegate = self;
// Initialization code
}
- (void)cellWithArray:(NSArray *)array {
self.textFieldAmount.text = [array[0] isEqualToString:@"0"] ? @"" : array[0];
self.txtfieldSum.text = [array[1] isEqualToString:@"0"] ? @"" : array[0];
}
- (void)textFieldDidEndEditing:(UITextField *)textField {
NSLog(@"textField end editing");
if (([self.txtfieldSum.text isEqualToString:@"0"] || [self.txtfieldSum.text isEqualToString:@""]) && ![self.textFieldAmount.text isEqualToString:@""])
{
self.txtfieldSum.text = @"1";
}else if ([self.textFieldAmount.text isEqualToString:@""]){
self.txtfieldSum.text = @"";
}
self.updateCellData(@[self.textFieldAmount.text, self.txtfieldSum.text]);
}
- (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" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="0" 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="18"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="0" 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="18"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</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>
typedef void (^tapBlock)(void);
@interface SalesInputTopView : UIView
@property (nonatomic, copy) tapBlock nameTapActionBlock;
@property (nonatomic, copy) tapBlock dateTapActionBlock;
@property (weak, nonatomic) IBOutlet UITextField *textfieldDate;
- (void)setShopName:(NSString *)name;
- (void)setDate:(NSString *)date;
@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 UILabel *labelShopName;
@end
@implementation SalesInputTopView
- (void)setShopName:(NSString *)name
{
self.labelShopName.text = name;
}
- (void)setDate:(NSString *)date
{
}
- (void)awakeFromNib {
}
- (IBAction)labelNameTapAction:(id)sender {
self.nameTapActionBlock();
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@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"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="SalesInputTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="125"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZVI-Ki-EO6">
<rect key="frame" x="0.0" y="0.0" width="375" height="125"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="sales_top_input_pic" translatesAutoresizingMaskIntoConstraints="NO" id="ilW-3S-WXQ">
<rect key="frame" x="28" y="16" width="51" height="51"/>
<constraints>
<constraint firstAttribute="width" constant="51" id="Sq6-RF-DZo"/>
<constraint firstAttribute="height" constant="51" id="dak-hN-0Gq"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="销售日期" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KyU-0A-D7m">
<rect key="frame" x="19" y="84" width="68" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="星巴克【A01-01】" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dRE-Ph-BBH">
<rect key="frame" x="129" y="31" width="213" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="javen_right_icon" translatesAutoresizingMaskIntoConstraints="NO" id="stJ-qB-AhQ">
<rect key="frame" x="349" y="32" width="16" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="tV6-m2-apI"/>
<constraint firstAttribute="width" constant="16" id="z54-sk-IRv"/>
</constraints>
</imageView>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleAspectFit" image="javen_right_icon" translatesAutoresizingMaskIntoConstraints="NO" id="JFd-La-Uz1">
<rect key="frame" x="349" y="85" width="16" height="19"/>
<constraints>
<constraint firstAttribute="width" constant="16" id="fT6-1A-F8H"/>
<constraint firstAttribute="height" constant="19" id="qAA-gF-GgZ"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dB4-mG-z77">
<rect key="frame" x="137" y="15" width="228" height="53"/>
<constraints>
<constraint firstAttribute="height" constant="53" id="ox5-t0-4uQ"/>
</constraints>
<connections>
<action selector="labelNameTapAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="tmQ-CQ-lbC"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7BV-nx-jgh">
<rect key="frame" x="137" y="16" width="228" height="53"/>
<constraints>
<constraint firstAttribute="height" constant="53" id="EID-y0-xQe"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="53" id="l9y-V0-7s4"/>
</constraints>
</button>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="2016-02-4" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="g0n-5F-LTn">
<rect key="frame" x="129" y="84" width="213" height="22"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" red="0.95294117647058818" green="0.4392156862745098" blue="0.062745098039215685" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="stJ-qB-AhQ" firstAttribute="leading" secondItem="dRE-Ph-BBH" secondAttribute="trailing" constant="7" id="0eC-0F-RKW"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="leading" secondItem="g0n-5F-LTn" secondAttribute="leading" id="5nO-Dm-wQJ"/>
<constraint firstItem="JFd-La-Uz1" firstAttribute="leading" secondItem="g0n-5F-LTn" secondAttribute="trailing" constant="7" id="6Iw-tX-NUX"/>
<constraint firstItem="7BV-nx-jgh" firstAttribute="leading" secondItem="KyU-0A-D7m" secondAttribute="trailing" constant="50" id="6XY-uG-s5x"/>
<constraint firstAttribute="trailing" secondItem="dRE-Ph-BBH" secondAttribute="trailing" constant="33" id="814-QK-nMI"/>
<constraint firstAttribute="height" constant="125" id="8Hi-hr-TdJ"/>
<constraint firstItem="dB4-mG-z77" firstAttribute="leading" secondItem="ilW-3S-WXQ" secondAttribute="trailing" constant="58" id="8Kq-ah-wzw"/>
<constraint firstItem="JFd-La-Uz1" firstAttribute="leading" secondItem="stJ-qB-AhQ" secondAttribute="leading" id="D7b-db-Dzi"/>
<constraint firstAttribute="trailing" secondItem="7BV-nx-jgh" secondAttribute="trailing" constant="10" id="ISM-Eh-Jcy"/>
<constraint firstItem="stJ-qB-AhQ" firstAttribute="centerY" secondItem="dRE-Ph-BBH" secondAttribute="centerY" id="Nlr-iN-hXh"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="centerY" secondItem="dB4-mG-z77" secondAttribute="centerY" id="Nx9-24-pxo"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="centerY" secondItem="ilW-3S-WXQ" secondAttribute="centerY" id="OIS-ei-9Mh"/>
<constraint firstItem="dRE-Ph-BBH" firstAttribute="leading" secondItem="ilW-3S-WXQ" secondAttribute="trailing" constant="50" id="Sne-cr-Yhv"/>
<constraint firstItem="JFd-La-Uz1" firstAttribute="centerY" secondItem="g0n-5F-LTn" secondAttribute="centerY" id="UF1-94-5Ll"/>
<constraint firstItem="g0n-5F-LTn" firstAttribute="leading" secondItem="7BV-nx-jgh" secondAttribute="leading" id="XaI-Et-REs"/>
<constraint firstItem="7BV-nx-jgh" firstAttribute="top" secondItem="ilW-3S-WXQ" secondAttribute="top" id="Y50-i9-nnO"/>
<constraint firstItem="KyU-0A-D7m" firstAttribute="top" secondItem="ilW-3S-WXQ" secondAttribute="bottom" constant="17" id="b0W-Du-na6"/>
<constraint firstAttribute="trailing" secondItem="dB4-mG-z77" secondAttribute="trailing" constant="10" id="dh9-wa-yXK"/>
<constraint firstItem="JFd-La-Uz1" firstAttribute="centerY" secondItem="7BV-nx-jgh" secondAttribute="centerY" id="gf3-ve-i95"/>
<constraint firstItem="KyU-0A-D7m" firstAttribute="centerX" secondItem="ilW-3S-WXQ" secondAttribute="centerX" id="hCG-OB-ulz"/>
<constraint firstItem="g0n-5F-LTn" firstAttribute="centerY" secondItem="KyU-0A-D7m" secondAttribute="centerY" id="jpf-07-4RN"/>
<constraint firstItem="ilW-3S-WXQ" firstAttribute="leading" secondItem="ZVI-Ki-EO6" secondAttribute="leading" constant="28" id="mXc-X4-5jr"/>
<constraint firstItem="ilW-3S-WXQ" firstAttribute="top" secondItem="ZVI-Ki-EO6" secondAttribute="top" constant="16" id="qNp-AW-Xeu"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="XaI-Et-REs"/>
<exclude reference="gf3-ve-i95"/>
</mask>
</variation>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="ZVI-Ki-EO6" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="H0s-gV-Wne"/>
<constraint firstItem="ZVI-Ki-EO6" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ZkM-uw-XgU"/>
<constraint firstAttribute="trailing" secondItem="ZVI-Ki-EO6" secondAttribute="trailing" id="qWE-HJ-GPW"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="labelShopName" destination="dRE-Ph-BBH" id="KsU-if-OPN"/>
<outlet property="textfieldDate" destination="g0n-5F-LTn" id="fXf-XI-RTH"/>
</connections>
<point key="canvasLocation" x="213.5" y="-71.5"/>
</view>
</objects>
<resources>
<image name="javen_right_icon" width="16" height="27"/>
<image name="sales_top_input_pic" width="63" height="63"/>
</resources>
</document>
//
// SalesInputTotalVIew.h
// vanke
//
// Created by Z on 16/4/20.
// Copyright © 2016年 gomore. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SalesInputTotalVIew : UIView
@property (weak, nonatomic) IBOutlet UILabel *labelTotal;
@end
//
// SalesInputTotalVIew.m
// vanke
//
// Created by Z on 16/4/20.
// Copyright © 2016年 gomore. All rights reserved.
//
#import "SalesInputTotalVIew.h"
@interface SalesInputTotalVIew ()
@property (weak, nonatomic) IBOutlet UIView *viewRedBac;
@end
@implementation SalesInputTotalVIew
- (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
<?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"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="SalesInputTotalVIew">
<rect key="frame" x="0.0" y="0.0" width="375" height="179"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="笔数" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bSD-kE-uJi">
<rect key="frame" x="250" y="146" width="125" height="21"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zwK-xd-zPX">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本单合计(元)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rA9-M1-csP">
<rect key="frame" x="0.0" y="13" width="184" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="jl6-YV-hX7"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="今日累计(元)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TfL-x8-xN5">
<rect key="frame" x="192" y="13" width="183" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="SmK-r3-7cA"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kPx-jb-maY">
<rect key="frame" x="73" y="46" width="38" height="42"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qWe-Q2-slF">
<rect key="frame" x="10" y="4" width="18" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="28"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="qWe-Q2-slF" firstAttribute="centerY" secondItem="kPx-jb-maY" secondAttribute="centerY" id="0BQ-7E-K2f"/>
<constraint firstAttribute="height" constant="42" id="WPQ-Ou-6mS"/>
<constraint firstItem="qWe-Q2-slF" firstAttribute="centerX" secondItem="kPx-jb-maY" secondAttribute="centerX" id="aZU-LY-NeB"/>
<constraint firstAttribute="trailing" secondItem="qWe-Q2-slF" secondAttribute="trailing" constant="10" id="tON-rS-8HT"/>
<constraint firstItem="qWe-Q2-slF" firstAttribute="leading" secondItem="kPx-jb-maY" secondAttribute="leading" constant="10" id="tXQ-lW-a71"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="392333" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S1O-1V-wvJ">
<rect key="frame" x="233" y="50" width="101" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="28"/>
<color key="textColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="kPx-jb-maY" firstAttribute="top" secondItem="rA9-M1-csP" secondAttribute="bottom" constant="12" id="9FC-iD-qHV"/>
<constraint firstItem="rA9-M1-csP" firstAttribute="width" secondItem="TfL-x8-xN5" secondAttribute="width" id="HiB-3T-WiP"/>
<constraint firstItem="S1O-1V-wvJ" firstAttribute="centerY" secondItem="qWe-Q2-slF" secondAttribute="centerY" id="K37-yA-sYc"/>
<constraint firstItem="rA9-M1-csP" firstAttribute="top" secondItem="zwK-xd-zPX" secondAttribute="top" constant="13" id="LdI-Wh-2uY"/>
<constraint firstAttribute="trailing" secondItem="TfL-x8-xN5" secondAttribute="trailing" id="TGn-Dd-M4R"/>
<constraint firstItem="TfL-x8-xN5" firstAttribute="leading" secondItem="rA9-M1-csP" secondAttribute="trailing" constant="8" id="UzT-R8-8eD"/>
<constraint firstAttribute="height" constant="100" id="VzF-wy-EN8"/>
<constraint firstItem="S1O-1V-wvJ" firstAttribute="centerX" secondItem="TfL-x8-xN5" secondAttribute="centerX" id="XEL-J5-JFq"/>
<constraint firstItem="kPx-jb-maY" firstAttribute="centerX" secondItem="rA9-M1-csP" secondAttribute="centerX" id="XVl-o4-giS"/>
<constraint firstItem="TfL-x8-xN5" firstAttribute="top" secondItem="zwK-xd-zPX" secondAttribute="top" constant="13" id="n4V-BR-VlE"/>
<constraint firstItem="rA9-M1-csP" firstAttribute="leading" secondItem="zwK-xd-zPX" secondAttribute="leading" id="q4Z-9r-Oem"/>
<constraint firstItem="TfL-x8-xN5" firstAttribute="leading" secondItem="rA9-M1-csP" secondAttribute="trailing" constant="8" id="ujP-4M-QOv"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="金额(元)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YpZ-8x-yTM">
<rect key="frame" x="125" y="146" width="125" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="Nb2-yW-CHC"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付方式" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vlK-r2-bO8">
<rect key="frame" x="0.0" y="146" width="125" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="4ML-QI-HiK"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付明细" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Td-I5-hMy">
<rect key="frame" x="25" y="108" width="88" height="27"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" red="0.95294117649999999" green="0.43921568630000002" blue="0.062745098040000002" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="bSD-kE-uJi" secondAttribute="trailing" id="0En-Ym-ZkL"/>
<constraint firstItem="YpZ-8x-yTM" firstAttribute="centerY" secondItem="vlK-r2-bO8" secondAttribute="centerY" id="16u-9s-dgV"/>
<constraint firstItem="YpZ-8x-yTM" firstAttribute="leading" secondItem="vlK-r2-bO8" secondAttribute="trailing" id="5LN-2m-Noz"/>
<constraint firstItem="vlK-r2-bO8" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="7sT-HR-mqR"/>
<constraint firstItem="bSD-kE-uJi" firstAttribute="centerY" secondItem="vlK-r2-bO8" secondAttribute="centerY" id="D3c-TW-oX2"/>
<constraint firstItem="vlK-r2-bO8" firstAttribute="top" secondItem="1Td-I5-hMy" secondAttribute="bottom" constant="11" id="Fra-KK-MYv"/>
<constraint firstItem="zwK-xd-zPX" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="IL0-0m-wi8"/>
<constraint firstItem="zwK-xd-zPX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Lgi-GM-6Ma"/>
<constraint firstItem="1Td-I5-hMy" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="25" id="XPm-1a-G66"/>
<constraint firstItem="1Td-I5-hMy" firstAttribute="top" secondItem="zwK-xd-zPX" secondAttribute="bottom" constant="8" id="XpF-f7-hMQ"/>
<constraint firstItem="YpZ-8x-yTM" firstAttribute="width" secondItem="vlK-r2-bO8" secondAttribute="width" id="cPR-p9-4mw"/>
<constraint firstItem="bSD-kE-uJi" firstAttribute="leading" secondItem="YpZ-8x-yTM" secondAttribute="trailing" id="dW3-bf-8wh"/>
<constraint firstAttribute="trailing" secondItem="zwK-xd-zPX" secondAttribute="trailing" id="fnb-8z-TvA"/>
<constraint firstItem="bSD-kE-uJi" firstAttribute="width" secondItem="vlK-r2-bO8" secondAttribute="width" id="jU1-eT-1oM"/>
<constraint firstItem="bSD-kE-uJi" firstAttribute="leading" secondItem="YpZ-8x-yTM" secondAttribute="trailing" id="mvh-Id-6e1"/>
<constraint firstItem="YpZ-8x-yTM" firstAttribute="leading" secondItem="vlK-r2-bO8" secondAttribute="trailing" id="qp7-Bo-3IY"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="labelTotal" destination="qWe-Q2-slF" id="IC1-Zd-gxf"/>
<outlet property="viewRedBac" destination="kPx-jb-maY" id="kkw-PQ-k5Q"/>
</connections>
<point key="canvasLocation" x="292.5" y="68.5"/>
</view>
</objects>
</document>
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