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
6.9 KiB
2 lines
6.9 KiB
var B=Object.defineProperty;var f=(i,u,n)=>u in i?B(i,u,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[u]=n;var t=(i,u,n)=>(f(i,typeof u!="symbol"?u+"":u,n),n);var T=(i,u,n)=>new Promise((d,l)=>{var y=s=>{try{r(n.next(s))}catch(I){l(I)}},o=s=>{try{r(n.throw(s))}catch(I){l(I)}},r=s=>s.done?d(s.value):Promise.resolve(s.value).then(y,o);r((n=n.apply(i,u)).next())});import{UAC as E}from"./UAC-8e255d47.js";import{Map as C}from"./Map-73575e6b.js";import{EntityMyPK as F,EntitiesMyPK as D}from"./EntityMyPK-e742fec8.js";import{D as a}from"./DataType-33901a1c.js";import S from"./Events-141c34ea.js";import"./index-f4658ae7.js";import"./Attrs-62391d6b.js";import"./EnumLab-3cbd0812.js";import"./Attr-d5feb8b8.js";import"./ParamUtils-cdc24dd6.js";import"./SystemConfig-b93c25b3.js";import"./bignumber-cf158d26.js";import"./ParamsUtils-3cbc5822.js";import"./RefMethod-33a71db4.js";import"./SearchNormal-5c7fda42.js";import"./SearchFKEnum-31a3a609.js";import"./Glo-fda3f906.js";import"./EnMapExt-8e17025c.js";import"./Entities-6a72b013.js";class e{}t(e,"FK_MapData","FK_MapData"),t(e,"KeyOfEn","KeyOfEn"),t(e,"Name","Name"),t(e,"DefVal","DefVal"),t(e,"DefValType","DefValType"),t(e,"UIContralType","UIContralType"),t(e,"MyDataType","MyDataType"),t(e,"LGType","LGType"),t(e,"UIWidth","UIWidth"),t(e,"UIHeight","UIHeight"),t(e,"MinLen","MinLen"),t(e,"MaxLen","MaxLen"),t(e,"UIBindKey","UIBindKey"),t(e,"UIRefKey","UIRefKey"),t(e,"UIRefKeyText","UIRefKeyText"),t(e,"ExtIsSum","ExtIsSum"),t(e,"UIVisible","UIVisible"),t(e,"UIIsEnable","UIIsEnable"),t(e,"UIIsLine","UIIsLine"),t(e,"UIIsInput","UIIsInput"),t(e,"IsSupperText","IsSupperText"),t(e,"FontSize","FontSize"),t(e,"IsSigan","IsSigan"),t(e,"GUID","GUID"),t(e,"EditType","EditType"),t(e,"Tag","Tag"),t(e,"Tag1","Tag1"),t(e,"Tag2","Tag2"),t(e,"Tag3","Tag3"),t(e,"Tip","Tip"),t(e,"ColSpan","ColSpan"),t(e,"LabelColSpan","LabelColSpan"),t(e,"RowSpan","RowSpan"),t(e,"GroupID","GroupID"),t(e,"IsEnableInAPP","IsEnableInAPP"),t(e,"CSSCtrl","CSSCtrl"),t(e,"CSSLabel","CSSLabel"),t(e,"Idx","Idx"),t(e,"ICON","ICON"),t(e,"TextModel","TextModel");class p extends F{get IsNum(){return this.MyDataType==a.AppInt||this.MyDataType==a.AppDouble||this.MyDataType==a.AppFloat||this.MyDataType==a.AppMoney}constructor(u){super("TS.Sys.MapAttr","BP.Sys.MapAttr"),u&&(this.MyPK=u)}get IsCustomize(){return this.UIContralType>3}get HisUAC(){const u=new E;return u.IsDelete=!0,u.IsUpdate=!0,u.IsInsert=!1,u}get EnMap(){const u=new C("Sys_MapAttr","\u5B57\u6BB5\u5C5E\u6027");return u.AddMyPK(),u.AddTBString(e.FK_MapData,null,"\u8868\u5355ID",!0,!0,1,100,20),u.AddTBString(e.KeyOfEn,null,"\u5C5E\u6027",!0,!0,1,200,20),u.AddTBString(e.Name,null,"\u63CF\u8FF0",!0,!1,0,200,20),u.AddTBString(e.DefVal,null,"\u9ED8\u8BA4\u503C",!1,!1,0,400,20),u.AddTBInt(e.DefValType,1,"\u9ED8\u8BA4\u503C\u7C7B\u578B",!0,!1),u.AddTBInt(e.UIContralType,0,"\u63A7\u4EF6",!0,!1),u.AddTBInt(e.MyDataType,1,"\u6570\u636E\u7C7B\u578B",!0,!1),u.AddDDLSysEnum(e.LGType,0,"\u903B\u8F91\u7C7B\u578B",!0,!1,e.LGType,"@0=\u666E\u901A@1=\u679A\u4E3E@2=\u5916\u952E@3=\u6253\u5F00\u7CFB\u7EDF\u9875\u9762"),u.AddTBFloat(e.UIWidth,100,"\u5BBD\u5EA6",!0,!1),u.AddTBFloat(e.UIHeight,23,"\u9AD8\u5EA6",!0,!1),u.AddTBInt(e.MinLen,0,"\u6700\u5C0F\u957F\u5EA6",!0,!1),u.AddTBInt(e.MaxLen,300,"\u6700\u5927\u957F\u5EA6",!0,!1),u.AddTBString(e.UIBindKey,null,"\u7ED1\u5B9A\u7684\u4FE1\u606F",!0,!1,0,100,20),u.AddTBString(e.UIRefKey,null,"\u7ED1\u5B9A\u7684Key",!0,!1,0,30,20),u.AddTBString(e.UIRefKeyText,null,"\u7ED1\u5B9A\u7684Text",!0,!1,0,30,20),u.AddTBInt(e.ExtIsSum,0,"\u662F\u5426\u663E\u793A\u5408\u8BA1(\u5BF9\u4ECE\u8868\u6709\u6548)",!0,!0),u.AddTBInt(e.UIVisible,1,"\u662F\u5426\u53EF\u89C1",!0,!0),u.AddTBInt(e.UIIsEnable,1,"\u662F\u5426\u542F\u7528",!0,!0),u.AddTBInt(e.UIIsLine,0,"\u662F\u5426\u5355\u72EC\u680F\u663E\u793A",!0,!0),u.AddTBInt(e.UIIsInput,0,"\u662F\u5426\u5FC5\u586B\u5B57\u6BB5",!0,!0),u.AddTBInt(e.TextModel,0,"\u6587\u672C\u7C7B\u578B",!0,!0),u.AddTBInt(e.IsSupperText,0,"\u662F\u5426\u662F\u5927\u6587\u672C",!0,!0),u.AddTBInt(e.FontSize,0,"\u5B57\u4F53\u5927\u5C0F",!0,!0),u.AddTBInt(e.IsSigan,0,"\u7B7E\u5B57\uFF1F",!0,!1),u.AddTBString(e.GUID,null,"GUID",!0,!1,0,128,20),u.AddTBInt(e.EditType,0,"\u7F16\u8F91\u7C7B\u578B",!0,!1),u.AddTBString(e.Tag,null,"\u6807\u8BC6",!0,!1,0,100,20),u.AddTBString(e.Tag1,null,"\u6807\u8BC61",!0,!1,0,4e3,20),u.AddTBString(e.Tag2,null,"\u6807\u8BC62",!0,!1,0,100,20),u.AddTBString(e.Tag3,null,"\u6807\u8BC63",!0,!1,0,100,20),u.AddTBString(e.Tip,null,"\u6FC0\u6D3B\u63D0\u793A",!1,!0,0,200,20),u.AddTBInt(e.ColSpan,1,"\u5355\u5143\u683C\u6570\u91CF",!0,!1),u.AddTBInt(e.LabelColSpan,1,"\u6587\u672C\u5355\u5143\u683C\u6570\u91CF",!0,!1),u.AddTBInt(e.RowSpan,1,"\u884C\u6570",!0,!1),u.AddTBInt(e.GroupID,0,"\u663E\u793A\u7684\u5206\u7EC4",!1,!0),u.AddBoolean(e.IsEnableInAPP,!0,"\u662F\u5426\u5728\u79FB\u52A8\u7AEF\u4E2D\u663E\u793A",!0,!0),u.AddTBInt(e.Idx,0,"\u5E8F\u53F7",!0,!1),u.AddTBString(e.ICON,"0","Icon",!0,!1,0,50,20),u.ParaFields="",u.AddTBAtParas(4e3),this._enMap=u,this._enMap}beforeInsert(){return this.MyPK=this.FK_MapData+"_"+this.KeyOfEn,Promise.resolve(!0)}afterInsert(){return T(this,null,function*(){return S.emit("insertField",Object.fromEntries(this.Row)),Promise.resolve(!0)})}DescIt(){if(this.MyDataType==a.AppString){if(this.UIContralType==0)return` str(${this.MaxLen}) `;if(this.UIContralType==1)return` str(${this.MaxLen})DBSrc:${this.UIBindKey} `}if(this.MyDataType==a.AppInt){if(this.UIContralType==0)return" int\u6574\u578B ";if(this.UIContralType==1)return` enum\u679A\u4E3E:${this.UIBindKey} `;if(this.UIContralType==2)return` enum\u679A\u4E3E:${this.UIBindKey} `;if(this.UIContralType==3)return` enum\u679A\u4E3E:${this.UIBindKey} `}if(this.MyDataType==a.AppBoolean)return"boolen\u5E03\u5C14";if(this.MyDataType==a.AppFloat)return"float\u6D6E\u70B9";if(this.MyDataType==a.AppDouble)return"double\u53CC\u7CBE\u5EA6";if(this.MyDataType==a.AppDate)return"date\u65E5\u671F";if(this.MyDataType==a.AppDateTime)return"dateTime\u65E5\u671F\u65F6\u95F4"}GetEnName(){const u=this.GetParaString("EnName","");if(u!="")return u;if(this.MyDataType==a.AppString){if(this.UIContralType==0)return"TS.FrmUI.MapAttrString";if(this.UIContralType==1)return"TS.FrmUI.MapAttrSFSQL"}if(this.MyDataType==a.AppInt){if(this.UIContralType==0)return"TS.FrmUI.MapAttrNum";if(this.UIContralType==1||this.UIContralType==2||this.UIContralType==3)return"TS.FrmUI.MapAttrEnum"}return this.MyDataType==a.AppFloat||this.MyDataType==a.AppDouble||this.MyDataType==a.AppMoney?"TS.FrmUI.MapAttrNum":this.MyDataType==a.AppBoolean?"TS.FrmUI.MapAttrBoolean":this.MyDataType==a.AppDate||this.MyDataType==a.AppDateTime?"TS.FrmUI.MapAttrDT":(alert("\u6CA1\u6709\u5224\u65AD\u7684\u7C7B\u578B,\u8BF7\u68C0\u67E5."),"TS.FrmUI.MapAttrString")}}t(p,"SQLOfGroupAttr","SELECT OID as No, Lab as Name FROM Sys_GroupField WHERE FrmID='@FK_MapData' AND (CtrlType IS NULL OR CtrlType='') ");class H extends D{get GetNewEntity(){return new p}constructor(){super()}}export{p as MapAttr,e as MapAttrAttr,H as MapAttrs};
|