在GridView裡面新增一個Template Field,然後加入下面Code

waterisme 發表在 痞客邦 留言(0) 人氣()

EXCEL會把
超過11位的數字用科學計數法顯示,
超過15位的數字後面只顯示0,
我們有兩種方法可以解決這個問題。

waterisme 發表在 痞客邦 留言(2) 人氣()



  

waterisme 發表在 痞客邦 留言(0) 人氣()





資料轉自: hitutor,感謝


 


工作職稱中英文對照







【財務/總務/人資/法務/金融】

Financial Controller 財務主任
Financial Reporter 財務報告人
F.X. (Foreign Exchange)Clerk 外彙部職員
F.X. Settlement Clerk 外彙部核算員
Fund Manager 財務經理
General Auditor 審計長
Accounting Manager 會計部經理
Accounting Stall 會計部職員
Accounting Supervisor 會計主管
Accounting會計
Accountant會計
Accounting Assistant 會計助理
Accounting Clerk 記帳員
Auditorial稽核
Financial財務
General Affairs總務
Personnel Manager 人事部經理
Personnel Clerk 人事部職員
Human Resources人力資源(HR)
Legal法務
Legal Adviser 法律顧問
Procurement採購
Buyer 採購員
Bond Analyst 證券分析員
Bond Trader 證券交易員
Trust Banking Executive 銀行高級職員
Cashier 出納員
Insurance Actuary 保險公司理賠員


【業務/行銷/企劃/設計/國貿】
Operational Manager 業務經理
Business Controller 業務主任
Business Manager 業務經理
Account業務
Customer Service客服
Specialist專員
Web Master網站管理專員
Marcom企劃
Marketing行銷
Product Marketing產品行銷
Programming規劃
Project專案
Sales業務
Public Relations公關
Advertising Staff 廣告工作人員
Copywriter 廣告文字撰稿人
Export Sales Manager 外銷部經理
Export Sales Staff 外銷部職員
Market Analyst 市場分析員
Market Development Manager 市場開發部經理
Marketing Manager 市場銷售部經理
Marketing Staff 市場銷售員
Marketing Assistant 銷售助理
Marketing Executive 銷售主管
Marketing Representative 銷售代表
Marketing Representative Manager 市場調研部經理
Package Designer 包裝設計師
Import Manager 進口部經理
Import Liaison Staff 進口聯絡員
International Sales Staff 國際銷售員
Project Staff 項目策劃人員
Promotional Manager 推售部經理
Proof-reader 校對員


【工程師/技術/製造/品管】
Product Manager 生産部經理
Line Supervisor 生産線主管
Engineer工程師
Research&.Development Engineer 研究開發工程師
Application Engineer 應用工程師
Chemical Engineer 化學工程師
Mechanical Engineer 機械工程師
Mining Engineer 采礦工程師
Naval Architect 造船工程師
Production Engineer 産品工程師
Maintenance Engineer 維修工程師
Manufacturing Engineer 制造工程師
Civil Engineer 土木工程師
Electrical Engineer 電氣工程師
Systems Engineer 系統工程師
Systems Operator 系統操作員
Quality Assuranc品保(QA)
Quality Control品管(QC)
Operator作業員
Technician技術員
Engineering Technician 工程技術員
Manufacturing Worker 生産員工
Professional Staff 專業人員
Programmer 電腦程序設計師
Purchasing Agent 采購進貨員
Quality Control Engineer 質量管理工程師


【資訊/行政/航空】
Computer System Manager 計算機系統部經理
Management Information System資訊管理系統(MIS)
Computer Engineer 計算機工程師
Hardware Engineer 計算機硬件工程師
Product Support產品支援
Computer Data Input Operator 計算機資料輸入員
Computer Processing Operator 計算機處理操作員
Hardware硬體
Software軟體
System系統
Network網管
Maintenance維修
Clerk/Receptionist 職員/接待員
Clerk Typist & Secretary 文書打字兼秘書
Technical Support技術支援
Technology技術
Testing測試
Airlines Sales Representative 航空公司定座員
Airlines Staff 航空公司職員


【教育】
head teacher校長
professor教授
School Registrar 學校註冊主任
Teacher老師
educator教師/教育家
practice teacher實習教師
instructor教練
Interpreter 口語翻譯
Music Teacher 音樂教師


【銷售/客服/門市】
Sales and Planning Staff 銷售計劃員
Sales Assistant 銷售助理
Sales Coordinator 銷售協調人
Sales Engineer 銷售工程師
Sales Executive 銷售主管
Sales Manager 銷售部經理
Salesperson 銷售員
Seller Representative 銷售代表
Sales Supervisor 銷售監管
Sales Clerk 店員、售貨員
Telephonist / Operator 電話接線員、話務員
Telecommunication Executive電訊(電信)員


