public TransManagementFrame(final JFrame mainFrame,JPanel mainPanel){
		mainPanel.setBackground(Color.white);
		mainFrame.setBackground(Color.white);
		mainFrame.setTitle("-");
		mainPanel.setBounds(0, 0, 905, 527);
		mainFrame.getContentPane().add(mainPanel);
		mainPanel.setLayout(null);
		
		mainPanel.setBounds(0, 0, 905, 527);
		mainPanel.setPreferredSize(new java.awt.Dimension(905, 527));
		mainPanel.setLayout(null);
		
			jTextField1 = new JTextField();
			mainPanel.add(jTextField1);
			jTextField1.setText("\u8bf7\u8f93\u5165\u8ba2\u5355\u53f7\u6216\u8005\u6c7d\u8f66\u7f16\u53f7");
			jTextField1.setBounds(505, 25, 202, 24);
		
			jButton1 = new JButton();
			mainPanel.add(jButton1);
			jButton1.setText("\u641c\u7d22");
			jButton1.setBounds(763, 25, 75, 24);
		
			jScrollPane1 = new JScrollPane();
			mainPanel.add(jScrollPane1);
			jScrollPane1.setBounds(17, 74, 870, 400);
			
			int i=MainFrame.getCarList().size();
			s=new String[i][4];
			int k=0;
			for(Car c:MainFrame.getCarList()){
				s[k][0]=Integer.toString(c.getCid());
				s[k][1]=c.getClicense();
				s[k][2]=c.getCuser();
				if(c.getCarsStatus()!=null)
					s[k][3]=c.getCarsStatus().toString();
				else
					s[k][3]="";
				k++;
			}
				TableModel jTable1Model = 
						new DefaultTableModel(
								//new String[][] { { "One", "Two" }, { "Three", "Four" } },
								s,
								new String[] { "","ƺ","ʻԱ","״̬" });
				jTable1 = new JTable();
				jScrollPane1.setViewportView(jTable1);
				jTable1.setModel(jTable1Model);
			
				JButton jButton2 = new JButton();
				mainPanel.add(jButton2);
				jButton2.setText("˵");
				jButton2.setBounds(550, 480, 120, 24);
				jButton2.addActionListener(new ActionListener(){
					public void actionPerformed(ActionEvent arg0) {
						int i=jTable1.getSelectedRow();
						if(i<0){
							new MessageUI(Color.red,"ѡҪ鿴ĳ");
							//JOptionPane.showMessageDialog(null,"ѡҪ鿴ĳ");
						}
						else if(s[i][3]!="Ready"){
							new MessageUI(Color.red,"óδ״̬޷˵");
							//JOptionPane.showMessageDialog(null,"óδ״̬޷˵");
						}
						else{
							new AddOrderDialog(mainFrame,Integer.parseInt(s[i][0]));
						}
						
					}
					
				});
				
				JButton jButton3 = new JButton();
				mainPanel.add(jButton3);
				jButton3.setText("鿴˵б");
				jButton3.setBounds(700, 480, 120, 24);
				jButton3.addActionListener(new ActionListener(){
					public void actionPerformed(ActionEvent arg0) {
						int i=jTable1.getSelectedRow();
						if(i<0){
							new MessageUI(Color.red,"ѡҪ鿴ĳ");
							//JOptionPane.showMessageDialog(null,"ѡҪ鿴ĳ");
						}
						else {
							new OrderListDialog(mainFrame,Integer.parseInt(s[i][0]));
						}
						
					}
					
				});
			
		
	}