|
@@ -7,6 +7,7 @@ import java.text.SimpleDateFormat;
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -35,6 +36,11 @@ import nc.vo.pub.lang.UFDateTime;
|
|
import nc.vo.pub.lang.UFDouble;
|
|
import nc.vo.pub.lang.UFDouble;
|
|
import nc.vo.pub.workflownote.WorkflownoteVO;
|
|
import nc.vo.pub.workflownote.WorkflownoteVO;
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * 壇마데
|
|
|
|
+ * @author Yaoyu
|
|
|
|
+ *
|
|
|
|
+ */
|
|
public class PayableBillImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
public class PayableBillImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -44,7 +50,7 @@ public class PayableBillImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
NCLocator.getInstance().lookup(ISecurityTokenCallback.class).token("NCSystem".getBytes(),"pfxx".getBytes());
|
|
NCLocator.getInstance().lookup(ISecurityTokenCallback.class).token("NCSystem".getBytes(),"pfxx".getBytes());
|
|
String createStr = buildJson(req, resp, this.getClass().getName());
|
|
String createStr = buildJson(req, resp, this.getClass().getName());
|
|
JSONObject json = JSON.parseObject(createStr);
|
|
JSONObject json = JSON.parseObject(createStr);
|
|
- NcLog.info(json.toString());
|
|
|
|
|
|
+ NcLog.info("壇마데:"+json.toString());
|
|
billno = json.getString("billno");
|
|
billno = json.getString("billno");
|
|
InvocationInfoProxy.getInstance().setUserDataSource("NC6337");
|
|
InvocationInfoProxy.getInstance().setUserDataSource("NC6337");
|
|
GetDataUtil.getBillno(billno);
|
|
GetDataUtil.getBillno(billno);
|
|
@@ -344,6 +350,27 @@ public class PayableBillImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
payableBillItemVO.setTop_itemid("".equals(invoiceno) ? null : invoiceItemVO.getPk_invoice_b());
|
|
payableBillItemVO.setTop_itemid("".equals(invoiceno) ? null : invoiceItemVO.getPk_invoice_b());
|
|
//�꿔슥弄잚謹
|
|
//�꿔슥弄잚謹
|
|
payableBillItemVO.setTop_tradetype(item.getString("top_tradetype"));
|
|
payableBillItemVO.setTop_tradetype(item.getString("top_tradetype"));
|
|
|
|
+ //북谿뵀
|
|
|
|
+ payableBillItemVO.setContractno(item.getString("contractno"));
|
|
|
|
+ //땐데뵀
|
|
|
|
+ payableBillItemVO.setPurchaseorder(item.getString("purchaseorder"));
|
|
|
|
+ //都庫데앴뵀
|
|
|
|
+ String vfirstcode = item.getString("vfirstcode");
|
|
|
|
+ if(!"".equals(vfirstcode)) {
|
|
|
|
+ //都庫데앴잚謹
|
|
|
|
+ String src_billtype = item.getString("src_billtype");
|
|
|
|
+ //都庫데앴契뵀
|
|
|
|
+ String vfirstrowno = item.getString("vfirstrowno");
|
|
|
|
+ Map<String,String> map = GetDataUtil.getDataMap(src_billtype, vfirstcode, vfirstrowno);
|
|
|
|
+ //都庫데앴寮숩
|
|
|
|
+ payableBillItemVO.setSrc_billid(map.get("pk_id"));
|
|
|
|
+ //都庫데앴契寮숩
|
|
|
|
+ payableBillItemVO.setSrc_itemid(map.get("pk_id_b"));
|
|
|
|
+ //都庫데앴잚謹
|
|
|
|
+ payableBillItemVO.setSrc_billtype(src_billtype);
|
|
|
|
+ //都庫슥弄잚謹
|
|
|
|
+ payableBillItemVO.setSrc_tradetype(GetDataUtil.getBilltypePK(item.getString("src_tradetype"), pk_group));
|
|
|
|
+ }
|
|
//뭔饋잚謹
|
|
//뭔饋잚謹
|
|
payableBillItemVO.setBuysellflag(Integer.parseInt(item.getString("buysellflag")));
|
|
payableBillItemVO.setBuysellflag(Integer.parseInt(item.getString("buysellflag")));
|
|
//왱江잚깎
|
|
//왱江잚깎
|
|
@@ -437,7 +464,7 @@ public class PayableBillImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
e.printStackTrace(new PrintWriter(stringWriter));
|
|
e.printStackTrace(new PrintWriter(stringWriter));
|
|
//삿혤圈玖斤口
|
|
//삿혤圈玖斤口
|
|
String msg=stringWriter.getBuffer().toString();
|
|
String msg=stringWriter.getBuffer().toString();
|
|
- NcLog.info(msg);
|
|
|
|
|
|
+ NcLog.info("壇마데:"+msg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|