You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.9 KiB
68 lines
1.9 KiB
var mDebug="0";
|
|
var mOperate="";
|
|
var showInfo;
|
|
window.onfocus=myonfocus;
|
|
|
|
|
|
function myonfocus()
|
|
{
|
|
if(showInfo!=null)
|
|
{
|
|
try
|
|
{
|
|
showInfo.focus();
|
|
}
|
|
catch(ex)
|
|
{
|
|
showInfo=null;
|
|
}
|
|
}
|
|
}
|
|
|
|
function GRPRPExecel()
|
|
{
|
|
if (fm.ManageCom.value==null||fm.ManageCom.value=="")
|
|
{
|
|
alert("请选择管理机构");
|
|
fm.sManageCom.focus();
|
|
return false;
|
|
}
|
|
if (fm.StartDay.value=="")
|
|
{
|
|
alert("请输入统计起期。");
|
|
fm.StartDay.focus();
|
|
return false;
|
|
}
|
|
if (fm.EndDay.value=="")
|
|
{
|
|
alert("请输入统计止期。");
|
|
fm.EndDay.focus();
|
|
return false;
|
|
}
|
|
if(fm.EndDay.value<fm.StartDay.value){
|
|
alert("起始时间大于中止时间,请重新选择。");
|
|
return false;
|
|
}
|
|
|
|
var tdateDiff = dateDiff(fm.StartDay.value,fm.EndDay.value,"D");
|
|
if (tdateDiff > 30)
|
|
{
|
|
alert("统计间隔不能大于30天");
|
|
return;
|
|
}
|
|
var tTitle = "机构代码^|机构^|保单号^|投保单位名称^|保全受理号^|保全项目^|补费金额^|保全受理日期^|逾期终止日期^|保全状态^|销售渠道^|业务人员工号^|业务人员姓名^|中介机构代码^|中介机构名称";
|
|
tSQLInfo = new SqlClass();
|
|
tSQLInfo.setResourceName("g_pos.BQTraceDetailedListSql");
|
|
tSQLInfo.setModule("grp_pa");
|
|
tSQLInfo.setSqlId("quedryInfo1");
|
|
if(fm.ManageCom.value == ''){
|
|
tSQLInfo.addSubPara(comcode);
|
|
}else{
|
|
tSQLInfo.addSubPara(fm.ManageCom.value);
|
|
}
|
|
tSQLInfo.addSubPara(fm.EndDay.value);
|
|
tSQLInfo.addSubPara(fm.StartDay.value);
|
|
var tQuerySQL = tSQLInfo.getString();
|
|
fm.action = "../API/grp_common/jsp/QueryDataExport/EXPORT";
|
|
ajaxSubmit2(document.getElementById("fm"), null, null, true,tTitle, tQuerySQL);
|
|
}
|
|
|