protected virtual void EPActivityType_RowSelected(PXCache sender, PXRowSelectedEventArgs e) { EPActivityType row = e.Row as EPActivityType; if (row != null) { PXUIFieldAttribute.SetEnabled(sender, row, !(row.IsSystem ?? false)); } PXUIFieldAttribute.SetEnabled <EPActivityType.classID>(ActivityTypes.Cache, null, false); }
// PUT api/<controller>/5 /// <summary> /// Puts the specified identifier. /// </summary> /// <param name="id">The identifier.</param> /// <param name="value">The value.</param> /// <returns></returns> /// <exception cref="HttpResponseException"></exception> public EPActivityType Put(string id, [FromBody] EPActivityType value) { EPActivityType objItem = new EPActivityType(); try { objItem = EPActivityTypeManager.UpdateItem(value); } catch (Exception ObjEx) { IfindLogManager.AddItem(new IfindLog() { LinkUrl = Request.RequestUri.AbsoluteUri, Exception = ObjEx.Message, Message = ObjEx.StackTrace }); } return(objItem); }