diff --git a/WebContent/Tenwa/CarPhoto/CarPhotoList.jsp b/WebContent/Tenwa/CarPhoto/CarPhotoList.jsp index a37eb212b..a39b7985c 100644 --- a/WebContent/Tenwa/CarPhoto/CarPhotoList.jsp +++ b/WebContent/Tenwa/CarPhoto/CarPhotoList.jsp @@ -11,9 +11,9 @@ dwTemp.genHTMLObjectWindow(""); String sButtons[][] = { - /* {"true","All","Button","新增","新增","newRecord()","","","",""}, */ - {"true","All","Button","修改","修改","edit()","","","",""}, - {"true","All","Button","删除","删除","do_delete()","","","","btn_icon_delete"}, + {"true","All","Button","新增","新增","newRecord()","","","",""}, + {"true","All","Button","详情","详情","viewAndEdit()","","","",""}, + {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""}, {"true","All","Button","导入Excel","导入Excel","importExcel()","","","","btn_icon_import"}, {"true","","Button","牌照模版下载","牌照模版下载","LicensePlateDownload()","","","","btn_icon_down",""}, }; @@ -28,6 +28,19 @@ +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Comm/DocList/PlateAttachmentUpload.jsp b/WebContent/Tenwa/Comm/DocList/PlateAttachmentUpload.jsp new file mode 100644 index 000000000..52a7972c7 --- /dev/null +++ b/WebContent/Tenwa/Comm/DocList/PlateAttachmentUpload.jsp @@ -0,0 +1,104 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2018-05-31 + Content: 示例详情页面 + History Log: + */ + String Library_id = CurPage.getParameter("Library_id"); + + //定义变量 + String sObjectNo = "";//--对象编号 + //获得组件参数 + String flowNo=CurPage.getParameter("FlowNo"); + + String sPrevUrl = CurPage.getParameter("PrevUrl"); + //if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/FamilyVisit/fieldSurvey/FieldSurveyList.jsp"; + + String sTempletNo = "PlateAttachmentUpload";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + //dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(Library_id); + String sButtons[][] = { + {"true","","Button","保存","保存所有修改","importRecord()","","","",""}, + {"true","All","Button","取消","返回列表","pull()","","","","btn_icon_close"} + }; + /* sButtonPosition = "south"; */ +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/DistributorInfoTempToFormalBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/DistributorInfoTempToFormalBusiness.java index 304fd5210..2e4bcd650 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/DistributorInfoTempToFormalBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/DistributorInfoTempToFormalBusiness.java @@ -23,6 +23,7 @@ import com.amarsoft.app.util.ASOrgObject; import com.amarsoft.are.jbo.BizObject; import com.amarsoft.are.jbo.BizObjectManager; import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.lang.DataElement; import com.amarsoft.are.util.StringFunction; import com.amarsoft.awe.util.Transaction; import com.amarsoft.context.ASUser; @@ -39,13 +40,20 @@ public class DistributorInfoTempToFormalBusiness extends BaseBussiness { String orgid=this.saveOrgInfo(Sqlca); MapfromCondtion=new HashMap(); fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString()); - BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca); + BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca); + String disStatus = dst.getAttribute("distributor_status").toString(); + if(null==disStatus || disStatus.length()<=0){ + dst.setAttributeValue("distributor_status", "distributor_status04"); + BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca); + dit.saveObject(dst); + } MaptoCondtion=new HashMap(); DistributorCompare dc=new DistributorCompare(); fromCondtion.clear(); fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString()); toCondtion.clear(); toCondtion.put("distributor_no", dst.getAttribute("distributor_no").getString()); + DataOperatorUtil.copyJBOSet(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_INFO.CLASS_NAME, toCondtion, null, dc, Sqlca); String sMessage="true"; return sMessage;