示例#1
0
        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));
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
        }