|
|
|
@ -299,6 +299,7 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
private boolean isLovType(String attrName){
|
|
|
|
|
System.out.println("触发isLovType方法:判断是否是LOV属性~");
|
|
|
|
|
TCComponentListOfValuesType lovType;
|
|
|
|
|
try {
|
|
|
|
|
lovType = (TCComponentListOfValuesType) session.getTypeComponent("ListOfValues");
|
|
|
|
@ -461,13 +462,14 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
impTable.addMouseListener(new MouseAdapter() {
|
|
|
|
|
@Override
|
|
|
|
|
public void mouseClicked(MouseEvent e) {//单机鼠标
|
|
|
|
|
System.out.println("触发单击选中事件~");
|
|
|
|
|
try {
|
|
|
|
|
int row = impTable.getSelectedRow();
|
|
|
|
|
System.out.println("当前选中行:"+row);
|
|
|
|
|
if(row < 0) {
|
|
|
|
|
chooseRow= impTable.getSelectedRow();
|
|
|
|
|
System.out.println("当前选中行:"+chooseRow);
|
|
|
|
|
if(chooseRow < 0) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
targetRevision = revlist.get(row);
|
|
|
|
|
targetRevision = revlist.get(chooseRow);
|
|
|
|
|
if (targetRevision != null) {
|
|
|
|
|
initUi(modelsF, taskF, ruleOpsMapF, colsF);
|
|
|
|
|
}
|
|
|
|
@ -499,11 +501,12 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
remarkBtn.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent arg0) {//修改属性按钮
|
|
|
|
|
System.out.println("触发修改属性事件~");
|
|
|
|
|
try {
|
|
|
|
|
// int row = impTable.getSelectedRow();
|
|
|
|
|
int row = impTable.getSelectedRow();
|
|
|
|
|
System.out.println("当前选中行:"+row);
|
|
|
|
|
if(row < 0) {
|
|
|
|
|
chooseRow = impTable.getSelectedRow();
|
|
|
|
|
System.out.println("当前选中行:"+chooseRow);
|
|
|
|
|
if(chooseRow < 0) {
|
|
|
|
|
MessageBox.post(ProcessAttriChangeDialog.this, "请选择要编辑的行!", "ERROR", MessageBox.ERROR);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -524,7 +527,7 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
//获取列数
|
|
|
|
|
for (int t = 0; t < tableHeaderList.size(); t++){
|
|
|
|
|
if (tableHeaderList.get(t).equals(showAttr)){
|
|
|
|
|
impTable.setValueAt(text, row, t);
|
|
|
|
|
impTable.setValueAt(text, chooseRow, t);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -532,7 +535,7 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TCComponentItemRevision rev = revlist.get(row);
|
|
|
|
|
TCComponentItemRevision rev = revlist.get(chooseRow);
|
|
|
|
|
TCComponentItem item = rev.getItem();
|
|
|
|
|
if(mark[0].equals("item") && item.isCheckedOut()) {
|
|
|
|
|
MessageBox.post(ProcessAttriChangeDialog.this, item+" 已签出,无法修改!", "ERROR", MessageBox.ERROR);
|
|
|
|
@ -581,6 +584,7 @@ public class ProcessAttriChangeDialog extends JDialog {
|
|
|
|
|
exportBtn.addActionListener(new ActionListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void actionPerformed(ActionEvent arg0) {
|
|
|
|
|
System.out.println("触发导出事件~");
|
|
|
|
|
FileInputStream input = null;
|
|
|
|
|
FileOutputStream output = null;
|
|
|
|
|
XSSFWorkbook wb = null;
|
|
|
|
|