注意:以下还包含一些DWZ的应用。
< form id= "pagerForm" method= "post" action= "index.php?action=FV_Outlay" >
< input type= "hidden" name= "pageNum" value= "1" />
< input type= "hidden" name= "numPerPage" value= "<!--{$numPerPage}-->" />
< input type= "hidden" name= "orderField" value= "<!--{$orderField}-->" />
< input type= "hidden" name= "orderDirection" value= "<!--{$orderDirection}-->" />
< input type= "hidden" name= "cPeriod" value= "<!--{$cPeriod}-->" />
< input type= "hidden" name= "cTypeName" value= "<!--{$cTypeName}-->" />
< input type= "hidden" name= "cItemName" value= "<!--{$cItemName}-->" />
</ form >
< div class= "page" >
< div class= "pageHeader" >
< form οnsubmit= " return navTabSearch( this ); " action= "index.php?action=FV_Outlay" method= "post" >
< div class= "searchBar" >
< table class= "searchContent" >
< tr >
< td >
单据编号: < input type= "text" name= "cONumber" Value = "<!--{$cONumber}-->" size= "16" />
</ td >
< td >
预算期间: < input type= "text" name= "cPeriod" Value = "<!--{$cPeriod}-->" size= "16" />
</ td >
< td >
业务类型: < input type= "text" name= "cTypeName" Value = "<!--{$cTypeName}-->" size= "16" />
</ td >
< td >
预算项目机构: < input type= "text" name= "cItemName" Value = "<!--{$cItemName}-->" size= "16" />
</ td >
< td >
预算科目: < input type= "text" name= "cCostName" Value = "<!--{$cCostName}-->" size= "16" />
</ td >
< tr >
< td >
填单人: < input type= "text" name= "cMaker" Value = "<!--{$cMaker}-->" size= "18" />
</ td >
< td >
单据日期: < input type= "text" name= "dBillDate" Value = "<!--{$dBillDate}-->" size= "16" />
</ td >
< td >
用途: < input type= "text" name= "cUse" Value = "<!--{$cUse}-->" size= "20" />
</ td >
< td >
报销金额: < input type= "text" name= "cMoneyStart" Value = "<!--{$cMoneyStart}-->" size= "20" /> ---< input type= "text" name= "cMoneyEnd" Value = "<!--{$cMoneyEnd}-->" size= "20" />
</ td >
< td >
单据状态: < select name= "selStatus" style= "" >
< option >请选择 </ option >
< option name= "selStatus" value= "all" <!--{ if ($selStatus == '全部') }--> selected="selected" <!--{/if}--> >全部 </ option >
< option name= "selStatus" value= "noExamine" <!--{ if ($selStatus == '未审核') }--> selected="selected" <!--{/if}--> >未审核 </ option >
< option name= "selStatus" value= "Examine" <!--{ if ($selStatus == '已审核') }--> selected="selected" <!--{/if}--> >已审核 </ option >
< option name= "selStatus" value= "zhidan" <!--{ if ($numPerPage == '已制单') }--> selected="selected" <!--{/if}--> >已制单 </ option >
</ select >
</ td >
< td >
年度: < select name= "cYear" style= " width : 80 px ; height : 21 px ; " >
<!--{foreach from=$years item=row}-->
< option value= "<!--{$row}-->" <!--{ if $row eq $searchYear } selected="selected" {/if}--> > <!--{$row}--> </ option >
<!--{/foreach}-->
</ select >
</ td >
< td >
< div class= "buttonActive" >< div class= "buttonContent" >< button type= "submit" >检索 </ button ></ div ></ div >
</ td >
</ tr >
</ table >
</ div >
</ form >
</ div >
< div class= "pageContent" >
< div class= "panelBar" >
< ul class= "toolBar" >
< li >< a class= "show" href= "?action=FV_Outlay&do=show&id={id}" target= "navTab" rel= "FV_Outlay_show" title= "查看单项目经费核销单" >< span >明细 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=new" target= "navTab" rel= "FV_Outlay_new" title= "新增单项目经费核销单" >< span >添加 </ span ></ a ></ li >
< li >< a class= "edit" href= "?action=FV_Outlay&do=edit&id={id}" target= "navTab" rel= "FV_Outlay_edit" title= "修改单项目经费核销单" >< span >修改 </ span ></ a ></ li >
< li >< a class= "delete" href= "?action=FV_Outlay&do=del&id={id}" target= "ajaxTodo" title= "确定要删除吗?" >< span > 删除</ span ></ a ></ li >
< li class= "line" >line </ li >
< li style= " display : none ; " >< a class= "add" href= "?action=FV_Outlay&do=simpCheckBud&id={id}&username=<!--{$smarty.session.username}-->" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "超预算审核单项目经费核销单" >< span >超预算审核 </ span ></ a ></ li >
< li style= " display : none ; " >< a class= "delete" href= "?action=FV_Outlay&do=simpCheckBudNo&id={id}" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "超预算弃审单项目经费核销单" >< span >超预算弃审 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=simpCheck&id={id}&username=<!--{$smarty.session.username}-->" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "审核单项目经费核销单" >< span >审核 </ span ></ a ></ li >
< li >< a class= "delete" id= "QiShen" οnclick= " getNum() " href= "?action=FV_Outlay&do=simpCheckNo&id={id}"
target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "弃审单项目核销单" >< span >弃审 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "icon" href= "?action=FB_Outlay&do=ImpXls" target= "navTab" rel= "FB_Outlay_ImpXls" title= "导入核销单" >< span >导入XLS数据 </ span ></ a ></ li >
< li >< a class= "icon" href= "?action=FV_Outlay&do=Export" target= "dwzExport" title= "导出全部XLS" >< span > 导出XLS</ span ></ a ></ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=printShow&id={id}" target= "navTab" rel= "FV_Outlay_printShow" title= "核销单打印预览" >< span > 打印预览</ span ></ a ></ li >
< li >< a class= "icon" href= "javascript:$. printBox ('print_list_FV_Outlay')" >< span >打印 </ span ></ a ></ li >
< form οnsubmit= " return iframeCallback( this ); " action= "?action=FV_Outlay&do=insertExcel" target= "navTab" rel= "FV_Outlay_sc" enctype= "multipart/form-data" method= "post" id= "uploadExcel" name= "uploadExcel" class= "pageForm required-validate home_icon" >
上传excel:
< input type= "hidden" name= "leadExcel" value= "true" />
< input type= "file" name= "upExcel" id= "upExcel" />
< input type= "submit" value= "导入" />
</ form >
</ ul >
</ div >
< table id= "print_list_FV_Outlay" class= "list" layouth= "134" style= " width : 2000 px ; " >
< thead >
< tr >
< th hidden width= "60" align= "center" >是否生成凭证 </ th >
< th width= "60" align= "center" >凭证号</ th >
< th width= "60" align= "center" >单据编号</ th >
< th width= "60" align= "center" >单据日期</ th >
< th width= "60" align= "center" >期间</ th >
< th width= "200" align= "center" >业务类型</ th >
< th width= "200" align= "center" >预算项目机构 </ th >
< th width= "60" align= "center" >项目</ th >
< th width= "60" align= "center" >经办人</ th >
< th width= "120" align= "center" >用途</ th >
< th width= "60" align= "center" >填报人</ th >
< th width= "60" align= "center" >审核人</ th >
< th width= "60" align= "center" >付款人</ th >
< th width= "60" align= "center" >制单人</ th >
< th width= "60" align= "center" >超预算审批 </ th >
< th width= "60" align= "center" >预算科目</ th >
< th width= "60" align= "center" >收支项目</ th >
< th width= "60" align= "center" >受益部门</ th >
< th width= "60" align= "center" >报销金额</ th >
< th width= "50" align= "center" >年度</ th >
</ tr >
</ thead >
< tbody >
<!--{foreach from=$list item=row}-->
< tr class= "aa" target= "id" rel= "<!--{$row.iMID}-->" >
< td hidden > <!--{$row.isMake}--> </ td >
< td class= "ino_id" > <!--{$row.ino_id}--> </ td >
< td class= "cONumber" > <!--{$row.cONumber}--> </ td >
< td > <!--{$row.dBillDate}--> </ td >
< td > <!--{$row.cPeriod}--> </ td >
< td > <!--{$row.cTypeName}--> </ td >
< td > <!--{$row.cItemName}--> </ td >
< td > <!--{$row.project}--> </ td >
< td > <!--{$row.cAgentUser}--> </ td >
< td > <!--{$row.cUse}--> </ td >
< td > <!--{$row.cMaker}--> </ td >
< td > <!--{$row.cCheckerMaker}--> </ td >
< td > <!--{$row.cTellerUser}--> </ td >
< td > <!--{$row.cTellerUser}--> </ td >
< td > <!--{$row.cCheckerMakerBu}--> </ td >
< td > <!--{$row.cCostName}--> </ td >
< td > <!--{$row.cIoitemName}--> </ td >
< td > <!--{$row.cDepName}--> </ td >
< td > <!--{$row.cMoney}--> </ td >
< td > <!--{$row.cYear}--> </ td >
</ tr >
<!--{/foreach}-->
</ tbody >
</ table >
< script >
$(document). ready ( function (){
$( "#print_list_FV_Outlay td" ). css ({ "border" : "1px solid #99FFFF" , "font-size" : "12px" });
$( "#print_list_FV_Outlay th" ). css ({ "border" : "1px solid #99FFFF" , "font-size" : "12px" });
//$("#print_list_FV_PeriodBudget tr").css({"border":"1px solid #99FFFF"});
});
</ script >
< div class= "panelBar" >
< div class= "pages" >
< span > 每页</ span >
< select name= "numPerPage" οnchange= " navTabPageBreak({ numPerPage : this . value }) " >
< option value= "10" <!--{ if ($numPerPage == 10) }--> selected="selected" <!--{/if}--> >10 </ option >
< option value= "20" <!--{ if ($numPerPage == 20) }--> selected="selected" <!--{/if}--> >20 </ option >
< option value= "50" <!--{ if ($numPerPage == 50) }--> selected="selected" <!--{/if}--> >50 </ option >
< option value= "100" <!--{ if ($numPerPage == 100) }--> selected="selected" <!--{/if}--> >100 </ option >
</ select >
< span > 条,共{$total}条{$PerPage}</ span >
</ div >
< div class= "pagination" targetType= "navTab" totalCount= "<!--{$total}-->" numPerPage= "<!--{$numPerPage}-->" pageNumShown= "<!--{$pageTotal}-->" currentPage= "<!--{$pageNum}-->" ></ div >
</ div >
</ div >
</ div >
< script type= "text/javascript" >
function xxxAjaxDone(json){
var trId = json.callParentId;
// $('#'+trId).find("#attachment").attr('value', json.attUrl );
$. pdialog . closeCurrent ();
alertMsg . info ( '上传成功' );
};
//得到选中行凭证号
function getNum(){
var ino_id = $( '#print_list_FV_Outlay .selected .ino_id' ). text (); //当前选中的行的列的class为 ino_id的 值。
< form id= "pagerForm" method= "post" action= "index.php?action=FV_Outlay" >
< input type= "hidden" name= "pageNum" value= "1" />
< input type= "hidden" name= "numPerPage" value= "<!--{$numPerPage}-->" />
< input type= "hidden" name= "orderField" value= "<!--{$orderField}-->" />
< input type= "hidden" name= "orderDirection" value= "<!--{$orderDirection}-->" />
< input type= "hidden" name= "cPeriod" value= "<!--{$cPeriod}-->" />
< input type= "hidden" name= "cTypeName" value= "<!--{$cTypeName}-->" />
< input type= "hidden" name= "cItemName" value= "<!--{$cItemName}-->" />
</ form >
< div class= "page" >
< div class= "pageHeader" >
< form οnsubmit= " return navTabSearch( this ); " action= "index.php?action=FV_Outlay" method= "post" >
< div class= "searchBar" >
< table class= "searchContent" >
< tr >
< td >
单据编号: < input type= "text" name= "cONumber" Value = "<!--{$cONumber}-->" size= "16" />
</ td >
< td >
预算期间: < input type= "text" name= "cPeriod" Value = "<!--{$cPeriod}-->" size= "16" />
</ td >
< td >
业务类型: < input type= "text" name= "cTypeName" Value = "<!--{$cTypeName}-->" size= "16" />
</ td >
< td >
预算项目机构: < input type= "text" name= "cItemName" Value = "<!--{$cItemName}-->" size= "16" />
</ td >
< td >
预算科目: < input type= "text" name= "cCostName" Value = "<!--{$cCostName}-->" size= "16" />
</ td >
< tr >
< td >
填单人: < input type= "text" name= "cMaker" Value = "<!--{$cMaker}-->" size= "18" />
</ td >
< td >
单据日期: < input type= "text" name= "dBillDate" Value = "<!--{$dBillDate}-->" size= "16" />
</ td >
< td >
用途: < input type= "text" name= "cUse" Value = "<!--{$cUse}-->" size= "20" />
</ td >
< td >
报销金额: < input type= "text" name= "cMoneyStart" Value = "<!--{$cMoneyStart}-->" size= "20" /> ---< input type= "text" name= "cMoneyEnd" Value = "<!--{$cMoneyEnd}-->" size= "20" />
</ td >
< td >
单据状态: < select name= "selStatus" style= "" >
< option >请选择 </ option >
< option name= "selStatus" value= "all" <!--{ if ($selStatus == '全部') }--> selected="selected" <!--{/if}--> >全部 </ option >
< option name= "selStatus" value= "noExamine" <!--{ if ($selStatus == '未审核') }--> selected="selected" <!--{/if}--> >未审核 </ option >
< option name= "selStatus" value= "Examine" <!--{ if ($selStatus == '已审核') }--> selected="selected" <!--{/if}--> >已审核 </ option >
< option name= "selStatus" value= "zhidan" <!--{ if ($numPerPage == '已制单') }--> selected="selected" <!--{/if}--> >已制单 </ option >
</ select >
</ td >
< td >
年度: < select name= "cYear" style= " width : 80 px ; height : 21 px ; " >
<!--{foreach from=$years item=row}-->
< option value= "<!--{$row}-->" <!--{ if $row eq $searchYear } selected="selected" {/if}--> > <!--{$row}--> </ option >
<!--{/foreach}-->
</ select >
</ td >
< td >
< div class= "buttonActive" >< div class= "buttonContent" >< button type= "submit" >检索 </ button ></ div ></ div >
</ td >
</ tr >
</ table >
</ div >
</ form >
</ div >
< div class= "pageContent" >
< div class= "panelBar" >
< ul class= "toolBar" >
< li >< a class= "show" href= "?action=FV_Outlay&do=show&id={id}" target= "navTab" rel= "FV_Outlay_show" title= "查看单项目经费核销单" >< span >明细 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=new" target= "navTab" rel= "FV_Outlay_new" title= "新增单项目经费核销单" >< span >添加 </ span ></ a ></ li >
< li >< a class= "edit" href= "?action=FV_Outlay&do=edit&id={id}" target= "navTab" rel= "FV_Outlay_edit" title= "修改单项目经费核销单" >< span >修改 </ span ></ a ></ li >
< li >< a class= "delete" href= "?action=FV_Outlay&do=del&id={id}" target= "ajaxTodo" title= "确定要删除吗?" >< span > 删除</ span ></ a ></ li >
< li class= "line" >line </ li >
< li style= " display : none ; " >< a class= "add" href= "?action=FV_Outlay&do=simpCheckBud&id={id}&username=<!--{$smarty.session.username}-->" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "超预算审核单项目经费核销单" >< span >超预算审核 </ span ></ a ></ li >
< li style= " display : none ; " >< a class= "delete" href= "?action=FV_Outlay&do=simpCheckBudNo&id={id}" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "超预算弃审单项目经费核销单" >< span >超预算弃审 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=simpCheck&id={id}&username=<!--{$smarty.session.username}-->" target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "审核单项目经费核销单" >< span >审核 </ span ></ a ></ li >
< li >< a class= "delete" id= "QiShen" οnclick= " getNum() " href= "?action=FV_Outlay&do=simpCheckNo&id={id}"
target= "ajaxTodo" rel= "FV_Outlay_simpCheck" title= "弃审单项目核销单" >< span >弃审 </ span ></ a ></ li >
< li class= "line" >line </ li >
< li >< a class= "icon" href= "?action=FB_Outlay&do=ImpXls" target= "navTab" rel= "FB_Outlay_ImpXls" title= "导入核销单" >< span >导入XLS数据 </ span ></ a ></ li >
< li >< a class= "icon" href= "?action=FV_Outlay&do=Export" target= "dwzExport" title= "导出全部XLS" >< span > 导出XLS</ span ></ a ></ li >
< li >< a class= "add" href= "?action=FV_Outlay&do=printShow&id={id}" target= "navTab" rel= "FV_Outlay_printShow" title= "核销单打印预览" >< span > 打印预览</ span ></ a ></ li >
< li >< a class= "icon" href= "javascript:$. printBox ('print_list_FV_Outlay')" >< span >打印 </ span ></ a ></ li >
< form οnsubmit= " return iframeCallback( this ); " action= "?action=FV_Outlay&do=insertExcel" target= "navTab" rel= "FV_Outlay_sc" enctype= "multipart/form-data" method= "post" id= "uploadExcel" name= "uploadExcel" class= "pageForm required-validate home_icon" >
上传excel:
< input type= "hidden" name= "leadExcel" value= "true" />
< input type= "file" name= "upExcel" id= "upExcel" />
< input type= "submit" value= "导入" />
</ form >
</ ul >
</ div >
< table id= "print_list_FV_Outlay" class= "list" layouth= "134" style= " width : 2000 px ; " >
< thead >
< tr >
< th hidden width= "60" align= "center" >是否生成凭证 </ th >
< th width= "60" align= "center" >凭证号</ th >
< th width= "60" align= "center" >单据编号</ th >
< th width= "60" align= "center" >单据日期</ th >
< th width= "60" align= "center" >期间</ th >
< th width= "200" align= "center" >业务类型</ th >
< th width= "200" align= "center" >预算项目机构 </ th >
< th width= "60" align= "center" >项目</ th >
< th width= "60" align= "center" >经办人</ th >
< th width= "120" align= "center" >用途</ th >
< th width= "60" align= "center" >填报人</ th >
< th width= "60" align= "center" >审核人</ th >
< th width= "60" align= "center" >付款人</ th >
< th width= "60" align= "center" >制单人</ th >
< th width= "60" align= "center" >超预算审批 </ th >
< th width= "60" align= "center" >预算科目</ th >
< th width= "60" align= "center" >收支项目</ th >
< th width= "60" align= "center" >受益部门</ th >
< th width= "60" align= "center" >报销金额</ th >
< th width= "50" align= "center" >年度</ th >
</ tr >
</ thead >
< tbody >
<!--{foreach from=$list item=row}-->
< tr class= "aa" target= "id" rel= "<!--{$row.iMID}-->" >
< td hidden > <!--{$row.isMake}--> </ td >
< td class= "ino_id" > <!--{$row.ino_id}--> </ td >
< td class= "cONumber" > <!--{$row.cONumber}--> </ td >
< td > <!--{$row.dBillDate}--> </ td >
< td > <!--{$row.cPeriod}--> </ td >
< td > <!--{$row.cTypeName}--> </ td >
< td > <!--{$row.cItemName}--> </ td >
< td > <!--{$row.project}--> </ td >
< td > <!--{$row.cAgentUser}--> </ td >
< td > <!--{$row.cUse}--> </ td >
< td > <!--{$row.cMaker}--> </ td >
< td > <!--{$row.cCheckerMaker}--> </ td >
< td > <!--{$row.cTellerUser}--> </ td >
< td > <!--{$row.cTellerUser}--> </ td >
< td > <!--{$row.cCheckerMakerBu}--> </ td >
< td > <!--{$row.cCostName}--> </ td >
< td > <!--{$row.cIoitemName}--> </ td >
< td > <!--{$row.cDepName}--> </ td >
< td > <!--{$row.cMoney}--> </ td >
< td > <!--{$row.cYear}--> </ td >
</ tr >
<!--{/foreach}-->
</ tbody >
</ table >
< script >
$(document). ready ( function (){
$( "#print_list_FV_Outlay td" ). css ({ "border" : "1px solid #99FFFF" , "font-size" : "12px" });
$( "#print_list_FV_Outlay th" ). css ({ "border" : "1px solid #99FFFF" , "font-size" : "12px" });
//$("#print_list_FV_PeriodBudget tr").css({"border":"1px solid #99FFFF"});
});
</ script >
< div class= "panelBar" >
< div class= "pages" >
< span > 每页</ span >
< select name= "numPerPage" οnchange= " navTabPageBreak({ numPerPage : this . value }) " >
< option value= "10" <!--{ if ($numPerPage == 10) }--> selected="selected" <!--{/if}--> >10 </ option >
< option value= "20" <!--{ if ($numPerPage == 20) }--> selected="selected" <!--{/if}--> >20 </ option >
< option value= "50" <!--{ if ($numPerPage == 50) }--> selected="selected" <!--{/if}--> >50 </ option >
< option value= "100" <!--{ if ($numPerPage == 100) }--> selected="selected" <!--{/if}--> >100 </ option >
</ select >
< span > 条,共{$total}条{$PerPage}</ span >
</ div >
< div class= "pagination" targetType= "navTab" totalCount= "<!--{$total}-->" numPerPage= "<!--{$numPerPage}-->" pageNumShown= "<!--{$pageTotal}-->" currentPage= "<!--{$pageNum}-->" ></ div >
</ div >
</ div >
</ div >
< script type= "text/javascript" >
function xxxAjaxDone(json){
var trId = json.callParentId;
// $('#'+trId).find("#attachment").attr('value', json.attUrl );
$. pdialog . closeCurrent ();
alertMsg . info ( '上传成功' );
};
//得到选中行凭证号
function getNum(){
var ino_id = $( '#print_list_FV_Outlay .selected .ino_id' ). text (); //当前选中的行的列的class为 ino_id的 值。
if
(
ino_id
!=
""
){
ino_id = "是否作废已经传递到总账的凭证" + ino_id ;
$( '#QiShen' ). attr ( 'title' , ino_id );
}
}
</ script >
ino_id = "是否作废已经传递到总账的凭证" + ino_id ;
$( '#QiShen' ). attr ( 'title' , ino_id );
}
}
</ script >