|
|
@ -50,22 +50,35 @@ public class ZSRM_PUR_INFO_GY107_Action extends BaseBean implements Action, EsbS
|
|
|
|
// String tablename = util.getTablename(wfid);
|
|
|
|
// String tablename = util.getTablename(wfid);
|
|
|
|
String tablename = requestinfo.getRequestManager().getBillTableName();
|
|
|
|
String tablename = requestinfo.getRequestManager().getBillTableName();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
logger_da6b5da2.error(String.valueOf("tablename-" + tablename));
|
|
|
|
logger_da6b5da2.error(String.valueOf("ZSRM_PUR_INFO_GY107_Action-start-" + requestid));
|
|
|
|
logger_da6b5da2.error(String.valueOf("ZSRM_PUR_INFO_GY107_Action-start-" + requestid));
|
|
|
|
String sync = "";
|
|
|
|
String sync = "";
|
|
|
|
|
|
|
|
logger_da6b5da2.error("start" );
|
|
|
|
Property[] aproperty = requestinfo.getMainTableInfo().getProperty();
|
|
|
|
Property[] aproperty = requestinfo.getMainTableInfo().getProperty();
|
|
|
|
|
|
|
|
logger_da6b5da2.error("aproperty----" + Arrays.toString(aproperty));
|
|
|
|
for (int j = 0; j < aproperty.length; j++) {
|
|
|
|
for (int j = 0; j < aproperty.length; j++) {
|
|
|
|
|
|
|
|
logger_da6b5da2.error("aproperty[j].getName()----" + aproperty[j].getName());
|
|
|
|
|
|
|
|
|
|
|
|
String name = aproperty[j].getName().toUpperCase();
|
|
|
|
String name = aproperty[j].getName().toUpperCase();
|
|
|
|
String value = Util.null2String(aproperty[j].getValue());
|
|
|
|
String value = Util.null2String(aproperty[j].getValue());
|
|
|
|
if ("SFXYWHJGXXJL".equals(name)) {
|
|
|
|
if ("SFXYWHJGXXJL".equals(name)) {
|
|
|
|
sync = value;
|
|
|
|
sync = value;
|
|
|
|
|
|
|
|
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable();
|
|
|
|
|
|
|
|
logger_da6b5da2.error("detailtable----" + Arrays.toString(detailtable) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
logger_da6b5da2.error("value----" + value +",sync---"+sync);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ("0".equals(sync)) {
|
|
|
|
if ("0".equals(sync)) {
|
|
|
|
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable();
|
|
|
|
DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable();
|
|
|
|
|
|
|
|
logger_da6b5da2.error("detailtable----" + Arrays.toString(detailtable));
|
|
|
|
DetailTable dtq = detailtable[0];
|
|
|
|
DetailTable dtq = detailtable[0];
|
|
|
|
|
|
|
|
logger_da6b5da2.error("dtq----" + dtq.toString());
|
|
|
|
Row[] sq = dtq.getRow();
|
|
|
|
Row[] sq = dtq.getRow();
|
|
|
|
|
|
|
|
logger_da6b5da2.error("sq----" + Arrays.toString(sq));
|
|
|
|
if (sq.length > 0) {
|
|
|
|
if (sq.length > 0) {
|
|
|
|
String[][] str = new String[sq.length][21];
|
|
|
|
String[][] str = new String[sq.length][21];
|
|
|
|
|
|
|
|
logger_da6b5da2.error("str----" + Arrays.toString(str));
|
|
|
|
|
|
|
|
|
|
|
|
for (int j = 0; j < sq.length; j++) {
|
|
|
|
for (int j = 0; j < sq.length; j++) {
|
|
|
|
Row rq = sq[j];
|
|
|
|
Row rq = sq[j];
|
|
|
|
Cell[] cq = rq.getCell();
|
|
|
|
Cell[] cq = rq.getCell();
|
|
|
|