private UIChangeInfoData GetSOLineChangeInfoData(SO_SOLinesRecord soline, string field, object newValue, object oldValue) { SORecord so = part.Model.Views["SO"].FocusedRecord as SORecord; UIChangeInfoData change = new UIChangeInfoData(); change.ObjectName = (int)UFIDA.U9.CBO.SCM.Enums.PriceObjectTypeEnumData.Line; change.ActionEnum = (int)UFIDA.U9.CBO.SCM.Enums.BusinessOperatorTypeEnumData.Update2; change.ID = _strongPart.Action.GetRecordMarker(soline); change.OwnerID = _strongPart.Action.GetRecordMarker(so); change.Sequence = 1; change.FieldName = field; change.NewValue = newValue; change.OldValue = oldValue; return(change); }
private void LinkForm() { //表头添加Title Link方法 #region 表头添加Title Link方法 GridColumn gridColumn; string columnName = "DocNo";//TileLink的Grid列名 gridColumn = this.DataGrid1.Columns[columnName].OwnerGridColumn as GridColumn; gridColumn.FormReference = new FormReference(); List <LinkParameter> list = new List <LinkParameter>(); SORecord line = this.Model.SO.FocusedRecord; //LinkParameter link = new LinkParameter("ID", line["MainID"].ToString(), enuBindingType.value); LinkParameter link = new LinkParameter("ID", line["MainID"].ToString(), enuBindingType.value); gridColumn.FormReference.Parameters.Add(link); gridColumn.FormReference.FormId = "3c3dfb69-d07e-46a9-a5ce-b373c0946beb"; gridColumn.FormReference.HideStatusBar = !bool.Parse("True"); //gridColumn.FormReference. = "DocNo"; gridColumn.FormReference.Width = 992; gridColumn.FormReference.Height = 504; #endregion }