Commit 6893c115 authored by liangyb's avatar liangyb

#20240814 屏蔽查看供应商按钮ai查重按钮

parent e06700ec
......@@ -240,7 +240,7 @@ public class FactorEvaluationComposite extends EvaluationView {
private Map<String,String> supplierNameMap = new HashMap<String,String>();
private Composite buttonComposite;
private TemplateTableListComposite templateTableListComposite;
private AiEvalLeftButton viewAI_btn;
// private AiEvalLeftButton viewAI_btn;
private ShowAiProcessShell showAiProcessShell;
// private ELink viewRiskSupplier_link;
private ViewRiskComposite viewRiskComposite;
......@@ -390,42 +390,17 @@ public class FactorEvaluationComposite extends EvaluationView {
menuFunctionUtils.addFunction(moreTools, "EVALUATION_VIEW_MORE");
viewAI_btn = new AiEvalLeftButton(left_tool_composite, SWT.NONE,curTender);
// viewAI_btn.addFocusListener(new FocusAdapter() {
// @Override
// public void focusLost(FocusEvent e) {
//TODO
// if(null != showAiProcessShell && !showAiProcessShell.isDisposed()) {
// showAiProcessShell.close();
// }
// viewAI_btn = new AiEvalLeftButton(left_tool_composite, SWT.NONE,curTender);
//
// }
// });
// viewAI_btn.addMouseTrackListener(new MouseTrackAdapter() {
// @Override
// public void mouseEnter(MouseEvent e) {
// viewAI_btn.setImage(ResourceManager.getPluginImage(IconsActivator.PLUGIN_ID, "icons/btn/white/view.png"));
// viewAI_btn.setText("");
// viewAI_btn.setToolTipText("标书查重");
// viewAI_btn.addMouseListener(new MouseAdapter() {
// public void mouseUp(MouseEvent e) {
// viewAiAction();
// }
//
// @Override
// public void mouseExit(MouseEvent e) {
// if(null != showAiProcessShell && !showAiProcessShell.isDisposed()) {
// showAiProcessShell.close();
// showAiProcessShell.dispose();
// }
// }
//
// });
viewAI_btn.setImage(ResourceManager.getPluginImage(IconsActivator.PLUGIN_ID, "icons/btn/white/view.png"));
viewAI_btn.setText("");
viewAI_btn.setToolTipText("标书查重");
viewAI_btn.addMouseListener(new MouseAdapter() {
public void mouseUp(MouseEvent e) {
viewAiAction();
}
});
// viewAI_btn.setVisible(false);
// menuFunctionUtils.addFunction(viewAI_btn, "EVALUATION_VIEW_AI");
ESepator toolv_sepator = new ESepator(this, SWT.VERTICAL);
toolv_sepator.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, true, 1, 1));
......@@ -876,7 +851,7 @@ public class FactorEvaluationComposite extends EvaluationView {
ImageButton fileButton = createShowButton(ShowType.FILE);
// ImageButton opinionButton = createShowButton(ShowType.OPINION);
ImageButton comparisonTableButton = createShowButton(ShowType.COMPARISON_TABLE);
ImageButton viewSupplierRiskBtn = createShowButton(ShowType.VIEW_SUPPLIER_RISK);
// ImageButton viewSupplierRiskBtn = createShowButton(ShowType.VIEW_SUPPLIER_RISK);
// ImageButton structButton = createShowButton(ShowType.STRUCT);
switch (showType) {
......@@ -889,11 +864,11 @@ public class FactorEvaluationComposite extends EvaluationView {
case COMPARISON_TABLE:
curShowButton = comparisonTableButton;
break;
case VIEW_SUPPLIER_RISK:
curShowButton = viewSupplierRiskBtn;
break;
// case VIEW_SUPPLIER_RISK:
// curShowButton = viewSupplierRiskBtn;
// break;
}
curShowButton.setSelection(true);
// curShowButton.setSelection(true);
}
/**
......@@ -1542,13 +1517,13 @@ public class FactorEvaluationComposite extends EvaluationView {
opinionStackLayout.topControl = templateTableListComposite;
templateTableListComposite.refresh(curTender.getId(), curEvaluationFactor.getFactorCode(), supplierList);
break;
case VIEW_SUPPLIER_RISK:
opinionStackLayout.topControl = viewRiskComposite;
viewRiskComposite.refresh(curTender);
// showStackLayout.topControl = structComposite;
// showStructTableAction();
break;
// case VIEW_SUPPLIER_RISK:
//
// opinionStackLayout.topControl = viewRiskComposite;
// viewRiskComposite.refresh(curTender);
//// showStackLayout.topControl = structComposite;
//// showStructTableAction();
// break;
}
opinionComposite.layout();
}
......@@ -2727,10 +2702,10 @@ public class FactorEvaluationComposite extends EvaluationView {
}else {
String progress = httpResponse.getDataParam("progress");
String waitTime = httpResponse.getDataParam("waitTime");
showAiProcessShell = new ShowAiProcessShell(getShell(), viewAI_btn, ObjectUtils.getIntValue(progress, 0), waitTime);
showAiProcessShell.open();
// String progress = httpResponse.getDataParam("progress");
// String waitTime = httpResponse.getDataParam("waitTime");
// showAiProcessShell = new ShowAiProcessShell(getShell(), viewAI_btn, ObjectUtils.getIntValue(progress, 0), waitTime);
// showAiProcessShell.open();
// ShowViewAiProcessDialog showViewAiProcessDialog = new ShowViewAiProcessDialog(getShell(), ObjectUtils.getIntValue(progress, 0), waitTime);
// showViewAiProcessDialog.open();
// callBackMsg(false, "获取下载地址失败!");
......@@ -2749,8 +2724,8 @@ public class FactorEvaluationComposite extends EvaluationView {
// unZipFile(savePath, FileConstants.getBiddingFilePath(curTender.getId()));
Display.getDefault().syncExec(new Runnable() {
public void run() {
viewAI_btn.setVisible(true);
viewAI_btn.getParent().layout();
// viewAI_btn.setVisible(true);
// viewAI_btn.getParent().layout();
// viewAI_btn.setEnabled(true);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment