Пример #1
0
        protected override bool beforeUpdate()
        {
            WFEmp emp = new WFEmp(this.No);

            emp.Update();
            return(base.beforeUpdate());
        }
Пример #2
0
        /// <summary>
        /// 执行启用
        /// </summary>
        public string DoEnableIt()
        {
            WFEmp emp = new WFEmp(this.No);

            emp.UseSta = 1;
            emp.Update();
            return("已经执行(启用)成功");
        }
Пример #3
0
        /// <summary>
        /// 执行禁用
        /// </summary>
        public string DoDisableIt()
        {
            WFEmp emp = new WFEmp(this.No);

            emp.UseSta = 0;
            emp.Update();
            return("已经执行(禁用)成功");
        }