回租发票打印
This commit is contained in:
parent
bf57066b88
commit
26200f9c4f
@ -0,0 +1,62 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-08-09
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("InvoiceRentInterestPrint");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.MultiSelect=true;
|
||||
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,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
{"true","","Button","申请开票","申请开票","ApplyInvoice()","","","","btn_icon_add",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function ApplyInvoice(){
|
||||
if(confirm('确实要执行申请操作吗?')){
|
||||
var sParm = getItemValueArray(0,"plan_id");
|
||||
if(typeof(sParm) == "undefined" || sParm.length == 0 )
|
||||
{
|
||||
alert("请选择查询开票数据!");
|
||||
return;
|
||||
}
|
||||
|
||||
var planIds = "";
|
||||
for(var i = 0;i < sParm.length; i++){
|
||||
planIds += sParm[i] +"@";
|
||||
}
|
||||
//alert(planIds);
|
||||
planIds = planIds.substr(0,planIds.length-1);
|
||||
//alert(planIds);
|
||||
spara = "planIds="+planIds+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","selectApplyConfirm",spara);
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
}
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,84 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-09-03
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("InvoiceRentConfirmPrint");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
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,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
|
||||
{"true","","Button","退回","退回","gobackInvoice()","","","","btn_icon_return",""},
|
||||
{"true","","Button","确认提交","确认提交","submitInvoice()","","","","btn_icon_submit",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function submitInvoice(){
|
||||
//debugger;
|
||||
var sParm = getItemValueArray(0,"id");
|
||||
if(typeof(sParm) == "undefined" || sParm.length == 0 )
|
||||
{
|
||||
alert("请选择开票数据!");
|
||||
return;
|
||||
}
|
||||
|
||||
var ids = "";
|
||||
for(var i = 0;i < sParm.length; i++){
|
||||
ids += sParm[i] +"@";
|
||||
}
|
||||
|
||||
ids = ids.substr(0,ids.length-1);
|
||||
|
||||
spara = "ids="+ids+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","invoiceConfirmSubmit",spara);
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
function gobackInvoice(){
|
||||
|
||||
var sParm = getItemValueArray(0,"id");
|
||||
if(typeof(sParm) == "undefined" || sParm.length == 0 )
|
||||
{
|
||||
alert("请选择开票数据!");
|
||||
return;
|
||||
}
|
||||
|
||||
var ids = "";
|
||||
for(var i = 0;i < sParm.length; i++){
|
||||
if(ids.length == 0){
|
||||
ids += sParm[i] +"@";
|
||||
}else{
|
||||
ids += sParm[i] +"@";
|
||||
}
|
||||
}
|
||||
spara = "ids="+ids+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.rentPlanInvoiceManager","backInvoice",spara);
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,96 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-08-06
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("InvoiceConfirmPrintList");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.MultiSelect=true;
|
||||
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","查询","查询","selectInvoice()","","","","",""},
|
||||
{"true","","Button","发票打印申请","发票打印申请","printInvoice()","","","","",""},
|
||||
//{"true","","Button","批量下载","批量下载","lotdown()","","","","btn_icon_transfer",""},
|
||||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function selectInvoice(){
|
||||
var sid = getItemValueArray(0,"sid");
|
||||
if(typeof(sid) == "undefined" || sid.length == 0 )
|
||||
{
|
||||
alert("请选择查询数据!");
|
||||
return;
|
||||
}
|
||||
//alert(sid);
|
||||
|
||||
var sids = "";
|
||||
for(var i = 0;i < sid.length; i++){
|
||||
|
||||
sids += sid[i] +"@";
|
||||
|
||||
}
|
||||
|
||||
sids = sids.substr(0,sids.length-1);
|
||||
//alert(sids);
|
||||
spara = "sid="+sids+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","selectConfirm",spara);
|
||||
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function printInvoice(){
|
||||
var sid = getItemValueArray(0,"sid");
|
||||
if(typeof(sid) == "undefined" || sid.length == 0 )
|
||||
{
|
||||
alert("请选择查询数据!");
|
||||
return;
|
||||
}
|
||||
//alert(sid);
|
||||
|
||||
var sids = "";
|
||||
for(var i = 0;i < sid.length; i++){
|
||||
|
||||
sids += sid[i] +"@";
|
||||
|
||||
}
|
||||
|
||||
sids = sids.substr(0,sids.length-1);
|
||||
//alert(sids);
|
||||
spara = "sid="+sids+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","printInvoice",spara);
|
||||
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Core/InvoiceManager/ConfirmInvoice/InvoiceConfirmDetailList.jsp";
|
||||
|
||||
var sPara = getItemValue(0,getRow(0),'ID');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'invoice_confirm_id=' +sPara ,'_self','');
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,65 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2018-09-27
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
ASObjectModel doTemp = new ASObjectModel("InvoicePrintResultListBack");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.MultiSelect = true; //多选
|
||||
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","打印","打印","print()","","","","",""},
|
||||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function print(){
|
||||
var newSid = getItemValueArray(0,"new_sid");
|
||||
if(typeof(newSid) == "undefined" || newSid.length == 0 )
|
||||
{
|
||||
alert("请选择打印数据!");
|
||||
return;
|
||||
}
|
||||
alert(newSid);
|
||||
|
||||
var newSids = "";
|
||||
for(var i = 0;i < newSid.length; i++){
|
||||
|
||||
newSids += newSid[i] +"@";
|
||||
|
||||
}
|
||||
|
||||
newSids = newSids.substr(0,newSids.length-1);
|
||||
//alert(newSids);
|
||||
spara = "newSids="+newSids+",CurUserID=<%=CurUser.getUserID()%>";
|
||||
|
||||
var returnValue = AsControl.RunJavaMethodTrans("com.tenwa.apzl.invoicemanager.rentplaninvoice.backRentPrintInvoiceManager","print",spara);
|
||||
|
||||
alert(returnValue);
|
||||
reloadSelf();
|
||||
}
|
||||
|
||||
function newRecord(){
|
||||
var sUrl = "";
|
||||
AsControl.OpenView(sUrl,'','_self','');
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "";
|
||||
var sPara = getItemValue(0,getRow(0),'SerialNo');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -3759,7 +3759,7 @@
|
||||
<attribute name="ID" label="标识" type="STRING" length="32"/>
|
||||
<attribute name="ghdwmc" label="购货单位名称" type="STRING" length="32"/>
|
||||
<attribute name="new_sid" label="新sid" type="STRING" length="100"/>
|
||||
<attribute name="fpdm" label="发票代码" type="STRING" length="10"/>
|
||||
<attribute name="fpdm" label="发票代码" type="STRING" length="20"/>
|
||||
<attribute name="fphm" label="发票号码" type="STRING" length="8"/>
|
||||
<attribute name="returncode" label="返回代码" type="STRING" length="8"/>
|
||||
<attribute name="returnmsg" label="返回信息" type="STRING" length="256"/>
|
||||
@ -3778,5 +3778,30 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_INVOICE_RENT_CONFIRM_PRINT" label="" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="标识" type="STRING"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING"/>
|
||||
<attribute name="CONTRACT_NO" label="业务合同号" type="STRING"/>
|
||||
<attribute name="PAYMENT_NUMBER" label="投放编号" type="STRING"/>
|
||||
<attribute name="CUSTOMER_ID" label="客户id" type="STRING"/>
|
||||
<attribute name="customer_name" label="客户名称" type="STRING"/>
|
||||
<attribute name="plan_list" label="计划期次" type="STRING"/>
|
||||
<attribute name="plan_date" label="计划日期" type="STRING"/>
|
||||
<attribute name="plan_money" label="计划金额" type="STRING"/>
|
||||
<attribute name="invoice_money" label="开票金额" type="STRING"/>
|
||||
<attribute name="TAX_TYPE" label="金额类型" type="STRING"/>
|
||||
<attribute name="TAX_REG_CODE" label="纳税人识别号" type="STRING"/>
|
||||
<attribute name="TAX_BANK" label="开户行" type="STRING"/>
|
||||
<attribute name="TAX_ACC" label="开户账号" type="STRING"/>
|
||||
<attribute name="invoice_status" label="状态" type="STRING"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_invoice_rent_confirm_print" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
</jbo>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -579,8 +579,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
|
||||
|
||||
if (confirmResult == null) {
|
||||
BizObject confirmResultNew = confirmResultManager
|
||||
.newObject();
|
||||
BizObject confirmResultNew = confirmResultManager.newObject();
|
||||
confirmResultNew.setAttributeValue("ID", id);
|
||||
confirmResultNew.setAttributeValue("sid", sid);
|
||||
confirmResultNew.setAttributeValue("fplxdm", fplxdm);
|
||||
@ -654,7 +653,6 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
invoiceRentManager.createQuery("update o set INVOICE_STATUS=:invoicestatus where ID=:id ").setParameter("id", invoiceId)
|
||||
.setParameter("invoicestatus", "5").executeUpdate();
|
||||
|
||||
// return "开票申请成功";
|
||||
} else {
|
||||
return returnmsg;
|
||||
}
|
||||
@ -769,6 +767,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
String newSid ="";
|
||||
String invoice_confirm_id = "";
|
||||
String ghdwmc = "";
|
||||
String invoice_type = "direct_rent";
|
||||
for (int i = 0; i < sids.length; i++) {
|
||||
sid = sids[i];
|
||||
|
||||
@ -847,6 +846,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
invoicePrintResult.setAttributeValue("fphm", fphm);
|
||||
invoicePrintResult.setAttributeValue("ghdwmc", ghdwmc);
|
||||
invoicePrintResult.setAttributeValue("new_sid", newSid);
|
||||
invoicePrintResult.setAttributeValue("invoice_type", invoice_type);
|
||||
try {
|
||||
invoicePrintResult = this.initTabeUserInfo(invoicePrintResult);
|
||||
} catch (Exception e) {
|
||||
@ -865,7 +865,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
BizObjectManager invoiceRentManager = JBOFactory.getBizObjectManager(LI_RENT_INVOICE_INFO.CLASS_NAME, tx);
|
||||
invoiceRentManager.createQuery("update o set INVOICE_STATUS=:invoicestatus where ID=:id ")
|
||||
.setParameter("id", invoiceId)
|
||||
.setParameter("invoicestatus", "5").executeUpdate();
|
||||
.setParameter("invoicestatus", "7").executeUpdate();
|
||||
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
@ -928,7 +928,7 @@ public class rentPlanInvoiceDirectManager extends BaseTable{
|
||||
//发票打印请求成功,更新数据插入到li_invoice_print_result
|
||||
invoicePrintResultManager = JBOFactory.getBizObjectManager(LI_INVOICE_PRINT_RESULT.CLASS_NAME, tx);
|
||||
|
||||
invoicePrintResultManager.createQuery("update O set returncode=:returncode,returnmsg=:returnmsg where new_sid=:new_sid")
|
||||
invoicePrintResultManager.createQuery("update O set returncode=:returncode,returnmsg=:returnmsg where new_sid=:new_sid and invoice_type='direct_rent'")
|
||||
.setParameter("returncode", returncode).setParameter("returnmsg", returnmsg)
|
||||
.setParameter("new_sid", newSid).executeUpdate();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user