摘要:
该代码需要配置OnSave事件。并启用“将执行上下文作为第一个参数” 。 OnSave事件在表单加载和保存时都会触发,所以对于Alert的动作,需要写好判断条件,防止加载时触发。 本代码是通过判断是否字段未保存来防止触发的。 function SaveAlert(ExecutionObj) { Ex 阅读全文
摘要:
1 if Exists(select top 1 * from sysObjects where Id=OBJECT_ID(N'表名') and xtype='U') 2 BEGIN 3 IF COL_LENGTH('表名', '列名') IS NOT NULL 4 PRINT N'列 存在' 5 阅读全文
摘要:
from m in Productions group m by m.sequence into g select new Production { sequence = g.Key, amount = g.Sum(m => m.amount), name = g.Max(m => m.name), 阅读全文