private void BindCharge(string strConDiTion) { DataTable dt = bChgCls.GetList(strConDiTion + "1=1 order by CHARGE_CLASS_ID"); if (dt != null) { dgv_ChargeClass.DataSource = dt; RowCount = dt.Rows.Count + 1; } }
/// <summary> /// 绑定费别 /// </summary> public void Bind_ChargeType(ComboBox cmb_ChargeType) { BChargeClass bChargeClass = new BChargeClass(); System.Data.DataTable dt = bChargeClass.GetList("1=1"); cmb_ChargeType.DataSource = dt; cmb_ChargeType.DisplayMember = dt.Columns["CHARGE_TYPE"].ColumnName; cmb_ChargeType.ValueMember = dt.Columns["CHARGE_TYPE_CODE"].ColumnName; //this.charge_ratio = 0; //Get_Charges();//当前选中的费别率×费用 }