Пример #1
0
def fullNetwork(pdf,fac,p,g):
	if g == 0:
		filename = p+'FAC-'+fac+'-overallRollup'
		f = p+'FAC-'+fac+'-fullNet'
		tempString = "FAC-"
	else:
		filename = p+'GANG'+fac+'-overallRollup'
		f = p+'GANG'+fac+'-fullNet'
		tempString = "GANG"
	reader = csv.reader(open(filename+'.csv', 'rb'),delimiter = ',')
	name2=tempString +fac
        vna2mpb3.fullnet(p,name2,1)
        image1=p+tempString+fac+"-fullnet.PNG"	
	pdf.set_font('Helvetica','BU',8)
	pdf.cell(0,3,fac+' FULL NETWORK',0,1,'C')
	
	pdf.image(image1,30,30,150,100,type='')
	pdf.set_font('Helvetica','',8)
	pdf.ln(115)
	for row in reader:
		j = 0		
		str = ['','','','','','','','','','']
		while len(row) > j:
			str[j] = row[j]
			str[j].rstrip()
			j = j+1
		pdf.cell(9,4,str[0],1,0)	
		pdf.cell(31,4,str[1],1,0)	
		pdf.cell(15,4,str[2],1,0)	
		pdf.cell(30,4,str[3][0:14],1,0)
		pdf.cell(30,4,str[4][0:14],1,0)	
		pdf.cell(15,4,str[5][0:14],1,0)
		pdf.cell(15,4,str[6][0:14],1,0)	
		pdf.cell(15,4,str[7],1,0)
		pdf.cell(6,4,str[8][0:1],1,0)	
		pdf.cell(24,4,str[9],1,1)
Пример #2
0
def Show_View_Net_Map(analyzeThis):
    vna2mpb3.fullnet(analyzeThis[1]+"\\",analyzeThis[0],0)