Exemple #1
0
        protected override bool beforeUpdate()
        {
            WFEmp emp = new WFEmp(this.No);

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

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

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