Ver Fonte

add sort button

Pen Li há 9 anos atrás
pai
commit
73b888ffcb

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 12 - 0
RedAnt ERP Mobile/common/Functions/cart/CartViewController.m

@@ -1278,6 +1278,12 @@
     myView.layer.shadowOpacity = 0.5;
     myView.layer.shadowRadius = 2.0;
     
+    UIButton *sortButton = [UIButton buttonWithType:UIButtonTypeCustom];
+    sortButton.frame = CGRectMake(10, 5.5, (40 - 5.5 * 2), (40 - 5.5 * 2));
+    [sortButton setImage:[UIImage imageNamed:@"check_1_24"] forState:UIControlStateNormal];
+    [sortButton addTarget:self action:@selector(cartSortButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
+    [myView addSubview:sortButton];
+    
     UILabel *solabel = [[UILabel alloc] initWithFrame:CGRectMake(130, 5.5, 90, 22)];
     solabel.textColor=UIColorFromRGB(color);
     solabel.backgroundColor = [UIColor clearColor];
@@ -2426,5 +2432,11 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
     
 }
 
+#pragma mark - sort button
+
+- (void)cartSortButtonClicked:(UIButton *)sender {
+    DebugLog(@"cart sort button clicked");
+}
+
 
 @end

+ 10 - 0
RedAnt ERP Mobile/common/Functions/portfolio/PDFListViewController.m

@@ -655,4 +655,14 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
     
     
 }
+
+#pragma mark - sort button
+
+- (IBAction)portfolioSortButtonClicked:(UIButton *)sender {
+    
+    DebugLog(@"portfolio sort button click");
+    
+}
+
+
 @end

+ 15 - 0
RedAnt ERP Mobile/common/Functions/watchlist/WatchListViewController.m

@@ -667,6 +667,12 @@
     
     DefaultTableHeaderView* myView = [[DefaultTableHeaderView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 33)];
 
+    UIButton *sortButton = [UIButton buttonWithType:UIButtonTypeCustom];
+    sortButton.frame = CGRectMake(10, 5.5, (33 - 5.5 * 2), (33 - 5.5 * 2));
+    [sortButton setImage:[UIImage imageNamed:@"check_1_24"] forState:UIControlStateNormal];
+    [sortButton addTarget:self action:@selector(wishlistSortButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
+    [myView addSubview:sortButton];
+    
     
     UILabel *titlelabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 5.5, tableView.bounds.size.width, 22)];
     titlelabel.textColor=UIColorFromRGB(color);
@@ -1092,6 +1098,14 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
         
     }
 }
+
+#pragma mark - sort button
+
+- (void)wishlistSortButtonClicked:(UIButton *)sender {
+    DebugLog(@"wish list sort button clicked");
+}
+
+
 /*
  #pragma mark - Navigation
  
@@ -1103,4 +1117,5 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
  }
  */
 
+
 @end

+ 12 - 1
RedAnt ERP Mobile/iSales-NPD/Base.lproj/Main.storyboard

@@ -2800,6 +2800,17 @@
                                 <color key="barTintColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                                 <items>
                                     <navigationItem title="View Portfolios" id="SSH-WU-EMm">
+                                        <barButtonItem key="leftBarButtonItem" style="plain" id="FrP-8F-lwn">
+                                            <button key="customView" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="F7e-bA-1gp">
+                                                <rect key="frame" x="20" y="10" width="24" height="24"/>
+                                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                                                <state key="normal" image="check_1_24"/>
+                                                <connections>
+                                                    <action selector="portfolioSortButtonClicked:" destination="6Y6-6I-VU5" eventType="touchUpInside" id="NI9-aQ-LYW"/>
+                                                </connections>
+                                            </button>
+                                        </barButtonItem>
                                         <barButtonItem key="rightBarButtonItem" style="plain" id="cOa-Md-aHw">
                                             <searchBar key="customView" contentMode="redraw" searchBarStyle="minimal" placeholder="Name" id="hIq-6S-g7M">
                                                 <rect key="frame" x="468" y="0.0" width="280" height="44"/>
@@ -6840,7 +6851,7 @@ Email: redantsupport@united-us.net</string>
                         <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
                         <prototypes>
                             <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="Ebw-26-5Ud">
-                                <rect key="frame" x="0.0" y="22" width="768" height="44"/>
+                                <rect key="frame" x="0.0" y="86" width="768" height="44"/>
                                 <autoresizingMask key="autoresizingMask"/>
                                 <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Ebw-26-5Ud" id="gop-RV-8fg">
                                     <rect key="frame" x="0.0" y="0.0" width="768" height="43"/>