/// <summary>绑定参数 只绑定维护了扣料设置有效的参数信息 /// 绑定参数 /// </summary> private void BindParameter() { DataSet dsParameters = sendingMaterialEntity.GetParameters(); if (string.IsNullOrEmpty(sendingMaterialEntity.ErrorMsg)) { lueType.Properties.DataSource = dsParameters.Tables[0]; this.lueType.Properties.DisplayMember = "PARAMETER"; this.lueType.Properties.ValueMember = "PARAMETER_KEY"; this.lueMaterialCode.ItemIndex = 0; this.lueType.Properties.PopupFormSize = new Size(220, 140); } else { this.lueType.Properties.DataSource = null; this.lueType.EditValue = string.Empty; this.lueType.Text = string.Empty; } }
/// <summary>绑定参数 只绑定维护了扣料设置有效的参数信息 /// 绑定参数 /// </summary> private void BindParameter() { SendingMaterialEntity sendingMaterialEntity = new SendingMaterialEntity(); DataSet dsParameters = sendingMaterialEntity.GetParameters(); DataTable dt = dsParameters.Tables[0]; DataRow dr = dt.NewRow(); dr["PARAMETER"] = ""; dt.Rows.Add(dr); if (string.IsNullOrEmpty(sendingMaterialEntity.ErrorMsg)) { lueType.Properties.DataSource = dt; this.lueType.Properties.DisplayMember = "PARAMETER"; this.lueType.Properties.ValueMember = "PARAMETER_KEY"; this.lueType.Properties.PopupFormSize = new Size(220, 140); } else { this.lueType.Properties.DataSource = null; this.lueType.EditValue = string.Empty; this.lueType.Text = string.Empty; } }