实体服务规则校验表达式函数
调用函数:
@currentlongdate –获取当前长日期
@currentshortdate –获取当前短日期
@maxdate –获取最大日期
@mindate –获取最小日期
@userid –获取登录的用户id,(select FUSERID,* from T_SEC_USER)
@currentorgid –获取登录的组织id
有源单
ISDRAW () = 1
判断文本、基础资料、数量、日期等常见字段是否为空的表达式 文本为空
- 文本框为空,F_TPQJ_Text = null OR F_TPQJ_Text = “” OR F_TPQJ_Text = ” “
- 基础资料为空F_TPQJ_Base = null OR F_TPQJ_Base = “” OR F_TPQJ_Base = ” “
- 多选基础资料为空len( F_TPQJ_MulBase ) > 0
- 数量为空(整数、小数、数量因为默认值是0,都可以用0来判断)F_TPQJ_Qty =0
- 日期为空F_TPQJ_Date is null
- 复选框,不勾选F_TPQJ_CheckBox = false
- 下拉列表判断为空F_TPQJ_Combo = “”
表单插件.读取Web.config配置
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Util;
using System.ComponentModel;
using System.Configuration;
var AppTimeOut = ConfigurationManager.AppSettings[“AppTimeOut”];
var AppHearbeat = ConfigurationManager.AppSettings[“AppHearbeat”];
var AppTimeOutEnable = ConfigurationManager.AppSettings[“AppTimeOutEnable”];
var msg = string.Format(“AppTimeOut:{0}\r\nAppHearbeat:{1}\r\nAppTimeOutEnable:{2}”
, AppTimeOut
, AppHearbeat
, AppTimeOutEnable);
this.View.ShowMessage(msg);
原文链接:https://vip.kingdee.com/article/347374230331617024?productLineId=1&isKnowledge=2
暂无评论