private void tspSelect_Click(object sender, EventArgs e) { SendingMaterialEntity sendingMaterial = new SendingMaterialEntity(); foreach (IViewContent viewContent in WorkbenchSingleton.Workbench.ViewContentCollection) { //if (viewContent.TitleName == StringParser.Parse("发料-退料清单")) if (viewContent.TitleName == StringParser.Parse(StringParser.Parse("${res:FanHai.Hemera.Addins.SendingBackMaterialCtrl.msg.0012}"))) { viewContent.WorkbenchWindow.SelectWindow(); return; } } SendMaterialListContent vc = new SendMaterialListContent(); WorkbenchSingleton.Workbench.ShowView(vc); }
/// <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; } }