|
@@ -866,7 +866,6 @@
|
|
|
|
|
|
|
|
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
|
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
NSString* value =[DefaultAppearance get_noneappearance_value:@"DefaultTableHeaderView" valuename:@"title_text_color"];
|
|
NSString* value =[DefaultAppearance get_noneappearance_value:@"DefaultTableHeaderView" valuename:@"title_text_color"];
|
|
|
|
|
|
|
|
if(value==nil)
|
|
if(value==nil)
|
|
@@ -918,6 +917,8 @@
|
|
|
[contactlabel sizeToFit];
|
|
[contactlabel sizeToFit];
|
|
|
[myView addSubview:contactlabel];
|
|
[myView addSubview:contactlabel];
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//
|
|
//
|
|
|
// UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(424, 11, 52, 22)];
|
|
// UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(424, 11, 52, 22)];
|
|
|
// modellabel.textColor=[UIColor whiteColor];
|
|
// modellabel.textColor=[UIColor whiteColor];
|
|
@@ -939,7 +940,7 @@
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
|
|
|
|
|
UILabel *pricelabel = nil;
|
|
UILabel *pricelabel = nil;
|
|
|
- if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==0)
|
|
|
|
|
|
|
+ if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==1)
|
|
|
pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 2, 100, 22)];
|
|
pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 2, 100, 22)];
|
|
|
else
|
|
else
|
|
|
pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 11, 100, 22)];
|
|
pricelabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 11, 100, 22)];
|
|
@@ -951,7 +952,7 @@
|
|
|
[myView addSubview:pricelabel];
|
|
[myView addSubview:pricelabel];
|
|
|
|
|
|
|
|
|
|
|
|
|
- if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==0)
|
|
|
|
|
|
|
+ if(appDelegate.user_type==USER_ROLE_CUSTOMER&&self.orderType==1)
|
|
|
{
|
|
{
|
|
|
UILabel *polabel = nil;
|
|
UILabel *polabel = nil;
|
|
|
polabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 21, 100, 22)];
|
|
polabel=[[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.table_order.frame.size.width-276, 21, 100, 22)];
|
|
@@ -1051,7 +1052,7 @@
|
|
|
NSString *CellIdentifier = @"OrderListTableViewCell";
|
|
NSString *CellIdentifier = @"OrderListTableViewCell";
|
|
|
OrderListTableViewCell * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
|
|
OrderListTableViewCell * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
|
|
|
|
|
|
|
|
- NSString* po= [self.content_data[indexPath.row] valueForKey:@"so#"];
|
|
|
|
|
|
|
+ NSString* so= [self.content_data[indexPath.row] valueForKey:@"so#"];
|
|
|
NSString* price= [self.content_data[indexPath.row] valueForKey:@"price"];
|
|
NSString* price= [self.content_data[indexPath.row] valueForKey:@"price"];
|
|
|
if(appDelegate.can_see_price&&appDelegate.price_hidden==false)
|
|
if(appDelegate.can_see_price&&appDelegate.price_hidden==false)
|
|
|
{
|
|
{
|
|
@@ -1069,7 +1070,22 @@
|
|
|
NSString* model_count = [self.content_data[indexPath.row] valueForKey:@"model_count"];
|
|
NSString* model_count = [self.content_data[indexPath.row] valueForKey:@"model_count"];
|
|
|
NSString* sales = [self.content_data[indexPath.row] valueForKey:@"sales_rep"];
|
|
NSString* sales = [self.content_data[indexPath.row] valueForKey:@"sales_rep"];
|
|
|
NSString* creator = [self.content_data[indexPath.row] valueForKey:@"create_by"];
|
|
NSString* creator = [self.content_data[indexPath.row] valueForKey:@"create_by"];
|
|
|
- cell.label_so.text=po;
|
|
|
|
|
|
|
+ NSString *po = @"MOBPO";
|
|
|
|
|
+
|
|
|
|
|
+ CGRect price_frame = cell.labelprice.frame;
|
|
|
|
|
+ if (appDelegate.user_type == USER_ROLE_CUSTOMER && self.orderType == 1) {
|
|
|
|
|
+
|
|
|
|
|
+ cell.label_po.hidden = NO;
|
|
|
|
|
+ price_frame.origin.y = 5;
|
|
|
|
|
+ cell.label_po.text = po;
|
|
|
|
|
+
|
|
|
|
|
+ } else {
|
|
|
|
|
+
|
|
|
|
|
+ cell.label_po.hidden = YES;
|
|
|
|
|
+ price_frame.origin.y = 21;
|
|
|
|
|
+ }
|
|
|
|
|
+ cell.labelprice.frame = price_frame;
|
|
|
|
|
+ cell.label_so.text=so;
|
|
|
cell.labelprice.text=price;
|
|
cell.labelprice.text=price;
|
|
|
cell.label_date.text=purchase_time;
|
|
cell.label_date.text=purchase_time;
|
|
|
cell.label_contact.text=customer_name;
|
|
cell.label_contact.text=customer_name;
|