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