文章目录
- 金蝶云星空表单插件获取日期控件判空处理
- C#实现
金蝶云星空表单插件获取日期控件判空处理
C#实现
DateTime? deliveryDate = (DateTime?)this.View.Model.GetValue("FApproveDate");//审核日期long leadtime = 20;//天数if (!deliveryDate.IsNullOrEmpty() && deliveryDate > Convert.ToDateTime("1800-01-01 00:00:01")){DateTime planDeliveryDate = deliveryDate.Value.AddDays(-leadtime);//日期往前this.View.Model.SetValue("FCloseDate", planDeliveryDate);//计算后日期赋值给界面日期控件}