public virtual JArray GetOUExtAttrs(HttpContext context) { YZRequest request = new YZRequest(context); DataColumnCollection columns; using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); columns = OU.GetExtColumns(cn, request.GetString("namespace")); } return(YZJsonHelper.SerializeExtAttrSchema(columns)); }
public virtual BPMObjectNameCollection GetOUExtAttrNames(HttpContext context) { YZRequest request = new YZRequest(context); String @namespace = request.GetString("namespace", Namespace.BPMOU); using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); DataColumnCollection columns = OU.GetExtColumns(cn, @namespace); BPMObjectNameCollection attrNames = new BPMObjectNameCollection(); foreach (DataColumn column in columns) { attrNames.Add(column.ColumnName); } return(attrNames); } }
public virtual JObject GetOUDefine(HttpContext context) { YZRequest request = new YZRequest(context); string oufullname = request.GetString("fullName"); OU ou; DataColumnCollection columns; using (BPMConnection cn = new BPMConnection()) { cn.WebOpen(); ou = OU.FromFullName(cn, oufullname); columns = OU.GetExtColumns(cn, ou.NameSpace); } JObject rv; rv = JObject.FromObject(ou); rv["ExtAttrsSchema"] = YZJsonHelper.SerializeExtAttrSchema(columns); return(rv); }