lyyb2001

          只是為方便自己找記錄而已
          posts - 57, comments - 27, trackbacks - 0, articles - 5
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 ::  :: 管理

          2016年3月22日

          表單里面先對(duì)某一個(gè)控件有效性驗(yàn)證(如手機(jī)號(hào)碼,當(dāng)手機(jī)號(hào)碼輸入正確,才發(fā)送驗(yàn)證碼,最后才是對(duì)表單驗(yàn)證)

          <input type="text" id="mobile" name="mobile" placeholder="請(qǐng)輸入您的手機(jī)號(hào)碼" class="easyui-validatebox form-control" data-options="required:true,validType:'mobile'" />

          validateType自己擴(kuò)展規(guī)則

          對(duì)單個(gè)輸入框的驗(yàn)證為:$("#mobile").validatebox('isValid') 通過(guò)返回true

          posted @ 2017-09-19 15:59 skycity 閱讀(840) | 評(píng)論 (0)編輯 收藏

              public enum Section {
          KITTING(1),
          LABELKITTING(2),
          PACKING(3);

          private final int code;

          private Section(int code)
          {
          this.code=code;
          }
          public int getCode()
          {
          return this.code;
          }
          }

          Map<Integer,Section> MAP=Arrays.stream(Section.values()).collect(Collectors.toMap(s->s.code, section->section));

          posted @ 2017-07-11 11:40 skycity 閱讀(2767) | 評(píng)論 (0)編輯 收藏

          Optional<MaterialPaneModel> maxMaterial = list.stream().max(Comparator.comparingInt(MaterialPaneModel::getMaterialQty));

          posted @ 2017-07-06 15:43 skycity 閱讀(4021) | 評(píng)論 (0)編輯 收藏

          try{

          JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();

          factoryBean.getInInterceptors().add(new LoggingInInterceptor());

          factoryBean.getOutInterceptors().add(new LoggingOutInterceptor());

          factoryBean.setServiceClass(AutoPackServiceIntf.class);

          factoryBean.setAddress("http://10.241.0.105:17000/TEST");

          AutoPackServiceIntf factory = (AutoPackServiceIntf) factoryBean.create();

          Client client = ClientProxy.getClient(factory);

          HTTPConduit conduit = (HTTPConduit) client.getConduit();

          HTTPClientPolicy policy = new HTTPClientPolicy();

          policy.setConnectionTimeout(30000); //連接超時(shí)時(shí)間

          policy.setReceiveTimeout(120000); //請(qǐng)求超時(shí)時(shí)間.

          conduit.setClient(policy);

          System.out.println(factory.getFirstUnitCramp("1"));

          }catch(WebServiceException ex){

          long l2 = System.currentTimeMillis();

          System.out.println((l2-l1)+"ms");

          System.out.println("連接異常");

          }

          posted @ 2016-12-08 14:19 skycity 閱讀(297) | 評(píng)論 (0)編輯 收藏

          通過(guò)Application

          ApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext();

               classPath = classPathXmlApplicationContext.getResource("classpath:config.properties").getFile().getPath();

                  if(classPath.indexOf("WEB-INF")>0){

                      classPath = classPath.substring(0,classPath.indexOf("WEB-INF")+7)+"/classes/"+xmlFile;

                  }

           

          posted @ 2016-11-03 18:17 skycity 閱讀(249) | 評(píng)論 (0)編輯 收藏

          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

          Map<Integer,Map<String,List<DocLotDetail>>> amp                            docLotDetailLists.parallelStream().collect(Collectors.groupingBy(DocLotDetail::getGroupOrder,Collectors.groupingBy(DocLotDetail::getBaseValueName)));





          amp.forEach((key,value)->{

                  System.out.println(key);

                   value.forEach((key2,value2)->{

                      System.out.println(key2);

                  });

          });

          最終返回的結(jié)果

          2

          隨機(jī)光盤(pán)

          3

          資料袋附件

          4

          資料盒附件

          5

          包裝輔料

          8

          前工序物料






          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

          posted @ 2016-03-22 16:14 skycity 閱讀(11377) | 評(píng)論 (0)編輯 收藏

          主站蜘蛛池模板: 赤壁市| 利辛县| 盐亭县| 夏河县| 扬州市| 宁陕县| 民权县| 天等县| 宿迁市| 扬州市| 佳木斯市| 醴陵市| 松阳县| 许昌县| 德庆县| 德州市| 鄂托克前旗| 杂多县| 西吉县| 永胜县| 栖霞市| 乌审旗| 竹北市| 夏津县| 阿合奇县| 长葛市| 略阳县| 定南县| 靖边县| 高阳县| 邹城市| 白银市| 海淀区| 姜堰市| 英山县| 民县| 汝州市| 东阿县| 开化县| 灵宝市| 射阳县|