Kaynağa Gözat

20170123

npd mobile order list table header for shop order.
Ray Zhang 9 yıl önce
ebeveyn
işleme
f7dbcfed15

+ 23 - 1
RedAnt ERP Mobile/common/Functions/order/OrderListViewController.m

@@ -934,7 +934,15 @@
     //    [modellabel sizeToFit];
     //    [myView addSubview:modellabel];
     
-    UILabel *pricelabel = [[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 11, 100, 22)];
+    
+    
+    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+    
+    UILabel *pricelabel = nil;
+    if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==0)
+        pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 2, 100, 22)];
+    else
+        pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 11, 100, 22)];
     pricelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
     pricelabel.textColor=UIColorFromRGB(color);
     pricelabel.backgroundColor = [UIColor clearColor];
@@ -942,6 +950,20 @@
     [pricelabel sizeToFit];
     [myView addSubview:pricelabel];
     
+    
+    if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==0)
+    {
+        UILabel *polabel = nil;
+        polabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 21, 100, 22)];
+        polabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
+        polabel.textColor=UIColorFromRGB(color);
+        polabel.backgroundColor = [UIColor clearColor];
+        polabel.text=NSLocalizedString(@"PO#", nil);
+        [polabel sizeToFit];
+        [myView addSubview:polabel];
+    }
+    
+    
     UILabel *timelabel = [[UILabel alloc] initWithFrame:CGRectMake(self.table_order.frame.size.width-163/*605*/,11, 148, 22)];
     timelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
     timelabel.textColor=UIColorFromRGB(color);