2013年4月10日
1.和業務部門 、客戶溝通(溝通是整個需求設計到開發使用為止);
2.學習業務;
3.有意識聽速求(客戶最急需的),也就是優先級問題;
4.搜集需求,整合,提煉,完成分析;(考慮周全找關聯 找核心)
5.編寫需求產品文檔(文字和圖列、流程圖等相結合)
6.掌握相關工具;(比如visio/axure)
7.文檔系統講解(講解對象:開發和測試)
8.驗證開發完后的產品(驗證結束后再測試);
9.用戶培訓(需求工程師主持);
10.了解相關系統(了解整個業務面 而不是 內部的功能點);
注意:數據表設計中盡量存可分析的信息代碼;
- struts1和struts2的區別
- hibernate和ibatis的區別
- json和xml的區別
- ajax的原理
- ajax和iframe嵌套有什么區別
- gbk utf8 iso-8859-1都是多少字節
- extjs和jquery的區別
- js從前端如何解決跨域問題
- 單例模式的優點,工廠模式的原理
- spring的mvc模式
- jdk1.7新功能
- 為什么會出現亂碼
http://www.iteye.com/problems/74892List<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();
public FDataReport addFDataReport(FDataReport datareport);//數據新錄入返回對象,對應的就會把ID也返回
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>
昨天做用戶注冊,添加用戶時候總是提交兩次
最后才找到原因 提交表單的按鈕就是設置成button的了 但是名稱是submitButton也不可以 所以修改下按鈕名稱就可以了!!!
⊙﹏⊙b汗
1.當用戶操作用戶中心的信息,編碼獲取用戶對象應該是通過該用戶登錄保存的session或者cookie獲得,
而不是通過用戶ID獲得(否則當有人知道通過ID傳值,容易輕易修改掉其他用戶的信息)
2.前臺下載也需要通過后臺處理 放置業內人士知道下載文件真實地址,獲得大量數據信息
《轉自
http://blog.sina.com.cn/s/blog_5f66526e0100kf6b.html》
主要步驟:
第一步:導入需要的js文件(根據實際情況修改相應路徑)
<script src="js/jquery.js" type=text/javascript></script>
<script src="fckeditor/fckeditor.js" type="text/javascript"></script>
第二步:初始化(根據實際情況修改相應路徑)
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();
第四步:賦值(更新的時候先把原有的值賦給textarea)
var oEditor = FCKeditorAPI.GetInstance('content');
oEditor.SetHTML("value");
下面是本人寫的一個賦值測試程序,供大家參考。源碼如下:
<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.點擊這里改變編輯器的值</option>
<option value="2">ii.點擊這里改變編輯器的值</option>
<option value="3">iii.點擊這里改變編輯器的值</option>
</select>
</label>
</form>
</body>
</html>
提交了,剛才修正了一些問題;一主鍵需要設置number類型同時告訴擴充到10
管華(管華) 10:44:15
你剛才是int類型,,int最大是到6萬多吧,,如果你設置這個,意味著到時你到6萬多的會員后,系統出問題,插入不進去了,到時你還得改;
管華(管華) 10:45:46
第二,你用的是字符VARCHAR2類型,這個;類型在oracle里不太好,會持久化占用一部分空間,比如你設置的VARCHAR2(1000),他不管你里面有沒有數據,都會占用這1000個字符的空間;因此需要改為NVARCHAR2 ,他是自適應,當你沒存儲值,他不占據空間
另外根據有些字段,比如人名 name NVARCHAR2(20)分配20個字符就可了,分配500個,會浪費多余的空間同時使得系統慢碎片多;因此根據實際情況,酌情分配
update tc_report t set xlsfile='ChinaLivestock'||chr(38)||'FeedWeeklyMarketReport20130703.doc' where t.xlsfile like 'China Livestock & Feed Weekly Market Report 20130703%'
將tomcat下的bin\startup.bat下的文件打開后,最下面有一句話 call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%,,復制我這個替換你那個,保存后,即可實現不重啟就編譯java
例子:
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;
}
}
java.lang.UnsatisfiedLinkError: no jcom in java.library.path
將 jcom.dll 文件放在 C:\WINDOWS\system32 和jdk的bin 目錄下