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.0 KiB

import{UAC as u}from"./UAC-8e255d47.js";import{Map as i}from"./Map-73575e6b.js";import{EntityMyPK as s,EntitiesMyPK as a}from"./EntityMyPK-e742fec8.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"./RefMethod-33a71db4.js";import"./SearchNormal-5c7fda42.js";import"./SearchFKEnum-31a3a609.js";import"./Glo-fda3f906.js";import"./EnMapExt-8e17025c.js";import"./Entities-6a72b013.js";class n extends s{constructor(t){super("TS.FrmUI.SFPara"),t&&this.setPKVal(t)}get HisUAC(){const t=new u;return t.IsDelete=!0,t.IsUpdate=!0,t.IsInsert=!0,t}get EnMap(){const t=new i("Sys_SFPara","\u53C2\u6570");t.AddMyPK(),t.AddTBString("RefPKVal",null,"\u5B9E\u4F53\u4E3B\u952E",!1,!1,1,200,20),t.AddTBString("ParaKey",null,"\u53C2\u6570\u6807\u8BB0",!0,!1,1,200,100),t.AddTBString("ParaName",null,"\u53C2\u6570\u540D\u79F0",!0,!1,0,200,100),t.AddDDLStringEnum("DataType","String","\u6570\u636E\u7C7B\u578B","@String=String@Int=Int@Float=Float",!0,"",!1,100),t.AddDDLStringEnum("IsSys","String","\u83B7\u53D6\u7C7B\u578B","@0=\u5185\u90E8@1=\u5916\u90E8",!0,"",!1,100),t.AddTBString("DefVal",null,"\u9ED8\u8BA4\u503C",!0,!1,0,200,100);const r="SELECT No,Name FROM Sys_GloVar WHERE GroupKey='DefVal' ";return t.AddDDLSQL("Exp",null,"\u5185\u53C2\u8868\u8FBE\u5F0F",r,!0,null,!1,200),t.AddTBInt("Idx",0,"\u5E8F\u53F7",!0,!1),this._enMap=t,this._enMap}beforeInsert(){return this.MyPK||(this.MyPK=this.GetValStringByKey("RefPKVal")+"_"+this.GetValStringByKey("ParaKey")),Promise.resolve(!0)}beforeUpdateInsertAction(){return this.MyPK=this.GetValStringByKey("RefPKVal")+"_"+this.GetValStringByKey("ParaKey"),this.DataType||(this.DataType="String"),this.IsSys||(this.IsSys="0"),Promise.resolve(!0)}}class c extends a{get GetNewEntity(){return new n}constructor(){super()}}export{n as SFPara,c as SFParas};