master
郭宇航 4 years ago
parent 66926b393c
commit 2678a332f2

@ -92,7 +92,7 @@
</classpathentry>
<classpathentry kind="lib" path="lib/org.eclipse.osgi.services.nl_12000.2.0.jar"/>
<classpathentry kind="lib" path="lib/org.eclipse.osgi.services_3.7.100.v20180827-1536.jar"/>
<classpathentry kind="lib" path="lib/cn.com.origin.autocode_1.0.0.jar"/>
<classpathentry kind="lib" path="lib/cn.com.origin.autocodemanager_1.0.0.jar"/>
<classpathentry kind="lib" path="lib/cn.com.origin.autocode_1.0.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

@ -458,12 +458,10 @@ public class Dfl003AIFDialog extends AbstractAIFDialog {
} else {
MessageBox.post("名称、来源码、分群码不能为空!", "提示", MessageBox.INFORMATION);
}
if(itemName.contains("\\")) {
MessageBox.post("名称中不能含有反斜杠!", "提示", MessageBox.INFORMATION);
return;
}
} else {
MessageBox.post("请选择创建类型!", "提示", MessageBox.INFORMATION);
}
@ -569,6 +567,21 @@ public class Dfl003AIFDialog extends AbstractAIFDialog {
System.out.println("输入的旧品号-----"+oldId2);
rev.setStringProperty("t2_OldId", oldId2);
}
if(material.contains("\\")) {
MessageBox.post("材质中不能含有反斜杠!" ,"提示",
MessageBox.INFORMATION);
return ;
}
if(weight.contains("\\")) {
MessageBox.post("重量中不能含有反斜杠!" ,"提示",
MessageBox.INFORMATION);
return ;
}
if(Specifications.contains("\\")) {
MessageBox.post("规格中不能含有反斜杠!" ,"提示",
MessageBox.INFORMATION);
return ;
}
if(material != null && material != "" && material != " " ) {
rev.setStringProperty("t2_material", material);
}