【公務員/其他職務名稱】
President總統
vice president副總統
Police警察
Fireman消防隊員
Postal Clerk 郵政人員
Doctor醫生
nurse護士
Tourist Guide 導遊
Passenger Reservation Staff 乘客票位預訂員
Real Estate Staff 房地産職員
Securities Custody Clerk 保安人員
Security Officer 安全人員





waterisme 發表在 痞客邦 留言(1) 人氣()

轉自eion.com.tw,感謝
ASP Date() 日期與時間
Active Server Page 動態伺服器網頁,由 Microsoft 微軟所開發互動式網頁格式,與 PHP、CGI(Common Gateway Interface) 屬於同一性質的網頁開發語言 ASP 程式是以 .asp 為副檔名的格式檔案,可以包含一般的 HTML 標記與各類型用戶端 Script 及在伺服器上執行的ASP 程式碼,安裝 IIS (Internet Information Services) 即可與伺服器運作,缺點是除了Windows 其他的作業系統似乎沒有完整支援 ASP 的伺服器作業系統。

waterisme 發表在 痞客邦 留言(0) 人氣()

DeleteFile方法(刪除檔案)
DeleteFile方法的呼叫格式為:
FileSystemObject名.DeleteFile 被刪除之檔案 , [ 是否強制刪除 ]

waterisme 發表在 痞客邦 留言(1) 人氣()

動態圖3肺經.gif
尚在編輯中
 
3肺經

waterisme 發表在 痞客邦 留言(0) 人氣()

1
轉自  http://www.blueidea.com/tech/program/2004/2351.asp ,感謝。
這幾天研究UTF-8編碼,太暈了,把我的看法和各位討論討論。
歡迎來批啊。以下都是我的想法,哪里有不對的請不吝賜教,幫忙指出來。

waterisme 發表在 痞客邦 留言(1) 人氣()


轉貼自  松露筆管麵 感謝。
 
ShowModalDialog與window.open,最大的不同是ShowModalDialog的父視窗是凍結,屬於原來網頁的一部分,而且父子視窗可以互相傳值。
語法:
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
參數說明:
sURL 
必要參數,類型:字串。用來指定對話方塊要載入網頁的URL。
vArguments 
非必要參數,類型:變動。用來向對話方塊傳遞參數。傳遞的參數類型不限,包括陣列等。對話方塊通過window.dialogArguments來取得傳遞進來的參數。
sFeatures 
非必要參數,類型:字串。用來描述對話方塊的外觀等資訊,可以使用以下的一個或多個,用分號“;”隔開。



參數
限定值
說明


dialogHeight
--
對話方塊高度,不小於100px,IE4中dialogHeight 和 dialogWidth 預設的單位是em,而IE5中是px,為方便起見,在定義modal的對話方塊時,用px做單位


dialogWidth
--
對話方塊寬度


dialogLeft
--
距離桌面左的距離


dialogTop
--
離桌面上的距離


center
{yes | no | 1 | 0 } 
視窗是否居中,預設yes,但仍可以指定高度和寬度


help
{yes | no | 1 | 0 }
是否顯示説明按鈕,預設yes 


resizable
{yes | no | 1 | 0 } [IE5+]
是否可被改變大小。預設no


status
{yes | no | 1 | 0 } [IE5+]
是否顯示狀態列。預設為yes[ Modeless]或no [Modal]


scroll
{ yes | no | 1 | 0 | on | off }
指明對話方塊是否顯示捲軸。默認為yes



參數傳遞方式:
父視窗 
向子視窗傳遞參數採用ShowModalDialog的第2個參數(vArguments)即可,父視窗要獲取子視窗傳回的參數則可通過ShowModalDialog函數的返回值(vReturnValue )獲取。

子視窗 
取得父視窗參數的方法,只要在子視窗裡下Javascript,用window物件的dialogArguments屬性來取取,例如: 
var a=window.dialogArguments
子視窗向父視窗返回參數,可用window.returnValue屬性,如: 
window.returnValue=1; 
window.close();

範例
父視窗












1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57



<!DOCTYPE html>


<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <script type="text/javascript">

        //亂數

        function fnRandom(iModifier) {

            return parseInt(Math.random() * iModifier);

        }

        //設定打開視窗的參數

        function fnSetValues() {

            var iHeight = oForm.oHeight.options[

                oForm.oHeight.selectedIndex].text;

            if (iHeight.indexOf("Random") > -1) {

                iHeight = fnRandom(document.body.clientHeight);

            }

            var sFeatures = "dialogHeight: " + iHeight + "px;";

            return sFeatures;

        }

        function fnOpen() {

            //呼叫設定參數涵式

            var sFeatures = fnSetValues();

             

            //傳遞參數

            var sDialogArguments = document.getElementById("txtParent").value;

            //打開視窗

             

            var retValue = window.showModalDialog("child.html", sDialogArguments,

                sFeatures);

            //顯示返回值

            //alert(retValue);

            var divElement = document.getElementById("divChild");

            divElement.innerHTML = retValue;

        }

 

    </script>

    <title></title>

