From 6b7e6378303f16a974a9709c3a5914c7e3d032fc Mon Sep 17 00:00:00 2001 From: liuzhao Date: Mon, 20 Aug 2018 09:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=A3=E9=87=91=E8=AE=BE=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E4=BA=94=E7=BA=A7=E5=88=86=E7=B1=BB=E6=89=A7=E8=A1=8C=E5=AE=9A?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AutoFiveGradeClassificationList.jsp | 14 +- .../Interface/CarInfo/LbProductSalvage.jsp | 4 +- .../CarInfo/LbProductSalvageInfo.jsp | 62 ++++++++ .../tenwa/apzl/commission/commissionSet.java | 71 +++++++++ .../app/quartzmession/AutoFiveGradeClass.java | 136 ++++++++++++++++++ 5 files changed, 284 insertions(+), 3 deletions(-) create mode 100644 src_tenwa/com/tenwa/apzl/commission/commissionSet.java create mode 100644 src_tenwa/com/tenwa/lease/app/quartzmession/AutoFiveGradeClass.java diff --git a/WebContent/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp b/WebContent/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp index cb66deb4f..9c4127b2d 100644 --- a/WebContent/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp +++ b/WebContent/Tenwa/Lease/App/AutoFiveGradeClassification/AutoFiveGradeClassificationList.jsp @@ -23,10 +23,22 @@ dwTemp.genHTMLObjectWindow(""); String sButtons[][] =new String[][] { {"true","","Button","设置自动分类","设置自动分类","setAutoClassification()","","","","btn_icon_set"}, - {"true","","Button","取消自动分类","取消自动分类","cancelAutoClassification()","","","","btn_icon_delete"} + {"true","","Button","取消自动分类","取消自动分类","cancelAutoClassification()","","","","btn_icon_delete"}, + {"true","","Button","执行定时任务","执行定时任务","execute()","","","",""} }; %><%@include file="/Frame/resources/include/ui/include_list.jspf"%> diff --git a/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp b/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp index 5ae3054a5..6849f8c89 100644 --- a/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp +++ b/WebContent/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp @@ -6,11 +6,14 @@ History Log: */ String sPrevUrl = CurPage.getParameter("id"); + String edit = CurPage.getParameter("edit"); + String add = CurPage.getParameter("add"); /* if(sPrevUrl == null) sPrevUrl = ""; */ String sTempletNo = "LB_PRODUCT_SALVAGE_INFO";//--模板号-- ASObjectModel doTemp = new ASObjectModel(sTempletNo); doTemp.setHtmlEvent("dis_attribute", "onchange", "selectcommission"); + /* doTemp.setColTips("", "测试"); */ ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); dwTemp.Style = "2";//freeform @@ -31,6 +34,14 @@ setItemValue(0,0,"UpdateOrgID","<%=CurUser.getOrgName()%>"); setItemValue(0,0,"UpdateTime","<%=StringFunction.getTodayNow()%>"); + var edit='<%=edit%>'; + if(edit=="edit"){ + setItemReadOnly(0,0,"effect_start",true); + setItemReadOnly(0,0,"effect_end",true); + setItemReadOnly(0,0,"product_id",true); + setItemReadOnly(0,0,"dis_attribute",true); + } + var fix_amount = getItemValue(0,0,"fix_amount"); var dis_ratio = getItemValue(0,0,"dis_ratio"); if(fix_amount!=""){ @@ -65,6 +76,57 @@ } } function save(){ + debugger; + var oDate = new Date(); //实例一个时间对象; + var year = oDate.getFullYear(); //获取系统的年; + + var month = oDate.getMonth()+1; //获取系统月份,由于月份是从0开始计算,所以要加1 + if(month>=1 && month<=9){ + month = ""+0+month; + } + + var day = oDate.getDate(); // 获取系统日, + + var time = ""+year+month+day; + time = parseInt(time); + + var effect_start=getItemValue(0,0,"effect_start"); + effect_start = effect_start.replace("/",""); + effect_start = effect_start.replace("/",""); + effect_start = parseInt(effect_start); + + var effect_end=getItemValue(0,0,"effect_end"); + effect_end = effect_end.replace("/",''); + effect_end = effect_end.replace("/",''); + effect_end = parseInt(effect_end); + + /* if(effect_start