//结构体初始化 public ProductsStructAddForm(HYPDM.Entities.PDM_ALL_PRODUCT t,String p_assoID,Enum_AssOpType p_assoType) { InitializeComponent(); this.Text = "结构添加--" + t.PRODUCTNO; this.copy_Product = t; m_assoID = p_assoID; m_assoType = p_assoType; tv_struct_init(); toolProComb_init(selectType.Matieral); toolVersionComb_init(); this.dgvgridInit(); }
public void UpdateExtPro(HYPDM.Entities.PDM_Params p_oldValue, HYPDM.Entities.PDM_Params p_newValue) { StringBuilder stb = new StringBuilder(); stb.Append("UPDATE PDM_Params set PARAMS_NAME ='").Append(p_newValue.PARAMS_NAME).Append("', PARAMS_DATA_TYPE='").Append(p_newValue.PARAMS_DATA_TYPE).Append("' "); stb.Append("WHERE PARAMS_NAME ='").Append(p_oldValue.PARAMS_NAME).Append("' AND PARAMS_DATA_TYPE='").Append(p_oldValue.PARAMS_DATA_TYPE).Append("' AND MASTER_TABLE_NAME='").Append(p_oldValue.MASTER_TABLE_NAME).Append("'"); EAS.Services.ServiceContainer.GetService<DocFileListService>().DataAccessor.Execute(stb.ToString()); }
/// /// 页面控件初始化******************************************************** /// //dgv_Change表格数据初始化 private void dgv_Change_init(HYPDM.Entities.PDM_ALL_PRODUCT t) { if (t != null) { this.dgv_Change.DataSource = _pjtChangeService.GetAssoList(t.PRODUCTID); } }