| | |
| | | var path = "20230228"; |
| | | var url = "http://127.0.0.1:12316/server/"; |
| | | //var token = "c36e4f94-dfde-401e-9967-2c4a449f1300"; |
| | | var token = "deca57d4-7e09-431f-8dd2-97b6e9d840b2"; |
| | | var token = "e507a96b-ca70-4531-b7ef-b3ecb3fb6094"; |
| | | |
| | | $(function () { |
| | | $("#pathSpan").html(path); |
| | |
| | | } |
| | | </script> |
| | | <script> |
| | | // 查询元数据中溢出的单位ID |
| | | function selectMetaOverflowDep() { |
| | | ajax(getUrl("meta/selectMetaOverflowDep"), "POST", JSON.stringify({ ids: [1393, 1392, 1383, 1382] }), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | |
| | | // 插入元数据申请 |
| | | function insertMetaApply() { |
| | | var obj = { |
| | | ids: [1393, 1392, 1383, 1382], |
| | | pwd: aesEncrypt("Test!321&456"), |
| | | tabs: ["元数据表"], |
| | | entities: ["sysmeta"], |
| | | descr: "测试元数据申请~", |
| | | depcodes: ["00"] |
| | | }; |
| | | |
| | | ajax(getUrl("apply/insertApply"), "POST", JSON.stringify(obj), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | |
| | | function selectDbOverflowDep() { |
| | | //selectDbOverflowDep4Wkt(); |
| | | //selectDbOverflowDep4Prop1(); |
| | |
| | | <br /> |
| | | |
| | | 元数据: |
| | | <input value="查询元数据中溢出的单位ID" type="button" onclick="selectMetaOverflowDep();" /> |
| | | <input value="插入元数据申请" type="button" onclick="insertMetaApply();" /> |
| | | <input value="请求下载" type="button" onclick="metaDownloadReq();" /> |
| | | <input value="下载文件" type="button" onclick="selectDownloadFile();" /> |
| | | <iframe id="downFrame" src="" style="display: none; border: 0; padding: 0; height: 0; width: 0"></iframe> |
| | |
| | | <input value="附件下载1" type="button" onclick="downloadReqForGuids();" /> |
| | | <input value="附件下载2" type="button" onclick="downloadReqForTabGuids();" /> |
| | | <hr /> |
| | | <br /> |
| | | |
| | | Turf: |
| | | <input id="inpPoint" type="text" value="POINT (100.746244878 35.588071316)" style="width: 256px;" /> |
| | |
| | | string tabName = this.txtTabPre.Text.Trim(); |
| | | string tabFilter = string.IsNullOrEmpty(tabName) ? "" : string.Format("and c.relname like '{0}%'", tabName); |
| | | |
| | | string sql = string.Format("select c.relname \"tab\", cast(obj_description(c.oid) as varchar) \"desc\", a.attnum \"num\", a.attname \"col\", t.typname \"type\", d.description \"bak\" from pg_attribute a left join pg_description d on d.objoid = a.attrelid and d.objsubid = a.attnum left join pg_class c on a.attrelid = c.oid left join pg_type t on a.atttypid = t.oid where a.attnum >= 0 and reltype>0 and relnamespace in ({0}) {1} order by c.relname desc, a.attnum asc", this.txtNS.Text.Trim(), tabFilter); |
| | | string sql = string.Format("select c.relname \"tab\", cast(obj_description(c.oid) as varchar) \"desc\", a.attnum \"num\", a.attname \"col\", t.typname \"type\", d.description \"bak\" from pg_attribute a left join pg_description d on d.objoid = a.attrelid and d.objsubid = a.attnum left join pg_class c on a.attrelid = c.oid left join pg_type t on a.atttypid = t.oid where a.attnum >= 0 and reltype>0 and relnamespace in ({0}) {1} and position('pg.dropped' in a.attname) = 0 order by c.relname desc, a.attnum asc", this.txtNS.Text.Trim(), tabFilter); |
| | | |
| | | DataTable dt = _dbHelper.GetDataTable(sql, null); |
| | | _list = ModelHandler.FillModel<TabInfo>(dt); |