摘要:bool MatchCheck(string sn,string pattern) { return Regex.IsMatch(sn, pattern, RegexOptions.None); } /// <summary> /// 掩碼轉換為正則表達式 /// </summary> /// <param name="msk">掩碼 CTH********F2GV**</param> /// <param name="token">掩碼符號* #</... 閱讀全文
php 處理 mysql to json, 前臺js處理
2012-05-23 20:02 by 小sa, 277 閱讀, 0 推薦, 收藏,
摘要:public function GetJson(){ $query="select * from table"; $result = mysql_query($query); $rows = array(); while($row = mysql_fetch_array($result)){ $rows []= $row; } echo json_encode($rows);}js處理 $.get( "./bll.php", option, ... 閱讀全文
php寫導入,導出 mysql csv
2012-05-23 19:47 by 小sa, 273 閱讀, 0 推薦, 收藏,
摘要:php 從 csv轉換 tsqlfunction csv2sql($table, $csv_fieldname = 'csv') { $handle = fopen($csv_fieldname, 'r'); if (!$handle) die('Cannot open uploaded file.'); //$fields=var_dump($csvData); $row_count = 0; $sql_query = ""; $rows = array (); //Read the file as csv while (( 閱讀全文
提高PHP代碼質量36計
2012-05-15 15:40 by 小sa, 185 閱讀, 0 推薦, 收藏,
摘要:本文詳細的介紹了PHP代碼的一些優點和缺點,以及編寫代碼更多的方法,希望能給網友們在代碼質量這方面能有所提高。詳細請看下文AD:1.不要使用相對路徑常常會看到:require_once('http://www.rzrgm.cn/lib/some_class.php');該方法有很多缺點:它首先查找指定的php包含路徑, 然后查找當前目錄.因此會檢查過多路徑.如果該腳本被另一目錄的腳本包含, 它的基本目錄變成了另一腳本所在的目錄.另一問題, 當定時任務運行該腳本, 它的上級目錄可能就不是工作目錄了.因此最佳選擇是使用絕對路徑:define('ROOT', 閱讀全文
sap ok code
2012-03-23 21:12 by 小sa, 438 閱讀, 0 推薦, 收藏,
摘要:OK Code ValuesR/3 note no. 26171Direct call of transactions, session handling:BatchABAP/4BufferR/3 note no. 45507R/3 note no. 26171The design of the R/3 System is such that all programs can be called via menu options. In addition tergonomic advantages (nneed tlearn transaction codes), this procedure 閱讀全文
sap function 常用的一些系統函數
2012-03-23 21:12 by 小sa, 1546 閱讀, 0 推薦, 收藏,
摘要:SAP FunctionsABAP_DOCU_DOWNLOADDownload ABAP documentation in HTML format.APPL_LOG_DELETEWith this function module you delete logs in the database according to specified selection conditionsAPPL_LOG_DISPLAYWith this function module you can analyze logs in the database.APPL_LOG_DISPLAY_INTERNWith thi 閱讀全文
sap links /sap 學習資源鏈接
2012-03-23 21:11 by 小sa, 318 閱讀, 0 推薦, 收藏,
摘要:SAP and ABAP Links國內的大牛們:http://blog.csdn.net/compassbutton/Jack Wuhttp://blog.csdn.net/lijunhai/lijunhai的專欄http://blog.chinaunix.net/u/28793SAP砍刀http://www.rzrgm.cn/qiangsheng強晟http://blog.tom.com/lxd_52_zl快樂生活http://abaper.blogbus.com/日積月累http://blog.chinaunix.net/u1/40527/index.html老白http://bl 閱讀全文
SAP Tables 表
2012-03-23 21:09 by 小sa, 2489 閱讀, 0 推薦, 收藏,
摘要:http://abap4.tripod.com/index.html參考System TablesADCPPerson/Address assignment (central address administration)ADIRACCESSTable to store keys for TADIR objectsADR2Telephone numbers (central address admin.)ADRPPersons (central address administration)APQDDATA DEFINITION QueueAPQIQueue info definitionD0 閱讀全文
sap tips/ sap 小技巧
2012-03-17 14:53 by 小sa, 659 閱讀, 0 推薦, 收藏,
摘要:Other Useful TipsAdding Custom Fields to POs, Outline Agreements, and RFOsAuthorization Failures on Fixed Asset ReportsFind Programs That Use a Layout SetUnderstanding Date Selections Using the HR Logical DatabasePrinting Blank LinesCentral Address ManagementUseful User ParamtersMaintaining Trailing 閱讀全文
讀/寫byte[] 類型 MS SQL數據庫
2012-03-07 13:20 by 小sa, 693 閱讀, 0 推薦, 收藏,
摘要://寫入流 public void Write(byte[] val) { using (SqlConnection con = new SqlConnection(connectionString)) { con.Open(); using (SqlCommand cmd = new SqlCommand("INSERT INTO Temp_Compress( BinData ) VALUES (@binaryValue)", con)) ... 閱讀全文
浙公網安備 33010602011771號