var showInfo; var mDebug="1"; var turnPage = new turnPageClass(); var turnPage2 = new turnPageClass(); var turnPage3 = new turnPageClass(); var tResourceName="certify.CardPlanConfInputSql"; //Click事件,当点击“查询”时触发该函数 function queryClick() { if(fm.managecom.value.length != 4 ){ i18nAlert("只有分公司才能操作此菜单,请重新登录!", "LIS-05840"); return; } initCardPlanQueryGrid(); var tManagecom = fm.managecom.value; /*var strSql = "select a.appcom, a.plantype, max(a.appoperator), max(a.updatedate)" +" from lzcardplan a where a.relaplan is null and a.planstate = 'C' " +" and a.appcom like '"+ tManagecom +"%'" +" group by a.appcom, a.plantype order by a.appcom, a.plantype";*/ var strSql = wrapSql(tResourceName,"querysqldes1",[tManagecom],"certification"); turnPage.strQueryResult = easyQueryVer3(strSql, 1, 0, 1); if (!turnPage.strQueryResult) { i18nAlert("没有待调整的单证计划!", "LIS-05841"); return false; }else{ turnPage.pageDivName = "divCardPlanQueryGrid"; turnPage.queryModal(strSql, CardPlanQueryGrid); } } function showDetail(parm1, parm2) { var tAppcom = CardPlanQueryGrid.getRowColData(CardPlanQueryGrid.getSelNo()-1, 1); var tPlantype = CardPlanQueryGrid.getRowColData(CardPlanQueryGrid.getSelNo()-1, 2); initCardPlanQueryDetailGrid(); /*var strSql="select a.planid,(select certifyclass from lmcertifydes where certifycode = a.certifycode) certifyclass, " +" a.certifycode, (select certifyname from lmcertifydes where certifycode = a.certifycode), " +" (select certifyprice from lmcertifydes where certifycode=a.certifycode) price,a.appcount, a.concount, " +" (select certifyprice*a.concount from lmcertifydes where certifycode = a.certifycode)" +" from lzcardplan a where a.relaplan is null and a.planstate = 'C' " +" and a.appcom='" + tAppcom + "' and a.plantype='" + tPlantype + "'" +" order by certifyclass, a.certifycode";*/ var strSql = wrapSql(tResourceName,"querysqldes2",[tAppcom,tPlantype],"certification"); turnPage2.pageDivName = "divCardPlanQueryDetailGrid"; turnPage2.queryModal(strSql, CardPlanQueryDetailGrid); } //查询此机构下所有单证的汇总结果,展示于页面 function queryPack() { if(fm.managecom.value.length != 4 ){ i18nAlert("只有分公司才能操作此菜单,请重新登录!", "LIS-05840"); return; } if(fm.PlanType.value==null || fm.PlanType.value==""){ i18nAlert("请输入计划类型!", "LIS-05842"); return; } initCardPlanPackGrid(); /*var strSql=" select k1,k2,k3,k4,k5,sumcount,(k5*sumcount) k6 from(" +" select a.plantype k1, (select certifyclass from lmcertifydes where certifycode = a.certifycode) k2, " +" a.certifycode k3, (select certifyname from lmcertifydes where certifycode = a.certifycode) k4, (select certifyprice from lmcertifydes where certifycode=a.certifycode) k5," +" sum(a.concount) sumcount from lzcardplan a where a.relaplan is null and a.planstate = 'C' " +" and a.appcom like '" + fm.managecom.value + "%'" +" and a.PlanType = '" + fm.PlanType.value + "'" +" group by a.plantype,a.certifycode ) order by k1,k3";*/ var strSql = wrapSql(tResourceName,"querysqldes3",[document.all('managecom').value,document.all('PlanType').value],"certification"); turnPage3.strQueryResult = easyQueryVer3(strSql, 1, 0, 1); if (!turnPage3.strQueryResult) { i18nAlert("没有待汇总的单证计划!", "LIS-05843"); return false; }else{ turnPage3.pageDivName = "divCardPlanPackGrid"; turnPage3.queryModal(strSql, CardPlanPackGrid); } } //Click事件,保存对所选机构的单证调整数量 function updateClick() { if(CardPlanQueryDetailGrid.checkValue()==false){ return false; } if(CardPlanQueryDetailGrid.getChkCount()==0){ i18nAlert("请至少选择一个调整的计划!", "LIS-05844"); return false; } for (var i=0;i