[size=medium][color=brown]// HLayout hLayout1 = new HLayout();
// HLayout hLayout2 = new HLayout();
// HLayout hLayout3 = new HLayout();
// VLayout alay = new VLayout();
// DynamicForm uploadForm = new DynamicForm();
// MyLinkItem downloadItem = new MyLinkItem("<nobr>采样模板文件下载</nobr>", "点击下载");
// downloadItem.addClickHandler(new ClickHandler() {
//
// public void onClick(ClickEvent event) {
// // TODO Auto-generated method stub
// Window.open("/download/2005土壤采样模板.xls", "", "");
// }
// });
// downloadItem.setWidth(150);
// uploadForm.setItems(downloadItem);
// final MultiUploader defaultUploader = new MultiUploader();
// defaultUploader.avoidRepeatFiles(true);
// defaultUploader.setMaximumFiles(1);
// defaultUploader.setWidth("350");
// defaultUploader.setHeight("100");
// defaultUploader.setTitle("请选择文件上传");
// final Long timeName = new Date().getTime();
// defaultUploader.setFileInputPrefix(timeName.toString());
// defaultUploader.setServletPath("a/a/a/a.upload");
// Label label = new Label();
// label.setContents("上传文件:");
// label.setTop(5);
// label.setHeight(10);
// label.setWidth(60);
// hLayout1.addMember(label);
// hLayout1.addMember(defaultUploader);
// hLayout1.setTop(80);
// hLayout2.addMember(uploadForm);
// hLayout2.setTop(20);
// alay.addChild(hLayout2);
// alay.addChild(hLayout1);
// IButton uploadButton = new IButton("提交");
// uploadButton.setIcon("[SKINIMG]/actions/ok.png");
// uploadButton.setWidth(80);
// uploadButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
//
// public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {
// // TODO Auto-generated method stub
// String queryString = "";
// }
// });
// hLayout3.addMember(uploadButton);
// hLayout3.setTop(140);
// hLayout3.setLeft(270);
// alay.addChild(hLayout3);[/color][/size]
// HLayout hLayout2 = new HLayout();
// HLayout hLayout3 = new HLayout();
// VLayout alay = new VLayout();
// DynamicForm uploadForm = new DynamicForm();
// MyLinkItem downloadItem = new MyLinkItem("<nobr>采样模板文件下载</nobr>", "点击下载");
// downloadItem.addClickHandler(new ClickHandler() {
//
// public void onClick(ClickEvent event) {
// // TODO Auto-generated method stub
// Window.open("/download/2005土壤采样模板.xls", "", "");
// }
// });
// downloadItem.setWidth(150);
// uploadForm.setItems(downloadItem);
// final MultiUploader defaultUploader = new MultiUploader();
// defaultUploader.avoidRepeatFiles(true);
// defaultUploader.setMaximumFiles(1);
// defaultUploader.setWidth("350");
// defaultUploader.setHeight("100");
// defaultUploader.setTitle("请选择文件上传");
// final Long timeName = new Date().getTime();
// defaultUploader.setFileInputPrefix(timeName.toString());
// defaultUploader.setServletPath("a/a/a/a.upload");
// Label label = new Label();
// label.setContents("上传文件:");
// label.setTop(5);
// label.setHeight(10);
// label.setWidth(60);
// hLayout1.addMember(label);
// hLayout1.addMember(defaultUploader);
// hLayout1.setTop(80);
// hLayout2.addMember(uploadForm);
// hLayout2.setTop(20);
// alay.addChild(hLayout2);
// alay.addChild(hLayout1);
// IButton uploadButton = new IButton("提交");
// uploadButton.setIcon("[SKINIMG]/actions/ok.png");
// uploadButton.setWidth(80);
// uploadButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
//
// public void onClick(com.smartgwt.client.widgets.events.ClickEvent event) {
// // TODO Auto-generated method stub
// String queryString = "";
// }
// });
// hLayout3.addMember(uploadButton);
// hLayout3.setTop(140);
// hLayout3.setLeft(270);
// alay.addChild(hLayout3);[/color][/size]