Преглед изворни кода

修复登陆成功后Customer Info查看出错。

Pen Li пре 9 година
родитељ
комит
121b14ce2a

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


+ 1 - 0
RedAnt ERP Mobile/common/Functions/MainViewController.h

@@ -121,5 +121,6 @@
 -(void)switchToHome;
 -(void)switchToHome;
 @property (strong, nonatomic) IBOutlet UILabel *label_ccount;
 @property (strong, nonatomic) IBOutlet UILabel *label_ccount;
 
 
+-(void)initMenuItems;
 
 
 @end
 @end

+ 1 - 1
RedAnt ERP Mobile/common/data_provider/iSalesNetwork.m

@@ -3532,7 +3532,7 @@ repeat:
         if(appDelegate.user_type==USER_ROLE_CUSTOMER)
         if(appDelegate.user_type==USER_ROLE_CUSTOMER)
         {
         {
             appDelegate.customerInfo = [objheader objectForKeyedSubscript:@"customerInfo"];
             appDelegate.customerInfo = [objheader objectForKeyedSubscript:@"customerInfo"];
-            appDelegate.contact_id = [objheader valueForKey:@"customer_cid"];
+            appDelegate.contact_id = [objheader valueForKey:@"contact_id"];
 //            appDelegate.order_code =[objheader valueForKey:@"orderCode"];
 //            appDelegate.order_code =[objheader valueForKey:@"orderCode"];
 //            appDelegate.order_status =[[objheader valueForKey:@"orderStatus"] intValue];
 //            appDelegate.order_status =[[objheader valueForKey:@"orderStatus"] intValue];
 //            [appDelegate SetSo:[objheader valueForKey:@"soId"]];
 //            [appDelegate SetSo:[objheader valueForKey:@"soId"]];

+ 0 - 1
RedAnt ERP Mobile/iSales-NPD/NotificationNameCenter.m

@@ -12,5 +12,4 @@
 
 
 const NSString  *LoginOK_HandleUrgencyFile_Notification = @"LoginOK_HandleUrgencyFile_Notification";
 const NSString  *LoginOK_HandleUrgencyFile_Notification = @"LoginOK_HandleUrgencyFile_Notification";
 
 
-
 @end
 @end

+ 3 - 1
RedAnt ERP Mobile/iSales-NPD/PriceSettingViewController.m

@@ -13,6 +13,7 @@
 #import "iSalesNetwork.h"
 #import "iSalesNetwork.h"
 #import "Singleton.h"
 #import "Singleton.h"
 #import <objc/runtime.h>
 #import <objc/runtime.h>
+#import "MainViewController.h"
 
 
 
 
 
 
@@ -105,7 +106,8 @@
     
     
     [appDelegate set_priceHidden:sender.selected];
     [appDelegate set_priceHidden:sender.selected];
     
     
-    objc_msgSend(appDelegate.main_vc,@selector(initMenuItems));// initMenuItems 不是公开的方法
+//    objc_msgSend(appDelegate.main_vc,@selector(initMenuItems));// initMenuItems 不是公开的方法
+    [(MainViewController *)appDelegate.main_vc initMenuItems];
 }
 }
 
 
 - (IBAction)calculatePriceButtonClick:(UIButton *)sender {
 - (IBAction)calculatePriceButtonClick:(UIButton *)sender {