</head>

    <body>

 <form name="oForm">

  Dialog Height

  <select name="oHeight">

    <option>-- Random --</option>

    <option>150</option>

    <option>200</option>

    <option>250</option>

    <option>300</option>

  </select>

     Create Modal Dialog Box

 

     本視窗(父):<input id="txtParent" type="text" />

 <input type="button" value="打開視窗" onclick="fnOpen()">

 

     來自子視窗:<div id="divChild"> 1</div>         

</form>

    </body>

</html>







子視窗













1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30



<!DOCTYPE html>


<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <script type="text/javascript">

        //接收父視窗傳值

        function setValue() {

            document.getElementById("divFromParent").innerHTML = window.dialogArguments;

 

        }

        //返回父視窗,並回傳值

        function retParantWin() {

            //alert(document.getElementById("txtChild").value);

            window.returnValue = document.getElementById("txtChild").value;

            window.close();

        }

    </script>

    <title></title>

</head>

    <body onload="setValue()">

        <form>

            Child

 

            父視窗傳值:<div id="divFromParent"> 1</div>

            本視窗(子)輸入:<input id="txtChild" type="text" />

        <input id="Button1" type="button" value="返回父視窗" onclick="retParantWin();"/>

        </form>

    </body>

</html>

 







waterisme 發表在 痞客邦 留言(0) 人氣()

本文引用自Pescados - 計算兩個日期差距幾天-sql server版本
之前用的oracle資料庫 去計算日期相減  
改到 sql server上就有差異 紀錄一下免的忘記 

如果欄位並非日期格式的話 要先轉換成日期格式 
CONVERT(datetime,日期欄位1),CONVERT(datetime,日期欄位2)
然後再將轉換好的丟進去做運算
DATEDIFF(datepart ,startdate,enddate)

所以結合一下 就可以寫成下面的方式 
DATEDIFF (day,CONVERT(datetime,日期欄位1),CONVERT(datetime,日期欄位2)) 

備註 參數的部份 可以替換

waterisme 發表在 痞客邦 留言(0) 人氣()

一天早上要去上班。
一打開車門就看見老婆給我的小紙條:
“一定要加油哦!”
旁邊還畫了個心,
當時我感動了,
心裡就默默的發誓:
“老婆,我一定會努力賺錢讓你過好日子的。”
15分鐘後……
在高速公路上
沒油
被拖車拖到了服務區……

waterisme 發表在 痞客邦 留言(0) 人氣()

銷售賣什麼呢?
 
賣辣椒的人總會遇到這樣的問題,“妳這辣椒辣嗎?”怎麼回答呢?說辣吧,怕辣的人,立刻走了;答不辣吧,也許人家喜歡吃辣的,生意還是不成。
  
一天没事,我就站在一個賣辣椒婦女的三輪車旁,看她怎樣解這個二律背反難題。
趁著眼前没有買主,我自作聰明地對她說:妳把辣椒分成兩堆吧,有人要辣的妳就給他說這堆是,有人要不辣的妳就給他說那堆是。
賣辣椒的婦女對我笑了笑,輕聲說:用不著!⋯⋯
說著就來了一個買主,問的果然是那句老話:辣椒辣嗎?
賣辣椒的婦女很肯定地告訴他:顏色深的辣,淺的不辣!買主信以為真,挑好付過錢,滿意地走了。不一會兒,顏色淺的辣椒就所剩無幾了。
又有個買主來了,問的還是那句話:辣椒辣嗎?賣辣椒的婦女看了一眼自己的辣椒,信口答道:長的辣,短的不辣!果然,買主就按照她的分類標準開始挑起来。這輪結果是,長辣椒很快告罄。
看著剩下的都是深顏色的短辣椒,我心裡想:這回看妳還有什麼說法?
當又一個買主問“辣椒辣嗎?”的時候,賣辣椒的婦女信心十足地回答:“硬皮的辣,軟皮的不辣!”我暗暗佩服,可不是嘛,被太陽曬了半天,確實有很多辣椒因失水變得軟綿綿了。
賣辣椒的婦女賣完辣椒,臨走時對我說:你說的那個辦法賣辣椒的都知道,而我的辦法只有我自己知道。

waterisme 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。