@ -45,7 +45,8 @@ public class CreateChangeOrderDialog extends AbstractAIFDialog{
//判断是否为变更申请单
final TCComponent itemR = (TCComponent)targetComponents[0];
if(!itemR.getTypeComponent().toString().equals("T2_ECRRevision")) {
System.out.println(itemR.getTypeComponent());
//System.out.println(itemR.getTypeComponent());
MessageBox.post("创建失败,请选择变更申请单版本进行创建!", "提示信息",MessageBox.INFORMATION);
}else {

@ -460,7 +460,7 @@ public class CreateProblemSpotDialog extends AbstractAIFDialog {
String type = selCodeBean.getType();
TCComponentItemType tctype = (TCComponentItemType) session.getTypeComponent(type);
String newsid=id_field.getText();
System.out.println(tctype);
//System.out.println(tctype);
TCComponentItem find = tctype.find(newsid);
if (find != null) {
MessageBox.post("当前流水ID:" + newsid + "已存在对象,无法创建!", "错误",

File diff suppressed because it is too large Load Diff

@ -134,7 +134,7 @@ public class Dfl042Dialog extends AbstractAIFDialog {
// public void mouseClicked(MouseEvent e){
// if(e.getButton() == MouseEvent.BUTTON3){
// // tableRow = qryTable.rowAtPoint(e.getPoint());
// tableRow = qryTable.getSelectedRow();
// tableRow = .getSelectedRow();
// qryTable.setRowSelectionInterval(tableRow, tableRow);
// int indexRow = qryTable.convertRowIndexToModel(tableRow);
// System.out.println("indexRow=============="+indexRow);

@ -221,7 +221,6 @@ public class Dfl044Dialog extends AbstractAIFDialog {
}
}
sql2 = sb.toString();
System.out.println("sql===================="+sql2);
Stock = getRecords(sql2);
@ -238,9 +237,9 @@ public class Dfl044Dialog extends AbstractAIFDialog {
System.out.println("11.05选择的下拉值单价======="+Select);
if(!("".equals(userid.trim()))) {
if("".equals(Select) || " ".equals(Select) || "null".equals(Select)) {
numsSb.append(zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02=ccc03 where ccc01='"+userid+"'");
numsSb.append(zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02-1=ccc03 where ccc01='"+userid+"'");
}else {
numsSb.append(zhangtao1 + ".ccc_file inner join "+zhangtao1+".ccz_file on ccz01=ccc02 and ccz02=ccc03 where ccc01='"+userid+"'");
numsSb.append(zhangtao1 + ".ccc_file inner join "+zhangtao1+".ccz_file on ccz01=ccc02 and ccz02-1=ccc03 where ccc01='"+userid+"'");
}
}
String numsSql = numsSb.toString();

@ -18,6 +18,7 @@ import java.util.stream.Collectors;
import javax.swing.JComboBox;
import org.apache.commons.lang.ObjectUtils.Null;
import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
import org.apache.poi.xssf.usermodel.XSSFRow;
@ -93,14 +94,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
}
TCComponentDataset excel = (TCComponentDataset) session.stringToComponent(puid);
File file = ((TCComponentDataset)excel).getTcFiles()[0].getFmsFile();
SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");// 设置日期格式
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");// 设置日期格式
SimpleDateFormat mmdf = new SimpleDateFormat("yyyyMMddHHmm");// 设置命名日期格式
Date startDate = df.parse(Starttime);
Date endDate = df.parse(Endtime);
String starttime = df.format(startDate);
String mmstart = mmdf.format(mmdf.parse(Starttime)) ;
String endtime = df.format(endDate);
String mmend = mmdf.format(mmdf.parse(Endtime)) ;
System.out.println("11.12start====="+Starttime+"======end======"+Endtime);
String[] keys = new String[] {"创建日期晚于","创建日期早于"};
String[] values = new String[] {Starttime,Endtime};
System.out.println("11.12start====="+starttime+"======end======"+endtime);
String[] keys = new String[] {"创建日期晚于","创建日期早于","任务状态不等于"};
String[] values = new String[] {Starttime,Endtime,"32"};
List<TCComponent> compList = queryObject("东富龙-查找已发起的流程", keys, values);
pathRoute = pathRoute + File.separator + "流程报表【"+starttime+"】-【"+endtime+"】.xlsx";
@ -320,16 +325,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -400,17 +407,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -499,7 +507,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = makeList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -523,7 +531,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = examineList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -547,7 +555,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = approvalList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -682,16 +690,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -761,16 +771,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -850,7 +862,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
for (int k=0 ;k<makeList.size();k++) {
List<String> beanList1 = makeList.get(k);
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
if(row2 == null){
@ -868,7 +880,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
for (int k=0 ;k<examineList.size();k++) {
List<String> beanList1 = examineList.get(k);
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -892,7 +904,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = approvalList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -1024,16 +1036,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -1103,19 +1117,20 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
String fnd0StartDate = comp.getProperty("fnd0StartDate");
taskList.add(fnd0StartDate);
@ -1183,16 +1198,18 @@ public class Dfl045Operation extends AbstractAIFOperation{
//String task_type = comp.getStringProperty("task_type");
taskList.add(task_name);
//责任人
String resp_party = comp.getProperty("fnd0Performer");
// System.out.println("11.12resp_party======"+resp_party);
taskList.add(resp_party);
//责任部门
String resp_party = null;
//责任部门valid_signoffs
String group = comp.getProperty("awp0Reviewers");
//System.out.println("11.19处理前========="+group);
if("".equals(group)) {
taskList.add(resp_party);
taskList.add(group);
}else {
String[] ss = group.split("/");
group = ss[0];
resp_party = ss[2];
taskList.add(resp_party);
taskList.add(group);
}
//开始时间
@ -1280,7 +1297,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = makeList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -1304,7 +1321,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = examineList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -1328,7 +1345,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = approvalList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -1352,7 +1369,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
//将单个的string集合给到beanlist1
List<String> beanList1 = wukonglList.get(k);
//System.out.println("11.16--beanList1.size====="+beanList1.size());
for(int l = 5 , m = 0 ; l<beanList1.size()+5 ; l++ , m++ ) {
for(int l = 4 , m = 0 ; l<beanList1.size()+4 ; l++ , m++ ) {
//System.out.println("int-l-11.17========"+l);
XSSFRow row2 = sheet.getRow(o);
XSSFCell excelCell2 = null;
@ -1389,18 +1406,19 @@ public class Dfl045Operation extends AbstractAIFOperation{
List<String> userList = new ArrayList<String>();
List<List> newList = new ArrayList<List>();
for(int i=0;i<oneList.size();i++) {
double zongshu = 1;
double yuqishu = 0;
double yuqilv = 0;
for(int i=0;i<oneList.size();i++) {
List<String> array = new ArrayList<String>();
List<String> Overdue = new ArrayList<String>();
array = oneList.get(i);
String user = array.get(0);
System.out.println("11.22user==========="+user);
System.out.println("11.24======array==========="+array);
//定义和赋值集合中的元素
String group = array.get(1);
String rate = array.get(2);
@ -1419,7 +1437,7 @@ public class Dfl045Operation extends AbstractAIFOperation{
Overdue.add(zongString);
Overdue.add(yuqiString);
Overdue.add(yuqilvString+"%");
//判断是否有重复的用户
boolean a = userList.contains(user);
//System.out.println("11.22===a========="+a);
if(a==true) {
@ -1442,12 +1460,14 @@ public class Dfl045Operation extends AbstractAIFOperation{
yuanyuqishu++;
yuqiString = String.valueOf(yuanyuqishu);
System.out.println("11.22=====yuqiString======"+yuqiString);
beanList2.set(3, zongString);
beanList2.set(3, yuqiString);
list.set(j, beanList2);
}
//计算逾期率
System.out.println("11.24=====yuqishu"+beanList2.get(3));
zongshu = Double.valueOf(beanList2.get(2));
yuqishu = Double.valueOf(beanList2.get(3));
yuqilv = yuqishu/zongshu*100;
yuqilvString = String.valueOf(yuqilv)+"%";
beanList2.set(4, yuqilvString);
@ -1459,13 +1479,13 @@ public class Dfl045Operation extends AbstractAIFOperation{
}else //如果不是就正常添加
{
userList.add(user);
//System.out.println("11.22====list======="+list);
//System.out.println("11.24====Overdue======="+Overdue);
list.add(Overdue);
}
}
System.out.println("11.22userlist==========="+userList);
System.out.println("11.22====list====="+list);
// System.out.println("11.22userlist==========="+userList);
// System.out.println("11.22====list====="+list);
for(int k=0;k<list.size();k++) {
List<String> Overdue1 = new ArrayList<String>();
Overdue1 = list.get(k);

@ -97,7 +97,6 @@ public class test extends AbstractAIFOperation {
if(names[names.length-2].equals(zts[0])) {
this.zhangtao = zts[1];
System.out.println("11.04ÕËÌ×======"+zhangtao);
break;
}
}
@ -867,7 +866,7 @@ public class test extends AbstractAIFOperation {
private String getPrice () {
String price = null;
String sql = null;
sql = "select ccc23a from " +zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02=ccc03 where ccc01='"+item_id1+"'";
sql = "select ccc23a from " +zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02-1=ccc03 where ccc01='"+item_id1+"'";
System.out.println("sql======"+sql);
try {
price = data.getRecord(sql);

@ -765,8 +765,8 @@ public class test extends AbstractAIFOperation {
item_id1 = rev.getStringProperty("item_id");
rev_id1 = rev.getStringProperty("item_revision_id");
name1 = rev.getStringProperty("object_name");
price1 = getPrice();
total1 = getTotal(design_num1,price1);
// price1 = getPrice();
// total1 = getTotal(design_num1,price1);
if("T2_outsourceRevision".equals(type)) {
xuhao1 = num ;
String classID = item_id1.substring(0, 2);
@ -864,38 +864,38 @@ public class test extends AbstractAIFOperation {
}
}
private String getPrice () {
String price = null;
String sql = null;
sql = "select ccc23a from " +zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02=ccc03 where ccc01='"+item_id1+"'";
System.out.println("sql======"+sql);
try {
price = data.getRecord(sql);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("11.08==price=="+price);
if(price == null ) {
price ="";
}
return price;
}
private String getTotal(String quantity,String price) {
// TODO Auto-generated method stub
if("".equals(price)||" ".equals(price)||"null".equals(price)) {
price = "0";
}
String total;
double amount = Double.valueOf(quantity).doubleValue();
double tariff = Double.valueOf(price).doubleValue();
double product = amount * tariff ;
total = ""+product;
System.out.println("11.08==×ܼÛ====="+total);
return total;
}
// private String getPrice () {
// String price = null;
// String sql = null;
// sql = "select ccc23a from " +zhangtao + ".ccc_file inner join "+zhangtao+".ccz_file on ccz01=ccc02 and ccz02=ccc03 where ccc01='"+item_id1+"'";
// System.out.println("sql======"+sql);
// try {
// price = data.getRecord(sql);
// } catch (Exception e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
// System.out.println("11.08==price=="+price);
// if(price == null ) {
// price ="";
// }
// return price;
// }
//
// private String getTotal(String quantity,String price) {
// // TODO Auto-generated method stub
// if("".equals(price)||" ".equals(price)||"null".equals(price)) {
// price = "0";
// }
// String total;
// double amount = Double.valueOf(quantity).doubleValue();
// double tariff = Double.valueOf(price).doubleValue();
// double product = amount * tariff ;
//
// total = ""+product;
// System.out.println("11.08==×ܼÛ====="+total);
// return total;
// }
//Æ¥Åä·ÖȺÂë
private void getgroup() {
if("F10".equals(group1)) {

Loading…
Cancel
Save