You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.4 KiB

var l=Object.defineProperty;var B=(r,t,e)=>t in r?l(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var o=(r,t,e)=>(B(r,typeof t!="symbol"?t+"":t,e),e);var i=(r,t,e)=>new Promise((c,p)=>{var d=n=>{try{a(e.next(n))}catch(u){p(u)}},S=n=>{try{a(e.throw(n))}catch(u){p(u)}},a=n=>n.done?c(n.value):Promise.resolve(n.value).then(d,S);a((e=e.apply(r,t)).next())});import{UAC as D}from"./UAC-8e255d47.js";import{Map as N}from"./Map-73575e6b.js";import{EntityNoNameAttr as w,EntityNoName as T,EntitiesNoName as y}from"./EntityNoName-d08126ae.js";import{RefMethod as h}from"./RefMethod-33a71db4.js";import m from"./BSEntity-840a884b.js";import"./index-f4658ae7.js";import"./Attrs-62391d6b.js";import"./EnumLab-3cbd0812.js";import"./DataType-33901a1c.js";import"./ParamUtils-cdc24dd6.js";import"./SystemConfig-b93c25b3.js";import"./bignumber-cf158d26.js";import"./ParamsUtils-3cbc5822.js";import"./Attr-d5feb8b8.js";import"./SearchNormal-5c7fda42.js";import"./SearchFKEnum-31a3a609.js";import"./Glo-fda3f906.js";import"./EnMapExt-8e17025c.js";import"./Entities-6a72b013.js";class s extends w{}o(s,"DBSrcType","DBSrcType"),o(s,"UserID","UserID"),o(s,"Password","Password"),o(s,"IP","IP"),o(s,"DBName","DBName"),o(s,"ConnString","ConnString");class E extends T{constructor(t){super("TS.Sys.SFDBSrc"),t&&this.setPKVal(t)}get HisUAC(){const t=new D;return t.IsDelete=!0,t.IsUpdate=!0,t.IsInsert=!0,t}get EnMap(){const t=new N("Sys_SFDBSrc","\u6570\u636E\u6E90");t.AddTBStringPK(s.No,null,"\u7F16\u53F7",!0,!0,1,20,20),t.AddTBString(s.Name,null,"\u540D\u79F0",!0,!1,0,30,20),t.AddTBString(s.DBSrcType,null,"\u7C7B\u578B",!0,!0,0,30,20),t.AddTBString(s.ConnString,null,"\u8FDE\u63A5",!0,!1,0,300,20,!0),t.AddTBAtParas(300);const e=new h;return e.Title="\u8FDE\u63A5\u6D4B\u8BD5",e.ClassMethod="TestConn",t.AddRefMethod(e),this._enMap=t,this._enMap}TestConn(){return"\u6D4B\u8BD5\u6210\u529F."}GenerTables(){return i(this,null,function*(){const t=new m("BP.Sys.SFDBSrc",this.No);return yield t.Retrieve(),yield t.DoMethodReturnJSON("GetTablesJson")})}GenerTableFields(t){return i(this,null,function*(){const e=new m("BP.Sys.SFDBSrc",this.No);return yield e.Retrieve(),yield e.DoMethodReturnJSON("GetTableFieldsJson",t)})}ExecSrc(t){return i(this,null,function*(){const e=new m("BP.Sys.SFDBSrc",this.No);return yield e.Retrieve(),yield e.DoMethodReturnJSON("xxx",t)})}}class j extends y{get GetNewEntity(){return new E}constructor(){super()}}export{E as SFDBSrc,s as SFDBSrcAttr,j as SFDBSrcs};