作者 xudada

BY XYH

@@ -44,6 +44,26 @@ public class LandBusinesstypeList extends DataEntity<LandBusinesstypeList> { @@ -44,6 +44,26 @@ public class LandBusinesstypeList extends DataEntity<LandBusinesstypeList> {
44 private String remark1; // 预留字段 44 private String remark1; // 预留字段
45 private String remark2; // 预留字段 45 private String remark2; // 预留字段
46 46
  47 + public String getIsthree() {
  48 + return isthree;
  49 + }
  50 +
  51 + public void setIsthree(String isthree) {
  52 + this.isthree = isthree;
  53 + }
  54 +
  55 + private String isthree;
  56 +
  57 + public String getRemark3() {
  58 + return remark3;
  59 + }
  60 +
  61 + public void setRemark3(String remark3) {
  62 + this.remark3 = remark3;
  63 + }
  64 +
  65 + private String remark3;
  66 +
47 public LandBusinesstypeList() { 67 public LandBusinesstypeList() {
48 super(); 68 super();
49 } 69 }
@@ -27,6 +27,7 @@ import com.thinkgem.jeesite.modules.yard.service.BayonetService; @@ -27,6 +27,7 @@ import com.thinkgem.jeesite.modules.yard.service.BayonetService;
27 import com.thinkgem.jeesite.modules.yard.service.YardService; 27 import com.thinkgem.jeesite.modules.yard.service.YardService;
28 import org.apache.shiro.authz.annotation.RequiresPermissions; 28 import org.apache.shiro.authz.annotation.RequiresPermissions;
29 import org.springframework.beans.factory.annotation.Autowired; 29 import org.springframework.beans.factory.annotation.Autowired;
  30 +import org.springframework.beans.factory.annotation.Value;
30 import org.springframework.stereotype.Controller; 31 import org.springframework.stereotype.Controller;
31 import org.springframework.ui.Model; 32 import org.springframework.ui.Model;
32 import org.springframework.web.bind.annotation.ModelAttribute; 33 import org.springframework.web.bind.annotation.ModelAttribute;
@@ -72,6 +73,7 @@ public class LandBusinesstypeListController extends BaseController { @@ -72,6 +73,7 @@ public class LandBusinesstypeListController extends BaseController {
72 @Autowired 73 @Autowired
73 private OfficeService officeService; 74 private OfficeService officeService;
74 75
  76 +
75 private static final String TYPE1 = "调拨业务"; 77 private static final String TYPE1 = "调拨业务";
76 private static final String TYPE2 = "进口提货"; 78 private static final String TYPE2 = "进口提货";
77 private static final String TYPE3 = "出口送货"; 79 private static final String TYPE3 = "出口送货";
@@ -270,18 +272,33 @@ public class LandBusinesstypeListController extends BaseController { @@ -270,18 +272,33 @@ public class LandBusinesstypeListController extends BaseController {
270 } 272 }
271 } 273 }
272 flag = true; 274 flag = true;
273 - } else { 275 + } else {//西-综 分拨 综-西 调拨 4600329012 4600329012
274 if (TYPE1.equals(landBusinesstypeList.getBusinesstype())) { 276 if (TYPE1.equals(landBusinesstypeList.getBusinesstype())) {
  277 + if(landBusinesstypeList.getStartsatation().equals("4600329012")||landBusinesstypeList.getEndstation().equals("4600329012")){
  278 + flag = insertTypeZD(landBusinesstypeList);
  279 + }else{
275 flag = insertType1(landBusinesstypeList); 280 flag = insertType1(landBusinesstypeList);
276 } 281 }
  282 +
  283 + }
277 if (TYPE2.equals(landBusinesstypeList.getBusinesstype())) { 284 if (TYPE2.equals(landBusinesstypeList.getBusinesstype())) {
278 flag = insertType2(landBusinesstypeList); 285 flag = insertType2(landBusinesstypeList);
279 } 286 }
280 if (TYPE3.equals(landBusinesstypeList.getBusinesstype())) { 287 if (TYPE3.equals(landBusinesstypeList.getBusinesstype())) {
  288 + if(landBusinesstypeList.getStartsatation().equals("4600329012")||landBusinesstypeList.getEndstation().equals("4600329012")){
  289 + if(landBusinesstypeList.getIsthree().equals("0")){
  290 + flag = insertTypeZE(landBusinesstypeList);
  291 + }else{
  292 + flag = insertTypeZE2(landBusinesstypeList);
  293 + }
  294 +
  295 + }else{
281 flag = insertType3(landBusinesstypeList); 296 flag = insertType3(landBusinesstypeList);
282 } 297 }
  298 +
  299 + }
283 if (TYPE4.equals(landBusinesstypeList.getBusinesstype())) { 300 if (TYPE4.equals(landBusinesstypeList.getBusinesstype())) {
284 - flag = insertType1(landBusinesstypeList); 301 + flag = insertType6(landBusinesstypeList);
285 } 302 }
286 } 303 }
287 if (flag) { 304 if (flag) {
@@ -350,7 +367,7 @@ public class LandBusinesstypeListController extends BaseController { @@ -350,7 +367,7 @@ public class LandBusinesstypeListController extends BaseController {
350 367
351 try { 368 try {
352 String messageId = dateTimeFormat(); 369 String messageId = dateTimeFormat();
353 - 370 + //String barCode = "abcd";
354 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId); 371 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
355 if (barCode.length() < 1 | barCode == null) { 372 if (barCode.length() < 1 | barCode == null) {
356 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo()); 373 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
@@ -460,12 +477,298 @@ public class LandBusinesstypeListController extends BaseController { @@ -460,12 +477,298 @@ public class LandBusinesstypeListController extends BaseController {
460 return true; 477 return true;
461 478
462 } 479 }
  480 + public boolean insertTypeZD(LandBusinesstypeList landBusinesstypeList) {
  481 +
  482 + try {
  483 + String messageId = dateTimeFormat();
  484 + //String barCode = "abcd";
  485 + String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
  486 + if (barCode.length() < 1 | barCode == null) {
  487 + buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
  488 + return false;
  489 + }
  490 + // first entry in
  491 + String mainfistList = landBusinesstypeList.getMasterList();
  492 + String startport = landBusinesstypeList.getStartport();
  493 + String endport = landBusinesstypeList.getEndport();
  494 + String startStation = landBusinesstypeList.getStartsatation();
  495 + String endStation = landBusinesstypeList.getEndstation();
  496 + String isfull = landBusinesstypeList.getIsfull();
  497 +
  498 + landBusinesstypeList.setMassageId(messageId);
  499 + landBusinesstypeList.setStartport("");
  500 + landBusinesstypeList.setStartsatation("");
  501 + landBusinesstypeList.setEndport(startport);
  502 + landBusinesstypeList.setEndstation(startStation);
  503 + landBusinesstypeList.setMasterList("");
  504 + landBusinesstypeList.setProdectTime(new Date());
  505 + landBusinesstypeList.setBarcode(barCode);
  506 + landBusinesstypeList.setAisle(bayService.findByYardAndName(startStation, "6号卡口-进").getChannel());
  507 + landBusinesstypeListService.save(landBusinesstypeList);
  508 + insertVm(landBusinesstypeList.getMassageId(), landBusinesstypeList.getTrailerFrameNo(), mainfistList);
  509 +
  510 + // second out
  511 + LandBusinesstypeList list = new LandBusinesstypeList();
  512 + list.setAgentname(landBusinesstypeList.getAgentname());
  513 + list.setAgentno(landBusinesstypeList.getAgentno());
  514 + list.setCocode(landBusinesstypeList.getCocode());
  515 + list.setIsDelete("0");
  516 + list.setIsvalid("0");
  517 + list.setIsfull(isfull);
  518 + list.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  519 + list.setBusinesstype(landBusinesstypeList.getBusinesstype());
  520 + list.setCocode(landBusinesstypeList.getCocode());
  521 + list.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  522 + list.setEndport(startport);
  523 + list.setEndstation(startStation);
  524 + list.setProdectTime(new Date());
  525 + list.setMasterList(mainfistList);
  526 + list.setDriverid(landBusinesstypeList.getDriverid());
  527 + list.setDrivername(landBusinesstypeList.getDrivername());
  528 + list.setAisle(bayService.findByYardAndName(startStation, "6号卡口-出").getChannel());
  529 + list.setTurnoverflag("E");
  530 + list.setMassageId(messageId);
  531 + list.setBarcode(barCode);
  532 + landBusinesstypeListService.save(list);
  533 +
  534 + // third
  535 + LandBusinesstypeList list1 = new LandBusinesstypeList();
  536 + list1.setAgentname(landBusinesstypeList.getAgentname());
  537 + list1.setAgentno(landBusinesstypeList.getAgentno());
  538 + list1.setCocode(landBusinesstypeList.getCocode());
  539 + list1.setIsDelete("0");
  540 + list1.setIsvalid("0");
  541 + list1.setIsfull(isfull);
  542 + list1.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  543 + list1.setBusinesstype(landBusinesstypeList.getBusinesstype());
  544 + list1.setCocode(landBusinesstypeList.getCocode());
  545 + list1.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  546 + list1.setStartport(startport);
  547 + list1.setStartsatation(startStation);
  548 + list1.setEndport(endport);
  549 + list1.setEndstation(endStation);
  550 + list1.setProdectTime(new Date());
  551 + list1.setMasterList(mainfistList);
  552 + list1.setDriverid(landBusinesstypeList.getDriverid());
  553 + list1.setDrivername(landBusinesstypeList.getDrivername());
  554 + list1.setAisle(bayService.findByYardAndName(endStation, "1号卡口-进").getChannel());
  555 + list1.setTurnoverflag("I");
  556 + list1.setMassageId(messageId);
  557 + list1.setBarcode(barCode);
  558 + landBusinesstypeListService.save(list1);
  559 +
  560 + // four
  561 + LandBusinesstypeList list2 = new LandBusinesstypeList();
  562 + list2.setAgentname(landBusinesstypeList.getAgentname());
  563 + list2.setAgentno(landBusinesstypeList.getAgentno());
  564 + list2.setCocode(landBusinesstypeList.getCocode());
  565 + list2.setIsDelete("0");
  566 + list2.setIsvalid("0");
  567 + list2.setIsfull(isfull);
  568 + list2.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  569 + list2.setBusinesstype(landBusinesstypeList.getBusinesstype());
  570 + list2.setCocode(landBusinesstypeList.getCocode());
  571 + list2.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  572 + list2.setStartport("");
  573 + list2.setStartsatation("");
  574 + list2.setStartport(startport);
  575 + list2.setStartsatation(startStation);
  576 + list2.setEndport(endport);
  577 + list2.setEndstation(endStation);
  578 + list2.setProdectTime(new Date());
  579 + list2.setMasterList("");
  580 + list2.setDriverid(landBusinesstypeList.getDriverid());
  581 + list2.setDrivername(landBusinesstypeList.getDrivername());
  582 + list2.setAisle(bayService.findByYardAndName(endStation, "1号卡口-出").getChannel());
  583 + list2.setTurnoverflag("E");
  584 + list2.setMassageId(messageId);
  585 + list2.setBarcode(barCode);
  586 + landBusinesstypeListService.save(list2);
  587 +
  588 +
  589 +
  590 + } catch (Exception e) {
  591 + e.printStackTrace();
  592 + }
  593 + return true;
  594 +
  595 + }
  596 +
  597 + public boolean insertType6(LandBusinesstypeList landBusinesstypeList){
  598 + try {
  599 + String messageId = dateTimeFormat();
  600 +
  601 + String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
  602 + //String barCode = "abcd";
  603 + if (barCode.length() < 1 | barCode == null) {
  604 + buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
  605 + return false;
  606 + }
  607 + // first entry in
  608 + String mainfistList = landBusinesstypeList.getMasterList();
  609 + String startport = landBusinesstypeList.getStartport();
  610 + String endport = landBusinesstypeList.getEndport();
  611 + String startStation = landBusinesstypeList.getStartsatation();
  612 + String endStation = landBusinesstypeList.getEndstation();
  613 + String isfull = landBusinesstypeList.getIsfull();
  614 +
  615 + landBusinesstypeList.setMassageId(messageId);
  616 + landBusinesstypeList.setStartport("");
  617 + landBusinesstypeList.setStartsatation("");
  618 + landBusinesstypeList.setEndport(startport);
  619 + landBusinesstypeList.setEndstation(startStation);
  620 + landBusinesstypeList.setMasterList("");
  621 + landBusinesstypeList.setProdectTime(new Date());
  622 + landBusinesstypeList.setBarcode(barCode);
  623 + landBusinesstypeList.setAisle(bayService.findByYardAndName(startStation, "1号卡口-进").getChannel());
  624 + landBusinesstypeListService.save(landBusinesstypeList);
  625 + insertVm(landBusinesstypeList.getMassageId(), landBusinesstypeList.getTrailerFrameNo(), mainfistList);
  626 +
  627 + // second out
  628 + LandBusinesstypeList list = new LandBusinesstypeList();
  629 + list.setAgentname(landBusinesstypeList.getAgentname());
  630 + list.setAgentno(landBusinesstypeList.getAgentno());
  631 + list.setCocode(landBusinesstypeList.getCocode());
  632 + list.setIsDelete("0");
  633 + list.setIsvalid("0");
  634 + list.setIsfull(isfull);
  635 + list.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  636 + list.setBusinesstype(landBusinesstypeList.getBusinesstype());
  637 + list.setCocode(landBusinesstypeList.getCocode());
  638 + list.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  639 + list.setEndport(startport);
  640 + list.setEndstation(startStation);
  641 + list.setProdectTime(new Date());
  642 + list.setMasterList(mainfistList);
  643 + list.setDriverid(landBusinesstypeList.getDriverid());
  644 + list.setDrivername(landBusinesstypeList.getDrivername());
  645 + list.setAisle(bayService.findByYardAndName(startStation, "1号卡口-出").getChannel());
  646 + list.setTurnoverflag("E");
  647 + list.setMassageId(messageId);
  648 + list.setBarcode(barCode);
  649 + landBusinesstypeListService.save(list);
  650 +
  651 + // third
  652 + LandBusinesstypeList list1 = new LandBusinesstypeList();
  653 + list1.setAgentname(landBusinesstypeList.getAgentname());
  654 + list1.setAgentno(landBusinesstypeList.getAgentno());
  655 + list1.setCocode(landBusinesstypeList.getCocode());
  656 + list1.setIsDelete("0");
  657 + list1.setIsvalid("0");
  658 + list1.setIsfull(isfull);
  659 + list1.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  660 + list1.setBusinesstype(landBusinesstypeList.getBusinesstype());
  661 + list1.setCocode(landBusinesstypeList.getCocode());
  662 + list1.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  663 + list1.setStartport(startport);
  664 + list1.setStartsatation(startStation);
  665 + list1.setEndport(endport);
  666 + list1.setEndstation(endStation);
  667 + list1.setProdectTime(new Date());
  668 + list1.setMasterList(mainfistList);
  669 + list1.setDriverid(landBusinesstypeList.getDriverid());
  670 + list1.setDrivername(landBusinesstypeList.getDrivername());
  671 + list1.setAisle(bayService.findByYardAndName(endStation, "6号卡口-进").getChannel());
  672 + list1.setTurnoverflag("I");
  673 + list1.setMassageId(messageId);
  674 + list1.setBarcode(barCode);
  675 + landBusinesstypeListService.save(list1);
  676 +
  677 + // four
  678 + LandBusinesstypeList list2 = new LandBusinesstypeList();
  679 + list2.setAgentname(landBusinesstypeList.getAgentname());
  680 + list2.setAgentno(landBusinesstypeList.getAgentno());
  681 + list2.setCocode(landBusinesstypeList.getCocode());
  682 + list2.setIsDelete("0");
  683 + list2.setIsvalid("0");
  684 + list2.setIsfull(isfull);
  685 + list2.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  686 + list2.setBusinesstype(landBusinesstypeList.getBusinesstype());
  687 + list2.setCocode(landBusinesstypeList.getCocode());
  688 + list2.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  689 + list2.setStartport("");
  690 + list2.setStartsatation("");
  691 + list2.setStartport(startport);
  692 + list2.setStartsatation(startStation);
  693 + list2.setEndport(endport);
  694 + list2.setEndstation(endStation);
  695 + list2.setProdectTime(new Date());
  696 + list2.setMasterList("");
  697 + list2.setDriverid(landBusinesstypeList.getDriverid());
  698 + list2.setDrivername(landBusinesstypeList.getDrivername());
  699 + list2.setAisle(bayService.findByYardAndName(endStation, "6号卡口-出").getChannel());
  700 + list2.setTurnoverflag("E");
  701 + list2.setMassageId(messageId);
  702 + list2.setBarcode(barCode);
  703 + landBusinesstypeListService.save(list2);
  704 + //five
  705 + LandBusinesstypeList list3 = new LandBusinesstypeList();
  706 + list3.setAgentname(landBusinesstypeList.getAgentname());
  707 + list3.setAgentno(landBusinesstypeList.getAgentno());
  708 + list3.setCocode(landBusinesstypeList.getCocode());
  709 + list3.setIsDelete("0");
  710 + list3.setIsvalid("0");
  711 + list3.setIsfull(isfull);
  712 + list3.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  713 + list3.setBusinesstype(landBusinesstypeList.getBusinesstype());
  714 + list3.setCocode(landBusinesstypeList.getCocode());
  715 + list3.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  716 + list3.setStartport("");
  717 + list3.setStartsatation("");
  718 + list3.setStartport(startport);
  719 + list3.setStartsatation(startStation);
  720 + list3.setEndport(endport);
  721 + list3.setEndstation("4612199001");
  722 + list3.setProdectTime(new Date());
  723 + list3.setMasterList("");
  724 + list3.setDriverid(landBusinesstypeList.getDriverid());
  725 + list3.setDrivername(landBusinesstypeList.getDrivername());
  726 + list3.setAisle("4612031001");
  727 + list3.setTurnoverflag("I");
  728 + list3.setMassageId(messageId);
  729 + list3.setBarcode(barCode);
  730 + landBusinesstypeListService.save(list3);
  731 + //six
  732 + //five
  733 + LandBusinesstypeList list4 = new LandBusinesstypeList();
  734 + list4.setAgentname(landBusinesstypeList.getAgentname());
  735 + list4.setAgentno(landBusinesstypeList.getAgentno());
  736 + list4.setCocode(landBusinesstypeList.getCocode());
  737 + list4.setIsDelete("0");
  738 + list4.setIsvalid("0");
  739 + list4.setIsfull(isfull);
  740 + list4.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  741 + list4.setBusinesstype(landBusinesstypeList.getBusinesstype());
  742 + list4.setCocode(landBusinesstypeList.getCocode());
  743 + list4.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  744 + list4.setStartport("");
  745 + list4.setStartsatation("");
  746 + list4.setStartport(startport);
  747 + list4.setStartsatation(startStation);
  748 + list4.setEndport(endport);
  749 + list4.setEndstation("4612199001");
  750 + list4.setProdectTime(new Date());
  751 + list4.setMasterList("");
  752 + list4.setDriverid(landBusinesstypeList.getDriverid());
  753 + list4.setDrivername(landBusinesstypeList.getDrivername());
  754 + //list4.setAisle(bayService.findByYardAndName(endStation, "内三卡口-出").getChannel());
  755 + list4.setAisle("4612030001");
  756 + list4.setTurnoverflag("E");
  757 + list4.setMassageId(messageId);
  758 + list4.setBarcode(barCode);
  759 + landBusinesstypeListService.save(list4);
  760 +
  761 + } catch (Exception e) {
  762 + e.printStackTrace();
  763 + }
  764 + return true;
  765 + }
463 766
464 public boolean insertType2(LandBusinesstypeList landBusinesstypeList) { 767 public boolean insertType2(LandBusinesstypeList landBusinesstypeList) {
465 768
466 try { 769 try {
467 String messageId = LandBusinesstypeListController.dateTimeFormat(); 770 String messageId = LandBusinesstypeListController.dateTimeFormat();
468 - 771 + //String barCode="abcd";
469 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId); 772 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
470 if (barCode.length() < 1 | barCode == null) { 773 if (barCode.length() < 1 | barCode == null) {
471 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo()); 774 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
@@ -501,7 +804,16 @@ public class LandBusinesstypeListController extends BaseController { @@ -501,7 +804,16 @@ public class LandBusinesstypeListController extends BaseController {
501 list.setMasterList(mainfistList); 804 list.setMasterList(mainfistList);
502 list.setDriverid(landBusinesstypeList.getDriverid()); 805 list.setDriverid(landBusinesstypeList.getDriverid());
503 list.setDrivername(landBusinesstypeList.getDrivername()); 806 list.setDrivername(landBusinesstypeList.getDrivername());
  807 + if("4604333311".equals(landBusinesstypeList.getAisle())){
  808 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  809 + }else if("4604333321".equals(landBusinesstypeList.getAisle())){
  810 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "2号卡口-出").getChannel());
  811 + }else if("4604444411".equals(landBusinesstypeList.getAisle())){
  812 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  813 + }else{
504 list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel()); 814 list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  815 + }
  816 +
505 list.setTurnoverflag("E"); 817 list.setTurnoverflag("E");
506 list.setMassageId(messageId); 818 list.setMassageId(messageId);
507 list.setBarcode(barCode); 819 list.setBarcode(barCode);
@@ -517,7 +829,7 @@ public class LandBusinesstypeListController extends BaseController { @@ -517,7 +829,7 @@ public class LandBusinesstypeListController extends BaseController {
517 try { 829 try {
518 830
519 String messageId = LandBusinesstypeListController.dateTimeFormat(); 831 String messageId = LandBusinesstypeListController.dateTimeFormat();
520 - 832 + //String barCode="abcd";
521 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId); 833 String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
522 if (barCode.length() < 1 | barCode == null) { 834 if (barCode.length() < 1 | barCode == null) {
523 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo()); 835 buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
@@ -551,7 +863,172 @@ public class LandBusinesstypeListController extends BaseController { @@ -551,7 +863,172 @@ public class LandBusinesstypeListController extends BaseController {
551 list.setMasterList(""); 863 list.setMasterList("");
552 list.setDriverid(landBusinesstypeList.getDriverid()); 864 list.setDriverid(landBusinesstypeList.getDriverid());
553 list.setDrivername(landBusinesstypeList.getDrivername()); 865 list.setDrivername(landBusinesstypeList.getDrivername());
  866 + if("4604333311".equals(landBusinesstypeList.getAisle())){
554 list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel()); 867 list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  868 + }else if("4604333321".equals(landBusinesstypeList.getAisle())){
  869 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "2号卡口-出").getChannel());
  870 + }else if("4604444411".equals(landBusinesstypeList.getAisle())){
  871 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  872 + }else{
  873 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "1号卡口-出").getChannel());
  874 + }
  875 + list.setTurnoverflag("E");
  876 + list.setMassageId(messageId);
  877 + list.setBarcode(barCode);
  878 + landBusinesstypeListService.save(list);
  879 +
  880 + } catch (Exception e) {
  881 + e.printStackTrace();
  882 + }
  883 + return true;
  884 + }
  885 + public boolean insertTypeZE(LandBusinesstypeList landBusinesstypeList) {
  886 +
  887 + try {
  888 +
  889 + String messageId = LandBusinesstypeListController.dateTimeFormat();
  890 + //String barCode="abcd";
  891 + String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
  892 + if (barCode.length() < 1 | barCode == null) {
  893 + buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
  894 + return false;
  895 + }
  896 + // first entry
  897 + landBusinesstypeList.setMassageId(messageId);
  898 + String mainfistList = landBusinesstypeList.getMasterList();
  899 + String isfull = landBusinesstypeList.getIsfull();
  900 + landBusinesstypeList.setProdectTime(new Date());
  901 + landBusinesstypeList.setBarcode(barCode);
  902 + landBusinesstypeListService.save(landBusinesstypeList);
  903 + insertVm(landBusinesstypeList.getMassageId(), landBusinesstypeList.getTrailerFrameNo(), mainfistList);
  904 + // second
  905 + LandBusinesstypeList list = new LandBusinesstypeList();
  906 + list.setAgentname(landBusinesstypeList.getAgentname());
  907 + list.setAgentno(landBusinesstypeList.getAgentno());
  908 + list.setCocode(landBusinesstypeList.getCocode());
  909 + list.setIsDelete("0");
  910 + list.setIsvalid("0");
  911 + list.setIsfull(isfull);
  912 + list.setIsthree("0");
  913 + list.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  914 + list.setBusinesstype(landBusinesstypeList.getBusinesstype());
  915 + list.setCocode(landBusinesstypeList.getCocode());
  916 + list.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  917 + list.setStartport(landBusinesstypeList.getStartport());
  918 + list.setStartsatation(landBusinesstypeList.getStartsatation());
  919 + list.setEndport(landBusinesstypeList.getEndport());
  920 + list.setEndstation(landBusinesstypeList.getEndstation());
  921 + list.setProdectTime(new Date());
  922 + list.setMasterList("");
  923 + list.setDriverid(landBusinesstypeList.getDriverid());
  924 + list.setDrivername(landBusinesstypeList.getDrivername());
  925 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "6号卡口-出").getChannel());
  926 + list.setTurnoverflag("E");
  927 + list.setMassageId(messageId);
  928 + list.setBarcode(barCode);
  929 + landBusinesstypeListService.save(list);
  930 +
  931 + //five
  932 + LandBusinesstypeList list3 = new LandBusinesstypeList();
  933 + list3.setAgentname(landBusinesstypeList.getAgentname());
  934 + list3.setAgentno(landBusinesstypeList.getAgentno());
  935 + list3.setCocode(landBusinesstypeList.getCocode());
  936 + list3.setIsDelete("0");
  937 + list3.setIsvalid("0");
  938 + list3.setIsthree("0");
  939 + list3.setIsfull(isfull);
  940 + list3.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  941 + list3.setBusinesstype(landBusinesstypeList.getBusinesstype());
  942 + list3.setCocode(landBusinesstypeList.getCocode());
  943 + list3.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  944 + list3.setStartport("");
  945 + list3.setStartsatation("");
  946 + list3.setEndport("4620");
  947 + list3.setEndstation("4612199001");
  948 + list3.setProdectTime(new Date());
  949 + list3.setMasterList("");
  950 + list3.setDriverid(landBusinesstypeList.getDriverid());
  951 + list3.setDrivername(landBusinesstypeList.getDrivername());
  952 + list3.setAisle("4612031001");
  953 + list3.setTurnoverflag("I");
  954 + list3.setMassageId(messageId);
  955 + list3.setBarcode(barCode);
  956 + landBusinesstypeListService.save(list3);
  957 + //six
  958 + //five
  959 + LandBusinesstypeList list4 = new LandBusinesstypeList();
  960 + list4.setAgentname(landBusinesstypeList.getAgentname());
  961 + list4.setAgentno(landBusinesstypeList.getAgentno());
  962 + list4.setCocode(landBusinesstypeList.getCocode());
  963 + list4.setIsDelete("0");
  964 + list4.setIsvalid("0");
  965 + list4.setIsthree("0");
  966 + list4.setIsfull(isfull);
  967 + list4.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  968 + list4.setBusinesstype(landBusinesstypeList.getBusinesstype());
  969 + list4.setCocode(landBusinesstypeList.getCocode());
  970 + list4.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  971 + list4.setStartport("");
  972 + list4.setStartsatation("");
  973 + list4.setEndport("4620");
  974 + list4.setEndstation("4612199001");
  975 + list4.setProdectTime(new Date());
  976 + list4.setMasterList("");
  977 + list4.setDriverid(landBusinesstypeList.getDriverid());
  978 + list4.setDrivername(landBusinesstypeList.getDrivername());
  979 + //list4.setAisle(bayService.findByYardAndName(endStation, "内三卡口-出").getChannel());
  980 + list4.setAisle("4612030001");
  981 + list4.setTurnoverflag("E");
  982 + list4.setMassageId(messageId);
  983 + list4.setBarcode(barCode);
  984 + landBusinesstypeListService.save(list4);
  985 +
  986 + } catch (Exception e) {
  987 + e.printStackTrace();
  988 + }
  989 + return true;
  990 + }
  991 + public boolean insertTypeZE2(LandBusinesstypeList landBusinesstypeList) {
  992 +
  993 + try {
  994 +
  995 + String messageId = LandBusinesstypeListController.dateTimeFormat();
  996 + //String barCode="abcd";
  997 + String barCode = buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(), messageId);
  998 + if (barCode.length() < 1 | barCode == null) {
  999 + buildBarCode.cancleBarCode(landBusinesstypeList.getTrailerFrameNo());
  1000 + return false;
  1001 + }
  1002 + // first entry
  1003 + landBusinesstypeList.setMassageId(messageId);
  1004 + String mainfistList = landBusinesstypeList.getMasterList();
  1005 + String isfull = landBusinesstypeList.getIsfull();
  1006 + landBusinesstypeList.setProdectTime(new Date());
  1007 + landBusinesstypeList.setBarcode(barCode);
  1008 + landBusinesstypeListService.save(landBusinesstypeList);
  1009 + insertVm(landBusinesstypeList.getMassageId(), landBusinesstypeList.getTrailerFrameNo(), mainfistList);
  1010 + // second
  1011 + LandBusinesstypeList list = new LandBusinesstypeList();
  1012 + list.setAgentname(landBusinesstypeList.getAgentname());
  1013 + list.setAgentno(landBusinesstypeList.getAgentno());
  1014 + list.setCocode(landBusinesstypeList.getCocode());
  1015 + list.setIsDelete("0");
  1016 + list.setIsvalid("0");
  1017 + list.setIsthree("1");
  1018 + list.setIsfull(isfull);
  1019 + list.setTrailerLicenseNo(landBusinesstypeList.getTrailerLicenseNo());
  1020 + list.setBusinesstype(landBusinesstypeList.getBusinesstype());
  1021 + list.setCocode(landBusinesstypeList.getCocode());
  1022 + list.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());
  1023 + list.setStartport(landBusinesstypeList.getStartport());
  1024 + list.setStartsatation(landBusinesstypeList.getStartsatation());
  1025 + list.setEndport(landBusinesstypeList.getEndport());
  1026 + list.setEndstation(landBusinesstypeList.getEndstation());
  1027 + list.setProdectTime(new Date());
  1028 + list.setMasterList("");
  1029 + list.setDriverid(landBusinesstypeList.getDriverid());
  1030 + list.setDrivername(landBusinesstypeList.getDrivername());
  1031 + list.setAisle(bayService.findByYardAndName(landBusinesstypeList.getEndstation(), "6号卡口-出").getChannel());
555 list.setTurnoverflag("E"); 1032 list.setTurnoverflag("E");
556 list.setMassageId(messageId); 1033 list.setMassageId(messageId);
557 list.setBarcode(barCode); 1034 list.setBarcode(barCode);
@@ -563,81 +1040,6 @@ public class LandBusinesstypeListController extends BaseController { @@ -563,81 +1040,6 @@ public class LandBusinesstypeListController extends BaseController {
563 return true; 1040 return true;
564 } 1041 }
565 1042
566 - /*  
567 - * public void insertType1(LandBusinesstypeList landBusinesstypeList) { //first  
568 - * entry in String messageId = LandBusinesstypeListController.dateTimeFormat();  
569 - * String mainfistList = landBusinesstypeList.getMasterList(); String startport  
570 - * = landBusinesstypeList.getStartport(); String endport =  
571 - * landBusinesstypeList.getEndport(); String startStation =  
572 - * landBusinesstypeList.getStartsatation(); String endStation =  
573 - * landBusinesstypeList.getEndstation(); String isfull =  
574 - * landBusinesstypeList.getIsfull();  
575 - * landBusinesstypeList.setMassageId(messageId); String barCode =  
576 - * buildBarCode.CreateBarCode(landBusinesstypeList.getTrailerFrameNo(),messageId  
577 - * ); landBusinesstypeList.setStartport("");  
578 - * landBusinesstypeList.setStartsatation("");  
579 - * landBusinesstypeList.setEndport(startport);  
580 - * landBusinesstypeList.setEndstation(startStation);  
581 - * landBusinesstypeList.setBarcode(barCode);  
582 - * landBusinesstypeList.setMasterList("");  
583 - * landBusinesstypeList.setProdectTime(new Date());  
584 - * landBusinesstypeList.setAisle(bayService.findByYardAndName(startStation,  
585 - * "1号卡口-进").getChannel());  
586 - * landBusinesstypeListService.save(landBusinesstypeList);  
587 - * insertVm(landBusinesstypeList.getMassageId(),landBusinesstypeList.  
588 - * getTrailerFrameNo(),mainfistList);  
589 - *  
590 - * //second out LandBusinesstypeList list = new LandBusinesstypeList();  
591 - * list.setAgentname(landBusinesstypeList.getAgentname());  
592 - * list.setAgentno(landBusinesstypeList.getAgentno()); list.setBarcode(barCode);  
593 - * list.setIsDelete("0"); list.setIsvalid("0"); list.setIsfull(isfull);  
594 - * list.setBusinesstype(landBusinesstypeList.getBusinesstype());  
595 - * list.setCocode(landBusinesstypeList.getCocode());  
596 - * list.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());  
597 - * list.setEndport(startport); list.setEndstation(startStation);  
598 - * list.setProdectTime(new Date()); list.setMasterList(mainfistList);  
599 - * list.setDriverid(landBusinesstypeList.getDriverid());  
600 - * list.setDrivername(landBusinesstypeList.getDrivername());  
601 - * list.setAisle(bayService.findByYardAndName(startStation,  
602 - * "1号卡口-出").getChannel()); list.setTurnoverflag("E");  
603 - * list.setMassageId(messageId); landBusinesstypeListService.save(list);  
604 - *  
605 - * //third LandBusinesstypeList list1 = new LandBusinesstypeList();  
606 - * list1.setAgentname(landBusinesstypeList.getAgentname());  
607 - * list1.setAgentno(landBusinesstypeList.getAgentno()); list1.setIsDelete("0");  
608 - * list1.setIsvalid("0"); list1.setIsfull(isfull); list1.setBarcode(barCode);  
609 - * list1.setBusinesstype(landBusinesstypeList.getBusinesstype());  
610 - * list1.setCocode(landBusinesstypeList.getCocode());  
611 - * list1.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());  
612 - * list1.setStartport(startport); list1.setStartsatation(startStation);  
613 - * list1.setEndport(endport); list1.setEndstation(endStation);  
614 - * list1.setProdectTime(new Date()); list1.setMasterList(mainfistList);  
615 - * list1.setDriverid(landBusinesstypeList.getDriverid());  
616 - * list1.setDrivername(landBusinesstypeList.getDrivername());  
617 - * list1.setAisle(bayService.findByYardAndName(endStation,  
618 - * "1号卡口-进").getChannel()); list1.setTurnoverflag("I");  
619 - * list1.setMassageId(messageId); landBusinesstypeListService.save(list1);  
620 - *  
621 - * //four LandBusinesstypeList list2 = new LandBusinesstypeList();  
622 - * list2.setAgentname(landBusinesstypeList.getAgentname());  
623 - * list2.setAgentno(landBusinesstypeList.getAgentno());  
624 - * list2.setBarcode(barCode); list2.setIsDelete("0"); list2.setIsvalid("0");  
625 - * list2.setIsfull(isfull);  
626 - * list2.setBusinesstype(landBusinesstypeList.getBusinesstype());  
627 - * list2.setCocode(landBusinesstypeList.getCocode());  
628 - * list2.setTrailerFrameNo(landBusinesstypeList.getTrailerFrameNo());  
629 - * list2.setStartport(""); list2.setStartsatation("");  
630 - * list2.setStartport(startport); list2.setStartsatation(startStation);  
631 - * list2.setEndport(endport); list2.setEndstation(endStation);  
632 - * list2.setProdectTime(new Date()); list2.setMasterList("");  
633 - * list2.setDriverid(landBusinesstypeList.getDriverid());  
634 - * list2.setDrivername(landBusinesstypeList.getDrivername());  
635 - * list2.setAisle(bayService.findByYardAndName(endStation,  
636 - * "1号卡口-出").getChannel()); list2.setTurnoverflag("E");  
637 - * list2.setMassageId(messageId); landBusinesstypeListService.save(list2);  
638 - *  
639 - * }  
640 - */  
641 public static String dateTimeFormat() { 1043 public static String dateTimeFormat() {
642 Date dateTime = new Date(); 1044 Date dateTime = new Date();
643 SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss"); 1045 SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
@@ -11,16 +11,17 @@ @@ -11,16 +11,17 @@
11 11
12 #mysql database setting 12 #mysql database setting
13 jdbc.type=mysql 13 jdbc.type=mysql
14 -#jdbc.driver=com.mysql.cj.jdbc.Driver  
15 -#jdbc.url=jdbc:mysql://10.50.7.60:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai  
16 -#jdbc.username=managent_user  
17 -#jdbc.password=1q2w3e4r%. 14 +jdbc.driver=com.mysql.cj.jdbc.Driver
  15 +jdbc.url=jdbc:mysql://10.50.7.60:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai
  16 +jdbc.username=managent_user
  17 +jdbc.password=1q2w3e4r%.
  18 +
18 19
19 #jdbc.type=mysql 20 #jdbc.type=mysql
20 -jdbc.driver=com.mysql.cj.jdbc.Driver  
21 -jdbc.url=jdbc:mysql://localhost:3306/station?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true  
22 -jdbc.username=root  
23 -jdbc.password=root 21 +#jdbc.driver=com.mysql.cj.jdbc.Driver
  22 +#jdbc.url=jdbc:mysql://118.31.66.166:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai
  23 +#jdbc.username=110
  24 +#jdbc.password=QAHqCJf2kFYCLirM
24 25
25 #pool settings 26 #pool settings
26 jdbc.pool.init=1 27 jdbc.pool.init=1
@@ -33,7 +33,9 @@ @@ -33,7 +33,9 @@
33 a.isfull AS "isfull", 33 a.isfull AS "isfull",
34 a.remark AS "remark", 34 a.remark AS "remark",
35 a.remark1 AS "remark1", 35 a.remark1 AS "remark1",
36 - a.remark2 AS "remark2" 36 + a.remark2 AS "remark2",
  37 + a.remark3 AS "remark3",
  38 + a.isthree AS "isthree"
37 </sql> 39 </sql>
38 40
39 <sql id="landBusinesstypeListJoins"> 41 <sql id="landBusinesstypeListJoins">
@@ -229,7 +231,9 @@ @@ -229,7 +231,9 @@
229 isfull, 231 isfull,
230 remark, 232 remark,
231 remark1, 233 remark1,
232 - remark2 234 + remark2,
  235 + remark3,
  236 + isthree
233 ) VALUES ( 237 ) VALUES (
234 #{id}, 238 #{id},
235 #{massageId}, 239 #{massageId},
@@ -261,7 +265,9 @@ @@ -261,7 +265,9 @@
261 #{isfull}, 265 #{isfull},
262 #{remark}, 266 #{remark},
263 #{remark1}, 267 #{remark1},
264 - #{remark2} 268 + #{remark2},
  269 + #{remark3},
  270 + #{isthree}
265 ) 271 )
266 </insert> 272 </insert>
267 273
@@ -281,7 +287,9 @@ @@ -281,7 +287,9 @@
281 barcode = #{barcode}, 287 barcode = #{barcode},
282 update_by = #{updateBy.id}, 288 update_by = #{updateBy.id},
283 update_date = #{updateDate}, 289 update_date = #{updateDate},
284 - isfull = #{isfull} 290 + isfull = #{isfull},
  291 + remark2=#{remark2},
  292 + remark3=#{remark3}
285 WHERE id = #{id} 293 WHERE id = #{id}
286 </update> 294 </update>
287 <update id="updateEntry"> 295 <update id="updateEntry">
@@ -302,7 +310,8 @@ @@ -302,7 +310,8 @@
302 update_by = #{updateBy.id}, 310 update_by = #{updateBy.id},
303 update_date = #{updateDate}, 311 update_date = #{updateDate},
304 isvalid=#{isvalid}, 312 isvalid=#{isvalid},
305 - isfull = #{isfull} 313 + isfull = #{isfull},
  314 + remark2=#{remark2}
306 WHERE id = #{id} 315 WHERE id = #{id}
307 </update> 316 </update>
308 317
@@ -72,6 +72,7 @@ th, td { @@ -72,6 +72,7 @@ th, td {
72 <span class="help-inline"><font color="red">查询单号前请先选定业务类型</font> 72 <span class="help-inline"><font color="red">查询单号前请先选定业务类型</font>
73 </div> 73 </div>
74 <br> 74 <br>
  75 +
75 <div class="controls"> 76 <div class="controls">
76 <table> 77 <table>
77 <thead> 78 <thead>
@@ -99,6 +100,12 @@ th, td { @@ -99,6 +100,12 @@ th, td {
99 <form:hidden path="id" /> 100 <form:hidden path="id" />
100 <sys:message content="${message}" /> 101 <sys:message content="${message}" />
101 <div class="control-group"> 102 <div class="control-group">
  103 + <label class="control-label">备注:</label>
  104 + <div class="controls">
  105 + <form:input path="remark3" autocomplete="off" id="remark3"/>
  106 + </div>
  107 + </div>
  108 + <div class="control-group">
102 <div class="row-fluid"> 109 <div class="row-fluid">
103 <div class="span12"> 110 <div class="span12">
104 <div class="span6"> 111 <div class="span6">
@@ -300,16 +307,46 @@ th, td { @@ -300,16 +307,46 @@ th, td {
300 <div class="control-group"> 307 <div class="control-group">
301 <div class="row-fluid"> 308 <div class="row-fluid">
302 <div class="span12"> 309 <div class="span12">
  310 +
  311 + <div class="span6">
  312 + <label class="control-label">是否进内三:</label>
  313 + <div class="controls">
  314 + <form:select path="isthree" class="input-xlarge">
  315 + <form:option value="0" label="是" selected = "selected"/>
  316 + <form:option value="1" label="否"/>
  317 + </form:select>
  318 + <span class="help-inline"><font color="red">综保区出口送货业务必须选择,默认进内三</font></span>
  319 + </div>
  320 + </div>
303 <div class="span6"> 321 <div class="span6">
304 <label class="control-label">是否空车:</label> 322 <label class="control-label">是否空车:</label>
305 <div class="controls"> 323 <div class="controls">
306 - <form:select path="isfull" class="input-xlarge"> 324 + <c:choose>
  325 + <c:when test="${landBusinesstypeList.isfull!=null}">
  326 + <form:select path="isfull" class="input-xlarge" disabled="true">
307 <form:option value="" label="--请选择--" /> 327 <form:option value="" label="--请选择--" />
308 <form:option value="0" label="是" selected = "selected"/> 328 <form:option value="0" label="是" selected = "selected"/>
309 <form:option value="1" label="否"/> 329 <form:option value="1" label="否"/>
310 </form:select> 330 </form:select>
  331 + </c:when>
  332 + <c:otherwise>
  333 + <form:select path="isfull" class="input-xlarge" >
  334 + <form:option value="" label="--请选择--" />
  335 + <form:option value="0" label="是" selected = "selected"/>
  336 + <form:option value="1" label="否"/>
  337 + </form:select>
  338 + </c:otherwise>
  339 + </c:choose>
  340 +
  341 + </div>
311 </div> 342 </div>
312 </div> 343 </div>
  344 + </div>
  345 + </div>
  346 + <div class="control-group">
  347 + <div class="row-fluid">
  348 + <div class="span12">
  349 +
313 <div class="span6"> 350 <div class="span6">
314 <label class="control-label">货物类型:</label> 351 <label class="control-label">货物类型:</label>
315 <div class="controls"> 352 <div class="controls">
@@ -487,7 +524,7 @@ th, td { @@ -487,7 +524,7 @@ th, td {
487 if(data[i].receiptinformation!=undefined){ 524 if(data[i].receiptinformation!=undefined){
488 if(data[i].receiptinformation.indexOf("41301")!=-1 || data[i].receiptinformation.indexOf("41106")!=-1 || 525 if(data[i].receiptinformation.indexOf("41301")!=-1 || data[i].receiptinformation.indexOf("41106")!=-1 ||
489 data[i].receiptinformation.indexOf("31301")!=-1 || data[i].receiptinformation.indexOf("31106")!=-1 || 526 data[i].receiptinformation.indexOf("31301")!=-1 || data[i].receiptinformation.indexOf("31106")!=-1 ||
490 - data[i].receiptinformation.indexOf("提运单放行")!=-1 ){ 527 + data[i].receiptinformation.indexOf("提运单放行")!=-1 ||data[i].receiptinformation.indexOf("90001")!=-1 ){
491 if(ieType=="I"){ 528 if(ieType=="I"){
492 flightNo = data[i].flightno; 529 flightNo = data[i].flightno;
493 flightDate = timeFormat(data[i].flightDate).substring(0,10); 530 flightDate = timeFormat(data[i].flightDate).substring(0,10);
@@ -128,6 +128,7 @@ @@ -128,6 +128,7 @@
128 <c:if test='${landBusinesstypeList.endstation =="4604000000"}'>西货站</c:if> 128 <c:if test='${landBusinesstypeList.endstation =="4604000000"}'>西货站</c:if>
129 <c:if test='${landBusinesstypeList.endstation =="4604499001"}'>三号货站</c:if> 129 <c:if test='${landBusinesstypeList.endstation =="4604499001"}'>三号货站</c:if>
130 <c:if test='${landBusinesstypeList.endstation =="4604511001"}'>快邮货站</c:if> 130 <c:if test='${landBusinesstypeList.endstation =="4604511001"}'>快邮货站</c:if>
  131 + <c:if test='${landBusinesstypeList.endstation =="4600329012"}'>综保区货站</c:if>
131 </td> 132 </td>
132 <td> 133 <td>
133 <c:if test="${landBusinesstypeList.aisle =='4604333311'}">1号卡口-进</c:if> 134 <c:if test="${landBusinesstypeList.aisle =='4604333311'}">1号卡口-进</c:if>
@@ -136,8 +137,14 @@ @@ -136,8 +137,14 @@
136 <c:if test="${landBusinesstypeList.aisle =='4604333312'}">1号卡口-出</c:if> 137 <c:if test="${landBusinesstypeList.aisle =='4604333312'}">1号卡口-出</c:if>
137 <c:if test="${landBusinesstypeList.aisle =='4604444412'}">1号卡口-出</c:if> 138 <c:if test="${landBusinesstypeList.aisle =='4604444412'}">1号卡口-出</c:if>
138 <c:if test="${landBusinesstypeList.aisle =='4604110112'}">1号卡口-出</c:if> 139 <c:if test="${landBusinesstypeList.aisle =='4604110112'}">1号卡口-出</c:if>
139 - <c:if test="${landBusinesstypeList.aisle =='4604333321'}">暂不启用</c:if>  
140 - <c:if test="${landBusinesstypeList.aisle =='4604333322'}">暂不启用</c:if> 140 + <c:if test="${landBusinesstypeList.aisle =='4612031001'}">内三卡口-进</c:if>
  141 + <c:if test="${landBusinesstypeList.aisle =='4612030001'}">内三卡口-出</c:if>
  142 + <c:if test="${landBusinesstypeList.aisle =='4600011006'}">6号卡口-进</c:if>
  143 + <c:if test="${landBusinesstypeList.aisle =='4600010006'}">6号卡口-出</c:if>
  144 + <c:if test="${landBusinesstypeList.aisle =='4600011005'}">5号卡口-进</c:if>
  145 + <c:if test="${landBusinesstypeList.aisle =='4600010005'}">5号卡口-出</c:if>
  146 + <c:if test="${landBusinesstypeList.aisle =='4604333321'}">2号卡口-进</c:if>
  147 + <c:if test="${landBusinesstypeList.aisle =='4604333322'}">2号卡口-出</c:if>
141 </td> 148 </td>
142 <td>${landBusinesstypeList.aislewt}</td> 149 <td>${landBusinesstypeList.aislewt}</td>
143 <td>${landBusinesstypeList.remark}</td> 150 <td>${landBusinesstypeList.remark}</td>
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <div class="control-group"> 80 <div class="control-group">
81 <label class="control-label">挂车重量:</label> 81 <label class="control-label">挂车重量:</label>
82 <div class="controls"> 82 <div class="controls">
83 - <form:input path="trailerWt" htmlEscape="false" maxlength="10" class="input-xlarge "/> 83 + <form:input path="trailerWt" htmlEscape="false" maxlength="10" class="input-xlarge " oninput = "value=value.replace(/[^\d]/g,'')"/>
84 </div> 84 </div>
85 </div> 85 </div>
86 <div class="control-group"> 86 <div class="control-group">
@@ -137,13 +137,13 @@ input { @@ -137,13 +137,13 @@ input {
137 <label class="row-lable">自重(空车重量):</label> 137 <label class="row-lable">自重(空车重量):</label>
138 <span class="row-controls"> 138 <span class="row-controls">
139 <form:input path="selfWt" htmlEscape="false" maxlength="10" placeholder="单位:kg" 139 <form:input path="selfWt" htmlEscape="false" maxlength="10" placeholder="单位:kg"
140 - class="input-large required numberCheck" /> 140 + class="input-large required numberCheck" oninput = "value=value.replace(/[^\d]/g,'')"/>
141 <span class="help-inline"><font color="red">*</font></span> 141 <span class="help-inline"><font color="red">*</font></span>
142 </span> 142 </span>
143 <label class="row-lable">核定载货重量:</label> <span 143 <label class="row-lable">核定载货重量:</label> <span
144 class="row-controls"> 144 class="row-controls">
145 <form:input path="veTon" htmlEscape="false" maxlength="10" 145 <form:input path="veTon" htmlEscape="false" maxlength="10"
146 - class="input-large numberCheck" placeholder="货车核载单位为:kg" /> 146 + class="input-large numberCheck" placeholder="货车核载单位为:kg" oninput = "value=value.replace(/[^\d]/g,'')"/>
147 </span> 147 </span>
148 </div> 148 </div>
149 <%-- <div class="control-group"> 149 <%-- <div class="control-group">
@@ -77,8 +77,9 @@ @@ -77,8 +77,9 @@
77 <fmt:formatDate value="${landRoadVeRecord.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/> 77 <fmt:formatDate value="${landRoadVeRecord.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
78 </a></td> 78 </a></td>
79 <shiro:hasPermission name="land:landRoadVeRecord:edit"><td> 79 <shiro:hasPermission name="land:landRoadVeRecord:edit"><td>
80 - <a href="${ctx}/land/landRoadVeRecord/form?id=${landRoadVeRecord.id}">修改</a> 80 +
81 <shiro:hasAnyRoles name="dept,admin,leader"> 81 <shiro:hasAnyRoles name="dept,admin,leader">
  82 + <a href="${ctx}/land/landRoadVeRecord/form?id=${landRoadVeRecord.id}">修改</a>
82 <a href="${ctx}/land/landRoadVeRecord/delete?id=${landRoadVeRecord.id}" onclick="return confirmx('确认要删除该备案吗?', this.href)">删除</a> 83 <a href="${ctx}/land/landRoadVeRecord/delete?id=${landRoadVeRecord.id}" onclick="return confirmx('确认要删除该备案吗?', this.href)">删除</a>
83 <%--<c:if test="${landRoadVeRecord.operationTyp.veClassFlag=='1' }"></c:if>--%> 84 <%--<c:if test="${landRoadVeRecord.operationTyp.veClassFlag=='1' }"></c:if>--%>
84 <a href="${ctx}/land/landRoadVeRecord/change?id=${landRoadVeRecord.id}" onclick="return confirmx('确认要审批吗?', this.href)">审批</a> 85 <a href="${ctx}/land/landRoadVeRecord/change?id=${landRoadVeRecord.id}" onclick="return confirmx('确认要审批吗?', this.href)">审批</a>