Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
京
京能客户端
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王亚宁
京能客户端
Commits
84357993
Commit
84357993
authored
Aug 20, 2024
by
liangyb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#20240820 适配控件
parent
980abb0b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
60 deletions
+60
-60
BID-EVALUATION-STEP/src/com/gx/obe/evaluation/step/composite/FactorEvaluationComposite.java
.../evaluation/step/composite/FactorEvaluationComposite.java
+5
-6
BID-EVALUATION-STEP/src/com/gx/obe/evaluation/step/review/composite/ComplianceEvaluationTableComposite.java
.../review/composite/ComplianceEvaluationTableComposite.java
+9
-11
com.gx.obe.common.file/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
...ile/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
+14
-11
org.eclipse.swt.core/src/org/eclipse/swt/core/widgets/EDialog.java
...se.swt.core/src/org/eclipse/swt/core/widgets/EDialog.java
+27
-27
org.eclipse.swt.core/src/org/eclipse/swt/core/widgets/ELink.java
...ipse.swt.core/src/org/eclipse/swt/core/widgets/ELink.java
+5
-5
No files found.
BID-EVALUATION-STEP/src/com/gx/obe/evaluation/step/composite/FactorEvaluationComposite.java
View file @
84357993
...
...
@@ -486,13 +486,12 @@ public class FactorEvaluationComposite extends EvaluationView {
evaluationButton
=
new
ELink
(
supplier_composite
,
SWT
.
NONE
);
evaluationButton
.
setImage
(
ResourceManager
.
getPluginImage
(
IconsActivator
.
PLUGIN_ID
,
"icons/btn/blue/edit.png"
));
evaluationButton
.
setEnabled
(
false
);
evaluationButton
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mouseUp
(
MouseEvent
e
)
{
if
(!
evaluationButton
.
getEnabled
())
{
return
;
}
//
if (!evaluationButton.getEnabled()) {
//
return;
//
}
setSupplierEvaluationOpinion
();
}
});
...
...
@@ -1122,10 +1121,10 @@ public class FactorEvaluationComposite extends EvaluationView {
isShowBidFileOpinion
=
false
;
}
if
(
curStep
.
getStepType
().
equals
(
com
.
gx
.
obe
.
components
.
core
.
enumeration
.
EvaluationStepEnum
.
COMPLIANCE
))
{
evaluationTable
=
new
ComplianceEvaluationTableComposite
(
evaluation_talbe_composite
,
evaluationButton
,
SWT
.
NONE
);
evaluationTable
=
new
ComplianceEvaluationTableComposite
(
evaluation_talbe_composite
,
SWT
.
NONE
);
}
else
{
if
(
null
!=
curStep
.
getSummaryType
()
&&
curStep
.
getSummaryType
().
equals
(
com
.
gx
.
obe
.
components
.
core
.
enumeration
.
EvaluationStepEnum
.
SUMMARY_SCORE_BY_QUALIFIED
))
{
evaluationTable
=
new
ComplianceEvaluationTableComposite
(
evaluation_talbe_composite
,
evaluationButton
,
SWT
.
NONE
);
evaluationTable
=
new
ComplianceEvaluationTableComposite
(
evaluation_talbe_composite
,
SWT
.
NONE
);
}
else
{
evaluationTable
=
new
ScoreEvaluationTableComposite
(
evaluation_talbe_composite
,
SWT
.
NONE
);
}
...
...
BID-EVALUATION-STEP/src/com/gx/obe/evaluation/step/review/composite/ComplianceEvaluationTableComposite.java
View file @
84357993
...
...
@@ -114,7 +114,6 @@ public class ComplianceEvaluationTableComposite extends Composite implements IEv
private
Composite
evaluationTableComposite
;
private
Composite
composite_9
;
private
Text
factor_evaluation_opinion
;
private
ELink
evaluationButton
;
private
StyledText
evaluation_factor_memo
;
private
List
<
EvaluationFactor
>
evaluationFactorList
=
new
ArrayList
<
EvaluationFactor
>();
private
int
maxLevel
=
1
;
...
...
@@ -155,7 +154,7 @@ public class ComplianceEvaluationTableComposite extends Composite implements IEv
private
ExpertEvaluationResultService
expertEvaluationResultService
;
private
SupplierOpeningResultService
supplierOpeningResultService
;
private
Map
<
String
,
String
>
objectiveFactorIdMap
=
new
HashMap
<
String
,
String
>();
private
Map
<
Integer
,
Object
>
colContent
=
new
HashMap
<>();
//
private Map<Integer,Object> colContent = new HashMap<>();
private
final
Map
<
Keys
,
Color
>
objectiveBackgroundMap
=
new
HashMap
<
Keys
,
Color
>();
private
boolean
sameScoreCheck
=
true
;
/**
...
...
@@ -217,9 +216,8 @@ public class ComplianceEvaluationTableComposite extends Composite implements IEv
* @param parent
* @param style
*/
public
ComplianceEvaluationTableComposite
(
Composite
parent
,
ELink
evaluationBtn
,
int
style
)
{
public
ComplianceEvaluationTableComposite
(
Composite
parent
,
int
style
)
{
super
(
parent
,
style
);
evaluationButton
=
evaluationBtn
;
GridLayout
gridLayout
=
new
GridLayout
(
1
,
false
);
gridLayout
.
marginHeight
=
0
;
gridLayout
.
marginWidth
=
0
;
...
...
@@ -1495,10 +1493,10 @@ public class ComplianceEvaluationTableComposite extends Composite implements IEv
ExpertEvaluationResult
expertEvaluationResult
=
expertEvaluationResultMap
.
get
(
supplier
.
getId
());
if
(
null
!=
expertEvaluationResult
&&
null
!=
expertEvaluationResult
.
getAccessment
())
{
if
(
expertEvaluationResult
.
getAccessment
().
equals
(
EvaluationStepEnum
.
QUALIFIED
))
{
colContent
.
put
(
col
,
EVAL_ACCESSMENT_YES
);
//
colContent.put(col, EVAL_ACCESSMENT_YES);
return
EVAL_ACCESSMENT_YES
;
}
else
if
(
expertEvaluationResult
.
getAccessment
().
equals
(
EvaluationStepEnum
.
UNQUALIFIED
))
{
colContent
.
put
(
col
,
EVAL_ACCESSMENT_NO
);
//
colContent.put(col, EVAL_ACCESSMENT_NO);
return
EVAL_ACCESSMENT_NO
;
}
}
...
...
@@ -1770,11 +1768,11 @@ public class ComplianceEvaluationTableComposite extends Composite implements IEv
evalFactorResult
=
supplierEvaluationFactorResultMap
.
get
(
supplier
.
getId
()).
get
(
evaluationFactor
.
getId
());
}
if
(
null
!=
colContent
&&
null
!=
colContent
.
get
(
col
)
&&
StringUtils
.
isNotEmpty
(
colContent
.
get
(
col
).
toString
()))
{
evaluationButton
.
setEnabled
(!
EVAL_ACCESSMENT_YES
.
equals
(
colContent
.
get
(
col
).
toString
()));
//重绘控件,控件刷新具有滞后性
evaluationButton
.
redraw
();
}
//
if(null != colContent && null != colContent.get(col) && StringUtils.isNotEmpty(colContent.get(col).toString())) {
//
evaluationButton.setEnabled(!EVAL_ACCESSMENT_YES.equals(colContent.get(col).toString()));
//
//重绘控件,控件刷新具有滞后性
//
evaluationButton.redraw();
//
}
resultClickEventAction
(
supplier
,
evaluationFactor
,
evalFactorResult
);
return
;
}
...
...
com.gx.obe.common.file/src/com/gx/obe/common/file/utils/ParsingXmlUtils.java
View file @
84357993
...
...
@@ -1170,6 +1170,7 @@ public class ParsingXmlUtils {
param
.
setIncludeHeightAvgDeviationPercent
(
"true"
.
equals
(
dispersionRange
.
elementTextTrim
(
"includeHeightAvgDeviationPercent"
)));
Element
specimenFilterConditionItemListEle
=
dispersionRange
.
element
(
"specimenFilterConditionItemList"
);
if
(
specimenFilterConditionItemListEle
!=
null
)
{
List
<
Element
>
specimenFilterConditionItemEleList
=
specimenFilterConditionItemListEle
.
elements
(
"specimenFilterConditionItem"
);
List
<
SpecimenFilterConditionItem
>
specimenFilterConditionItemList
=
new
ArrayList
<
SpecimenFilterConditionItem
>();
if
(
null
!=
specimenFilterConditionItemEleList
&&
specimenFilterConditionItemEleList
.
size
()
>
0
){
...
...
@@ -1184,6 +1185,8 @@ public class ParsingXmlUtils {
param
.
setSpecimenFilterConditionItemList
(
specimenFilterConditionItemList
);
}
}
}
}
/**
...
...
org.eclipse.swt.core/src/org/eclipse/swt/core/widgets/EDialog.java
View file @
84357993
...
...
@@ -552,33 +552,33 @@ public abstract class EDialog extends Window {
* @author liangyb
* @param shell
*/
public
static
void
addDragSupport
(
final
Shell
shell
)
{
shell
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mouseDown
(
MouseEvent
e
)
{
initialMouseDownPoint
=
new
Point
(
e
.
x
,
e
.
y
);
}
});
shell
.
addMouseMoveListener
(
new
MouseMoveListener
()
{
@Override
public
void
mouseMove
(
MouseEvent
e
)
{
if
(
initialMouseDownPoint
!=
null
)
{
Point
p
=
shell
.
toDisplay
(
e
.
x
,
e
.
y
);
p
.
x
-=
initialMouseDownPoint
.
x
;
p
.
y
-=
initialMouseDownPoint
.
y
;
shell
.
setLocation
(
p
);
}
}
});
shell
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mouseUp
(
MouseEvent
e
)
{
initialMouseDownPoint
=
null
;
}
});
}
//
public static void addDragSupport(final Shell shell) {
//
shell.addMouseListener(new MouseAdapter() {
//
@Override
//
public void mouseDown(MouseEvent e) {
//
initialMouseDownPoint = new Point(e.x, e.y);
//
}
//
});
//
//
shell.addMouseMoveListener(new MouseMoveListener() {
//
@Override
//
public void mouseMove(MouseEvent e) {
//
if (initialMouseDownPoint != null) {
//
Point p = shell.toDisplay(e.x, e.y);
//
p.x -= initialMouseDownPoint.x;
//
p.y -= initialMouseDownPoint.y;
//
shell.setLocation(p);
//
}
//
}
//
});
//
//
shell.addMouseListener(new MouseAdapter() {
//
@Override
//
public void mouseUp(MouseEvent e) {
//
initialMouseDownPoint = null;
//
}
//
});
//
}
/**
* Notifies that this dialog's button with the given id has been pressed.
...
...
org.eclipse.swt.core/src/org/eclipse/swt/core/widgets/ELink.java
View file @
84357993
...
...
@@ -234,11 +234,11 @@ public class ELink extends CLabel {
return
text
;
}
public
void
setEnabled
(
boolean
enabled
){
// if(enabled != this.enabled){
// this.enabled = enabled;
// this.redraw();
// }
if
(
enabled
!=
this
.
enabled
){
this
.
enabled
=
enabled
;
this
.
redraw
();
}
// this.enabled = enabled;
}
public
boolean
getEnabled
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment