protected void dgvRule_DateBind() { BLL.BXRatio bll = new MRS.BLL.BXRatio(); IList <Model.BXRatio> rules = bll.Select(); dgvRule.DataSource = rules; dgvRule.Columns["Id"].Visible = false; dgvRule.Columns["OrderNumber"].Visible = false; dgvRule.Columns["MinKBJE"].HeaderText = "下限值(非包含)"; dgvRule.Columns["MaxKBJE"].HeaderText = "上限值(包含)"; dgvRule.Columns["HspType"].HeaderText = "就诊方式"; dgvRule.Columns["HspType"].DisplayIndex = 0; dgvRule.Columns["Ratio"].HeaderText = "报销比例"; }
protected void dgvBXRatio_DataBind() { BLL.BXRatio bll_ratio = new MRS.BLL.BXRatio(); dgvBXRatio.DataSource = bll_ratio.Select(); DataGridViewCellStyle style = new DataGridViewCellStyle(); style.Alignment = DataGridViewContentAlignment.MiddleRight; dgvBXRatio.Columns["Id"].Visible = false; dgvBXRatio.Columns["OrderNumber"].Visible = false; dgvBXRatio.Columns["MinKBJE"].HeaderText = "下限值(非包含)元"; dgvBXRatio.Columns["MinKBJE"].DefaultCellStyle = style; dgvBXRatio.Columns["MaxKBJE"].HeaderText = "上限值(包含)元"; dgvBXRatio.Columns["MaxKBJE"].DefaultCellStyle = style; dgvBXRatio.Columns["HspType"].HeaderText = "就诊方式"; dgvBXRatio.Columns["HspType"].DisplayIndex = 0; dgvBXRatio.Columns["Ratio"].HeaderText = "报销比例"; dgvBXRatio.Columns["Ratio"].DefaultCellStyle = style; }