apzl_leasing/WebContent/Tenwa/Apzl/FileUpload/LBnotAllMailHndHandoverList.jsp

84 lines
3.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-07-11
Content:
History Log:
*/
ASUser ASuser = CurPage.getUser();
String orgid = ASuser.getOrgID();
ASObjectModel doTemp = new ASObjectModel("LBnotAllMailHndHandoverList");
String PhaseNo = CurPage.getParameter("PhaseNo");
if("0010".equals(PhaseNo)){
// doTemp.setVisible("ALLSTATUS", false);
// doTemp.setVisible("ALLHANDOVERSTATUS", false);
}
if("8006011".equals(orgid)){
doTemp.appendJboWhere(" and O.PROJECT_DEPT=:orgid ");
}else{
doTemp.appendJboWhere(" and O.PROJECT_MANAGE=:orgid ");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.MultiSelect = true; //多选
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("8006011".equals(orgid)?ASuser.getOrgID():ASuser.getUserID());
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","添加到本次邮寄列表","添加到本次邮寄列表","newRecord()","","","","btn_icon_add",""},
{"false","","Button","邮寄详情","邮寄详情","viewAndEdit()","","","","btn_icon_detail",""},
{"false","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "";
var sPara = getItemValueArray(0,'id');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
var selectedRow = getItemValueArray(0,'id');
selectedRow = selectedRow+"";
selectedRow = selectedRow.replace(/,/g,'@');
var sParams = "userid=<%=ASuser.getUserID()%>,contractid="+selectedRow+",flowunid=<%=CurPage.getParameter("ObjectNo")%>,orgid=<%=orgid%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.DocMailAction","addMailList",sParams);
if("success"==sReturnInfo){
alert("成功添加到本次邮寄列表");
reloadSelf();
}else{
alert("系统异常,请联系管理人员!");
reloadSelf();
}
for(var i=0;i<getRowCount(0);i++){
if(getObj(0,i,"ALLSTATUS")!=null&&getObj(0,i,"ALLSTATUS")!="null"&&getItemValue(0,i,'ALLSTATUS')==""){
getObj(0,i,"ALLSTATUS").innerHTML='<a class="box" style={color:#000;text-decoration:underline;}><font color="black">未邮寄</font></a>';
}
if(getObj(0,i,"ALLHANDOVERSTATUS")!=null&&getObj(0,i,"ALLHANDOVERSTATUS")!="null"&&getItemValue(0,i,'ALLHANDOVERSTATUS')==""){
getObj(0,i,"ALLHANDOVERSTATUS").innerHTML='<a class="box" style={color:#000;text-decoration:underline;}><font color="black">未归档</font></a>';
}
}
}
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','');
}
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
if(getObj(0,i,"ALLSTATUS")!=null&&getObj(0,i,"ALLSTATUS")!="null"&&getItemValue(0,i,'ALLSTATUS')==""){
getObj(0,i,"ALLSTATUS").innerHTML='<a class="box" style={color:#000;text-decoration:underline;}><font color="black">未邮寄</font></a>';
}
if(getObj(0,i,"ALLHANDOVERSTATUS")!=null&&getObj(0,i,"ALLHANDOVERSTATUS")!="null"&&getItemValue(0,i,'ALLHANDOVERSTATUS')==""){
getObj(0,i,"ALLHANDOVERSTATUS").innerHTML='<a class="box" style={color:#000;text-decoration:underline;}><font color="black">未归档</font></a>';
}
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>