<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    當(dāng)幸福來敲門

    我就會(huì)牢牢抓住!
    隨筆 - 50, 文章 - 3, 評(píng)論 - 8, 引用 - 0
    數(shù)據(jù)加載中……

    2012年11月12日

    需求工程師的工作內(nèi)容

    1.和業(yè)務(wù)部門 、客戶溝通(溝通是整個(gè)需求設(shè)計(jì)到開發(fā)使用為止);
    2.學(xué)習(xí)業(yè)務(wù);
    3.有意識(shí)聽速求(客戶最急需的),也就是優(yōu)先級(jí)問題;
    4.搜集需求,整合,提煉,完成分析;(考慮周全找關(guān)聯(lián) 找核心)
    5.編寫需求產(chǎn)品文檔(文字和圖列、流程圖等相結(jié)合)
    6.掌握相關(guān)工具;(比如visio/axure)
    7.文檔系統(tǒng)講解(講解對(duì)象:開發(fā)和測(cè)試)
    8.驗(yàn)證開發(fā)完后的產(chǎn)品(驗(yàn)證結(jié)束后再測(cè)試);
    9.用戶培訓(xùn)(需求工程師主持);
    10.了解相關(guān)系統(tǒng)(了解整個(gè)業(yè)務(wù)面 而不是 內(nèi)部的功能點(diǎn));

    注意:數(shù)據(jù)表設(shè)計(jì)中盡量存可分析的信息代碼;

    posted @ 2014-03-05 15:23 wyx 閱讀(207) | 評(píng)論 (0)編輯 收藏

    面試題積累

    1. struts1和struts2的區(qū)別
    2. hibernate和ibatis的區(qū)別
    3. json和xml的區(qū)別
    4. ajax的原理
    5. ajax和iframe嵌套有什么區(qū)別
    6. gbk utf8 iso-8859-1都是多少字節(jié)
    7. extjs和jquery的區(qū)別
    8. js從前端如何解決跨域問題
    9. 單例模式的優(yōu)點(diǎn),工廠模式的原理
    10. spring的mvc模式
    11. jdk1.7新功能
    12. 為什么會(huì)出現(xiàn)亂碼

    posted @ 2014-03-04 15:35 wyx 閱讀(234) | 評(píng)論 (0)編輯 收藏

    Hibernate 查詢有關(guān)in的查詢

    http://www.iteye.com/problems/74892

    List<Integer> ids = new ArrayList<Integer>();
    ids.add(3);
    ids.add(4);
    ids.add(5);
    Query query=session.createQuery(from document where id in (:ids)); 
    query.setParameterList("ids", ids);
    query.list();

    posted @ 2013-11-18 17:42 wyx 閱讀(633) | 評(píng)論 (0)編輯 收藏

    用hibernate插入數(shù)據(jù)保證插入數(shù)據(jù)ID同步 ,插入之后返回對(duì)象

    public FDataReport addFDataReport(FDataReport datareport);//數(shù)據(jù)新錄入返回對(duì)象,對(duì)應(yīng)的就會(huì)把ID也返回

    posted @ 2013-11-04 17:43 wyx 閱讀(257) | 評(píng)論 (0)編輯 收藏

    關(guān)于登錄界面 記住用戶名和密碼的一段代碼

    Cookie cookies[]=request.getCookies();
        Cookie stCookie=null;
        String password=null;
        String passwordvalue=null;
        String usernamevalue=null;
        String cookiename = null;
        String nameandpassword[]=new String[3];
        if (cookies != null) {
       for (int i = 0; i < cookies.length; i++) {
        stCookie = cookies[i];
        cookiename = stCookie.getName();
        if (cookiename!=null && cookiename.equalsIgnoreCase("db_password")) {
         passwordvalue = stCookie.getValue();
         password = passwordvalue;//.substring(8, passwordvalue.length()-3);
         nameandpassword[1] = password.trim();
        }
        if (cookiename!=null && cookiename.equalsIgnoreCase("db_username")) {
         usernamevalue = stCookie.getValue();
         nameandpassword[0] = usernamevalue.trim();
        }
        }
     }





    <body>
    <p>
           <label for="LoginName">
            用戶名 / 郵箱:
           </label>
           <input class="text" type="text" id="LoginName" name="LoginName"
            value="<%=nameandpassword[0]==null?"":nameandpassword[0] %>" />
          </p>
          <p>
           <label for="Password">
            密碼:
           </label>
           <input class="text" type="password" value="<%=nameandpassword[1]==null?"":nameandpassword[1] %>" name="Password" id="Password" />
          </p>


    </body>

    posted @ 2013-11-01 15:08 wyx 閱讀(318) | 評(píng)論 (0)編輯 收藏

    form表單提交兩次原因

    昨天做用戶注冊(cè),添加用戶時(shí)候總是提交兩次
    最后才找到原因 提交表單的按鈕就是設(shè)置成button的了 但是名稱是submitButton也不可以 所以修改下按鈕名稱就可以了!!!
    ⊙﹏⊙b汗

    posted @ 2013-10-18 09:21 wyx 閱讀(431) | 評(píng)論 (0)編輯 收藏

    關(guān)于安全問題——用戶中心

    1.當(dāng)用戶操作用戶中心的信息,編碼獲取用戶對(duì)象應(yīng)該是通過該用戶登錄保存的session或者cookie獲得,
    而不是通過用戶ID獲得(否則當(dāng)有人知道通過ID傳值,容易輕易修改掉其他用戶的信息)

    2.前臺(tái)下載也需要通過后臺(tái)處理 放置業(yè)內(nèi)人士知道下載文件真實(shí)地址,獲得大量數(shù)據(jù)信息

    posted @ 2013-09-04 17:13 wyx 閱讀(213) | 評(píng)論 (0)編輯 收藏

    FCKeditor 取值

    《轉(zhuǎn)自http://blog.sina.com.cn/s/blog_5f66526e0100kf6b.html

    主要步驟:

    第一步:導(dǎo)入需要的js文件(根據(jù)實(shí)際情況修改相應(yīng)路徑)
    <script src="js/jquery.js" type=text/javascript></script>   
    <script src="fckeditor/fckeditor.js" type="text/javascript"></script>
    第二步:初始化(根據(jù)實(shí)際情況修改相應(yīng)路徑)   

    sBasePath    = '/duotunkf/fckeditor/' ;#編輯器所在文件夾;
    oFCKeditor    = new FCKeditor('content') ;
    oFCKeditor.BasePath = sBasePath ;
    oFCKeditor.Value = 'test' ;
    oFCKeditor.ToolbarSet = 'Basic' ;
    oFCKeditor.Create() ;

    其中content為頁面你所綁定的textArea的id或name

    第三步:取值

    var oEditor = FCKeditorAPI.GetInstance('content');  
    editorValue = oEditor.GetHTML();  
    第四步:賦值(更新的時(shí)候先把原有的值賦給textarea)

    var oEditor = FCKeditorAPI.GetInstance('content');  
    oEditor.SetHTML("value"); 

     

    下面是本人寫的一個(gè)賦值測(cè)試程序,供大家參考。源碼如下:

    <html>
     <head>

         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <script src="js/jquery-1.3.2.min.js"></script>
            <script src="fckeditor/fckeditor.js"></script>
            <script>
            $(document).ready(function(){
              $("#test").click(function(){
        var oEditor = FCKeditorAPI.GetInstance('content');  
        oEditor.SetHTML($("#test option:selected" ).text());
        });
      });
            </script>
     </head>
     <body>
      
      <form action="" method="post">
            <script>
                sBasePath    = '/duotunkf/fckeditor/' ;#編輯器所在文件夾;
                oFCKeditor   = new FCKeditor('content') ;
                oFCKeditor.BasePath = sBasePath ;
                oFCKeditor.Value = 'test' ;
                oFCKeditor.ToolbarSet = 'Basic' ;
                oFCKeditor.Create() ;
      </script>
       <br>
                <label for="test">
          <select name="test" size="4" id="test">
            <option value="1">i.點(diǎn)擊這里改變編輯器的值</option>
            <option value="2">ii.點(diǎn)擊這里改變編輯器的值</option>
            <option value="3">iii.點(diǎn)擊這里改變編輯器的值</option>
               </select>
              </label>
      </form>
     </body>
    </html>


    posted @ 2013-07-31 14:19 wyx 閱讀(188) | 評(píng)論 (0)編輯 收藏

    關(guān)于數(shù)據(jù)表建設(shè)的int 和 number varchar和nvarchar的區(qū)別


    提交了,剛才修正了一些問題;一主鍵需要設(shè)置number類型同時(shí)告訴擴(kuò)充到10
    管華(管華) 10:44:15
    你剛才是int類型,,int最大是到6萬多吧,,如果你設(shè)置這個(gè),意味著到時(shí)你到6萬多的會(huì)員后,系統(tǒng)出問題,插入不進(jìn)去了,到時(shí)你還得改;
    管華(管華) 10:45:46
    第二,你用的是字符VARCHAR2類型,這個(gè);類型在oracle里不太好,會(huì)持久化占用一部分空間,比如你設(shè)置的VARCHAR2(1000),他不管你里面有沒有數(shù)據(jù),都會(huì)占用這1000個(gè)字符的空間;因此需要改為NVARCHAR2 ,他是自適應(yīng),當(dāng)你沒存儲(chǔ)值,他不占據(jù)空間


    另外根據(jù)有些字段,比如人名  name  NVARCHAR2(20)分配20個(gè)字符就可了,分配500個(gè),會(huì)浪費(fèi)多余的空間同時(shí)使得系統(tǒng)慢碎片多;因此根據(jù)實(shí)際情況,酌情分配

    posted @ 2013-07-12 10:49 wyx 閱讀(340) | 評(píng)論 (0)編輯 收藏

    sql語句特殊字符處理

    update tc_report t set xlsfile='ChinaLivestock'||chr(38)||'FeedWeeklyMarketReport20130703.doc' where t.xlsfile like 'China Livestock & Feed Weekly Market Report 20130703%'

    posted @ 2013-07-04 10:36 wyx 閱讀(275) | 評(píng)論 (0)編輯 收藏

    Tomcat修改文件重啟問題

    將tomcat下的bin\startup.bat下的文件打開后,最下面有一句話  call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%,,復(fù)制我這個(gè)替換你那個(gè),保存后,即可實(shí)現(xiàn)不重啟就編譯java

    posted @ 2013-07-01 11:32 wyx 閱讀(179) | 評(píng)論 (0)編輯 收藏

    JavaBean中打印信息到JSP頁面

    http://blog.csdn.net/sclxf/article/details/4654080

    posted @ 2013-05-16 17:47 wyx 閱讀(168) | 評(píng)論 (0)編輯 收藏

    JS 獲得系統(tǒng)當(dāng)前時(shí)間和未來一周時(shí)間

    例子:

    function getDate(day){
       var zdate=new Date();
       var sdate=zdate.getTime()-(1*24*60*60*1000);
       var edate=new Date(sdate-(day*24*60*60*1000)).format("yyyy-MM-dd");
       return edate;
    }

     function changevalue(obj){
           alert(obj);
           var a = getDate(+7);
           var b = getDate(+31);
           if(obj=="8"){
           document.getElementById("enddate").value=b;
           }else{
           document.getElementById("enddate").value=a;
           }
     }

    posted @ 2013-05-08 15:54 wyx 閱讀(385) | 評(píng)論 (0)編輯 收藏

    轉(zhuǎn)換PDF遇到的問題java.lang.UnsatisfiedLinkError: no jcom in java.library.path

    java.lang.UnsatisfiedLinkError: no jcom in java.library.path
    將 jcom.dll 文件放在  C:\WINDOWS\system32 和jdk的bin   目錄下

    posted @ 2013-04-10 16:14 wyx 閱讀(427) | 評(píng)論 (0)編輯 收藏

    BUG 調(diào)試 加入斷點(diǎn)但是跳轉(zhuǎn)時(shí)候沒有走

    設(shè)置問題  Debug model選中

    posted @ 2013-04-03 15:34 wyx 閱讀(206) | 評(píng)論 (0)編輯 收藏

    投研項(xiàng)目 文檔 總結(jié)

    1.下載模塊:年鑒、研究報(bào)告、企業(yè)榜單和行業(yè)數(shù)據(jù)(需要權(quán)限控制)
    2.FTP使用:

    posted @ 2013-03-27 11:09 wyx 閱讀(274) | 評(píng)論 (0)編輯 收藏

    2013-03-13 項(xiàng)目開發(fā) 總結(jié) 連載記錄

    1.針對(duì)不同類型跳轉(zhuǎn)不同的action方法 除了使用JS以外  還可以 使用參數(shù)獲得參數(shù)例如method=....不同值來跳轉(zhuǎn)像不同的方法
    例子:分國別 (method="showCountryList")  分地區(qū)(method="showAreaList")  
            后臺(tái) String method = request.getParameter("method");
                 request.setAttribute("method", method);
        if (method != null && method.equals("showCountryList")) {
         return showCountryList(map, form, request, response);//分國別
       } else if (method != null && method.equals("showAreaList")) {
         return showAreaList(map, form, request, response);//分地區(qū)
       }
    2.Jsp........記得使用IFram嵌套
    <iframe width="100%" height="800" class="share_self"  frameborder="0" scrolling="no" src="/tyreportAction.do?method=lookReportInfo&bid=${record.bid } "></iframe>
     總結(jié):思維要活躍些  往往一個(gè)問題有很多種解決方法的

    posted @ 2013-03-13 09:38 wyx 閱讀(181) | 評(píng)論 (0)編輯 收藏

    大文本值CLOB取值 和 存值

    存值
     Clob  organdetail =Hibernate.createClob(request.getParameter("organdetail").equals("")?"":request.getParameter("organdetail").trim());// 機(jī)構(gòu)簡(jiǎn)介
       取值 顯示JSP
    <%=ToolsCommon.Clob2String(institutions.getOrgandetail())==null?"":ToolsCommon.Clob2String(institutions.getOrgandetail())%>


     public static String Clob2String(java.sql.Clob clob) {
      String s1 = "";
      char ac[] = new char[200];

      if (clob == null)
       return null;
      java.io.Reader reader = null;
      int i;
      try {
       reader = clob.getCharacterStream();
       while ((i = reader.read(ac, 0, 200)) != -1)
        s1 = s1 + new String(ac, 0, i);
      } catch (Exception exception1) {
       // throw new java.sql.SQLException(exception1.getMessage());
       System.out.println(exception1.toString());
      }

      finally {
       try {
        reader.close();
       } catch (Exception _ex) {
       }
      }
      return s1;

     }

    posted @ 2013-02-28 10:20 wyx 閱讀(365) | 評(píng)論 (0)編輯 收藏

    Java 刪除文件夾 和 文件 集合

    《此文拷貝自http://kxjhlele.iteye.com/blog/323657

    1,驗(yàn)證傳入路徑是否為正確的路徑名(Windows系統(tǒng),其他系統(tǒng)未使用)


    // 驗(yàn)證字符串是否為正確路徑名的正則表達(dá)式
    private static String matches = "[A-Za-z]:\\\\[^:?\"><*]*";
    // 通過 sPath.matches(matches) 方法的返回值判斷是否正確
    // sPath 為路徑字符串

    2,通用的文件夾或文件刪除方法,直接調(diào)用此方法,即可實(shí)現(xiàn)刪除文件夾或文件,包括文件夾下的所有文件


        /**
         *  根據(jù)路徑刪除指定的目錄或文件,無論存在與否
         *@param sPath  要?jiǎng)h除的目錄或文件
         *@return 刪除成功返回 true,否則返回 false。
         */
        public boolean DeleteFolder(String sPath) {
            flag = false;
            file = new File(sPath);
            // 判斷目錄或文件是否存在
            if (!file.exists()) {  // 不存在返回 false
                return flag;
            } else {
                // 判斷是否為文件
                if (file.isFile()) {  // 為文件時(shí)調(diào)用刪除文件方法
                    return deleteFile(sPath);
                } else {  // 為目錄時(shí)調(diào)用刪除目錄方法
                    return deleteDirectory(sPath);
                }
            }
        }

    3,實(shí)現(xiàn)刪除文件的方法,

        /**
         * 刪除單個(gè)文件
         * @param   sPath    被刪除文件的文件名
         * @return 單個(gè)文件刪除成功返回true,否則返回false
         */
        public boolean deleteFile(String sPath) {
            flag = false;
            file = new File(sPath);
            // 路徑為文件且不為空則進(jìn)行刪除
            if (file.isFile() && file.exists()) {
                file.delete();
                flag = true;
            }
            return flag;
        }

    4,實(shí)現(xiàn)刪除文件夾的方法,

        /**
         * 刪除目錄(文件夾)以及目錄下的文件
         * @param   sPath 被刪除目錄的文件路徑
         * @return  目錄刪除成功返回true,否則返回false
         */
        public boolean deleteDirectory(String sPath) {
            //如果sPath不以文件分隔符結(jié)尾,自動(dòng)添加文件分隔符
            if (!sPath.endsWith(File.separator)) {
                sPath = sPath + File.separator;
            }
            File dirFile = new File(sPath);
            //如果dir對(duì)應(yīng)的文件不存在,或者不是一個(gè)目錄,則退出
            if (!dirFile.exists() || !dirFile.isDirectory()) {
                return false;
            }
            flag = true;
            //刪除文件夾下的所有文件(包括子目錄)
            File[] files = dirFile.listFiles();
            for (int i = 0; i < files.length; i++) {
                //刪除子文件
                if (files[i].isFile()) {
                    flag = deleteFile(files[i].getAbsolutePath());
                    if (!flag) break;
                } //刪除子目錄
                else {
                    flag = deleteDirectory(files[i].getAbsolutePath());
                    if (!flag) break;
                }
            }
            if (!flag) return false;
            //刪除當(dāng)前目錄
            if (dirFile.delete()) {
                return true;
            } else {
                return false;
            }
        }

    5,main() 方法


        public static void main(String[] args) {

            HandleFileClass hfc = new HandleFileClass();
            String path = "D:\\Abc\\123\\Ab1";
            boolean result = hfc.CreateFolder(path);
            System.out.println(result);
            path = "D:\\Abc\\124";
            result = hfc.DeleteFolder(path);
            System.out.println(result);

        }


    main() 方法只是做了一個(gè)簡(jiǎn)單的測(cè)試,建立文件夾和文件都是本地建立,情況考慮的應(yīng)該很全面了,包括文件夾包含文件夾、文件。文件的不同情況…………

     

    實(shí)現(xiàn)沒有問題,可以正確刪除文件夾和文件。

     

    對(duì)于其他類型文件的操作繼續(xù)學(xué)習(xí)…………




    posted @ 2013-01-18 15:58 wyx 閱讀(302) | 評(píng)論 (0)編輯 收藏

    JFreechar

    http://m.tkk7.com/amigoxie/archive/2007/09/30/149765.html

    posted @ 2012-12-26 15:51 wyx 閱讀(192) | 評(píng)論 (0)編輯 收藏

    orcle修改屬性字段 并且保留原有值

    1.原字段類型是字符串 使用“||”連接
    update table1 set num = substr(num,0,instr(num,'-'))||(substr(num,instr(num,'-')+1) +9) 
    2.原字段是數(shù)字 使用+連接
    UPDATE table1SET num = num+10 
    3.截取 update tc_report t set xlsfile=substr(xlsfile,6) where xlsfile like '%uku\%'

    posted @ 2012-11-12 10:20 wyx 閱讀(336) | 評(píng)論 (0)編輯 收藏

    主站蜘蛛池模板: 77777亚洲午夜久久多喷| 国产V亚洲V天堂无码| 亚洲中文字幕久久精品无码VA| 日韩精品久久久久久免费| 亚洲av无码一区二区三区网站| 皇色在线免费视频| 亚洲人成影院在线无码按摩店| 国产精品1024在线永久免费| 亚洲中文字幕无码爆乳AV| 亚欧国产一级在线免费| 亚洲色大成网站WWW久久九九| 国产精品无码免费专区午夜| 亚洲成在人线av| 99在线免费观看视频| 亚洲一区在线视频| 日本大片在线看黄a∨免费| 欧美亚洲精品一区二区| 亚洲精品第一国产综合精品99| 尤物视频在线免费观看| 九月丁香婷婷亚洲综合色| 污污网站18禁在线永久免费观看| 亚洲视频在线观看网址| 成人特黄a级毛片免费视频| 久久久久久亚洲精品无码| 亚洲精品97久久中文字幕无码| 大地资源在线资源免费观看| 久久精品a亚洲国产v高清不卡 | 国产亚洲精午夜久久久久久| 曰批全过程免费视频在线观看无码| 中文字幕亚洲精品资源网| 欧美日韩国产免费一区二区三区| 怡红院亚洲红怡院在线观看| 久久亚洲精品无码播放| 麻豆国产精品免费视频| 看亚洲a级一级毛片| 久久精品亚洲综合| 在线观看视频免费国语| 99免费精品视频| 亚洲日韩av无码中文| 亚洲日韩激情无码一区| 免费A级毛片无码免费视|