HIS系统中DEV控件的使用

HIS系统中DEV控件的使用,相信有不少人在研究这一块,最近正巧在研究HIS系统,特别将这块的研究成果拿出来和大家分享。

HIS中关于这块我们需要了解这2块控件数据列表控件-XtraGrid、模糊筛选控件-lookUpEdit,为了方便让大家学习DEV控件这块,特意分享了代码:/Files/0771bc/DEV控件的使用.rar

数据列表控件-XtraGrid 基本绑定只需要指定他的数据源即可,如gridControl_test.DataSource = dt;

数据列表控件-XtraGrid
自定义列名,显示列表标题
各种合计,显示页脚
最终实现效果的代码

namespace DevDemo
{
    
partial class Form1
    {
        
/// <summary>
        
/// 必需的设计器变量。
        
/// </summary>
        private System.ComponentModel.IContainer components = null;

        
/// <summary>
        
/// 清理所有正在使用的资源。
        
/// </summary>
        
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            
if (disposing && (components != null))
            {
                components.Dispose();
            }
            
base.Dispose(disposing);
        }

        
#region Windows 窗体设计器生成的代码

        
/// <summary>
        
/// 设计器支持所需的方法 - 不要
        
/// 使用代码编辑器修改此方法的内容。
        
/// </summary>
        private void InitializeComponent()
        {
            
this.btn_grid = new DevExpress.XtraEditors.SimpleButton();
            
this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
            
this.SuspendLayout();
            
// 
            
// btn_grid
            
// 
            this.btn_grid.Location = new System.Drawing.Point(16769);
            
this.btn_grid.Name = "btn_grid";
            
this.btn_grid.Size = new System.Drawing.Size(9323);
            
this.btn_grid.TabIndex = 0;
            
this.btn_grid.Text = "GridView示例";
            
this.btn_grid.Click += new System.EventHandler(this.btn_grid_Click);
            
// 
            
// simpleButton1
            
// 
            this.simpleButton1.Location = new System.Drawing.Point(16799);
            
this.simpleButton1.Name = "simpleButton1";
            
this.simpleButton1.Size = new System.Drawing.Size(7523);
            
this.simpleButton1.TabIndex = 1;
            
this.simpleButton1.Text = "模糊查询";
            
this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
            
// 
            
// Form1
            
// 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            
this.ClientSize = new System.Drawing.Size(573445);
            
this.Controls.Add(this.simpleButton1);
            
this.Controls.Add(this.btn_grid);
            
this.Name = "Form1";
            
this.Text = "Form1";
            
this.ResumeLayout(false);

        }

        
#endregion

        
private DevExpress.XtraEditors.SimpleButton btn_grid;
        
private DevExpress.XtraEditors.SimpleButton simpleButton1;
    }
}


原文地址:https://www.cnblogs.com/0771bc/p/2086166.html