亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? companysearchcomponent.java

?? 發泄網! 發泄網! 發泄網! 發泄網! 發泄網! 發泄網! 發泄網! 發泄網!
?? JAVA
字號:
	/* CRMS, customer relationship management system	Copyright (C) 2003Service To Youth Council	This program is free software; you can redistribute it and/or modify	it under the terms of the GNU General Public License as published by	the Free Software Foundation; either version 2 of the License, or	(at your option) any later version.	This program is distributed in the hope that it will be useful,	but WITHOUT ANY WARRANTY; without even the implied warranty of	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the	GNU General Public License for more details.	You should have received a copy of the GNU General Public License	along with this program; if not, write to the Free Software	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA	For further information contact the SYC ICT department on GPL@syc.net.au	98 Kermode Street	North Adelaide	South Australia	SA 5006 	+61 (0)8 8367 0755	*//* * CompanySearchComponent * * Created on 04/12/2003 */package crms.applet.company;import javax.swing.*;import javax.swing.border.*;import javax.swing.event.*;import java.awt.*;import java.awt.event.*;import java.util.*;import org.w3c.dom.*;import crms.util.*;import crms.vo.*;import crms.module.*;import crms.ui.*;/** * * @authortnichols */public class CompanySearchComponent extends CRMSComponent {	public static final int COMPANY_SELECTED = 1;		/** Creates a new instance of CallAddPanel */		JPanel bodyPanel = new JPanel();		JTextField textName = new JTextField();	JTextField textSuburb = new JTextField();	JComboBox comboState = new JComboBox(StateCode.STATE_LIST);	JTextField textPostcode = new JTextField();	JTextField textABN = new JTextField();		JTextArea textNote = new JTextArea();	JScrollPane noteScrollPane = new JScrollPane(textNote);	JComboBox comboIndustry = null;	DefaultComboBoxModel companyIdentifierModel = null;	CompanyTableComponent companyTable = null;		String criteria = null;	CallbackDestination parent = null;		/** Create a new company search panel. */	public CompanySearchComponent(CallbackDestination parent) {		this.parent = parent;	}	public void setCompanyTable(CompanyTableComponent table) {		companyTable = table;	}		public void init() {		GridBagLayout gbl = new GridBagLayout();				setBackground(Color.WHITE);				setLayout(new BorderLayout());		bodyPanel.setLayout(gbl);		bodyPanel.setBackground(Color.WHITE);		bodyPanel.setBorder(new EmptyBorder(5,5,5,5));		Insets defaultInsets = new Insets(4,0,0,4);		comboState.setEditable(true);		comboState.setSelectedItem("");		// prepare the industry list		java.util.List companyTypes = CompanyIdentifiersTypeCode.getTypes(CompanyIdentifiersTypeCode.class);		companyTypes.add(0, new CompanyIdentifiersTypeCode("NONE", "- None Selected -"));		companyIdentifierModel = new DefaultComboBoxModel(companyTypes.toArray());		comboIndustry = new JComboBox(companyIdentifierModel);				bodyPanel.add(new JLabel("Name"),			new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, defaultInsets, 0, 0));		bodyPanel.add(textName,			new GridBagConstraints(1, 0, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, defaultInsets, 167, 0));		bodyPanel.add(new JLabel("Suburb"),			new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, defaultInsets, 0, 0));		bodyPanel.add(textSuburb,			new GridBagConstraints(1, 4, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, defaultInsets, 0, 0));		bodyPanel.add(new JLabel("State"),			new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, defaultInsets, 0, 0));		bodyPanel.add(comboState,			new GridBagConstraints(1, 5, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, defaultInsets, 0, 0));		bodyPanel.add(new JLabel("Postcode"),			new GridBagConstraints(2, 5, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, defaultInsets, 0, 0));		bodyPanel.add(textPostcode,			new GridBagConstraints(3, 5, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, defaultInsets, 0, 0));		bodyPanel.add(new JLabel("Industry"),			new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0, GridBagConstraints.EAST, GridBagConstraints.NONE, defaultInsets, 0, 0));		bodyPanel.add(comboIndustry,			new GridBagConstraints(1, 6, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, defaultInsets, 0, 0));				//CRMSUtil.fixGridBagLayout(gbl, bodyPanel);		// create the control buttons		CRMSButtonBar buttonPanel = new CRMSButtonBar();		JButton buttonSearch= new JButton("Search");		JButton buttonReset = new JButton("Reset");		buttonPanel.addButton(CRMSButtonBar.RIGHT, buttonSearch);		buttonPanel.addButton(CRMSButtonBar.RIGHT, buttonReset);		buttonReset.addActionListener( new ActionListener() {			public void actionPerformed(ActionEvent ev) {				setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));				resetFields();				setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));			}		});				buttonSearch.addActionListener( new ActionListener() {			public void actionPerformed(ActionEvent ev) {				if (validateForm()) {					setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));					searchCompany();					setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));				}			}		});				// assemble the final panel		add(bodyPanel, BorderLayout.NORTH);		add(buttonPanel, BorderLayout.SOUTH);		resetFields();		if (criteria != null && criteria.trim().length() > 0) {			textName.setText(criteria);			searchCompany();		}	}		public void resetFields() {				Company company = new Company();		company.setState(StateCode.STATE_LIST[0]);				textName.setText("");		textSuburb.setText("");		textPostcode.setText("");		if (companyTable == null) return;				companyTable.clear();		SwingUtilities.updateComponentTreeUI(companyTable);	}	public void setSearchCompany(String company) {		textName.setText(company);		searchCompany();	}		public void searchCompany() {				ServerCommand command = new ServerCommand(CompanyModule.COMPANY_SEARCH);		Location location = new Location();		location.setSuburb(textSuburb.getText());		location.setState((String)comboState.getSelectedItem());		location.setPostCode(textPostcode.getText());		command.setParameter(CompanyModule.PARAM_COMPANY_LOCATIONS, location);		command.setParameter(CompanyModule.PARAM_COMPANY_NAME, textName.getText());/*		command.setParameter(CompanyModule.PARAM_COMPANY_SUBURB, textSuburb.getText());		command.setParameter(CompanyModule.PARAM_COMPANY_STATE, comboState.getSelectedItem());		command.setParameter(CompanyModule.PARAM_COMPANY_POSTCODE, textPostcode.getText());*/		CompanyIdentifiersTypeCode type  = (CompanyIdentifiersTypeCode)companyIdentifierModel.getSelectedItem();		if (type.getCode().compareTo("NONE") != 0) {			command.setParameter(CompanyModule.PARAM_COMPANY_TYPE,type);		}				Server server = ServerFactory.getInstance().getServer();				ServerResponse result = server.sendCommand(command);				if (companyTable == null) return;		companyTable.setCompanyList((ArrayList) result.getPart("results"));		companyTable.setUser((StaffMember) result.getPart("user"));	}		public boolean validateForm() {		boolean valid = true;		CompanyIdentifiersTypeCode type  = (CompanyIdentifiersTypeCode)companyIdentifierModel.getSelectedItem();		String state = (String)comboState.getSelectedItem();		valid = (type.getCode().compareTo("NONE") != 0)				|| (textName.getText().trim().length() > 0)				|| (textSuburb.getText().trim().length() > 0)				|| (state != null && state.trim().length() > 0)				|| (textPostcode.getText().trim().length() > 0);		if (!valid) {			JOptionPane.showMessageDialog(this, "Please enter some search details.", "Company Search", JOptionPane.WARNING_MESSAGE);		}		return valid;	}		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文一区二区完整视频在线观看| 国产成人综合在线| 91成人在线免费观看| 亚洲精品国产视频| 欧美三级韩国三级日本三斤| 亚洲国产精品视频| 欧美一区二区三区四区五区| 蜜臀精品一区二区三区在线观看| 日韩一区二区三区视频在线 | 欧美一区二区三区影视| 五月婷婷久久综合| 精品国产麻豆免费人成网站| 国产精品影视天天线| 中文字幕在线不卡一区| 日韩一二三区视频| 麻豆国产91在线播放| 日本一区二区三区视频视频| 一本一本久久a久久精品综合麻豆| 亚洲国产美国国产综合一区二区| 欧美人牲a欧美精品| 韩国成人福利片在线播放| 国产精品免费看片| 91超碰这里只有精品国产| 国产一区二区精品久久99| 亚洲同性gay激情无套| 日韩一区二区在线播放| 成人av在线网站| 天堂精品中文字幕在线| 国产欧美日韩视频一区二区| 欧美在线小视频| 国产精品一区不卡| 亚洲chinese男男1069| 国产亚洲一二三区| 欧美日韩午夜影院| 成人免费毛片片v| 免费观看一级欧美片| 日韩毛片一二三区| 精品国产乱码久久久久久牛牛| av成人免费在线观看| 久久99国产精品免费网站| 亚洲精品成人精品456| 2021中文字幕一区亚洲| 欧美猛男男办公室激情| thepron国产精品| 国产一区二区三区蝌蚪| 天天av天天翘天天综合网色鬼国产 | 亚洲精品国久久99热| 久久久久久久久伊人| 欧美一区二区三区色| 一本久道久久综合中文字幕| 国产精品一区二区免费不卡| 视频一区视频二区中文字幕| 日韩理论片网站| 久久久不卡影院| 日韩欧美一区二区久久婷婷| 91福利视频在线| 91丨porny丨中文| 成人午夜在线播放| 国产酒店精品激情| 美女网站色91| 日韩1区2区日韩1区2区| 夜夜揉揉日日人人青青一国产精品| 国产片一区二区| 欧美激情艳妇裸体舞| 久久久久久久免费视频了| 精品国产sm最大网站| 日韩欧美在线影院| 欧美电影在线免费观看| 欧美无砖砖区免费| 欧美三级电影一区| 欧美日产国产精品| 51精品国自产在线| 在线播放一区二区三区| 欧美日韩国产综合一区二区| 欧美中文字幕一区二区三区| 在线中文字幕一区二区| 欧美视频一区二区在线观看| 欧美伊人久久大香线蕉综合69| 色悠久久久久综合欧美99| 色视频欧美一区二区三区| 日本精品视频一区二区三区| 91久久线看在观草草青青| 91精品福利在线| 5858s免费视频成人| 日韩美一区二区三区| 精品少妇一区二区三区在线播放| 欧美成人激情免费网| 久久久三级国产网站| 欧美极品xxx| 中文字幕亚洲视频| 亚洲午夜久久久| 免费高清在线一区| 国产一区二区在线视频| 国产成人免费网站| 91女人视频在线观看| 欧美性淫爽ww久久久久无| 欧美一区二区三区视频免费播放| 欧美videos中文字幕| 国产欧美日韩在线看| 亚洲精品成人a在线观看| 五月婷婷激情综合| 国产一区二区在线观看视频| 成人动漫一区二区| 欧美三级在线看| 亚洲精品一区二区三区影院 | 精品一区精品二区高清| 福利一区福利二区| 色94色欧美sute亚洲线路二 | 日韩av中文字幕一区二区三区| 日本成人在线一区| 国产**成人网毛片九色| 欧美性受xxxx| 2017欧美狠狠色| 亚洲靠逼com| 免费成人在线网站| 色综合婷婷久久| 国产另类ts人妖一区二区| 91免费精品国自产拍在线不卡| 欧美日本一区二区在线观看| 久久精品人人做人人爽97| 一区二区三区在线观看动漫 | 国产亚洲欧洲997久久综合| 亚洲人成精品久久久久久| 免费观看在线色综合| 91女厕偷拍女厕偷拍高清| 欧美精品一区二区在线播放 | 日韩美女一区二区三区四区| 国产精品白丝在线| 国模冰冰炮一区二区| 欧美日本一区二区三区四区| 国产精品日韩成人| 国产专区欧美精品| 国产精品丝袜一区| 久久99精品国产.久久久久久| 91美女视频网站| 日本一区二区三级电影在线观看 | 欧美一级片在线看| 国产精品久久久久影院| 开心九九激情九九欧美日韩精美视频电影| 成人黄色av电影| 26uuu亚洲综合色| 五月婷婷激情综合网| 91黄色激情网站| 中文字幕日本乱码精品影院| 久久精品国产亚洲a| 欧美日韩国产免费一区二区| 日韩毛片高清在线播放| 国产成人午夜视频| 精品av久久707| 美国三级日本三级久久99| 欧美天堂一区二区三区| 亚洲日韩欧美一区二区在线| 丁香一区二区三区| 国产三级久久久| 久久国内精品视频| 日韩一区二区三区四区| 日韩在线a电影| 欧美片网站yy| 视频一区二区三区入口| 欧美性色综合网| 亚洲欧美另类久久久精品| 99久久亚洲一区二区三区青草| 精品国产第一区二区三区观看体验| 免费不卡在线观看| 欧美不卡一区二区三区| 麻豆精品一区二区av白丝在线| 91精品一区二区三区久久久久久| 亚洲va欧美va人人爽| 欧美日韩久久久久久| 天天av天天翘天天综合网色鬼国产 | 精品伦理精品一区| 精品制服美女丁香| 久久久综合视频| 成人午夜激情视频| 亚洲欧美激情插| 欧美日韩一卡二卡| 男男视频亚洲欧美| 日韩视频一区在线观看| 国内精品国产三级国产a久久| 久久久综合视频| 99精品视频在线观看免费| 综合激情网...| 亚洲精品你懂的| 欧美日本在线视频| 国内外成人在线视频| 国产精品欧美经典| 91福利视频在线| 麻豆精品一区二区av白丝在线| 亚洲精品一区二区三区四区高清| 成人手机在线视频| 亚洲国产成人av好男人在线观看| 欧美日韩国产精品成人| 国产乱子伦一区二区三区国色天香| 久久久国产午夜精品 | 亚洲成人你懂的| 精品久久久久一区| 91亚洲精华国产精华精华液| 亚洲国产精品综合小说图片区| 欧美大尺度电影在线| av网站免费线看精品|