C# 调用JAVA WebService
    
            
摘要:假如你的连接是http://192.168.1.31:8080/webapi/services/StudentService在你的项目右添加服务引用http://192.168.1.31:8080/webapi/services/StudentService?WSDL ServiceReference1.StudentServicePortTypeClient client = new ServiceReference1.StudentServicePortTypeClient(); MessageBox.Show(client.getJsonDataByName("xi...
        
阅读全文
                posted @ 
2012-09-21 11:12 
freexiaoyu
        
阅读(10533) 
         
        推荐(0)     
             
            
            
    无法加载协定为“ServiceReference1.xxxxxx”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。
    
            
摘要:原因是config节点中多了endpoint相同节点删除不用的即可,不知道为什么我添加JAVA WebService时候出现二个连接。或使用ServiceReference1.StudentServicePortTypeClient client = new ServiceReference1.StudentServicePortTypeClient("StudentServiceHttpSoap11Endpoint");手动指定config中的name
        
阅读全文
                posted @ 
2012-09-21 11:09 
freexiaoyu
        
阅读(7687) 
         
        推荐(2)     
             
            
            
    DevExpress GridView 模糊查询
    
            
摘要:View Code protected override DevExpress.XtraGrid.Columns.GridColumnCollection CreateColumnCollection() { return new MyGridColumnCollection(this); } protected override DevExpress.XtraGrid.Columns.ColumnFilterInfo CreateFilterRowInfo(DevExpress.XtraGrid.Columns.GridCo...
        
阅读全文
                posted @ 
2012-09-20 11:21 
freexiaoyu
        
阅读(3033) 
         
        推荐(0)     
             
            
            
    DevExpress.Data.Filtering.Helpers.LikeData.CreateContainsPattern已过时
    
            
摘要:View Code protected override string OnCreateLookupDisplayFilter(string text, string displayMember) { List<CriteriaOperator> subStringOperators = new List<CriteriaOperator>(); foreach (string sString in text.Split(' ')) { string exp = DevExpre...
        
阅读全文
                posted @ 
2012-09-20 10:55 
freexiaoyu
        
阅读(829) 
         
        推荐(1)     
             
            
            
    GridControl 继承写法修改自己的GridControl
    
            
摘要:代码如下:View Code namespace GridControlDemo{ class MyGridControl : GridControl { protected override BaseView CreateDefaultView() { return CreateView("MyGridView"); } protected override void RegisterAvailableViewsCore(InfoCollection collection) { ...
        
阅读全文
                posted @ 
2012-09-19 16:38 
freexiaoyu
        
阅读(1984) 
         
        推荐(1)     
             
            
            
    gridLookUpEdit字典控件 模糊查询
    
            
摘要:View Code this.gridLookUpEdit1.Properties.DataSource = dt; this.gridLookUpEdit1.Properties.DisplayMember = dt.Columns[2].ColumnName; this.gridLookUpEdit1.Properties.ValueMember = dt.Columns[0].ColumnName; this.gridLookUpEd...
        
阅读全文
                posted @ 
2012-09-14 09:29 
freexiaoyu
        
阅读(3795) 
         
        推荐(0)     
             
            
            
    C# 用户控件与窗体之间传值
    
            
摘要:用户自定义控件View Code public partial class GirdViewUserControl : DevExpress.XtraEditors.XtraUserControl { public event EventHandler MyKeyDown; public event EventHandler MyDoubleClick; public GirdViewUserControl() { InitializeComponent(); MyGridView.At...
        
阅读全文
                posted @ 
2012-09-04 22:54 
freexiaoyu
        
阅读(5086) 
         
        推荐(0)     
             
            
            
    linq to xml查询绑定GridView
    
            
摘要:private void textEdit1_KeyDown(object sender, KeyEventArgs e) { string path = Application.StartupPath + "\\" + this.textEdit2.Text.Trim(); if (e.KeyCode == Keys.Enter) { if (!File.Exists(path)) { XtraMessageBox...
        
阅读全文
                posted @ 
2012-09-04 09:59 
freexiaoyu
        
阅读(644) 
         
        推荐(0)