Skip to content

Commit

Permalink
解决筛选之后提交订单出错的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fancymax committed Sep 16, 2016
1 parent 901303c commit 93ee8d5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion 12306ForMac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class TicketQueryViewController: NSViewController {
}

let selectedRow = leftTicketTable.rowForView(sender)
MainModel.selectedTicket = ticketQueryResult[selectedRow]
MainModel.selectedTicket = filterQueryResult[selectedRow]
setSeatCodeForSelectedPassenger(MainModel.selectedTicket!.TrainCode! ,seatCodeName: sender.identifier!)

self.loadingTipController.start(tip:"正在提交...")
Expand Down Expand Up @@ -521,7 +521,7 @@ class TicketQueryViewController: NSViewController {

for i in 0..<ticketQueryResult.count {
if ticketQueryResult[i].TrainCode == trainCode {
queryByTrainCodeParam.train_no = ticketQueryResult[i].train_no!
queryByTrainCodeParam.train_no = ticketQueryResult[i].train_no
queryByTrainCodeParam.from_station_telecode = ticketQueryResult[i].FromStationCode!
queryByTrainCodeParam.to_station_telecode = ticketQueryResult[i].ToStationCode!
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="40" headerView="mkA-fg-IPp" viewBased="YES" id="vdR-Hc-SYr">
<rect key="frame" x="0.0" y="0.0" width="955" height="493"/>
<rect key="frame" x="0.0" y="0.0" width="955" height="487"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" red="0.98039215686274506" green="0.98039215686274506" blue="0.98039215686274506" alpha="1" colorSpace="calibratedRGB"/>
Expand Down Expand Up @@ -462,7 +462,7 @@
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="mkA-fg-IPp">
<rect key="frame" x="0.0" y="0.0" width="955" height="17"/>
<rect key="frame" x="0.0" y="0.0" width="955" height="23"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ class TrainFilterWindowController: NSWindowController,NSTableViewDelegate,NSTabl
return "TrainFilterWindowController"
}

@IBAction func cancelButtonClicked(button:NSButton){
@IBAction func clickCancel(sender: AnyObject) {
dismissWithModalResponse(NSModalResponseCancel)
}

@IBAction func okButtonClicked(button:NSButton){
@IBAction func clickOK(sender: AnyObject) {
getFilterKey()
dismissWithModalResponse(NSModalResponseOK)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ DQ
</string>
</buttonCell>
<connections>
<action selector="okButtonClicked:" target="-2" id="nPo-Gg-7E8"/>
<action selector="clickOK:" target="-2" id="7v5-UF-LJu"/>
</connections>
</button>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="OUn-9d-T7P">
Expand All @@ -226,7 +226,7 @@ DQ
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="cancelButtonClicked:" target="-2" id="VWz-ek-nvc"/>
<action selector="clickCancel:" target="-2" id="HDh-Jk-ZRo"/>
</connections>
</button>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="dUJ-JT-Azj">
Expand Down

0 comments on commit 93ee8d5

Please sign in to comment.