Time of Update: 2018-12-07
想起來Sybase 的Power designer, 反向工程產生ER圖, 這樣看的就清楚了.記錄一下:1. In PowerDesigner, choose File | Reverse Engineer | Database....The New Physical Data Model Dialog box, shown next, appears.DBMS要選成SQLServer2008, 然後點"OK"2.在出來的database reverse engineering視窗裡,
Time of Update: 2018-12-07
//frmA: 源表單//------------------------------------------//引用using System.Threading; BackgroundWorker worker; public frmA() { InitializeComponent(); worker = new BackgroundWorker();
Time of Update: 2018-12-07
最近折騰採用第三方報表控制項(DevExpress),開始採用的是 檔案(.repx)讀取的方式進行報表設計師的載入。實現方式如下:不設定檔案複製到輸出目錄,是無法載入到該報表模組檔案的。 1 //擷取datatable資料 2 CreateDataTable(); 3 DataSet ds = new DataSet(); 4 ds.Tables.Add(dt); 5 //載入資料,使用者自訂報表格式 6 DevExpress.XtraReports.UI.XtraReport
Time of Update: 2018-12-07
// To convert an XML node contained in string xml into a JSON string XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); string jsonText = JsonConvert.SerializeXmlNode(doc); // To convert JSON text contained in string json into an XML node
Time of Update: 2018-12-07
我做了個有“確定”和“取消”按鈕的WinForm它ShowDialog()後如何做到: 點“確定”返回DialogResult.OK 點“取消”返回DialogResult.Cancel button鈕有屬性 DialogResult將“確定”鈕設為 "OK" “取消”鈕設為"Cancel"就好Form上有 AcceptButton 屬性,設為 "確定" 鈕 CancelButton
Time of Update: 2018-12-07
-----------------------------------------------DDL的載入就激發的方法------------------------------------- protected void Page_Load(object sender, EventArgs e) { DropDownList1_SelectedIndexChanged(sender, e);
Time of Update: 2018-12-07
一個新的Skin應用此Skin方法:此Skin已經被dudu添加到部落格園的Skin列表中,可以直接選用,不用在"通過CSS定製頁面"中輸入css代碼了。 選擇 管理/選項/Configure 在頁面的:Display Skin列表框選擇:Book選擇 管理/選項/Configure 在頁面的:Display Skin( 66)列表框選擇:gertrude 在 Custom CSS Selectors 中粘貼回複中“中書本”的CSS代碼。
Time of Update: 2018-12-07
一直使用http://www.jslint.com/的js語法檢查工具對javascript進行語法檢查。我將首頁另存新檔一個mht檔案,可以直接在本地進行檢查,不用每次都連網。不久前將作業系統有2000換成了XP,沒有開啟本地的mht頁面都會自動禁止js指令碼執行,還要手工切換一下,非常麻煩。http://www.jslint.com/網站上也提供了WSH命令列的指令碼:http://www.jslint.com/wsh/index.html但是此指令碼遇到第一個語法錯誤就會停止,還要啟動命令
Time of Update: 2018-12-07
原貼地址: http://www.tf168.cn/MyBbs/viewthread.asp?webid=209998&boardid=77029&topicid=162965&page=1或: http://www.fadcn.net/blog/article.asp?id=78 全國各地城市天氣預報代碼,整理如下:第一種:<iframe src="http://weather.265.com/weather.htm" width="160" height="54
Time of Update: 2018-12-07
Dev的控制項使用很簡單,我分為了三步,按著這三步就可以實現最基本的柱狀圖 1.組織資料: 一般作統計分析的資料都是一些的綜合資料,列比較固定我的資料()2.代碼如下:C# Code:chartControl1.Series.Clear();// 柱狀圖裡的第一個柱 Series Series1 = new Series("當年資料", ViewType.Bar);Series1.DataSource = data;Series1.ArgumentScaleType =
Time of Update: 2018-12-07
測試使用BlogEx發布BlogBlogEX 由 Neo101 6 個月 以前 發佈於 外掛程式 擴充描述DescriptionA Blog EXtension for Maxthon.Add posts to your blog quickly with this Maxthon Sidebar plugin!You can now post to your blog without having to go to your blog.Just open the sidebar, press
Time of Update: 2018-12-07
Json傳輸中文時為了防止亂碼,通常我們會進行Unicode編碼 ,如{userID:"001",nickname:"\u65e0\u8bed\u68a6" } 下面的代碼,將能完成Unicode的與一般字元的轉換功能,函數是在網上找的,做個記號 Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-07
2010-01-27 11:04 1:讀取comboBoxEdit選中值的方法 comboBoxEdit1.Properties.Items[comboBoxEdit1.SelectedIndex].ToString() 使用前需要先確認 comboBoxEdit1.SelectedIndex不能等於-1,不然報錯。 2 :ComboBoxEdit也是DevExpress
Time of Update: 2018-12-07
Developer Express 之 XtraReport報表預覽處理常式PrintControl設定 代碼如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using
Time of Update: 2018-12-07
前兩種方法和WinForm一樣,可以傳遞參數、數組、實體物件、DataTable等1. 採用建構函式具體用法:在Report中public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport { private int test1; public Form1(int test1) { this.test1 = test1;
Time of Update: 2018-12-07
在gridview的CustomDrawCell事件中,添加如下代碼,則可實現行資料的顏色控制if (gvData.GetDataRow(e.RowHandle) == null) return; if (gvData.GetDataRow(e.RowHandle)["列名"].ToString()=="1" ) {//該行資料的該列的值為1時,其背景色為gray e.Appearance.BackColor = Color.Gray; } else {
Time of Update: 2018-12-07
多線程訪問控制項在網上的方法有很多,這裡只記錄我用到的這個,其他的可以去網上搜尋,很多。首先聲明一個全域變數和一個委託類型(用來訪問控制項) 01.private BackgroundWorker _bWorker; 02.delegate void SetProgressBarDelegate(int value); 在一個按鈕事件裡面給這個workfer賦值一些屬性01._bWorker = new BackgroundWorker(); 02.
Time of Update: 2018-12-07
建立一個表單,拖個按鈕和 progressBarControl控制項(Devexpress)在按鈕事件裡private void simpleButton1_Click(object sender, EventArgs e) { //設定一個最小值 progressBarControl1.Properties.Minimum = 0; //設定一個最大值 progressBarControl1.
Time of Update: 2018-12-07
Developer Express 之 XtraReport如何顯示設計表單XtraReport的設計器,其實用XRDesignFormEx就可以。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;
Time of Update: 2018-12-07
private void simpleButton1_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Title = "匯出Excel"; saveFileDialog.Filter = "Excel檔案(*.xls)|*.xls";