新增表和短信分渠道发送新功能

This commit is contained in:
zhangjun 2019-11-23 18:25:16 +08:00
parent af2be81715
commit 35024edddb
4 changed files with 173 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<%@page import="com.itextpdf.text.log.SysoCounter"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageList.jsp";
String sTempletNo = "SendTextMmessageInfo";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "0";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
String sButtons[][] = {
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function goBack(){
parent.AsDialog.ClosePage();
}
function saveRecord(sPostEvents) {
as_save("myiframe0", "goBack()");
}
// 选择渠道商;
function selectdistributor(){
AsDialog.OpenSelector("SelectDealers","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
sReturn = sReturn.split("@");//"@"表示了向页面添加数据时的连续性
//setItemValue(0,getRow(),"OA_ID",sReturn[0]);//向页面的框中添加数据
setItemValue(0,getRow(),"channel_name",sReturn[0]);
setItemValue(0,getRow(),"channel_no",sReturn[1]);
},"请选择渠道商");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,46 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
String PG_TITLE = "短信发送"; // 浏览器窗口标题 <title> PG_TITLE </title>
ASObjectModel doTemp = new ASObjectModel("SendTextMmessageList");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
//dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(30);
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增信息");
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/LSendTextMmessageInfo.jsp";
var sPara = getItemValue(0,getRow(0),'ID');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
function deleteRecord(){
var ownNumber = getItemValue(0,getRow(),'channel_name');
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
alert("请选择一条信息!");
return ;
}
if(confirm('确实要删除吗?')){
as_delete(0);
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -3284,5 +3284,84 @@
</class> </class>
<class name="DISTRIBUTOR_INFORMATION" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="标识" type="STRING" length="32"/>
<attribute name="distributor_name" label="经销商名称" type="STRING" length="100"/>
<attribute name="loan_limit" label="贷款额度" type="STRING" length="50"/>
<attribute name="principal_balance" label="本金余额" type="STRING" length="50"/>
<attribute name="unpaid_amount" label="未付款金额" type="STRING" length="50"/>
<attribute name="surplus_limit" label="剩余额度" type="STRING" length="50"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="32"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="32"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="distributor_information" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LPOUNDAGE_MAINTENANCE" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="标识" type="STRING" length="32"/>
<attribute name="validity_date" label="有效期" type="STRING" length="50"/>
<attribute name="subject" label="主体" type="STRING" length="50"/>
<attribute name="charge_channel" label="扣款渠道" type="STRING" length="50"/>
<attribute name="charge_way" label="扣款方式" type="STRING" length="50"/>
<attribute name="rate" label="费率" type="STRING" length="50"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="32"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="32"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lpoundage_maintenance" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="SEND_TEXT_MMESSAGE" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="标识" type="STRING" length="32"/>
<attribute name="channel_name" label="渠道名称" type="STRING" length="50"/>
<attribute name="channel_no" label="渠道编号" type="STRING" length="32"/>
<attribute name="inputuserid" label="登记人" type="STRING" length="32"/>
<attribute name="inputorgid" label="登记部门" type="STRING" length="32"/>
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
<attribute name="updateorgid" label="更新部门" type="STRING" length="32"/>
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="send_text_mmessage" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="VI_DISTRIBUTOR_INFO" label="经销商信息页签" keyAttributes="">
<attributes>
<attribute name="DISTRIBUTOR_NO" label="经销商编号" type="STRING"/>
<attribute name="DISTRIBUTOR_NAME" label="经销商名称" type="STRING"/>
<attribute name="TOTAL" label="贷款额度" type="STRING"/>
<attribute name="CORPUS" label="本金余额" type="STRING"/>
<attribute name="CLEAN_LEASE_MONEY" label="业务申请审批通过且未付款金额" type="STRING"/>
<attribute name="surplus_sum" label="剩余额度" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_distributor_info" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package> </package>
</jbo> </jbo>

View File

@ -5115,6 +5115,10 @@
<attribute name="id" label="标识" type="STRING" length="32"/> <attribute name="id" label="标识" type="STRING" length="32"/>
<attribute name="stype" label="主体类型" type="STRING" length="32"/> <attribute name="stype" label="主体类型" type="STRING" length="32"/>
<attribute name="subject_name" label="主体名称" type="STRING" length="200"/> <attribute name="subject_name" label="主体名称" type="STRING" length="200"/>
<attribute name="acc_name" label="银行账户" type="STRING" length="200"/>
<attribute name="acc_number" label="银行账号" type="STRING" length="200"/>
<attribute name="branch_title" label="开户分行" type="STRING" length="200"/>
<attribute name="BANK_NAME" label="银行名称" type="STRING" length="200"/>
<attribute name="start_time" label="开始时间" type="STRING" length="32"/> <attribute name="start_time" label="开始时间" type="STRING" length="32"/>
<attribute name="end_time" label="截止时间" type="STRING" length="32"/> <attribute name="end_time" label="截止时间" type="STRING" length="32"/>
<attribute name="is_enable" label="是否启用" type="STRING" length="2"/> <attribute name="is_enable" label="是否启用" type="STRING" length="2"/>