| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178 |
- //
- // SalesOrderGoodsDetailVC.m
- // IBOSSmini
- //
- // Created by guan hong hou on 2018/2/26.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- #import "SalesOrderInfoVC.h"
- @interface SalesOrderInfoVC (){
- UIScrollView *_scrollView;
- UIView *_bottomView;
- }
- @end
- @implementation SalesOrderInfoVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self loadNavStyle];
- [self initUI];
- }
- /**
- 导航按钮样式
- */
- -(void)loadNavStyle
- {
- self.navigationItem.title=@"销售订单信息";
-
- //返回
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
- [button setBackgroundImage:[UIImage imageNamed:@"icon_back"]
- forState:UIControlStateNormal];
- [button addTarget:self action:@selector(goBack)
- forControlEvents:UIControlEventTouchUpInside];
- button.frame = CGRectMake(0, 0, 15, 18);
-
- UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
- self.navigationItem.leftBarButtonItem = menuButton;
- }
- -(void)initUI{
- [self.view setBackgroundColor:[UIColor whiteColor]];
- CGFloat heightRow = 40;
- CGFloat lblx = 10;
- CGFloat lbly = 8;
- CGFloat lblwidth = 80;
- CGFloat lblheight = 25;
- CGFloat heightLine = 1;
- CGFloat btnwidth = 50;
- CGFloat valuey = 8;
- CGFloat valueheight = 25;
- NSDictionary *orderDict = @{NSFontAttributeName:orderTextFont};
- _scrollView=[UIScrollView new];
- _scrollView.frame=CGRectMake(0,0, Screen_Width, Screen_Height - rectStatusHeight-rectNavHeight-80);
- [self.view addSubview:_scrollView];
- UIView *vBody = [UIView new];
- [_scrollView addSubview:vBody];
- UIView *vOrderNo = [UIView new];
- vOrderNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
- [vBody addSubview:vOrderNo];
- UILabel *lblTitleOrderNo=[UILabel new];
- lblTitleOrderNo.frame=CGRectMake(lblx,10, lblwidth, lblheight);
- lblTitleOrderNo.text=@"销售订单";
- lblTitleOrderNo.textColor = [UIColor redColor];
- lblTitleOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderNo addSubview:lblTitleOrderNo];
-
- NSString *orderNo=_salesOrderModel.orderNo;
- if(orderNo!=nil&&orderNo.length>0){
- UILabel *lblOrderNo = [UILabel new];
- CGRect orderNoFrame = [orderNo textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- orderNoFrame.origin.x =Screen_Width-orderNoFrame.size.width-10;
- orderNoFrame.origin.y =10;
- lblOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderNo.frame=orderNoFrame;
- lblOrderNo.text =orderNo;
- [vOrderNo addSubview:lblOrderNo];
- }
- UIView *topSeparatorView= [UIView new];
- topSeparatorView.frame = CGRectMake(0, CGRectGetMaxY(vOrderNo.frame), Screen_Width, heightLine);
- [topSeparatorView setBackgroundColor:LineBackgroundColor];
- [vBody addSubview:topSeparatorView];
-
- //业务类型
- UIView *vBusinessType = [UIView new];
- vBusinessType.frame=CGRectMake(0,CGRectGetMaxY(topSeparatorView.frame), Screen_Width, heightRow);
- [vBody addSubview:vBusinessType];
-
- UILabel *lblTitleBusinessType=[UILabel new];
- lblTitleBusinessType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleBusinessType.text=@"业务类型:";
- lblTitleBusinessType.textColor = [UIColor blackColor];
- lblTitleBusinessType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vBusinessType addSubview:lblTitleBusinessType];
-
- UILabel *lblBusinessType = [UILabel new];
- lblBusinessType.frame=CGRectMake(CGRectGetMaxX(lblTitleBusinessType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleBusinessType.frame)-10, valueheight);
- lblBusinessType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblBusinessType.text =_salesOrderModel.orderTypeName;
- [vBusinessType addSubview:lblBusinessType];
-
- //单据状态
- UIView *vInvoiceStatus = [UIView new];
- vInvoiceStatus.frame=CGRectMake(0,CGRectGetMaxY(vBusinessType.frame), Screen_Width, heightRow);
- [vBody addSubview:vInvoiceStatus];
-
- UILabel *lblTitleInvoiceStatus=[UILabel new];
- lblTitleInvoiceStatus.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleInvoiceStatus.text=@"单据状态:";
- lblTitleInvoiceStatus.textColor = [UIColor blackColor];
- lblTitleInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInvoiceStatus addSubview:lblTitleInvoiceStatus];
-
- UILabel *lblInvoiceStatus = [UILabel new];
- lblInvoiceStatus.frame=CGRectMake(CGRectGetMaxX(lblTitleInvoiceStatus.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInvoiceStatus.frame)-10, valueheight);
- lblInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblInvoiceStatus.text =_salesOrderModel.invoiceStatusName;
- [vInvoiceStatus addSubview:lblInvoiceStatus];
-
- //账务日期
- UIView *vAccountDate = [UIView new];
- vAccountDate.frame=CGRectMake(0,CGRectGetMaxY(vInvoiceStatus.frame), Screen_Width, heightRow);
- [vBody addSubview:vAccountDate];
-
- UILabel *lblTitleAccountDate=[UILabel new];
- lblTitleAccountDate.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleAccountDate.text=@"账务日期:";
- lblTitleAccountDate.textColor = [UIColor blackColor];
- lblTitleAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAccountDate addSubview:lblTitleAccountDate];
-
- UILabel *lblAccountDate = [UILabel new];
- lblAccountDate.frame=CGRectMake(CGRectGetMaxX(lblTitleAccountDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleAccountDate.frame)-10, valueheight);
- lblAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblAccountDate.text =_salesOrderModel.accountDate;
- [vAccountDate addSubview:lblAccountDate];
-
- //业务部门
- UIView *vOrganizationName= [UIView new];
- vOrganizationName.frame=CGRectMake(0,CGRectGetMaxY(vAccountDate.frame), Screen_Width, heightRow);
- [vBody addSubview:vOrganizationName];
-
- UILabel *lblTitleOrganizationName=[UILabel new];
- lblTitleOrganizationName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleOrganizationName.text=@"业务部门:";
- lblTitleOrganizationName.textColor = [UIColor blackColor];
- lblTitleOrganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrganizationName addSubview:lblTitleOrganizationName];
-
- UILabel *lblOrganizationName = [UILabel new];
- lblOrganizationName.frame=CGRectMake(CGRectGetMaxX(lblTitleOrganizationName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleOrganizationName.frame)-10, valueheight);
- lblOrganizationName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrganizationName.text =_salesOrderModel.organizationName;
- [vOrganizationName addSubview:lblOrganizationName];
-
- //业务员
- UIView *vStaff= [UIView new];
- vStaff.frame=CGRectMake(0,CGRectGetMaxY(vOrganizationName.frame), Screen_Width, heightRow);
- [vBody addSubview:vStaff];
-
- UILabel *lblTitleStaff=[UILabel new];
- lblTitleStaff.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleStaff.text=@"业 务 员:";
- lblTitleStaff.textColor = [UIColor blackColor];
- lblTitleStaff.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vStaff addSubview:lblTitleStaff];
-
- UILabel *lblStaff = [UILabel new];
- lblStaff.frame=CGRectMake(CGRectGetMaxX(lblTitleStaff.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleStaff.frame)-10, valueheight);
- lblStaff.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblStaff.text =_salesOrderModel.staffName;
- [vStaff addSubview:lblStaff];
-
- //客户电话
- UIView *vTelephone= [UIView new];
- vTelephone.frame=CGRectMake(0,CGRectGetMaxY(vStaff.frame), Screen_Width, heightRow);
- [vBody addSubview:vTelephone];
-
- UILabel *lblTitleTelephone=[UILabel new];
- lblTitleTelephone.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleTelephone.text=@"客户电话:";
- lblTitleTelephone.textColor = [UIColor blackColor];
- lblTitleTelephone.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vTelephone addSubview:lblTitleTelephone];
-
- UILabel *lblTelephone = [UILabel new];
- lblTelephone.frame=CGRectMake(CGRectGetMaxX(lblTitleTelephone.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleTelephone.frame)-10, valueheight);
- lblTelephone.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblTelephone.text =_salesOrderModel.telephone;
- [vTelephone addSubview:lblTelephone];
-
- //客户编码
- UIView *vCustomerCode= [UIView new];
- vCustomerCode.frame=CGRectMake(0,CGRectGetMaxY(vTelephone.frame), Screen_Width, heightRow);
- [vBody addSubview:vCustomerCode];
-
- UILabel *lblTitleCustomerCode=[UILabel new];
- lblTitleCustomerCode.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCustomerCode.text=@"客户编码:";
- lblTitleCustomerCode.textColor = [UIColor blackColor];
- lblTitleCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerCode addSubview:lblTitleCustomerCode];
-
- UILabel *lblCustomerCode = [UILabel new];
- lblCustomerCode.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerCode.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerCode.frame)-10, valueheight);
- lblCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerCode.text =_salesOrderModel.customerCode;
- [vCustomerCode addSubview:lblCustomerCode];
-
- //客户名称
- UIView *vCustomerName= [UIView new];
- vCustomerName.frame=CGRectMake(0,CGRectGetMaxY(vCustomerCode.frame), Screen_Width, heightRow);
- [vBody addSubview:vCustomerName];
-
- UILabel *lblTitleCustomerName=[UILabel new];
- lblTitleCustomerName.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCustomerName.text=@"客户名称:";
- lblTitleCustomerName.textColor = [UIColor blackColor];
- lblTitleCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerName addSubview:lblTitleCustomerName];
-
- UILabel *lblCustomerName = [UILabel new];
- lblCustomerName.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerName.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerName.frame)-10, valueheight);
- lblCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerName.text =_salesOrderModel.customerName;
- [vCustomerName addSubview:lblCustomerName];
-
- //联系人
- UIView *vContacts= [UIView new];
- vContacts.frame=CGRectMake(0,CGRectGetMaxY(vCustomerName.frame), Screen_Width, heightRow);
- [vBody addSubview:vContacts];
-
- UILabel *lblTitleContacts=[UILabel new];
- lblTitleContacts.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleContacts.text=@"联 系 人:";
- lblTitleContacts.textColor = [UIColor blackColor];
- lblTitleContacts.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vContacts addSubview:lblTitleContacts];
-
- UILabel *lblContacts = [UILabel new];
- lblContacts.frame=CGRectMake(CGRectGetMaxX(lblTitleContacts.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleContacts.frame)-10, valueheight);
- lblContacts.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblContacts.text =_salesOrderModel.contacts;
- [vContacts addSubview:lblContacts];
-
- //联系方式
- UIView *vContactsWay= [UIView new];
- vContactsWay.frame=CGRectMake(0,CGRectGetMaxY(vContacts.frame), Screen_Width, heightRow);
- [vBody addSubview:vContactsWay];
-
- UILabel *lblTitleContactsWay=[UILabel new];
- lblTitleContactsWay.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleContactsWay.text=@"联系方式:";
- lblTitleContactsWay.textColor = [UIColor blackColor];
- lblTitleContactsWay.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vContactsWay addSubview:lblTitleContactsWay];
-
- UILabel *lblContactsWay = [UILabel new];
- lblContactsWay.frame=CGRectMake(CGRectGetMaxX(lblTitleContactsWay.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleContactsWay.frame)-10, valueheight);
- lblContactsWay.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblContactsWay.text =_salesOrderModel.otherContact;
- [vContactsWay addSubview:lblContactsWay];
-
- //合同号
- UIView *vContractNo= [UIView new];
- vContractNo.frame=CGRectMake(0,CGRectGetMaxY(vContactsWay.frame), Screen_Width, heightRow);
- [vBody addSubview:vContractNo];
-
- UILabel *lblTitleContractNo=[UILabel new];
- lblTitleContractNo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleContractNo.text=@"合 同 号:";
- lblTitleContractNo.textColor = [UIColor blackColor];
- lblTitleContractNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vContractNo addSubview:lblTitleContractNo];
-
- UILabel *lblContractNo = [UILabel new];
- lblContractNo.frame=CGRectMake(CGRectGetMaxX(lblTitleContractNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleContractNo.frame)-10, valueheight);
- lblContractNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblContractNo.text =_salesOrderModel.contractNumber;
- [vContractNo addSubview:lblContractNo];
-
- //中间客户
- UIView *vIntermediateCustomer= [UIView new];
- vIntermediateCustomer.frame=CGRectMake(0,CGRectGetMaxY(vContractNo.frame), Screen_Width, heightRow);
- [vBody addSubview:vIntermediateCustomer];
-
- UILabel *lblTitleIntermediateCustomer=[UILabel new];
- lblTitleIntermediateCustomer.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleIntermediateCustomer.text=@"中间客户:";
- lblTitleIntermediateCustomer.textColor = [UIColor blackColor];
- lblTitleIntermediateCustomer.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vIntermediateCustomer addSubview:lblTitleIntermediateCustomer];
-
- UILabel *lblIntermediateCustomer = [UILabel new];
- lblIntermediateCustomer.frame=CGRectMake(CGRectGetMaxX(lblTitleIntermediateCustomer.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleIntermediateCustomer.frame)-10, valueheight);
- lblIntermediateCustomer.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblIntermediateCustomer.text =_salesOrderModel.intermediateCustomersName;
- [vIntermediateCustomer addSubview:lblIntermediateCustomer];
-
- //客户性质
- UIView *vCustomerType= [UIView new];
- vCustomerType.frame=CGRectMake(0,CGRectGetMaxY(vIntermediateCustomer.frame), Screen_Width, heightRow);
- [vBody addSubview:vCustomerType];
-
- UILabel *lblTitleCustomerType=[UILabel new];
- lblTitleCustomerType.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCustomerType.text=@"客户性质:";
- lblTitleCustomerType.textColor = [UIColor blackColor];
- lblTitleCustomerType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerType addSubview:lblTitleCustomerType];
-
- UILabel *lblCustomerType = [UILabel new];
- lblCustomerType.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerType.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerType.frame)-10, valueheight);
- lblCustomerType.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerType.text =_salesOrderModel.customerTypeName;
- [vCustomerType addSubview:lblCustomerType];
-
- //客户地址
- UIView *vCustomerAddress= [UIView new];
- vCustomerAddress.frame=CGRectMake(0,CGRectGetMaxY(vCustomerType.frame), Screen_Width, heightRow);
- [vBody addSubview:vCustomerAddress];
-
- UILabel *lblTitleCustomerAddress=[UILabel new];
- lblTitleCustomerAddress.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleCustomerAddress.text=@"客户地址:";
- lblTitleCustomerAddress.textColor = [UIColor blackColor];
- lblTitleCustomerAddress.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerAddress addSubview:lblTitleCustomerAddress];
-
- UILabel *lblCustomerAddress = [UILabel new];
- lblCustomerAddress.frame=CGRectMake(CGRectGetMaxX(lblTitleCustomerAddress.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCustomerAddress.frame)-10, valueheight);
- lblCustomerAddress.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerAddress.text =_salesOrderModel.address;
- [vCustomerAddress addSubview:lblCustomerAddress];
-
- //渠道
- UIView *vChannel= [UIView new];
- vChannel.frame=CGRectMake(0,CGRectGetMaxY(vCustomerAddress.frame), Screen_Width, heightRow);
- [vBody addSubview:vChannel];
-
- UILabel *lblTitleChannel=[UILabel new];
- lblTitleChannel.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleChannel.text=@"渠 道:";
- lblTitleChannel.textColor = [UIColor blackColor];
- lblTitleChannel.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vChannel addSubview:lblTitleChannel];
-
- UILabel *lblChannel = [UILabel new];
- lblChannel.frame=CGRectMake(CGRectGetMaxX(lblTitleChannel.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleChannel.frame)-10, valueheight);
- lblChannel.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblChannel.text =_salesOrderModel.channelName;
- [vChannel addSubview:lblChannel];
-
- UIView *middleSeparatorView1= [UIView new];
- middleSeparatorView1.frame = CGRectMake(0, CGRectGetMaxY(vChannel.frame), Screen_Width, heightLine);
- [middleSeparatorView1 setBackgroundColor:LineBackgroundColor];
- [vBody addSubview:middleSeparatorView1];
-
- //金额信息
- UIView *vAmountInfo= [UIView new];
- vAmountInfo.frame=CGRectMake(0,CGRectGetMaxY(middleSeparatorView1.frame), Screen_Width, heightRow);
- [vBody addSubview:vAmountInfo];
-
- UILabel *lblTitleAmountInfo=[UILabel new];
- lblTitleAmountInfo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleAmountInfo.text=@"金额信息";
- lblTitleAmountInfo.textColor = [UIColor redColor];
- lblTitleAmountInfo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAmountInfo addSubview:lblTitleAmountInfo];
-
- UILabel *lblGoodsAmount = [UILabel new];
-
- NSString *goodsAmount=_salesOrderModel.goodsAmount;
- CGRect goodsAmountFrame;
-
- goodsAmountFrame = [goodsAmount textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- goodsAmountFrame.origin.x =Screen_Width-goodsAmountFrame.size.width-10;
- goodsAmountFrame.origin.y =lbly;
- lblGoodsAmount.frame=goodsAmountFrame;
- lblGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblGoodsAmount.text =goodsAmount;
- [vAmountInfo addSubview:lblGoodsAmount];
-
- NSString *titleGoodsAmount=@"货物总额:";
- CGRect titleGoodsAmountFrame = [titleGoodsAmount textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- titleGoodsAmountFrame.origin.x =Screen_Width-goodsAmountFrame.size.width-12-titleGoodsAmountFrame.size.width;
- titleGoodsAmountFrame.origin.y =lbly;
- UILabel *lblTitleGoodsAmount = [UILabel new];
- lblTitleGoodsAmount.frame=titleGoodsAmountFrame;
- lblTitleGoodsAmount.text=titleGoodsAmount;
- lblTitleGoodsAmount.textColor = [UIColor blackColor];
- lblTitleGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAmountInfo addSubview:lblTitleGoodsAmount];
-
- UIView *middleSeparatorView2= [UIView new];
- middleSeparatorView2.frame = CGRectMake(0, CGRectGetMaxY(vAmountInfo.frame), Screen_Width, heightLine);
- [middleSeparatorView2 setBackgroundColor:LineBackgroundColor];
- [vBody addSubview:middleSeparatorView2];
-
-
-
- //转销售金额
- UIView *vToSalesAmount= [UIView new];
- vToSalesAmount.frame=CGRectMake(0,CGRectGetMaxY(middleSeparatorView2.frame), Screen_Width, heightRow);
- [vBody addSubview:vToSalesAmount];
-
- UILabel *lblTitleToSalesAmount=[UILabel new];
- lblTitleToSalesAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleToSalesAmount.text=@"转销售金额:";
- lblTitleToSalesAmount.textColor = [UIColor blackColor];
- lblTitleToSalesAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vToSalesAmount addSubview:lblTitleToSalesAmount];
-
- UILabel *lblToSalesAmount = [UILabel new];
- lblToSalesAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleToSalesAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleToSalesAmount.frame)-10, valueheight);
- lblToSalesAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblToSalesAmount.text =_salesOrderModel.toSalesAmount;
- [vToSalesAmount addSubview:lblToSalesAmount];
-
- //货物金额
- UIView *vGoodsAmount= [UIView new];
- vGoodsAmount.frame=CGRectMake(0,CGRectGetMaxY(vToSalesAmount.frame), Screen_Width, heightRow);
- [vBody addSubview:vGoodsAmount];
-
- UILabel *lblTitleGoodsAmountInfo=[UILabel new];
- lblTitleGoodsAmountInfo.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleGoodsAmountInfo.text=@"合计金额:";
- lblTitleGoodsAmountInfo.textColor = [UIColor blackColor];
- lblTitleGoodsAmountInfo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vGoodsAmount addSubview:lblTitleGoodsAmountInfo];
-
- UILabel *lblGoodsAmountInfo = [UILabel new];
- lblGoodsAmountInfo.frame=CGRectMake(CGRectGetMaxX(lblTitleGoodsAmountInfo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleGoodsAmountInfo.frame)-10, valueheight);
- lblGoodsAmountInfo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblGoodsAmountInfo.text =_salesOrderModel.goodsAmount;
- [vGoodsAmount addSubview:lblGoodsAmountInfo];
-
- //标价总额
- UIView *vMarkPriceAmount= [UIView new];
- vMarkPriceAmount.frame=CGRectMake(0,CGRectGetMaxY(vGoodsAmount.frame), Screen_Width, heightRow);
- [vBody addSubview:vMarkPriceAmount];
-
- UILabel *lblTitleMarkPriceAmount=[UILabel new];
- lblTitleMarkPriceAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleMarkPriceAmount.text=@"标价总额:";
- lblTitleMarkPriceAmount.textColor = [UIColor blackColor];
- lblTitleMarkPriceAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vMarkPriceAmount addSubview:lblTitleMarkPriceAmount];
-
- UILabel *lblMarkPriceAmount = [UILabel new];
- lblMarkPriceAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleMarkPriceAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleMarkPriceAmount.frame)-10, valueheight);
- lblMarkPriceAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblMarkPriceAmount.text =_salesOrderModel.markedPriceAmount;
- [vMarkPriceAmount addSubview:lblMarkPriceAmount];
-
- //舍零总额
- UIView *vRoundAmount= [UIView new];
- vRoundAmount.frame=CGRectMake(0,CGRectGetMaxY(vMarkPriceAmount.frame), Screen_Width, heightRow);
- [vBody addSubview:vRoundAmount];
-
- UILabel *lblTitleRoundAmount=[UILabel new];
- lblTitleRoundAmount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleRoundAmount.text=@"舍零总额:";
- lblTitleRoundAmount.textColor = [UIColor blackColor];
- lblTitleRoundAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRoundAmount addSubview:lblTitleRoundAmount];
-
- UILabel *lblRoundAmount = [UILabel new];
- lblRoundAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleRoundAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRoundAmount.frame)-10, valueheight);
- lblRoundAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRoundAmount.text =_salesOrderModel.discountAmount;
- [vRoundAmount addSubview:lblRoundAmount];
-
- //整单折扣
- UIView *vFullDiscount= [UIView new];
- vFullDiscount.frame=CGRectMake(0,CGRectGetMaxY(vRoundAmount.frame), Screen_Width, heightRow);
- [vBody addSubview:vFullDiscount];
-
- UILabel *lblTitleFullDiscount=[UILabel new];
- lblTitleFullDiscount.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleFullDiscount.text=@"整单折扣:";
- lblTitleFullDiscount.textColor = [UIColor blackColor];
- lblTitleFullDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFullDiscount addSubview:lblTitleFullDiscount];
-
- UILabel *lblFullDiscount = [UILabel new];
- lblFullDiscount.frame=CGRectMake(CGRectGetMaxX(lblTitleFullDiscount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFullDiscount.frame)-10, valueheight);
- lblFullDiscount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblFullDiscount.text =_salesOrderModel.discount;
- [vFullDiscount addSubview:lblFullDiscount];
-
-
- //剩余定金
- UIView *vRemainderEarnest= [UIView new];
- vRemainderEarnest.frame=CGRectMake(0,CGRectGetMaxY(vFullDiscount.frame), Screen_Width, heightRow);
- [vBody addSubview:vRemainderEarnest];
-
- UILabel *lblTitleRemainderEarnest=[UILabel new];
- lblTitleRemainderEarnest.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblTitleRemainderEarnest.text=@"剩余定金:";
- lblTitleRemainderEarnest.textColor = [UIColor blackColor];
- lblTitleRemainderEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemainderEarnest addSubview:lblTitleRemainderEarnest];
-
- UILabel *lblRemainderEarnest = [UILabel new];
- lblRemainderEarnest.frame=CGRectMake(CGRectGetMaxX(lblTitleRemainderEarnest.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemainderEarnest.frame)-10, valueheight);
- lblRemainderEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRemainderEarnest.text =_salesOrderModel.earnestAmount;
- [vRemainderEarnest addSubview:lblRemainderEarnest];
-
- //剩余定金比率
- UIView *vRemainderEarnestRate= [UIView new];
- vRemainderEarnestRate.frame=CGRectMake(0,CGRectGetMaxY(vRemainderEarnest.frame), Screen_Width, heightRow);
- [vBody addSubview:vRemainderEarnestRate];
-
- UILabel *lblTitleRemainderEarnestRate=[UILabel new];
- lblTitleRemainderEarnestRate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleRemainderEarnestRate.text=@"剩余定金比率:";
- lblTitleRemainderEarnestRate.textColor = [UIColor blackColor];
- lblTitleRemainderEarnestRate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemainderEarnestRate addSubview:lblTitleRemainderEarnestRate];
-
- UILabel *lblRemainderEarnestRate = [UILabel new];
- lblRemainderEarnestRate.frame=CGRectMake(CGRectGetMaxX(lblTitleRemainderEarnestRate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemainderEarnestRate.frame)-10, valueheight);
- lblRemainderEarnestRate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRemainderEarnestRate.text =_salesOrderModel.earnestRate;
- [vRemainderEarnestRate addSubview:lblRemainderEarnestRate];
-
- //总定金
- UIView *vTotalEarnest= [UIView new];
- vTotalEarnest.frame=CGRectMake(0,CGRectGetMaxY(vRemainderEarnestRate.frame), Screen_Width, heightRow);
- [vBody addSubview:vTotalEarnest];
-
- UILabel *lblTitleTotalEarnest=[UILabel new];
- lblTitleTotalEarnest.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleTotalEarnest.text=@"总 定 金:";
- lblTitleTotalEarnest.textColor = [UIColor blackColor];
- lblTitleTotalEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vTotalEarnest addSubview:lblTitleTotalEarnest];
-
- UILabel *lblTotalEarnest= [UILabel new];
- lblTotalEarnest.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalEarnest.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleTotalEarnest.frame)-10, valueheight);
- lblTotalEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblTotalEarnest.text =_salesOrderModel.totalEarnestAmount;
- [vTotalEarnest addSubview:lblTotalEarnest];
-
- //总定金比率
- UIView *vTotalEarnestRate= [UIView new];
- vTotalEarnestRate.frame=CGRectMake(0,CGRectGetMaxY(vTotalEarnest.frame), Screen_Width, heightRow);
- [vBody addSubview:vTotalEarnestRate];
-
- UILabel *lblTitleTotalEarnestRate=[UILabel new];
- lblTitleTotalEarnestRate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleTotalEarnestRate.text=@"总定金比率:";
- lblTitleTotalEarnestRate.textColor = [UIColor blackColor];
- lblTitleTotalEarnestRate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vTotalEarnestRate addSubview:lblTitleTotalEarnestRate];
-
- UILabel *lblTotalEarnestRate= [UILabel new];
- lblTotalEarnestRate.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalEarnestRate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleTotalEarnestRate.frame)-10, valueheight);
- lblTotalEarnestRate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblTotalEarnestRate.text =_salesOrderModel.totalEarnestRate;
- [vTotalEarnestRate addSubview:lblTotalEarnestRate];
-
-
- //使用定金
- UIView *vUseEarnest= [UIView new];
- vUseEarnest.frame=CGRectMake(0,CGRectGetMaxY(vTotalEarnestRate.frame), Screen_Width, heightRow);
- [vBody addSubview:vUseEarnest];
-
- UILabel *lblTitleUseEarnest=[UILabel new];
- lblTitleUseEarnest.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleUseEarnest.text=@"使用定金:";
- lblTitleUseEarnest.textColor = [UIColor blackColor];
- lblTitleUseEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUseEarnest addSubview:lblTitleUseEarnest];
-
- UILabel *lblUseEarnest= [UILabel new];
- lblUseEarnest.frame=CGRectMake(CGRectGetMaxX(lblTitleUseEarnest.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUseEarnest.frame)-10, valueheight);
- lblUseEarnest.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUseEarnest.text =_salesOrderModel.orderEarnestSum;
- [vUseEarnest addSubview:lblUseEarnest];
-
- //合计金额
- UIView *vTotalAmount= [UIView new];
- vTotalAmount.frame=CGRectMake(0,CGRectGetMaxY(vUseEarnest.frame), Screen_Width, heightRow);
- [vBody addSubview:vTotalAmount];
-
- UILabel *lblTitleTotalAmount=[UILabel new];
- lblTitleTotalAmount.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleTotalAmount.text=@"合计金额:";
- lblTitleTotalAmount.textColor = [UIColor blackColor];
- lblTitleTotalAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vTotalAmount addSubview:lblTitleTotalAmount];
-
- UILabel *lblTotalAmount= [UILabel new];
- lblTotalAmount.frame=CGRectMake(CGRectGetMaxX(lblTitleTotalAmount.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleTotalAmount.frame)-10, valueheight);
- lblTotalAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblTotalAmount.text =_salesOrderModel.totalAmount;
- [vTotalAmount addSubview:lblTotalAmount];
-
- UIView *bottomSeparatorView1= [UIView new];
- bottomSeparatorView1.frame = CGRectMake(0, CGRectGetMaxY(vTotalAmount.frame), Screen_Width, heightLine);
- [bottomSeparatorView1 setBackgroundColor:LineBackgroundColor];
- [vBody addSubview:bottomSeparatorView1];
-
- //其它信息
- UIView *vOtherInfo= [UIView new];
- vOtherInfo.frame=CGRectMake(0,CGRectGetMaxY(bottomSeparatorView1.frame), Screen_Width, heightRow);
- [vBody addSubview:vOtherInfo];
-
- UILabel *lblTitleOtherInfo=[UILabel new];
- lblTitleOtherInfo.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleOtherInfo.text=@"其它信息";
- lblTitleOtherInfo.textColor = [UIColor redColor];
- lblTitleOtherInfo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOtherInfo addSubview:lblTitleOtherInfo];
-
-
-
- UIView *bottomSeparatorView2= [UIView new];
- bottomSeparatorView2.frame = CGRectMake(0, CGRectGetMaxY(vOtherInfo.frame), Screen_Width, heightLine);
- [bottomSeparatorView2 setBackgroundColor:LineBackgroundColor];
- [vBody addSubview:bottomSeparatorView2];
-
- //体积
- UIView *vVolumn= [UIView new];
- vVolumn.frame=CGRectMake(0,CGRectGetMaxY(bottomSeparatorView2.frame), Screen_Width, heightRow);
- [vBody addSubview:vVolumn];
-
- UILabel *lblTitleVolumn=[UILabel new];
- lblTitleVolumn.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleVolumn.text=@"体 积:";
- lblTitleVolumn.textColor = [UIColor blackColor];
- lblTitleVolumn.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vVolumn addSubview:lblTitleVolumn];
-
- UILabel *lblVolumn= [UILabel new];
- lblVolumn.frame=CGRectMake(CGRectGetMaxX(lblTitleVolumn.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleVolumn.frame)-10, valueheight);
- lblVolumn.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblVolumn.text =_salesOrderModel.totalVolume;
- [vVolumn addSubview:lblVolumn];
-
- //重量
- UIView *vWeight= [UIView new];
- vWeight.frame=CGRectMake(0,CGRectGetMaxY(vVolumn.frame), Screen_Width, heightRow);
- [vBody addSubview:vWeight];
-
- UILabel *lblTitleWeight=[UILabel new];
- lblTitleWeight.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleWeight.text=@"重 量:";
- lblTitleWeight.textColor = [UIColor blackColor];
- lblTitleWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vWeight addSubview:lblTitleWeight];
-
- UILabel *lblWeight= [UILabel new];
- lblWeight.frame=CGRectMake(CGRectGetMaxX(lblTitleWeight.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleWeight.frame)-10, valueheight);
- lblWeight.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblWeight.text =_salesOrderModel.weight;
- [vWeight addSubview:lblWeight];
-
- //送货标识
- UIView *vDeliveryFlag= [UIView new];
- vDeliveryFlag.frame=CGRectMake(0,CGRectGetMaxY(vWeight.frame), Screen_Width, heightRow);
- [vBody addSubview:vDeliveryFlag];
-
- UILabel *lblTitleDeliveryFlag=[UILabel new];
- lblTitleDeliveryFlag.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleDeliveryFlag.text=@"送货标识:";
- lblTitleDeliveryFlag.textColor = [UIColor blackColor];
- lblTitleDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryFlag addSubview:lblTitleDeliveryFlag];
-
- UILabel *lblDeliveryFlag= [UILabel new];
- lblDeliveryFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDeliveryFlag.frame)-10, valueheight);
-
- lblDeliveryFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- if(_salesOrderModel.deliveryFlag){
- lblDeliveryFlag.text =@"送货";
- }
- else{
- lblDeliveryFlag.text =@"不送货";
- }
- [vDeliveryFlag addSubview:lblDeliveryFlag];
-
- //安装标识
- UIView *vInstallationFlag= [UIView new];
- vInstallationFlag.frame=CGRectMake(0,CGRectGetMaxY(vDeliveryFlag.frame), Screen_Width, heightRow);
- [vBody addSubview:vInstallationFlag];
-
- UILabel *lblTitleInstallationFlag=[UILabel new];
- lblTitleInstallationFlag.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleInstallationFlag.text=@"安装标识:";
- lblTitleInstallationFlag.textColor = [UIColor blackColor];
- lblTitleInstallationFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInstallationFlag addSubview:lblTitleInstallationFlag];
-
- UILabel *lblInstallationFlag= [UILabel new];
- lblInstallationFlag.frame=CGRectMake(CGRectGetMaxX(lblTitleInstallationFlag.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInstallationFlag.frame)-10, valueheight);
-
- lblInstallationFlag.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- if(_salesOrderModel.installationFlag){
- lblInstallationFlag.text =@"安装";
- }
- else{
- lblInstallationFlag.text =@"不安装";
- }
- [vInstallationFlag addSubview:lblInstallationFlag];
-
- //预计安装日期
- UIView *vInstallationDate= [UIView new];
- vInstallationDate.frame=CGRectMake(0,CGRectGetMaxY(vInstallationFlag.frame), Screen_Width, heightRow);
- [vBody addSubview:vInstallationDate];
-
- UILabel *lblTitleInstallationDate=[UILabel new];
- lblTitleInstallationDate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleInstallationDate.text=@"预计安装日期:";
- lblTitleInstallationDate.textColor = [UIColor blackColor];
- lblTitleInstallationDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInstallationDate addSubview:lblTitleInstallationDate];
-
- UILabel *lblInstallationDate= [UILabel new];
- lblInstallationDate.frame=CGRectMake(CGRectGetMaxX(lblTitleInstallationDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleInstallationDate.frame)-10, valueheight);
-
- lblInstallationDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblInstallationDate.text=_salesOrderModel.estimateInstallationDate;
- [vInstallationDate addSubview:lblInstallationDate];
-
-
- //预计送货日期
- UIView *vDeliveryDate= [UIView new];
- vDeliveryDate.frame=CGRectMake(0,CGRectGetMaxY(vInstallationDate.frame), Screen_Width, heightRow);
- [vBody addSubview:vDeliveryDate];
-
- UILabel *lblTitleDeliveryDate=[UILabel new];
- lblTitleDeliveryDate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleDeliveryDate.text=@"预计送货日期:";
- lblTitleDeliveryDate.textColor = [UIColor blackColor];
- lblTitleDeliveryDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryDate addSubview:lblTitleDeliveryDate];
-
- UILabel *lblDeliveryDate= [UILabel new];
- lblDeliveryDate.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDeliveryDate.frame)-10, valueheight);
-
- lblDeliveryDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblDeliveryDate.text=_salesOrderModel.estimateDeliveryDate;
- [vDeliveryDate addSubview:lblDeliveryDate];
-
- //送货区域
- UIView *vDeliveryArea= [UIView new];
- vDeliveryArea.frame=CGRectMake(0,CGRectGetMaxY(vDeliveryDate.frame), Screen_Width, heightRow);
- [vBody addSubview:vDeliveryArea];
-
- UILabel *lblTitleDeliveryArea=[UILabel new];
- lblTitleDeliveryArea.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleDeliveryArea.text=@"预计送货日期:";
- lblTitleDeliveryArea.textColor = [UIColor blackColor];
- lblTitleDeliveryArea.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDeliveryArea addSubview:lblTitleDeliveryArea];
-
- UILabel *lblDeliveryArea= [UILabel new];
- lblDeliveryArea.frame=CGRectMake(CGRectGetMaxX(lblTitleDeliveryArea.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleDeliveryArea.frame)-10, valueheight);
-
- lblDeliveryArea.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblDeliveryArea.text=_salesOrderModel.deliveryAreaName;
- [vDeliveryArea addSubview:lblDeliveryArea];
-
- //楼层
- UIView *vFloor= [UIView new];
- vFloor.frame=CGRectMake(0,CGRectGetMaxY(vDeliveryArea.frame), Screen_Width, heightRow);
- [vBody addSubview:vFloor];
-
- UILabel *lblTitleFloor=[UILabel new];
- lblTitleFloor.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleFloor.text=@"楼 层:";
- lblTitleFloor.textColor = [UIColor blackColor];
- lblTitleFloor.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vFloor addSubview:lblTitleFloor];
-
- UILabel *lblFloor= [UILabel new];
- lblFloor.frame=CGRectMake(CGRectGetMaxX(lblTitleFloor.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleFloor.frame)-10, valueheight);
-
- lblFloor.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblFloor.text=_salesOrderModel.floorsName;
- [vFloor addSubview:lblFloor];
-
- //冲正单号
- UIView *vCorrectNo= [UIView new];
- vCorrectNo.frame=CGRectMake(0,CGRectGetMaxY(vFloor.frame), Screen_Width, heightRow);
- [vBody addSubview:vCorrectNo];
-
- UILabel *lblTitleCorrectNo=[UILabel new];
- lblTitleCorrectNo.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleCorrectNo.text=@"冲正单号:";
- lblTitleCorrectNo.textColor = [UIColor blackColor];
- lblTitleCorrectNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCorrectNo addSubview:lblTitleCorrectNo];
-
- UILabel *lblCorrectNo= [UILabel new];
- lblCorrectNo.frame=CGRectMake(CGRectGetMaxX(lblTitleCorrectNo.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCorrectNo.frame)-10, valueheight);
-
- lblCorrectNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCorrectNo.text=_salesOrderModel.setReversedOrderNo;
- [vCorrectNo addSubview:lblCorrectNo];
-
- //创建者
- UIView *vCreater= [UIView new];
- vCreater.frame=CGRectMake(0,CGRectGetMaxY(vCorrectNo.frame), Screen_Width, heightRow);
- [vBody addSubview:vCreater];
-
- UILabel *lblTitleCreater=[UILabel new];
- lblTitleCreater.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleCreater.text=@"创 建 者:";
- lblTitleCreater.textColor = [UIColor blackColor];
- lblTitleCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCreater addSubview:lblTitleCreater];
-
- UILabel *lblCreater= [UILabel new];
- lblCreater.frame=CGRectMake(CGRectGetMaxX(lblTitleCreater.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCreater.frame)-10, valueheight);
-
- lblCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCreater.text=_salesOrderModel.createUser;
- [vCreater addSubview:lblCreater];
-
- //创建时间
- UIView *vCreateDate= [UIView new];
- vCreateDate.frame=CGRectMake(0,CGRectGetMaxY(vCreater.frame), Screen_Width, heightRow);
- [vBody addSubview:vCreateDate];
-
- UILabel *lblTitleCreateDate=[UILabel new];
- lblTitleCreateDate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleCreateDate.text=@"创建时间:";
- lblTitleCreateDate.textColor = [UIColor blackColor];
- lblTitleCreateDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCreateDate addSubview:lblTitleCreateDate];
-
- UILabel *lblCreateDate= [UILabel new];
- lblCreateDate.frame=CGRectMake(CGRectGetMaxX(lblTitleCreateDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleCreateDate.frame)-10, valueheight);
-
- lblCreateDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCreateDate.text=_salesOrderModel.createTime;
- [vCreateDate addSubview:lblCreateDate];
-
-
- //更新者
- UIView *vUpdater= [UIView new];
- vUpdater.frame=CGRectMake(0,CGRectGetMaxY(vCreateDate.frame), Screen_Width, heightRow);
- [vBody addSubview:vUpdater];
-
- UILabel *lblTitleUpdater=[UILabel new];
- lblTitleUpdater.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleUpdater.text=@"更 新 者:";
- lblTitleUpdater.textColor = [UIColor blackColor];
- lblTitleUpdater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUpdater addSubview:lblTitleUpdater];
-
- UILabel *lblUpdater= [UILabel new];
- lblUpdater.frame=CGRectMake(CGRectGetMaxX(lblTitleUpdater.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUpdater.frame)-10, valueheight);
-
- lblUpdater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUpdater.text=_salesOrderModel.updateUser;
- [vUpdater addSubview:lblUpdater];
-
- //更新时间
- UIView *vUpdateDate= [UIView new];
- vUpdateDate.frame=CGRectMake(0,CGRectGetMaxY(vUpdater.frame), Screen_Width, heightRow);
- [vBody addSubview:vUpdateDate];
-
- UILabel *lblTitleUpdateDate=[UILabel new];
- lblTitleUpdateDate.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleUpdateDate.text=@"更新时间:";
- lblTitleUpdateDate.textColor = [UIColor blackColor];
- lblTitleUpdateDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUpdateDate addSubview:lblTitleUpdateDate];
-
- UILabel *lblUpdateDate= [UILabel new];
- lblUpdateDate.frame=CGRectMake(CGRectGetMaxX(lblTitleUpdateDate.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleUpdateDate.frame)-10, valueheight);
-
- lblUpdateDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUpdateDate.text=_salesOrderModel.updateTime;
- [vUpdateDate addSubview:lblUpdateDate];
-
- //备注
- UIView *vRemarks= [UIView new];
- vRemarks.frame=CGRectMake(0,CGRectGetMaxY(vUpdateDate.frame), Screen_Width, heightRow);
- [vBody addSubview:vRemarks];
-
- UILabel *lblTitleRemarks=[UILabel new];
- lblTitleRemarks.frame=CGRectMake(lblx, lbly, lblwidth+20, lblheight);
- lblTitleRemarks.text=@"备 注:";
- lblTitleRemarks.textColor = [UIColor blackColor];
- lblTitleRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemarks addSubview:lblTitleRemarks];
-
- UILabel *lblRemarks= [UILabel new];
- lblRemarks.frame=CGRectMake(CGRectGetMaxX(lblTitleRemarks.frame), valuey, Screen_Width-CGRectGetMaxX(lblTitleRemarks.frame)-10, valueheight);
-
- lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRemarks.text=_salesOrderModel.remarks;
- [vRemarks addSubview:lblRemarks];
-
-
- vBody.frame=CGRectMake(0,0, Screen_Width,CGRectGetMaxY(vRemarks.frame));
- _scrollView.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vBody.frame));
- _bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(_scrollView.frame), 0, 0)];
-
- [self.view addSubview:_bottomView];
-
-
- UIView *bottomSeparatorView3= [UIView new];
- bottomSeparatorView3.frame = CGRectMake(0, 0, Screen_Width, heightLine);
- [bottomSeparatorView3 setBackgroundColor:LineBackgroundColor];
- [_bottomView addSubview:bottomSeparatorView3];
-
- UILabel *lblBottomGoodsAmount=[UILabel new];
- NSString *goodsAmountStr=[NSString stringWithFormat:@"%@%@",@"货物总额:¥",_salesOrderModel.goodsAmount];
- CGRect bottomGoodsAmountFrame = [goodsAmountStr textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- bottomGoodsAmountFrame.origin.x =Screen_Width-bottomGoodsAmountFrame.size.width-10;
- bottomGoodsAmountFrame.origin.y =CGRectGetMaxY(bottomSeparatorView3.frame)+15;
- lblBottomGoodsAmount.frame=bottomGoodsAmountFrame;
- lblBottomGoodsAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblBottomGoodsAmount.textColor=[UIColor redColor];
- lblBottomGoodsAmount.text=goodsAmountStr;
- [_bottomView addSubview:lblBottomGoodsAmount];
-
- UILabel *lblBottomEarnestAmount=[UILabel new];
- NSString *bottomEarnestAmountStr=[NSString stringWithFormat:@"%@%@",@"定金:¥",_salesOrderModel.earnestAmount];
- CGRect bottomEarnestAmountFrame = [bottomEarnestAmountStr textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- bottomEarnestAmountFrame.origin.x =Screen_Width-bottomGoodsAmountFrame.size.width-bottomEarnestAmountFrame.size.width-20;
- bottomEarnestAmountFrame.origin.y =CGRectGetMaxY(bottomSeparatorView3.frame)+15;
- lblBottomEarnestAmount.frame=bottomEarnestAmountFrame;
- lblBottomEarnestAmount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblBottomEarnestAmount.textColor=[UIColor redColor];
- lblBottomEarnestAmount.text=bottomEarnestAmountStr;
- [_bottomView addSubview:lblBottomEarnestAmount];
-
- UILabel *lblGoodsCount=[UILabel new];
- NSString *goodsCountStr=[NSString stringWithFormat:@"%@%@%@",@"共",_salesOrderModel.goodsCount,@"件商品"];
- CGRect goodsCountFrame = [goodsCountStr textRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) attributes:orderDict];
- goodsCountFrame.origin.x =Screen_Width-bottomGoodsAmountFrame.size.width-bottomEarnestAmountFrame.size.width-goodsCountFrame.size.width-30;
- goodsCountFrame.origin.y =CGRectGetMaxY(bottomSeparatorView3.frame)+15;
- lblGoodsCount.frame=goodsCountFrame;
- lblGoodsCount.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblGoodsCount.textColor=[UIColor redColor];
- lblGoodsCount.text=goodsCountStr;
- [_bottomView addSubview:lblGoodsCount];
-
- //客户地址
- UIView *vOperation = [UIView new];
- vOperation.frame=CGRectMake(0, CGRectGetMaxY(lblGoodsCount.frame)+10, Screen_Width, heightRow);
-
- [self.view addSubview:vOperation];
- // _editBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- // [_editBtn setTitle:@"编辑" forState:UIControlStateNormal];
- // [_editBtn setBackgroundColor:[UIColor whiteColor]];
- // _editBtn.layer.cornerRadius = 4;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // _editBtn.titleLabel.font= [UIFont systemFontOfSize:ButtonFontOfSize];
- // [_editBtn addTarget:self action:@selector(btnGoEdit) forControlEvents:UIControlEventTouchUpInside];
- // _editBtn.layer.cornerRadius = 10;
- // _editBtn.layer.borderWidth = 1.0f;//设置边框颜色
- // _editBtn.frame = CGRectMake(Screen_Width-btnwidth-10 ,0 , btnwidth, valueheight);
- // [vOperation addSubview:_editBtn];
- // _correctBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- // [_correctBtn setTitle:@"冲正" forState:UIControlStateNormal];
- // [_correctBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_correctBtn setBackgroundColor:[UIColor whiteColor]];
- // _correctBtn.layer.cornerRadius = 10;
- // _correctBtn.titleLabel.font= [UIFont systemFontOfSize:ButtonFontOfSize];
- // _correctBtn.layer.borderWidth = 1.0f;//设置边框颜色
- // _correctBtn.frame = CGRectMake(Screen_Width-2*btnwidth-10-8 ,0 , btnwidth, valueheight);
- // [_correctBtn addTarget:self action:@selector(btnGoCorrect) forControlEvents:UIControlEventTouchUpInside];
- // [vOperation addSubview:_correctBtn];
- _detailBtn=[UIButton buttonWithType:UIButtonTypeCustom];
- [_detailBtn setTitle:@"商品详细" forState:UIControlStateNormal];
- [_detailBtn setBackgroundColor:[UIColor whiteColor]];
- _detailBtn.layer.cornerRadius = 10;
- _detailBtn.titleLabel.font= [UIFont systemFontOfSize:ButtonFontOfSize];
- _detailBtn.layer.borderWidth = 1.0f;//设置边框颜色
- _detailBtn.layer.borderColor = [UIColor blackColor].CGColor;
- [_detailBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- _detailBtn.frame = CGRectMake(Screen_Width-btnwidth-40 ,0 , 70, valueheight);
- [_detailBtn addTarget:self action:@selector(btnGoDetail) forControlEvents:UIControlEventTouchUpInside];
- [vOperation addSubview:_detailBtn];
- [_bottomView addSubview:vOperation];
- _bottomView.frame = CGRectMake(_bottomView.frame.origin.x, _bottomView.frame.origin.y, SCREENWIDTH, 80);
- // NSInteger status= _salesOrderModel.status;
- // switch (status) {
- // case 4:
- // _editBtn.layer.borderColor = [UIColor blackColor].CGColor;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:YES];
- // _correctBtn.layer.borderColor = [UIColor redColor].CGColor;
- // [_correctBtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
- // [_correctBtn setEnabled:YES];
- // break;
- // case 5:
- // _editBtn.layer.borderColor = [UIColor blackColor].CGColor;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:YES];
- // _correctBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
- // [_correctBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
- // [_correctBtn setEnabled:NO];
- // break;
- // case 7:
- // _editBtn.layer.borderColor = [UIColor blackColor].CGColor;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:YES];
- // _correctBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
- // [_correctBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
- // [_correctBtn setEnabled:NO];
- // break;
- // case 10:
- // _editBtn.layer.borderColor = [UIColor blackColor].CGColor;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:YES];
- // _correctBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
- // [_correctBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
- // [_correctBtn setEnabled:NO];
- // break;
- // case 11:
- // _editBtn.layer.borderColor = [UIColor blackColor].CGColor;
- // [_editBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:YES];
- // _correctBtn.layer.borderColor = [UIColor redColor].CGColor;
- // [_correctBtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
- // [_correctBtn setEnabled:YES];
- // break;
- // default:
- // _editBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
- // [_editBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
- // [_editBtn setEnabled:NO];
- // break;
- // }
-
- }
- -(void)btnGoCorrect{
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@""
- message:@"确定要冲正吗?" preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"确定"
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action){
- [self correctData:_salesOrderModel];
- }];
- UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消"
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action){
-
- }];
- UIColor *cancelColor=[UIColor blackColor];
- UIColor *sureColor=[UIColor redColor];
- [cancelAction setValue:cancelColor forKey:@"titleTextColor"];
- [okAction setValue:sureColor forKey:@"titleTextColor"];
- [alert addAction:okAction];
- [alert addAction:cancelAction];
- [self presentViewController:alert animated:YES completion:nil];
- }
- -(void)correctData:(SalesOrderModel *)model{
- NSMutableDictionary *dict = [NSMutableDictionary dictionary];
- [dict setObject:@"SaveReverseOrderIphone" forKey:@"Action"];
- [dict setObject:[NSString stringWithFormat:@"%@",kkAccountCode]forKey:@"AccountCode"];
- [dict setObject:kkUserCode forKey:@"UserCode"];
- [dict setObject:kkUserPwd forKey:@"UserPassword"];
- [dict setObject:kkSessionKey forKey:@"SessionKey"];
- [dict setObject:model.orderNo== nil?@"":model.orderNo forKey:@"OrderNo"];
- [dict setObject:model.orderId == nil?@"":model.orderId forKey:@"OrderID"];
- NSString *statusStr = [NSString stringWithFormat:@"%d",model.status];
- [dict setObject:statusStr == nil?@"":statusStr forKey:@"Status"];
- [dict setObject:@"0" forKey:@"ApplyID"];
- [self startLoading];
- _downManager = [[ASIDownManager alloc] init];
- _downManager.delegate = self;
- _downManager.onRequestSuccess = @selector(onCorrectFinish:);
- _downManager.onRequestFail = @selector(onCorrectFail:);
- [_downManager postHttpRequest:ServerURL dic:dict path:nil fileName:nil];
- }
- /**
- 隐藏进度条
- */
- - (void)cancel {
- [self stopLoading];
- }
- /**
- 加载总数数据成功回调
-
- @param sender <#sender description#>
- */
- - (void)onCorrectFinish:(ASIDownManager *)sender {
- NSDictionary *dic = [sender.mWebStr JSONValue];
-
- [self cancel];
- // 服务器返回数据是否正确
- if (dic && [dic isKindOfClass:[NSDictionary class]]) {
- // 服务器返回数据状态值
- int iStatus = [[dic objectForKey:@"Status"] intValue];
- int iNewCount = 0;
- // 服务器返回数据消息
- NSString *message=[dic objectForKey:@"Message"];
- // 服务器返回数据状态值正确
- if (iStatus == 0) {
-
- __weak typeof (self)weakself = self;
- //初始化->
- UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示"
- message:@"冲正成功!" preferredStyle:
- UIAlertControllerStyleAlert ];
- // addAction->
- [alert addAction:[UIAlertAction actionWithTitle:@"确定"
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction *action)
- {
-
- [weakself.navigationController popViewControllerAnimated:YES];
- //关闭当前页面 刷新一览主界面
- if([self.refreshDelegate respondsToSelector:@selector(refreshOrderData)])
- {
- [self.refreshDelegate refreshOrderData];
-
- }
-
-
- }]];
- //展示->
- [self presentViewController:alert animated:YES completion:nil];
-
-
- }
- // 服务器返回数据状态值异常
- else if(iStatus == ActionResultStatusAuthError
- ||iStatus == ActionResultStatusNoLogin
- ||iStatus == ActionResultStatusLogined||iStatus==ActionResultSessionOverdue){
-
- [self showReLoginDialog:message];
- }
- else{
-
- [self showAlertViewText:message];
- }
- }
- }
- /**
- 加载总数数据失败回调
-
- @param sender <#sender description#>
- */
- - (void)onCorrectFail:(ASIDownManager *)sender {
- [self cancel];
- [self showAlertViewText:@"加载失败"];
- }
- -(void)btnGoDetail{
- self.hidesBottomBarWhenPushed = YES;
- OrderGoodsListVC *vc = [[OrderGoodsListVC alloc] init];
- vc.salesOrderModel=_salesOrderModel;
- [self.navigationController pushViewController:vc animated:YES];
- }
- -(void)btnGoEdit{
- self.hidesBottomBarWhenPushed = YES;
- NewSalesOrderHomeVC *vc = [[NewSalesOrderHomeVC alloc] init];
- vc.orderId=_salesOrderModel.orderId;
- vc.refreshDelegate=self;
- vc.editFlag=YES;
- [self.navigationController pushViewController:vc animated:YES];
- }
- - (void)goBack
- {
- [self.navigationController popViewControllerAnimated:YES];
- }
- -(void)viewSafeAreaInsetsDidChange{
- _scrollView.frame=CGRectMake(0, 0, Screen_Width, CGRectGetHeight(self.view.safeAreaLayoutGuide.layoutFrame)- CGRectGetHeight(_bottomView.frame));
- _bottomView.frame = CGRectMake(0, CGRectGetMaxY(_scrollView.frame), CGRectGetWidth(_bottomView.frame), CGRectGetHeight(_bottomView.frame));
- [super viewSafeAreaInsetsDidChange];
- }
- @end
|