沈阳伙伴郭
- 合作伙伴
- 15
- 215
- 200
|
1#
t
T
发表于 2014-06-09 17:29
|只看楼主
以 这个界面为例。 首先新建数据库表: - ——————————————————————————————————————————————————————————————
- --建表
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[My_show_svbill]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[My_show_svbill]
- GO
- CREATE TABLE [dbo].[My_show_svbill] (
- [id] [int] IDENTITY (1, 1) NOT NULL ,
- [VIP] [int] null,
- [VIN] [int] null
- )
- GO
- ————————————————————————————————————————————————————————————————————————————
- --插入数据
- insert into My_show_svbill(VIP,VIN) values(1,0)
复制代码然后新建Bean类: - package com.metasoft.autoservice.action;
- public class MyShowSvbillBean {
- private int id;
- private int VIP;
- private int VIN;
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public int getVIP() {
- return VIP;
- }
- public void setVIP(int vIP) {
- VIP = vIP;
- }
- public int getVIN() {
- return VIN;
- }
- public void setVIN(int vIN) {
- VIN = vIN;
- }
- }
复制代码建立管理类从数据库中查询配置数据: - package com.metasoft.autoservice.action;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import com.metasoft.basic.cmd.BaseCommand;
- public class MyShowSvbillManager {
- MyShowSvbillBean myShowSvbillBean = null;
- public MyShowSvbillManager() {
- BaseCommand command = new BaseCommand();
- String query1 = "select top 1 id, VIP, VIN from my_show_svbill";
- System.out.println("MyShowSvbillManager is run.................");
- ResultSet rst = command.getDAO().selectBySQL(query1.toString());
- try {
- while(rst.next()) {
- myShowSvbillBean = new MyShowSvbillBean();
- myShowSvbillBean.setId(rst.getInt("id"));
- myShowSvbillBean.setVIP(rst.getInt("VIP"));
- myShowSvbillBean.setVIN(rst.getInt("VIN"));
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } finally {
- command.getDAO().closeSession();
- }
- }
- public MyShowSvbillBean getMyShowSvbillBean() {
- return myShowSvbillBean;
- }
- public void setMyShowSvbillBean(MyShowSvbillBean myShowSvbillBean) {
- this.myShowSvbillBean = myShowSvbillBean;
- }
- }
复制代码把这两个类导入元动metasoft.jar包中 com.metasoft.autoservice.action 文件夹中 改写 D:\Program Files\Metasoft\Auto\webapp\autoservice\ms_svbilljc.jsp 为以下内容: - <%@ page buffer="320kb" autoFlush="true" language="java"
- contentType="text/html; charset=GBK" isELIgnored="false"%>
- <%@include file="/common/taglibs.jsp"%>
- <%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
- <%@page import="com.metasoft.autoservice.action.MyShowSvbillBean" %>
- <%@page import="com.metasoft.autoservice.action.MyShowSvbillManager" %><head>
- <TITLE>
- <bean:message key="sv_menu_3" />
- </TITLE>
- </head>
- <html:html locale="true">
- <LINK href="<%=com.metasoft.basic.SysSet.metasoftcss%>" type=text/css
- rel=stylesheet>
- <SCRIPT language=jscript src="js/Function.js"></SCRIPT>
- <script language="JavaScript" src="date-picker.js"></script>
- <SCRIPT language=javascript src="js/query-picker.js"></SCRIPT>
- <SCRIPT language=javascript src="js/toolbar.js"></SCRIPT>
- <SCRIPT language=javascript src="js/detailTable.js"></SCRIPT>
- <SCRIPT language=javascript src="js/svbill.js"></SCRIPT>
- <SCRIPT language=javascript src="resource/js/utils.js"></SCRIPT>
- <SCRIPT language=javascript src="js/openbill.js"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript">function fendanOn(){
- document.getElementById('fendantale').style.display = 'block';
- }
- function fendanOff(){
- document.getElementById('fendantale').style.display = 'none';
- }
- function doStatus(billid,bsvid,billtype,errormessage){
- if(window.confirm(errormessage)){
- if(billtype=="SV001"){
- window.location="ms_svbillAction.do?event=doStatus&billid="+billid+"&bsvid="+bsvid+"&billtype="+billtype;
- }
- }
- }
- function doSVBill(billid,bsvid,billtype){
- if(billtype=="SV001"){
- var location="ms_svbillAction.do?event=open&menu_function_id=004_022&billid="+billid+"&bsvid="+bsvid+"&seriodno="+Math.random();
- parent.parent.doOpenAction("004_022",location,"维修单",self,0,0);
- }else{
- var location="ms_mrbillAction.do?event=open&menu_function_id=005_001&billid="+billid+"&bsvid="+bsvid+"&seriodno="+Math.random();
- parent.parent.doOpenAction("005_001",location,"装饰单",self,0,0);
- }
- }
- function doShowAssociatorlHistory(){
- var associatorl_no=document.forms[0].elements["metaObject.associatorl.code"].value;
- if(associatorl_no==null||associatorl_no=="")
- {
- doOpenCard();
- return;
- }
- var location="findCountSVItemAction.do?event=init_query&paction=ms_svbillAction&ppage=0&formname=ms_svbillForm&associatorlNo="+associatorl_no+"&seriodno="+Math.random();
- parent.parent.doOpenUnCheckAction("SearchCountSVItem",location,"会员卡信息查询",self,800,500);
- }
- var mstatus=0;
- function doPopMenu(cobj,ptype)
- {
- try
- {
- if(ptype==0)
- {
- print_menu.style.display="block";
- print_menu.style.posLeft=document.body.scrollLeft+cobj.offsetLeft;
- print_menu.style.posTop=document.body.scrollTop+cobj.offsetHeight + cobj.offsetTop+2;
- }
- else
- {
- print_menu1.style.display="block";
- print_menu1.style.posLeft=document.body.scrollLeft+cobj.offsetLeft;
- print_menu1.style.posTop=document.body.scrollTop+cobj.offsetHeight + cobj.offsetTop+2;
- }
- }catch(e){}
- mstatus=1;
- }
- function doCloseMenu()
- {
- try
- {
- if(mstatus==0)
- {
- print_menu.style.display="none";
- print_menu1.style.display="none";
- }
- }catch(e){}
- mstatus=0;
- }
- function doSVBJBill(){
- var billid=document.forms[0].elements['metaObject.id'].value;
- if(billid==null||billid==""||billid=="0")
- {
- alert("请先存档再产生报价单!");
- return;
- }
- var location="ms_svbjbillAction.do?event=open&menu_function_id=004_02105&billid="+billid+"&seriodno="+Math.random();
- parent.parent.doOpenAction("004_02105",location,"报价单",self,0,0);
- }
- function doSVConfirm(){
- var billstatus=document.forms[0].elements['metaObject.bill_status'].value;
- if(billstatus == 2 && !confirm("是否确认完工审核"))
- return;
- loadOn();
- if(billstatus=="3"||billstatus=="4")
- {
- confirmtable.style.pixelLeft=(document.body.offsetWidth - 400)/2;
- confirmtable.style.pixelTop=60;
- confirmtable.style.zIndex = 99999;
- confirmtable.style.display='block';
- document.forms[0].elements['ttl_cust_amt'].focus();
- document.forms[0].elements['ttl_cust_amt'].select();
- //为currentfield重新赋值
- document.forms[0].elements['currentfield'].value="ttl_cust_amt";
- var cardno=document.forms[0].elements["metaObject.associatorl.code"].value;
- var card_amt_f=document.forms[0].elements["ttl_card_strike_amt"];
- var cash_amt_f=document.forms[0].elements["ttl_cash_strike_amt"];
- var yl_amt_f=document.forms[0].elements["ttl_yl_strike_amt"];
- if(document.forms[0].elements["metaObject.bx_pay"].checked)
- {
- document.forms[0].elements["ttl_cust_amt"].value=getDoubleByString(document.forms[0].elements["metaObject.cust_amt"].value)+getDoubleByString(document.forms[0].elements["metaObject.bx_amt"].value);
- document.forms[0].elements["ttl_ar_amt"].value=getDoubleByString(document.forms[0].elements["metaObject.ar_amt"].value)+getDoubleByString(document.forms[0].elements["metaObject.bx_amt"].value);
- }
- else
- {
- document.forms[0].elements["ttl_cust_amt"].value=document.forms[0].elements["metaObject.cust_amt"].value;
- document.forms[0].elements["ttl_ar_amt"].value=document.forms[0].elements["metaObject.ar_amt"].value;
- }
- document.forms[0].elements["ttl_agio_amt"].value=document.forms[0].elements["metaObject.agio_amt"].value;
- if(cash_amt_f)
- cash_amt_f.value=document.forms[0].elements["metaObject.cash_strike_amt"].value;
- if(yl_amt_f)
- yl_amt_f.value=document.forms[0].elements["metaObject.yl_strike_amt"].value;
- if(card_amt_f)
- card_amt_f.value=document.forms[0].elements["metaObject.card_strike_amt"].value;
- document.forms[0].elements["ttl_balance_amt"].value=document.forms[0].elements["metaObject.balance_amt"].value;
- if(document.forms[0].elements["associatorl_code"])
- document.forms[0].elements["associatorl_code"].value=document.forms[0].elements["metaObject.associatorl.code"].value;
- if(document.forms[0].elements["hf_mobiletel"])
- document.forms[0].elements["hf_mobiletel"].value=document.forms[0].elements["metaObject.driver_mobile_tel"].value;
- if(document.forms[0].elements["ttl_jf_strike_amt"])
- document.forms[0].elements["ttl_jf_strike_amt"].value=document.forms[0].elements["metaObject.jf_strike_amt"].value;
- if(document.forms[0].elements["ttl_dbq_strike_amt"])
- document.forms[0].elements["ttl_dbq_strike_amt"].value=document.forms[0].elements["metaObject.dbq_strike_amt"].value;
- if(document.forms[0].elements["tmp_balance_date"])
- document.forms[0].elements["tmp_balance_date"].value=document.forms[0].elements["metaObject.balance_date"].value;
- if(document.forms[0].elements["tmp_payee_date"])
- document.forms[0].elements["tmp_payee_date"].value=document.forms[0].elements["metaObject.confirm_date"].value;
- document.forms[0].elements["tmp_receive_pay"].value=document.forms[0].elements["metaObject.receive_pay.description"].value;
- if(document.forms[0].elements["tmp_receive_pay2"])
- document.forms[0].elements["tmp_receive_pay2"].value=document.forms[0].elements["metaObject.receive_pay2.description"].value;
- if(document.forms[0].elements["invoicepop"])
- document.forms[0].elements["invoicepop"].value=document.forms[0].elements["metaObject.invoice_no"].value;
- if(document.forms[0].elements["invoiceamt"])
- document.forms[0].elements["invoiceamt"].value=document.forms[0].elements["metaObject.invoice_amt"].value;
- if(cash_amt_f)
- cash_amt_f.focus();
- }
- else if(billstatus=="2")
- {
- var sendmessage=document.forms[0].elements['sendFinishMsg'].value;
- if(sendmessage=="true")
- {
- if(window.confirm("完工后,是否发送短信?点确定发送,点取消不发送!"))
- {
- document.forms[0].elements['sendFinishMsg'].value="true";
- }
- else
- {
- document.forms[0].elements['sendFinishMsg'].value="false";
- }
- changeMaster('sendFinishMsg',document.forms[0].elements['sendFinishMsg'],'sendFinishMsg');
- }
- doConfirm();
- } else {
- doConfirm();
- }
- }
- function doCloseConfirm()
- {
- confirmtable.style.display='none';
- loadOff();
- }
- function checkConfirmKey()
- {
- var key=window.event.keyCode;
- if(key==13)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doConfirm();
- }
- }
- function keepSelectFocus()
- {
- var key=window.event.keyCode;
- if(key==13||key==9||key==40||key==38)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- document.forms[0].elements["ttl_agio_amt"].focus();
- }
- }
- function doProfitAnalysis(){
- try{
- var objid = document.ms_svbillForm.elements['metaObject.id'].value;
- if(!objid){
- alert('请先保存单据');
- return;
- }else{
- var act = "ms_svbillAction.do?event=doProfitAnalysis";
- changeProfitAnalysisInfo(act);
- }
- }catch(Exception){}
- }
- function changeProfitAnalysisInfo(url){
- try
- {
- var req = initRequest(url);
- req.onreadystatechange = function() {
- if(req.readyState == 4) {
- if (req.status == 200)
- {
- updateForm(req.responseXML);
- showProfitAnalysisView();
- req=null;
- }
- }
- }
- req.open("POST", url, true);
- req.send(null);
- }catch(Exception){alert(Exception.message);}
- }
- function showProfitAnalysisView(){
- try{
- profitAnalysistable.style.pixelLeft=(document.body.offsetWidth - 500)/2;
- profitAnalysistable.style.pixelTop=60;
- profitAnalysistable.style.display='block';
- }catch(Exception){alert(Exception.message);}
- }
- function closeProfitAnalysisView(){
- try{
- profitAnalysistable.style.display='none';
- }catch(Exception){alert(Exception.message);}
- }
- function restore()
- {
- document.all.ms_svbillForm.detail_page.value="0";
- td1.className="l_tab";td2.className="l_tab";td3.className="l_tab";td4.className="l_tab";td5.className="l_tab";td6.className="l_tab";
- w1.style.display="none";w2.style.display="none";w3.style.display="none";w4.style.display="none";w5.style.display="none";w6.style.display="none";
- }
- function c1()
- {
- document.all.ms_svbillForm.detail_page.value="0";
- td1.className="lc";
- w1.style.display="block";
- doLoaddetailpage();
- }
- function c2()
- {
- td2.className="lc";
- w2.style.display="block";
- doLoadTableDetailpage("svItemDetailTable","1");
- }
- function c3()
- {
- td3.className="lc";
- w3.style.display="block";
- doLoadTableDetailpage("outMaterialDetailTable","2");
- }
- function c4()
- {
- td4.className="lc";
- w4.style.display="block";
- doLoadTableDetailpage("inMaterialDetailTable","3");
- }
- function c5()
- {
- td5.className="lc";
- w5.style.display="block";
- doLoadTableDetailpage("svcostDetailTable","4");
- }
- function c6()
- {
- document.all.ms_svbillForm.detail_page.value="5";
- td6.className="lc";
- w6.style.display="block";
- doLoaddetailpage();
- }
- function doKeyFilterAction(){
- var key=window.event.keyCode;
- if(event.ctrlKey&&(key==85))
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doUnConfirm();
- }
- else if(key==119)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doAddSVItem();
- }
- else if(key==120)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doDivideWork();
- }
- else if(key==121)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doSVHF();
- }
- else if(key==122)
- {
- window.event.keyCode=-1;
- window.event.returnValue=false;
- doShowHistory();
- }
- else
- {
- doCommAction();
- }
- }
- function doPayByDBQ(){
- try
- {
- //if(checkNeedSave())
- //{
- // alert("请先保存单据,再选用代币券支付!");
- // return;
- //}
- var billid=document.forms[0].elements['metaObject.id'].value;
- if(billid==null||billid==""||billid=="0")
- {
- alert("请先保存单据,再选用代币券支付!");
- return;
- }
- var location="dbqPayAction.do?event=dbqpay&userright=BNEDCPU&orgBillId="+billid+"&orgBillType=SV001&seriodno="+Math.random();
- parent.parent.doOpenAction("dbqpay",location,"代币券支付",self,980,500);
- }catch(Exception){}
- }
- function doRefreshDBQPay(){
- try
- {
- changeMaster('dbq_strike_amt',document.forms[0].elements['metaObject.dbq_strike_amt'],'metaObject.dbq_strike_amt');
- }catch(Exception){}
- }
- function doPayByJF(){
- try
- {
- //if(checkNeedSave())
- //{
- // alert("请先保存单据,再选用积分兑现!");
- // return;
- //}
- var billid=document.forms[0].elements['metaObject.id'].value;
- if(billid==null||billid==""||billid=="0")
- {
- alert("请先保存单据,再选用积分兑现!");
- return;
- }
- var location="associatorlJFDetailAction.do?event=jfpay&userright=BNEDCPU&orgBillId="+billid+"&orgBillType=SV001&seriodno="+Math.random();
- parent.parent.doOpenAction("jfpay",location,"积分兑现",self,560,300);
- }catch(Exception){}
- }
- function doRefreshJFPay(){
- try
- {
- changeMaster('jf_strike_amt',document.forms[0].elements['metaObject.jf_strike_amt'],'metaObject.jf_strike_amt');
- }catch(Exception){}
- }
- function doSearchFastItem(){
- try{
- doCheckCanEdit();
- var location="ms_findrpditemAction.do?event=loadFastItem&pdetail_page=1&userright=BNEDCPU&formname=ms_svbillForm&paction=ms_svbillAction&seriodno="+Math.random();
- parent.parent.doOpenUnCheckAction("SearchRpdItem",location,"快修",self,600,300,true);
- }catch(Exception){alert(Exception.message);}
- }
- function showLinkMen(op){
- doDBClickQuery(op,'ms_svbillForm','linkMen','filterObjectList[0].fvalue='+document.forms[0].elements['metaObject.vehicle.owner.cust_name'].value+"&filterObjectList[0].ftype="+'=&');
- }
- function billInputSet(detailtype)
- {
- parent.parent.doOpenAction("detailset","ms_billInputSetAction.do?event=open&querycode="+detailtype,"必输设置",self,750,500);
- }
- function showLinkMenFk(op){
- var key=window.event.keyCode;
- if(key == 113)
- showLinkMen(op);
- }
- function doUpdateCustomer(){
- if(!document.forms[0].elements['metaObject.vehicle.code']){
- return ;
- }
- var obj=document.forms[0].elements['metaObject.vehicle.code'];
- if(obj.value==null||obj.value==""){
- alert("请先选择车辆!");
- return;
- }
- parent.parent.doOpenAction("ms_custAlterlist","ms_custAlterAction.do?event=new&menu_function_id=001_0325_30&formname=ms_custAlterlist&vehicle_code="+obj.value,"客户信息变更单",self,800,600);
- }
- function doProfitAnalysis_gs(){
- try{
- var bill_code = document.forms[0].elements['metaObject.code'].value;
- var str = "gs_profitAnalysisAction.do?bill_code=" + bill_code
- parent.parent.doOpenAction("profitAnalysis_gs",str,"利润分析",self,950,350);
- }catch(Exception){}
- }
- function doPrevReceive(isorder)
- {
- try{
- var billid=document.forms[0].elements['metaObject.id'].value;
- if(billid==null||billid==""||billid=="0")
- {
- alert("请先保存单据!");
- return;
- }
- var mname='预收款';
- if(isorder==1)
- {
- mname='预收订金';
- }
- parent.parent.doOpenAction("prereceive","ms_arpredetailAction.do?ACCT_TYPE=A852&event=doprebybill&billtype=AR001&menu_function_id=006_006&orgbilltype=SV001&orgbillid="+billid+"&isorder="+isorder,mname,self,700,450);
- }catch(Exception){}
- }
- function checkVinNoLen(obj){
- try{
- var str = obj.value;
- if(str.length > 17){
- alert("您输入的VIN号已经超过17位,请核实输入的VIN号!");
- obj.value = str.substring(0,17);
- changeMaster('vin_no',obj,'metaObject.vehicle.vin_no');
- }
- }catch(Exception){alert(Exception.message);}
- }
- function dounDescription(){
- var undes=document.forms[0].elements['metaObject.un_description'].value;
- if(undes==null || undes==""){
- alert("请输入作废原因!");
- document.forms[0].elements['metaObject.un_description'].focus();
- }else{
- zuofei.style.display="none";
- doZuoFei("un_description",undes);
- }
- }
- //作废单据的js
- function doZuoFei(){
- var currentfield=arguments[0];
- var currentfieldvalue=arguments[1];
- if(checkBusy())
- {
- return;
- }
- doInitHiddenFrame();
- parent.hidesubmitframe.location = currfromsrc+"Action.do?event=unconfirm¤tfield="+currentfield+"¤tfieldvalue="+currentfieldvalue;
- }
- //关闭加载的小光标
- function loadOff(){
- document.getElementById('divProcessing').style.display = 'none';
- document.getElementById('divSearch').style.display = 'none';
- //为currentfield重新赋值
- document.forms[0].elements['currentfield'].value="metaObject.code";
- }
- function loadOn(){
- document.getElementById('divProcessing').style.display = 'block';
- document.getElementById('divSearch').style.display = 'block';
- }
- function changeMaster_lic_no(field,curobj,nexfocus){
- try
- {
- var isCorrect=false;
- if(curobj.value != null && curobj.value.length != 0){
- if(isIDno(curobj.value)){ //如果是有效的身份证号码则提取生日信息
- isCorrect=true;
- }
- }
- document.forms[0].elements['currentfocusfield'].value=curobj.name;
- var cvalue="";
- if(curobj.type=="checkbox")
- {
- cvalue=curobj.checked;
- }else
- {
- cvalue=curobj.value;
- }
- cvalue=myEncodeURIComponent(cvalue);
- var url = currfromsrc+"Action.do?event=update_master¤tfocusfield="+curobj.name+"¤tfield="+field+"¤tfieldvalue="+cvalue+"&nextfocusfield="+nexfocus+"&idNo="+isCorrect;
- changeserverinfo(url);
- var nextf=document.forms[0].elements[nexfocus];
- if(nextf&&!nextf.disabled)
- {
- nextf.focus();
- nextf.select();
- }
- }catch(Exception){}
- }
- function doOpenCust(){
- try{
- var cust_id = document.forms[0].elements['metaObject.vehicle.owner.id'].value;
- if(!cust_id)
- return;
- var str = "customerAction.do?event=open&menu_function_id=001_032&CUST_ID="+cust_id+"&parentreturnfield=metaObject.vehicle.owner.cust_name";
- parent.parent.doOpenAction("customer",str,"客户信息",self,0,0);
- }catch(Exception){}
- }
- //0006307
- function getHistory(){
- var vehicle_code = document.forms[0].elements["metaObject.vehicle.code"].value; //获得车牌号
- doDBClickQuery(document.forms[0].elements['temphfhistory'],'ms_svbillForm','repairTrack','filterfield=v.LICENSE_PLATE_CODE&v.LICENSE_PLATE_CODE='+vehicle_code);
- }
- function getVehicleInfo(){
- showKeyColor();
- changeMaster('vehicle',document.forms[0].elements['metaObject.vehicle.code'],'metaObject.vehicle.owner.cust_name');
- }
- function doOpenDqby(){
- var vehicleid = utils._v("metaObject.vehicle.id");
- if(!vehicleid)
- return;
- window.location = "ms_svbillAction.do?event=loadDqby&seriodno="+Math.random();
- }
- function openDqbyFvalue(isHaveDqby){
- var vehicleid = utils._v("metaObject.vehicle.id");
- if(isHaveDqby=='0'){
- var location = "vdqbyfvalueAction.do?event=new&menu_function_id=001_043_010&vehicleid="+vehicleid;
- parent.parent.doOpenAction("004_052",location,"定保套餐销售",self,800,600);
- }else if(isHaveDqby=='1'){
- var location = "vdqbyFvalueQueryAction.do?event=init_query&paction=ms_svbillAction&ppage=0&formname=ms_svbillForm&vehicleId="+vehicleid+"&seriodno="+Math.random();
- parent.parent.doOpenUnCheckAction("vdqbyFvalueQuery",location,"定保套餐查询",self,800,500);
- }
- }
- function doSelectBill(seq,vehicle_no){
- var vehicleno = document.forms[0].elements[vehicle_no].value;
- var vehicle = document.forms[0].elements['metaObject.vehicle.code'];
- vehicle.value = vehicleno;
- vehicle.onchange();
- vehicleSb.style.display="none";
- }
- </SCRIPT>
- <BODY onkeydown="doKeyFilterAction();changefocus();"
- onclick="doCloseMenu();" ondrag="return false;">
- <html:form action="ms_svbillAction.do">
- <html:hidden name="ms_svbillForm" property="event" />
- <html:hidden name="ms_svbillForm" property="formname" />
- <html:hidden name="ms_svbillForm" property="detail_page" />
- <html:hidden name="ms_svbillForm" property="currentrow" value="-1" />
- <html:hidden name="ms_svbillForm" property="currentfield" />
- <html:hidden name="ms_svbillForm" property="currentfocusfield" />
- <html:hidden name="ms_svbillForm" property="nextfocusfield" />
- <html:hidden name="ms_svbillForm" property="currentfieldvalue"
- value="" />
- <html:hidden name="ms_svbillForm" property="refreshCode" value="" />
- <html:hidden name="ms_svbillForm" property="currentDetailPage" />
- <html:hidden name="ms_svbillForm" property="currbillstatus" />
- <html:hidden name="ms_svbillForm" property="metaObject.id" />
- <html:hidden name="ms_svbillForm"
- property="metaObject.out_materialbill.id" />
- <html:hidden name="ms_svbillForm" property="metaObject.bill_status" />
- <html:hidden name="ms_svbillForm" property="issendmessage" />
- <html:hidden name="ms_svbillForm" property="metaObject.vehicle.id" />
- <html:hidden name="ms_svbillForm"
- property="metaObject.vehicle.owner.id" />
- <html:hidden name="ms_svbillForm" property="metaObject.cust.code" />
- <html:hidden name="ms_svbillForm" property="metaObject.cust.id" />
- <html:hidden name="ms_svbillForm" property="metaObject.photo_desc" />
- <html:hidden name="ms_svbillForm" property="metaObject.key_no.color" />
- <input type="hidden" name="transtype" value="02" />
- <input type="hidden" name="tmp_photo_desc" value="" />
- <input type="hidden" name="tmp_qz_cust" value=""
- onchange="changeMaster('qz_cust',this,'metaObject.vehicle.owner.cust_name');" />
- <html:hidden name="ms_svbillForm" property="sendFinishMsg" />
- <%
- com.metasoft.autoservice.form.MS_SVBillActionForm cform = (com.metasoft.autoservice.form.MS_SVBillActionForm) request
- .getSession().getAttribute("ms_svbillForm");
- com.metasoft.sm.objects.po.MS_Staff user = (com.metasoft.sm.objects.po.MS_Staff) session
- .getAttribute("user");
- com.metasoft.autoservice.objects.po.MS_SVBill svbill = (com.metasoft.autoservice.objects.po.MS_SVBill)cform.getMetaObject();
- MyShowSvbillManager myShowSvbillManager = new MyShowSvbillManager();
- String canedit = "no";
- boolean can_discard = (user.isAdmin() || cform
- .getStep0_right().canUnConfirm());
- boolean update_gs_price = (user.isAdmin()
- || cform.getStep0_right().canConfirm() || cform
- .getStep3_right().canConfirm());
- if (cform.getUright().canEdit())
- canedit = "yes";
- String checkimg = "images/check_1.gif";
- String uncheckimg = "images/uncheck_1.gif";
- String confirmname = "接车";
- String unconfirmname = "作废";
- if (user.getParentsubdept() != null
- && user.getParentsubdept().getVbrand() != null
- && !user.getParentsubdept().isEmpty())
- pageContext.setAttribute("vproduct_brand_filter",
- "usefixvalue=1&i.DESCRIPTION="
- + user.getParentsubdept().getVbrand()
- .getCode());
- else
- pageContext.setAttribute("vproduct_brand_filter", "");
- %>
- <SCRIPT language="javascript">
- var pose1OK = false;
- var pose2OK = false;
- var pose1 = true;
- var pose2 = true;
- var canCancel = <%=user.getPoseRightC()%>;
- var isAdmin = <%=user.isAdmin()%>;
- var callback = {
- success:function(){
- if(!document.forms[0].elements["ttl_cash_strike_amt"]){
- confirmWithFinger(<%=com.metasoft.basic.SysSet.sy031%>);
- return;
- }
- var ttl_cash_strike_amt= parseFloat(document.forms[0].elements["ttl_cash_strike_amt"].value);
- var ttl_yl_strike_amt= parseFloat(document.forms[0].elements["ttl_yl_strike_amt"].value);
- try{
- if(document.forms[0].elements["metaObject.receive_pay.s_value5"].value
- && document.forms[0].elements["metaObject.receive_pay.s_value5"].value > ""){
- if(isNaN(ttl_cash_strike_amt)){
- alert("结算方式一的金额不为数字");
- return;
- }
- }
- if(document.forms[0].elements["metaObject.receive_pay2.s_value5"].value
- && document.forms[0].elements["metaObject.receive_pay2.s_value5"].value > ""){
- if(isNaN(ttl_yl_strike_amt)){
- alert("结算方式二的金额不为数字");
- return;
- }
- }
- }
- catch(ex){
- return;
- }
- //alert(document.forms[0].elements["metaObject.receive_pay2.s_value5"].value);
- if(document.forms[0].elements["metaObject.receive_pay.s_value5"].value
- && document.forms[0].elements["metaObject.receive_pay.s_value5"].value > ""
- && ttl_cash_strike_amt > 0 && !pose1OK){
- if(window.confirm("是否结算方式一刷卡")){
- pose1 = doPayAmtByBankPose(<%=user.getBankPoseType().intValue()%>,document.forms[0].elements['ttl_cash_strike_amt'],'confirmWithFinger(<%=com.metasoft.basic.SysSet.sy031%>);',document.forms[0].elements['transtype'],document.forms[0].elements['metaObject.receive_pay.s_value5'].value);
- if(pose1){
- pose1OK = pose1;
- }
- }else{
- if(isAdmin || canCancel){
- pose1 = true;
- }else{
- alert("结算方式一无Pose刷卡撤销权限,必须刷卡后审核");
- return;
- }
- }
- }else{
- pose1 = true;
- }
- if(document.forms[0].elements["metaObject.receive_pay2.s_value5"].value
- && document.forms[0].elements["metaObject.receive_pay2.s_value5"].value > ""
- && ttl_yl_strike_amt > 0 && !pose2OK){
- if(window.confirm("是否结算方式二刷卡")){
- pose2 = doPayAmtByBankPose(<%=user.getBankPoseType().intValue()%>,document.forms[0].elements['ttl_yl_strike_amt'],'confirmWithFinger(<%=com.metasoft.basic.SysSet.sy031%>);',document.forms[0].elements['transtype'],document.forms[0].elements['metaObject.receive_pay2.s_value5'].value);
- if(pose2){
- pose2OK = pose2;
- }
- }else{
- if(isAdmin || canCancel){
- pose2 = true;
- }else{
- alert("结算方式二无Pose刷卡撤销权限,必须刷卡后审核");
- return;
- }
- }
- }else{
- pose2 = true;
- }
- <%if (user.getBalance_ctr() != 1) {%>
- var v1 = document.forms[0].elements["ttl_balance_amt"].value;
- if(v1 > 0){
- alert("仍有挂账金额,不可审核");
- return;
- }
- <%}%>
- if(pose1 && pose2){
- confirmWithFinger(<%=com.metasoft.basic.SysSet.sy031%>);
- }
- },
- failure:function(){
- alert('failure:');
- }
- }
- function Confirm(){
- callback.success();
- }
- function doOpenVehicleSb(){
- <%if (cform.getVehicleSbList().size() > 0) {%>
- vehicleSb.style.pixelLeft=(document.body.offsetWidth - 800)/2;
- vehicleSb.style.pixelTop=40;
- vehicleSb.style.zIndex = 99999;
- vehicleSb.style.display="block";
- <%}%>
- }
- function closeVehicleSb(){
- vehicleSb.style.display="none";
- }
- </SCRIPT>
- <table class="toolbar" width="100%">
- <tr>
- <%
- if (com.metasoft.basic.SysSet.sy099) {
- %>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:goPrev();"><img border="0"
- src="images/prev.gif" alt="前一笔单据[PgUp]"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'" /> </a></td>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:goNext();"><img border="0"
- src="images/next.gif" alt="后一笔单据[PgDn]"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'" /> </a></td>
- <td nowrap="true" width="66px"><div align="left"> <a href="javascript:doQueryOpen();"><img border="0"
- src="images/query.gif" alt="查找[F3]" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a> </div></td>
- <td nowrap="true" width="66px"><div align="left"> <a href="javascript:doDelete();"><img border="0"
- src="images/delete.gif" alt="删除[Ctl+D]"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'" /> </a> </div></td>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:doNew();"><img border="0"
- src="images/new.gif" alt="新增[Ctl+N]" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a></td>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:doSave();"><img border="0"
- src="images/save.gif" alt="保存[Ctl+S]" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a></td>
- <%
- if (checkimg.length() > 0) {
- %>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:loadOn();doConfirm();"><img border="0"
- src="<%=checkimg%>" alt="审核单据[Ctl+A]" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a></td>
- <%
- }
- if (uncheckimg.length() > 0 && can_discard) {
- %>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:displayUnDes();"><img border="0"
- src="<%=uncheckimg%>" alt="反审核单据[Ctl+U]"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'" /> </a></td>
- <%
- }
- %>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:doSVBJBill();"><img border="0"
- src="images/baojia.gif" alt="维修报价" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a></td>
- <%
- if (com.metasoft.basic.SysSet.sm029) {
- %>
- <td nowrap="true" width="66px" align="left"><a
- href="javascript:doTransitIn();"><img border="0"
- src="images/dms.gif" alt="DMS载入单据" onMouseOver="mocusOverBtn()"
- onMouseOut="this.className='out'" /> </a></td>
- <%
- }
- %>
- <!--
- <td nowrap="true" width="66px" onclick="doCopy();">
- <img border="0" src="images/copy1.gif" onmouseover="this.className='over'" onMouseOut="this.className='out'" style='cursor:hand;'/>
- </td>
- //-->
- <%
- } else {
- %>
- <td nowrap="true" width="50px" onClick="goPrev();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">前笔</td>
- <td nowrap="true" width="50px" onClick="goNext();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">后笔</td>
- <td nowrap="true" width="50px" onClick="doQueryOpen();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">查找</td>
- <td nowrap="true" width="50px" onClick="doDelete();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">删除</td>
- <td nowrap="true" width="50px" onClick="doNew();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">新增</td>
- <td nowrap="true" width="50px" onClick="doSave();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">保存</td>
- <%
- if (checkimg.length() > 0) {
- %>
- <td nowrap="true" width="50px" onClick="loadOn();doConfirm();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'"><%=confirmname%></td>
- <%
- }
- if (uncheckimg.length() > 0 && can_discard) {
- %>
- <td nowrap="true" width="60px" onClick="displayUnDes();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'"><%=unconfirmname%></td>
- <%
- }
- %>
- <td nowrap="true" width="50px" onClick="doSVBJBill();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">报价</td>
- <%
- if (com.metasoft.basic.SysSet.sm029) {
- %>
- <td nowrap="true" width="50px" onClick="doTransitIn();"
- onmouseover="mocusOverBtn()" onMouseOut="this.className='out'">DMS导入</td>
- <%
- }
- %>
- <!--
- <td nowrap="true" width="50px" onclick="doCopy();" onmouseover="mocusOverBtn()" onMouseOut="this.className='out'" >复制</td>
- //-->
- <%
- }
- %>
- <td nowrap="true" width="*" align="left"></td>
- </tr>
- </table>
- <div align="left" class="masterbackground">
- <table class="dialog" width="100%">
- <tr>
- <td nowrap="true" width="80px" align="left">单据日期</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.bill_date"
- onchange="changeMaster('billdate',this,'metaObject.code');" />
- <img
- border="none" src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.bill_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="80px" align="left">维修单号</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.code"
- onchange="changeCodeMaster('billcode',this,'metaObject.code');" />
- </td>
- <td nowrap="true" width="80px" align="left">厂家单号</td>
- <td nowrap="true" width="200px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.f_bill_no"
- onchange="changeMaster('f_bill_no',this,'metaObject.f_bill_no');"
- style='width:177px;' /></td>
- <td width="*"></td>
- </tr>
- <tr>
- <td nowrap="true" width="80px" align="left">部 门</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.dept.dept_name"
- onchange="changeMaster('dept',this,'metaObject.vehicle.vehicle_plate_kind');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','dept');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','dept');" />
- <img
- border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.dept.dept_name'],'ms_svbillForm','dept');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="80px" align="left">接 车</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.staff.staff_name"
- onchange="changeMaster('staff',this,'metaObject.staff.staff_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.staff.staff_name'],'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">客户专员</td>
- <td nowrap="true" width="200px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.desk_clerk.staff_name"
- onchange="changeMaster('desk_clerk',this,'metaObject.desk_clerk.staff_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');"
- style='width:50px;' />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.desk_clerk.staff_name'],'ms_svbillForm','user','usefixvalue=1&ROLE_TYPES=Q');"
- style='cursor:hand;' /> 开拓人
- <html:text
- name="ms_svbillForm"
- property="metaObject.cust.qz_staff.staff_name"
- style='width:50px;' readonly="true" /></td>
- <td width="*"></td>
- </tr>
- <tr>
- <td nowrap="true" width="80px" align="left"><a
- href="javascript:openVehicle();">车 牌</a> </td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.code"
- onchange="changeMaster('vehicle',this,'metaObject.vehicle.owner.cust_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','vehicle');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','vehicle');"
- style='width:70px;' />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.code'],'ms_svbillForm','vehicle');"
- style='cursor:hand;' /> 牌号
- <html:text name="ms_svbillForm"
- property="metaObject.key_no.key_no"
- onchange="changeMaster('key_no',this,'metaObject.key_no.key_no');"
- style='width:34px'
- ondblclick="doDBClickQuery(this,'ms_svbillForm','ms_svjc');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','ms_svjc');" />
- <img
- border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.key_no.key_no'],'ms_svbillForm','ms_svjc');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="80px" align="left"><a
- href="javascript:doOpenCust();" tabindex="10">客 户</a> </td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.cust_name" styleId="v_owner"
- onchange="changeMaster('owner',this,'metaObject.vehicle.owner.cust_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','customer');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','customer');"
- disabled="${not empty(ms_svbillForm.metaObject.vehicle.id)}" /></td>
- <td nowrap="true" width="80px" align="left">客户类别</td>
- <td nowrap="true" width="200px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.cust_dtype.description"
- styleId="v_owner_type" style='width:177px;'
- onchange="changeMaster('cust_dtype',this,'metaObject.vehicle.owner.cust_dtype.description');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','cust_dtype');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','cust_dtype');"
- disabled="${not empty(ms_svbillForm.metaObject.vehicle.owner.id)}" />
- <c:if test="${empty(ms_svbillForm.metaObject.vehicle.owner.id)}"> <img border="none" src="images/icon_calendar.gif"
- style='cursor:hand;' id="v_owner_type_src"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.owner.cust_dtype.description'],'ms_svbillForm','cust_dtype');" /> </c:if></td>
- <td nowrap="true" width="*" align="left"> </td>
- </tr>
- <tr>
- <% if(myShowSvbillManager.getMyShowSvbillBean().getVIP() == 1) {%>
- <td nowrap="true" width="80px" align="left"><a
- href="javascript:readCard(document.forms[0].elements['metaObject.associatorl.code'],0);">会员卡号</a> </td>
- <td nowrap="true" width="190px" align="left"><%
- if (com.metasoft.basic.SysSet.sy032) {
- %>
- <html:text
- name="ms_svbillForm" property="metaObject.associatorl.code"
- onchange="changeMaster('associatorl',this,'metaObject.associatorl.code');"
- onkeydown="banInput();" onmousedown="onlyCard(this);" />
- <%
- } else {
- %>
- <html:text name="ms_svbillForm"
- property="metaObject.associatorl.code"
- onchange="changeMaster('associatorl',this,'metaObject.associatorl.code');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','associatorl','i.LICENSE_PLATE_CODE='+document.forms[0].elements['metaObject.vehicle.code'].value);"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','associatorl');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.associatorl.code'],'ms_svbillForm','associatorl','i.LICENSE_PLATE_CODE='+document.forms[0].elements['metaObject.vehicle.code'].value);"
- style='cursor:hand;' />
- <%
- }
- }
- %>
- </td>
- <td nowrap="true" width="80px" align="left">会员类别</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.associatorl.atype.associatorl_type_name"
- disabled="true" style='width:85px;' />
- 余
- <html:text
- name="ms_svbillForm"
- property="metaObject.associatorl.balance_amt" disabled="true"
- style='width:60px;' /></td>
- <td nowrap="true" width="80px" align="left">旧件处理</td>
- <td nowrap="true" width="190px" align="left"><html:select
- name="ms_svbillForm" property="metaObject.old_cl"
- onchange="changeMaster('old_cl',this,'metaObject.old_cl');this.style.cursor='normal';"
- onkeydown="listOnKeyDown();" onblur="this.style.cursor='normal'"
- style='z-index:999;width:50px;'>
- <html:optionsCollection name="ms_svbillForm"
- property="old_cl_list" />
- </html:select>
- 洗车要求
- <html:select name="ms_svbillForm"
- property="metaObject.yy_type"
- onchange="changeMaster('yy_type',this,'metaObject.yy_type');this.style.cursor='normal';"
- onkeydown="listOnKeyDown();" onblur="this.style.cursor='normal'"
- style='z-index:999;width:63px;'>
- <html:optionsCollection name="ms_svbillForm"
- property="yy_type_list" />
- </html:select></td>
- </tr>
- <tr>
- <td nowrap="true" width="80px" align="left">工单类别</td>
- <td nowrap="true" width="190px" align="left"><%
- if (user.getEditSvBillType() != null
- && user.getEditSvBillType().booleanValue()) {
- %>
- <html:text name="ms_svbillForm" styleId="focusfid"
- property="metaObject.sv_bill_type.description" readonly="true"
- onkeydown="return false" />
- <%
- } else {
- %>
- <html:text
- name="ms_svbillForm" styleId="focusfid"
- property="metaObject.sv_bill_type.description"
- onchange="changeMaster('sv_bill_type',this,'metaObject.sv_bill_type.description');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','sv_bill_type');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','sv_bill_type');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.sv_bill_type.description'],'ms_svbillForm','sv_bill_type');"
- style='cursor:hand;' />
- <%
- }
- %>
- </td>
- <td nowrap="true" width="80px" align="left"><bean:message
- key="sv_type" />
- </td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.sv_type_id.description"
- onchange="changeMaster('sv_type',this,'metaObject.sv_type_id.description');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','sv_type');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','sv_type');" />
- <img
- border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.sv_type_id.description'],'ms_svbillForm','sv_type');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="80px" align="left">制 单</td>
- <td nowrap="true" colspan="2" width="*" align="left"><html:text
- name="ms_svbillForm" property="metaObject.lister.staff_name"
- disabled="true" style="width:50px;" />
- 工时单价
- <html:text
- name="ms_svbillForm" property="metaObject.gs_price"
- readonly="true"
- style="width:63px;font-size:14px;color:red;text-align: right;" />
- <%
- if (update_gs_price) {
- %>
- <input class="littleButton"
- name="update_gs_p_btn" value="更新" type="button"
- onclick="changeMaster('UPDATE_GS_PRICE',document.forms[0].elements['event'],'metaObject.yy_type');"
- style='width:45px;'>
- <%}%>
- <%if(svbill.getInv_id() !=null && svbill.getInv_id().longValue()>0){ %>
- <font color="red">--售前加装车--</font>
- <%} %>
- </td>
- <td width="*"> </td>
- </tr>
- </table>
- <table class="dialog" border="1" cellpadding="0" cellspacing="0"
- width="100%">
- <tr valign="top">
- <td align="left" width="550" valign="top"><table class="dialog" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td nowrap="true" width="82px" align="left">车 型</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.product.item_name"
- onchange="changeMaster('product',this,'metaObject.vehicle.color.description');"
- ondblclick="vbrandSeriesVitemQuery(this,'ms_svbillForm','vehicleproduct','${vproduct_brand_filter}');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','vehicleproduct','${vproduct_brand_filter}');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="vbrandSeriesVitemQuery(document.forms[0].elements['metaObject.vehicle.product.item_name'],'ms_svbillForm','vehicleproduct','${vproduct_brand_filter}');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">颜 色</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.color.description"
- onchange="changeMaster('color',this,'metaObject.driver_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','color');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','color');"
- style='width:45px;' />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.color.description'],'ms_svbillForm','color');"
- style='cursor:hand;' /> 归属
- <html:select name="ms_svbillForm"
- property="metaObject.vehicle.gs_status"
- onchange="changeMaster('gs_status',this,'metaObject.vehicle.gs_status');this.style.cursor='normal';"
- onkeydown="listOnKeyDown();"
- onblur="this.style.cursor='normal'" style='width:60px;'>
- <html:optionsCollection name="ms_svbillForm"
- property="gs_status_list" />
- </html:select></td>
- </tr>
- <tr>
- <!--
- <td nowrap="true" width="82px" align="left">品 牌</td>
- <td nowrap="true" width="192px" align="left">
- <html:text name="ms_svbillForm" property="metaObject.vehicle.brand.description" onchange="changeMaster('brand',this,'metaObject.driver_name');" ondblclick="doDBClickQuery(this,'ms_svbillForm','vbrand');" onkeydown="doFKeyQuery(this,'ms_svbillForm','vbrand');"/>
- <img border="none" src="images/icon_calendar.gif" onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.brand.description'],'ms_svbillForm','vbrand');" style='cursor:hand;'/>
- </td>
- -->
- <td nowrap="true" width="82px" align="left">车型代码</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.s_item_code"
- onchange="changeMaster('s_item_code',this,'metaObject.vehicle.vehicle_category.description');"
- style='width:70px' />
- 车类
- <% if(com.metasoft.basic.SysSet.veh001){ %>
- <html:text name="ms_svbillForm"
- property="metaObject.vehicle.vehicle_category.description"
- onchange="changeMaster('vehicle_category',this,'metaObject.driver_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','vehicle_category');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','vehicle_category');"
- style='width:54px' />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.vehicle_category.description'],'ms_svbillForm','vehicle_category');"
- style='cursor:hand;' />
- <%}else{ %>
- <html:text name="ms_svbillForm"
- property="metaObject.vehicle.vehicle_category.description"
- style='width:54px' disabled="true"/>
- <%} %>
- </td>
- <!-- 从下面一个<TR>中移上来的 -->
- <td nowrap="true" width="82px" align="left">发动机号</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.engine_no"
- onchange="changeMaster('engine_no',this,'metaObject.vehicle.engine_no');" />
- </td>
- </tr>
- <tr>
- <% if(myShowSvbillManager.getMyShowSvbillBean().getVIN() == 1) {%>
- <td nowrap="true" width="82px" align="left">VIN号</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.vin_no"
- onchange="changeMaster('vin_no',this,'metaObject.vehicle.vin_no');"
- onkeyup="checkVinNoLen(this);" /></td>
- <% }%>
- <td nowrap="true" width="82px" align="left">最近来厂日</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.last_come_date" disabled="true"
- style="width: 90px;" />
- 共
- <html:text name="ms_svbillForm"
- property="metaObject.vehicle.in_count" disabled="true"
- style="width:30px;" />
- 次</td>
- </tr>
- <tr>
- <td colspan="4"><hr>
- </td>
- <tr>
- <tr>
- <td nowrap="true" width="82px" align="left">进厂日期</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.in_date"
- onchange="changeMaster('in_date',this,'metaObject.in_date');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_calendartime('ms_svbillForm','metaObject.in_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">计划完工日</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.plan_date"
- onchange="changeMaster('plan_date',this,'metaObject.plan_date');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_calendartime('ms_svbillForm','metaObject.plan_date');"
- style='cursor:hand;' /></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">进厂里程</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.in_milimetre"
- style="text-align:right;" valueType="5"
- onchange="changeMaster('in_milimetre',this,'metaObject.in_milimetre');" />
- <!--
- <html:text name="ms_svbillForm" property="metaObject.sv_type_id.description"
- onchange="changeMaster('sv_type',this,'metaObject.sv_type_id.description');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','sv_type');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','sv_type');" />
- -->
- <!--
- <html:text name="ms_svbillForm" property="metaObject.vehicle.owner.cust_name" styleId="v_owner"
- onchange="changeMaster('owner',this,'metaObject.vehicle.owner.cust_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','customer');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','customer');"
- disabled="${not empty(ms_svbillForm.metaObject.vehicle.id)}"/>
- --></td>
- <td nowrap="true" width="82px" align="left">油表数</td>
- <td nowrap="true" width="192px" align="left"><html:select
- name="ms_svbillForm" property="metaObject.oil_ds"
- onchange="changeMaster('oil_ds',this,'metaObject.oil_ds');this.style.cursor='normal';"
- onkeydown="listOnKeyDown();"
- onblur="this.style.cursor='normal'" style='z-index:-1'>
- <c:forEach items="${ms_svbillForm.yblist}" var="lable"> <option value="${lable.value}"
- <c:if test="${ms_svbillForm.metaObject.oil_ds==lable.label}">selected</c:if>
- >${lable.label}
- </option>
- </c:forEach>
- </html:select></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">主修人</td>
- <td nowrap="true" width="192px"><html:text
- name="ms_svbillForm"
- property="metaObject.sv_maintenance.staff_name"
- onchange="changeMaster('sv_maintenance',this,'metaObject.sv_maintenance.staff_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','user_pg','usefixvalue=1&ROLE_TYPES=G');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','user_pg');" />
- <img
- border="none" src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.sv_maintenance.staff_name'],'ms_svbillForm','user_pg','usefixvalue=1&ROLE_TYPES=G');"
- style='cursor:hand;' /></td>
- <td colspan="2"></td>
- </tr>
- <tr>
- <td colspan="4"><hr>
- </td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">送 修 人</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.driver_name"
- ondblclick="showLinkMen(this);"
- onkeydown="showLinkMenFk(this);"
- onchange="changeMaster('driver_name',this,'metaObject.driver_name');"
- style='width:65px;' />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="showLinkMen(document.forms[0].elements['metaObject.driver_name']);"
- style='cursor:hand;' />
- <html:checkbox
- property="metaObject.updatevehicle" style="width: 18px;"
- onclick="changeMaster('updatevehicle',this,'metaObject.updatevehicle');" />
- 更新车辆</td>
- <td nowrap="true" width="82px" align="left">电话/手机</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.driver_tel"
- onchange="changeMaster('driver_tel',this,'metaObject.driver_tel');"
- style="width: 82px;" />
- <html:text name="ms_svbillForm"
- property="metaObject.driver_mobile_tel"
- onchange="changeMaster('driver_mobile_tel',this,'metaObject.driver_mobile_tel');"
- style="width: 75px;" /></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">证件编号</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.driver_code"
- onchange="changeMaster_lic_no('driver_code',this,'metaObject.vehicle.driver_code');" />
- </td>
- <td nowrap="true" width="82px" align="left">生 日</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.driver_birthday"
- onchange="changeMaster('driver_birthday',this,'metaObject.vehicle.driver_birthday');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.driver_birthday');"
- style='cursor:hand;' /></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">地 址</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.driver_addr"
- onchange="changeMaster('driver_addr',this,'metaObject.vehicle.driver_addr');" />
- </td>
- <td nowrap="true" width="82px" align="left">换证日期</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.cc_date"
- onchange="changeMaster('cc_date',this,'metaObject.vehicle.cc_date');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.cc_date');"
- style='cursor:hand;' /></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">主要联系人</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.link_men"
- onchange="changeMaster('link_men',this,'metaObject.vehicle.owner.link_men');" />
- </td>
- <td nowrap="true" width="82px" align="left">联系电话</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.mobile_tel"
- onchange="changeMaster('linktel',this,'metaObject.vehicle.owner.mobile_tel');" />
- </td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">地 址</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.owner.addr"
- onchange="changeMaster('addr',this,'metaObject.vehicle.owner.addr');" />
- </td>
- <td nowrap="true" width="82px" align="left">区 域:</td>
- <td nowrap="true" width="192px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.area.description"
- onchange="changeMaster('area',this,'metaObject.vehicle.owner.area.description');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_query2('ms_svbillForm','metaObject.vehicle.owner.area.description','area');"
- style='cursor:hand;' /> </td>
- </tr>
- <tr>
- <td colspan="4"><hr>
- </td>
- <tr>
- <tr>
- <td colspan="4"><table class="dialog" border="0" cellpadding="0"
- cellspacing="0" width="100%">
- <tr valign="top">
- <td nowrap="true" width="82px" align="left">保险公司</td>
- <td nowrap="true" width="110px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.insurance.cust_name"
- onchange="changeMaster('vehicle_insurer',this,'metaObject.vehicle.insurance.cust_name');"
- ondblclick="doDBClickQuery(this,'ms_svbillForm','insurer');"
- onkeydown="doFKeyQuery(this,'ms_svbillForm','insurer');"
- style="width:85px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="doDBClickQuery(document.forms[0].elements['metaObject.vehicle.insurance.cust_name'],'ms_svbillForm','insurer');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">商业险到期</td>
- <td nowrap="true" width="95px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.insurance_end_date"
- onchange="changeMaster('insurance_end_date',this,'metaObject.vehicle.insurance_end_date'); "
- style="width:70px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.insurance_end_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">交强险到期</td>
- <td nowrap="true" width="95px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.comprehensive_end_date"
- onchange="changeMaster('comprehensive_end_date',this,'metaObject.vehicle.comprehensive_end_date'); "
- style="width:70px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.comprehensive_end_date');"
- style='cursor:hand;' /></td>
- </tr>
- <tr>
- <td nowrap="true" width="82px" align="left">购买日期</td>
- <td nowrap="true" width="110px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.buy_date"
- onchange="changeMaster('buy_date',this,'metaObject.vehicle.buy_date');"
- style="width:85px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.buy_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">年检日期</td>
- <td nowrap="true" width="95px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.year_check_date"
- onchange="changeMaster('year_check_date',this,'metaObject.vehicle.year_check_date');"
- style="width:70px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.year_check_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="82px" align="left">首保日期</td>
- <td nowrap="true" width="95" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.fmaintain_date"
- onchange="changeMaster('fmaintain_date',this,'metaObject.vehicle.fmaintain_date');"
- style="width:70px;" />
- <img border="none"
- src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.fmaintain_date');"
- style='cursor:hand;' /></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- <td valign="top" width="*"><table class="dialogsmall" border="0" cellpadding="0"
- cellspacing="0" width="100%">
- <tr>
- <td><div align="left">
- <input class="littleButton" name="associatorlhistoryQuery"
- value="售卡/查询" type="button"
- onclick="doShowAssociatorlHistory();" style='width:60px;'>
- <input class="littleButton" name="svhistory" value="历史[F11]"
- type="button" onClick="doShowHistory();" style='width:60px;' />
- <input class="littleButton" name="donote" value="小贴士"
- type="button" onClick="doCustNote();" style='width:60px;' />
- <input class="littleButton" name="dbtcQuery" value="定保套餐"
- type="button" onClick="doOpenDqby();" style='width:60px;'>
- <input class="littleButton" name="detailset" value="必输设置"
- type="button"
- onclick='billInputSet("${ms_svbillForm.metaObject.validateKey}");'
- style='width:60px;'>
- <input type="hidden"
- name="temphfhistory" />
- </div></td>
- </tr>
- <tr>
- <td><div align="left">
- <input class="littleButton" name="ArapBalanceQuery"
- value="账款查询" type="button" onClick="doOpenArapBalance();"
- style='width:60px;'>
- <input class="littleButton"
- name="hfhistory" value="回访历史" type="button"
- onclick="getHistory();" style='width:60px;'>
- <input
- class="littleButton" name="ArapBalanceQuery" value="信息变更"
- type="button" onClick="doUpdateCustomer();"
- style='width:60px;'>
- <input class="littleButton"
- name="uploadfile" value="附加档案" type="button"
- onclick="uploadFile('svbill',document.forms[0].elements['metaObject.id'].value,'<%=canedit%>');"
- style='width:60px;'>
- <input class="littleButton"
- name="cxda_btn" value="出险档案" type="button"
- onclick="openCXBill();" style='width:60px;' />
- <%
- if (user.isUseJYSys()) {
- %>
- <input class="littleButton" name="webSys_btn" value="精友车型接口"
- type="button"
- onclick="loadDataFromOtherWebSys(1,document.forms[0].elements['metaObject.vehicle.vin_no'].value,'<%=user.getJy_vaccount()%>');"
- style='width:85px;'>
- <%
- }
- %>
- </div></td>
- </tr>
- <tr>
- <td align="left"><table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr height="20">
- <td nowrap="true" width="55px" height="20" align="center"
- valign="bottom" onclick=restore_desc();c1_desc();
- id="td1_desc" class="lc">车辆状况</td>
- <td nowrap="true" width="55px" height="20" align="center"
- valign="bottom"
- onclick=restore_desc();c2_desc();init_xyTable();
- id="td2_desc" class="l_tab"><font color="red">图示</font>状况</td>
- <td nowrap="true" width="55px" height="20" align="center"
- valign="bottom" onclick=restore_desc();c3_desc();
- id="td3_desc" class="l_tab">车辆信息</td>
- <td nowrap="true" width="*" height="20" align="center"
- valign="bottom" id="td7" class="r-t"></td>
- </tr>
- </table></td>
- </tr>
- <tr id="w1_desc" style="display:block;width:100%;">
- <td align="left"><html:textarea name="ms_svbillForm"
- property="metaObject.vehicle_status"
- onchange="changeCodeMaster('vehicle_status',this,'metaObject.vehicle_status');"
- style='height:140px;width:100%;' />
- <br>
- 建议交流区<br>
- <html:textarea
- name="ms_svbillForm" property="metaObject.sv_suggest"
- onchange="changeCodeMaster('sv_suggest',this,'metaObject.sv_suggest');"
- style='height:85px;width:100%;' /></td>
- </tr>
- <tr id="w2_desc" style="display:none;width:100%;">
- <td align="left"><table style="width:100%; height:100%;" cellpadding="0"
- cellspacing="0">
- <tr>
- <td width="30px" style="text-align: center"><a href="#"
- title="划痕">
- <div id="sign_4"
- style="height: 18px;width: 18px;font-size: 16px;cursor: hand;"
- onclick="restore_sign(4);"> <font face="Webdings">x</font> </div>
- </a><br>
- <a href="#" title="脱漆">
- <div id="sign_9"
- style="height: 18px;width: 18px;font-size: 16px;cursor: hand;"
- onclick="restore_sign(9);"> <font face="Webdings">N</font> </div>
- </a><br>
- <a href="#" title="凹凸">
- <div id="sign_1"
- style="height: 18px;width: 18px;font-size: 16px;cursor: hand;"
- onclick="restore_sign(1);"> <font face="Webdings">i</font> </div>
- </a><br>
- <a href="#" title="损毁">
- <div id="sign_6"
- style="height: 18px;width: 18px;font-size: 16px;cursor: hand;"
- onclick="restore_sign(6);"> <font face="Webdings">@</font> </div>
- </a><br>
- <a href="#" title="其他">
- <div id="sign_7"
- style="height: 18px;width: 18px;font-size: 16px;cursor: hand;"
- onclick="restore_sign(7);"> <font face="Webdings">=</font> </div>
- </a><br></td>
- <td width="*"><div id="signBG" align="left"
- style="width:100%;height: 100%; background-color:#FFFFFF">
- <table id="xytable"
- style="width:100%; height:100%;background-image:url(images/carbg.gif);background-position:top left;background-repeat: no-repeat;border: 1px solid #000000;table-layout: fixed;"
- cellpadding="0" cellspacing="0">
- </table>
- </div></td>
- </tr>
- </table></td>
- </tr>
- <tr id="w3_desc" style="display:none;width:100%;">
- <td align="left"><table class="dialog" cellpadding="0" cellspacing="0"
- width="100%">
- <tr>
- <td nowrap="true" width="90px" align="left">下次保养日期</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.quarter_check_date"
- onchange="changeMaster('quarter_check_date',this,'metaObject.vehicle.quarter_check_date');" />
- <img border="none" src="images/icon_calendar.gif"
- onclick="show_calendar1('ms_svbillForm','metaObject.vehicle.quarter_check_date');"
- style='cursor:hand;' /></td>
- <td nowrap="true" width="*" align="left"> </td>
- </tr>
- <tr>
- <td nowrap="true" width="90px" align="left">下次保养里程</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.vehicle.yl_fee"
- onchange="changeMaster('yl_fee',this,'metaObject.vehicle.yl_fee');" />
- </td>
- <td nowrap="true" width="*" align="left"> </td>
- </tr>
- <tr>
- <td nowrap="true" width="90px" align="left">历史来厂次数</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm" property="metaObject.incount"
- disabled="true" /></td>
- <td nowrap="true" width="*" align="left"> </td>
- </tr>
- <tr>
- <td nowrap="true" width="90px" align="left">历史总金额</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.in_amount" disabled="true" />
- </td>
- </tr>
- <tr>
- <td nowrap="true" width="80px" align="left">客户级别</td>
- <td nowrap="true" width="190px" align="left"><html:text
- name="ms_svbillForm"
- property="metaObject.vehicle.owner.level.description"
- disabled="true" /></td>
- </tr>
- <tr >
- <td width="75" nowrap="true"><div align="left">信息来源</div></td>
- <td width="150" nowrap="true"><div align="left">
- <html:text name="ms_svbillForm" property="metaObject.custAndCxp.customerexp.info_from.description" onchange="changeMaster('info_from',this,'metaObject.custAndCxp.customerexp.info_from.description');" ondblclick="doDBClickQuery(this,'ms_svbillForm','info_from');" onkeydown="doFKeyQuery(this,'ms_svbillForm','info_from');" style="width:120px"/>
- <img border="none" src="images/icon_calendar.gif" onClick="show_query2('ms_svbillForm','metaObject.custAndCxp.customerexp.info_from.description','info_from');" style='cursor:hand;'/> </div></td>
- <td width="*" nowrap="true"></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </div>
- <table id=zuofei cellSpacing=0 cellPadding=0 border=0
- style='z-index:990;display:none;position:absolute;width:405px;height:120px;background-color:#faf5f1;border-bottom: 8px solid #ffc080; border-top: 8px solid #ffc080;border-left: 8px solid #ffc080;border-right: 8px solid #ffc080;'>
- <tr height="25">
- <th colspan="2"
- style='border-bottom: 1px solid #9c9992; border-top: 0px;border-left: 0px;border-right: 0px;font-size:14px;background-color:#ffc080;'> <span onselectstart="return false" style='cursor:Move;width:100%;'>作废原因</span> </th>
- </tr>
- <tr>
- <td nowrap="true"><div align="center">作废原因:</div></td>
- <td nowrap="true"><div align="left" rosplan="3">
- <html:textarea name="ms_svbillForm"
- property="metaObject.un_description" rows="3"
- style="width: 270px;" />
- </div></td>
- </tr>
- <tr>
- <td align="center" colspan="2"><input class="littleButton"
- type=button value="确定" onClick="dounDescription();"
- style='width:60;' />
-
- <input
- class="littleButton" type=button value="取消"
- onclick="CloseDounDescription();" style='width:60;' /></td>
- </tr>
- </table>
- <div id=vehicleSb
- style="width:800px;height:300px;display:none;position:absolute;z-index:990;background-color:#faf5f1;border-bottom: 8px solid #ffc080; border-top: 8px solid #ffc080;border-left: 8px solid #ffc080;border-right: 8px solid #ffc080;">
- <table cellSpacing=0 cellPadding=0 border=0
- style="font-size:14px;font-weight:bold;width:100%">
- <tr height="25">
- <th colspan="8"
- style='border-bottom: 1px solid #9c9992;border-top: 0px;border-left: 0px;border-right: 0px;background-color:#ffc080;'> <span>等待接车的车辆</span></th>
- <th
- style='border-bottom: 1px solid #9c9992;border-top: 0px;border-left: 0px;border-right: 0px;background-color:#ffc080;'> <a href="javascript:closeVehicleSb();">取消</a></th>
- </tr>
- <tr>
- <td width="5%">NO</td>
- <td width="15%">车牌</td>
- <td width="13%">车主</td>
- <td width="10%">客户专员</td>
- <td width="12%">会员卡号</td>
- <td width="10%">会员类别</td>
- <td width="10%">是否预约</td>
- <td width="15%">最近送修人</td>
- <td width="10%">上次接车</td>
- </tr>
- </table>
- <div style="height:300px;width:98%;overflow:auto;">
- <table cellSpacing=0 cellPadding=0 border=0
- style='font-size:14px;width:100%'>
- <logic:iterate id="vehicleSbList" name="ms_svbillForm"
- property="vehicleSbList" indexId="idx" length="100" offset="0">
- <tr height="30px" onClick="selectDetail('${idx+1 }');"
- ondblclick="doSelectBill('${idx+1 }','vehicleSbList[${idx+1 }].vehicle_no');">
- <td width="5%">${idx+1 }</td>
- <td width="15%"><bean:write name="vehicleSbList"
- property="vehicle_no" />
- </td>
- <td width="15%"><bean:write name="vehicleSbList"
- property="owner" />
- </td>
- <td width="10%"><bean:write name="vehicleSbList"
- property="desk_clerk" />
- </td>
- <td width="10%"><bean:write name="vehicleSbList"
- property="associatorl_no" />
- </td>
- <td width="10%"><bean:write name="vehicleSbList"
- property="associatorl_type" />
- </td>
- <td width="10%"><bean:write name="vehicleSbList"
- property="yy_type" />
- </td>
- <td width="15%"><bean:write name="vehicleSbList"
- property="sx_staff" />
- </td>
- <td width="10%"><bean:write name="vehicleSbList"
- property="jc_staff" />
- </td>
- <input type="hidden" name="vehicleSbList[${idx+1 }].vehicle_no"
- value="<bean:write name="vehicleSbList" property="vehicle_no"/>
- " /> </tr>
- </logic:iterate>
- </table>
- </div>
- <table cellSpacing=0 cellPadding=0 border=0
- style='font-size:14px;width:100%;color:red;'>
- <tr>
- <td align="center">双击选择车辆</td>
- </tr>
- </table>
- </div>
- </html:form>
- <div id=divProcessing
- style="z-index:9998;width:100%;height:100%;position:absolute;left:0px;top:0px;display:none;filter:Alpha(opacity=20);background-color: gray;">
- <table width="100%" height="100%" border="0" cellspacing="0"
- cellpadding="0">
- <tr>
- <td> </td>
- </tr>
- </table>
- </div>
- <div id=divSearch
- style="z-index:9999;text-align: center;width:350px;height:30px;position:absolute;left:expression((document.body.offsetWidth-350)/2);top:expression((document.body.offsetHeight-30)/2);display:none;border:0px;">
- <div> <img src="images/circleloading.gif" /> </div>
- </div>
- <c:if test="${ms_svbillForm.metaObject.differ_kind == 3}">
- <div id=fendantale
- style='display:none;position:absolute;z-index:9999999;width:480px;height:100px; top:100px;left:480px;'>
- <table cellSpacing=0 cellPadding=0
- style='background-color:#faf5f1;width:250px;height:100px;border: 4px solid #ffc080;'>
- <tr height="25">
- <th colspan=4
- style='border-bottom: 1px solid #9c9992; border-top: 0px;border-left: 0px;border-right: 0px;font-size:14px;background-color:#ffc080;'> <span onselectstart="return false" style='cursor:Move;width:100%;'>结算分单</span> </th>
- </tr>
- <tr>
- <td nowrap="true"><div align="center">保险分单</div></td>
- <td nowrap="true"><div align="left">
- <input type="checkbox" name="differ_bx" style='width:20px;'
- onclick="changeMaster('differ_bx',this,'differ_bx');" />
- </div></td>
- <td nowrap="true"><div align="center">索赔分单</div></td>
- <td nowrap="true"><div align="left">
- <input type="checkbox" name="differ_sb" style='width:20px;'
- onclick="changeMaster('differ_sb',this,'differ_sb');" />
- </div></td>
- </tr>
- <tr height="20">
- <td colspan=4 align=center
- style='border-bottom: 0px; border-top: 1px solid #9c9992;border-left: 0px;border-right: 0px;'><input class="littleButton" type=button value="确定"
- onclick="doDifferSvBill();" style='width:60;' />
- <input
- class="littleButton" type=button value="关闭" onClick="fendanOff();"
- style='width:60;' /></td>
- </tr>
- </table>
- </div>
- </c:if>
- <%
- if (com.metasoft.basic.SysSet.sy098) {
- %>
- <SCRIPT language=javascript>function ValidateObj(prop_name,dis_name,must_input, length_check,min_length,max_length){
- this.prop_name = prop_name;
- this.dis_name = dis_name;
- this.must_input = must_input;
- this.length_check = length_check;
- this.min_length = min_length;
- this.max_length = max_length;
- }
- function validateObj(){
- try{
- }catch(Exception){}
- }
- var validateArray = new Array();
- try{
- <%java.util.List list = com.metasoft.basic.meta.MS_BillInputSetFactory.getSetValues("SV001_jc");
- if (list != null && list.size() > 0) {
- com.metasoft.basic.objects.pojo.MS_BillInputSetObject setObj = null;
- for (int a = 0; a < list.size(); a++) {
- setObj = (com.metasoft.basic.objects.pojo.MS_BillInputSetObject) list
- .get(a);
- if (setObj != null
- && ((setObj.getMust_input() != null && setObj
- .getMust_input().booleanValue()) || (setObj
- .getLength_check() != null && setObj
- .getLength_check().booleanValue()))) {
- out.println(" var validateObj" + a
- + " = new ValidateObj('"
- + setObj.getPname() + "','"
- + setObj.getPdisplayname() + "',"
- + setObj.getMust_input() + ","
- + setObj.getLength_check() + ","
- + setObj.getMin_length() + ","
- + setObj.getMax_length() + ");");
- out.println("validateArray.push(validateObj"
- + a + ");");
- }
- }
- }%>
- if(validateArray.length>0){
- var form_elements = document.forms[0].elements;
- for(var b=0;b<validateArray.length;b++){
- var inputName = 'metaObject.' + validateArray[b].prop_name;
- for(var a=0;a<form_elements.length;a++){
- if(form_elements[a].name.indexOf(inputName) == 0 && form_elements[a].type
- && !form_elements[a].disabled && form_elements[a].type.toLowerCase() != 'hidden'){
- form_elements[a].style.backgroundColor="<%=com.metasoft.basic.SysSet.sy098_str%>";
- break;
- }
- }
- }
- }
- }catch(Exception){}
- -->
- </SCRIPT>
- <%
- }
- %>
- </body>
- </html:html>
- <SCRIPT language=javascript> currfromsrc="ms_svbill";
- currbillquerysrc="ms_svbilljc";
- <bean:write name="ms_svbillForm" property="refreshCode" filter="false"/>
- showKeyColor();
- if(parent.mframeid!=window)
- {
- parent.mframeid.document.body.innerHTML=document.body.innerHTML;
- parent.mframeid.loadOff();
- }
- var focuscol=document.forms[0].elements["nextfocusfield"].value;
- if(focuscol==null||focuscol=="")
- focuscol="metaObject.vehicle.code";
- if(parent.mframeid.document.forms[0].elements[focuscol]&&!parent.mframeid.document.forms[0].elements[focuscol].disabled)
- {
- parent.mframeid.document.forms[0].elements[focuscol].focus();
- parent.mframeid.document.forms[0].elements[focuscol].select();
- }
- doOpenVehicleSb();
- </SCRIPT>
复制代码重启tomcat 搞定! 效果:
-
-
已经编译好的直接可以上传到metasoft.jar的.rar
(, 下载次数:412)
(2014/6/9 17:32:31 上传)
|