凭证相关

This commit is contained in:
xiezhiwen 2019-03-17 18:17:21 +08:00
parent 6b120f6fa5
commit 51d2e3f30b
8 changed files with 97 additions and 5 deletions

View File

@ -0,0 +1,30 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2019-03-17
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/voucher/TAX_CODE_LIST.jsp";
String sTempletNo = "TAX_CODE_INFO";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setColTips("", "");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("TaxId"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,39 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-03-16
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("TAX_CODE");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/voucher/TAX_CODE_INFO.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
debugger;
var sUrl = "/Tenwa/Lease/voucher/TAX_CODE_INFO.jsp";
var TaxId = getItemValue(0,getRow(0),'ID');
if(typeof(TaxId)=="undefined" || TaxId.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'TaxId='+TaxId,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -117,7 +117,8 @@ contract_pk_org=06
#用友连接配置-测试:http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06
#用友连接配置-正式:http://sk.baicgroup.com.cn:80/service/XChangeServlet?account=8&groupcode=06
#IP地址及端口
NC_URL=http://sk.baicgroup.com.cn:80
NC_URL=http://sk.baicgroup.com.cn/
#账套
account=8
#集团编码

View File

@ -0,0 +1,22 @@
package com.tenwa.voucher.CreateVoucherProcess.auxiliaryInfo;
import java.util.HashMap;
import java.util.Map;
import com.amarsoft.are.jbo.JBOTransaction;
import com.tenwa.comm.exception.BusinessException;
import com.tenwa.voucher.service.VoucherJavaParamService;
/**
* ÏÖ½ðÁ÷Á¿ÏîÄ¿
* @author xiezhiwen
*/
public class auxiliaryTaxCode implements VoucherJavaParamService {
public Map<String, String> getJavaParam(JBOTransaction tx,
Map<String, String> param,Map<String,String> subData) throws BusinessException {
Map<String,String>returnValue=new HashMap<String,String>();
String TAX_CODE=param.get("TAX_CODE");
returnValue.put("TAX_CODE",TAX_CODE);
return returnValue;
}
}

View File

@ -240,7 +240,7 @@ public class VoucherToNCforAssistContract implements Job{
* 获取对方post连接
*/
//String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06";
String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode;
String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode;
URL realURL = new URL(url);
HttpURLConnection connection = (HttpURLConnection)realURL.openConnection();
connection.setDoOutput(true);

View File

@ -308,7 +308,7 @@ public class VoucherToNCforCustomer implements Job{
* 获取对方post连接
*/
//String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06";
String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode;
String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode;
URL realURL = new URL(url);
HttpURLConnection connection = (HttpURLConnection)realURL.openConnection();
connection.setDoOutput(true);

View File

@ -385,7 +385,7 @@ public class VoucherToNCforDistributor implements Job{
* 获取对方post连接
*/
//String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06";
String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode;
String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode;
URL realURL = new URL(url);
HttpURLConnection connection = (HttpURLConnection)realURL.openConnection();
connection.setDoOutput(true);

View File

@ -568,7 +568,7 @@ public class VoucherToNCforVoucherPZ implements Job{
* 获取对方post连接
*/
//String url = "http://172.16.0.88:9990/service/XChangeServlet?account=8&groupcode=06";
String url = NC_URL+"/service/XChangeServlet?account="+account+"&groupcode="+groupcode;
String url = NC_URL+"service/XChangeServlet?account="+account+"&groupcode="+groupcode;
URL realURL = new URL(url);
HttpURLConnection connection = (HttpURLConnection)realURL.openConnection();
connection.setDoOutput(true);