forked from liuchaogenius/DianjiaApp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
745 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/JHLSTableViewCell.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// JHLSTableViewCell.h | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/12. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface JHLSTableViewCell : UITableViewCell | ||
@property (strong, nonatomic) IBOutlet UILabel *laTime; | ||
@property (strong, nonatomic) IBOutlet UILabel *laName; | ||
@property (strong, nonatomic) IBOutlet UILabel *laPrice; | ||
@property (strong, nonatomic) IBOutlet UILabel *laNum; | ||
@property (strong, nonatomic) IBOutlet UILabel *laSum; | ||
|
||
|
||
+ (CGFloat)heightForCell; | ||
@end |
37 changes: 37 additions & 0 deletions
37
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/JHLSTableViewCell.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// JHLSTableViewCell.m | ||
// YHB_Prj | ||
// | ||
// Created by Johnny's on 15/9/12. | ||
// Copyright (c) 2015年 striveliu. All rights reserved. | ||
// | ||
|
||
#import "JHLSTableViewCell.h" | ||
|
||
@implementation JHLSTableViewCell | ||
|
||
- (void)awakeFromNib { | ||
// Initialization code | ||
} | ||
|
||
+ (CGFloat)heightForCell | ||
{ | ||
return 108; | ||
} | ||
|
||
- (void)resetCell | ||
{ | ||
_laName.text = @""; | ||
_laNum.text = @""; | ||
_laPrice.text = @""; | ||
_laSum.text = @""; | ||
_laTime.text = @""; | ||
} | ||
|
||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated { | ||
[super setSelected:selected animated:animated]; | ||
|
||
// Configure the view for the selected state | ||
} | ||
|
||
@end |
99 changes: 99 additions & 0 deletions
99
YHB_Prj/YHB_Prj/shangpinguanli/EditSPVC/JHLSTableViewCell.xib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/> | ||
</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" reuseIdentifier="JHLSCell" rowHeight="108" id="KGk-i7-Jjw" customClass="JHLSTableViewCell"> | ||
<rect key="frame" x="0.0" y="0.0" width="320" height="108"/> | ||
<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="320" height="43"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hvj-FT-TxT"> | ||
<rect key="frame" x="0.0" y="0.0" width="800" height="25"/> | ||
<subviews> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="进货时间:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PBR-OB-KwH"> | ||
<rect key="frame" x="15" y="2" width="55" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="2015-08-17 18:09:15" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="t8g-1f-PyW"> | ||
<rect key="frame" x="70" y="2" width="180" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
</subviews> | ||
<color key="backgroundColor" red="0.86274509799999999" green="0.86274509799999999" blue="0.86274509799999999" alpha="1" colorSpace="calibratedRGB"/> | ||
</view> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="供货商:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2yF-fH-03P"> | ||
<rect key="frame" x="15" y="30" width="40" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="南京母婴商贸有限公司" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5VD-WC-vRY"> | ||
<rect key="frame" x="55" y="30" width="180" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="单价:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Suc-ic-6xD"> | ||
<rect key="frame" x="15" y="56" width="35" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="小计:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ybx-PR-90V"> | ||
<rect key="frame" x="15" y="82" width="35" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="数量:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Js8-5H-f6I"> | ||
<rect key="frame" x="160" y="56" width="35" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<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" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="¥148.00" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0f9-wd-2Iu"> | ||
<rect key="frame" x="50" y="56" width="100" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<color key="textColor" red="1" green="0.5" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="50" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4wH-kD-QGa"> | ||
<rect key="frame" x="195" y="56" width="80" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<color key="textColor" red="1" green="0.5" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="¥7400.00" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="w8M-V2-5TP"> | ||
<rect key="frame" x="50" y="82" width="160" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="12"/> | ||
<color key="textColor" red="1" green="0.5" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="O4s-qt-XCO"> | ||
<rect key="frame" x="0.0" y="107.5" width="800" height="0.5"/> | ||
<color key="backgroundColor" red="0.86274509799999999" green="0.86274509799999999" blue="0.86274509799999999" alpha="1" colorSpace="calibratedRGB"/> | ||
</view> | ||
</subviews> | ||
</tableViewCellContentView> | ||
<connections> | ||
<outlet property="laName" destination="5VD-WC-vRY" id="Aip-Ul-eAT"/> | ||
<outlet property="laNum" destination="4wH-kD-QGa" id="gUV-35-E4J"/> | ||
<outlet property="laPrice" destination="0f9-wd-2Iu" id="hya-S4-WGJ"/> | ||
<outlet property="laSum" destination="w8M-V2-5TP" id="Rfh-2n-lyo"/> | ||
<outlet property="laTime" destination="t8g-1f-PyW" id="DQe-tU-7TF"/> | ||
</connections> | ||
<point key="canvasLocation" x="33" y="279"/> | ||
</tableViewCell> | ||
</objects> | ||
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ | |
|
||
@interface JHLSViewController : BaseViewController | ||
|
||
- (instancetype)initWithProductId:(NSString *)aId; | ||
|
||
@end |
Oops, something went wrong.