protected override bool beforeUpdate() { WFEmp emp = new WFEmp(this.No); emp.Update(); return(base.beforeUpdate()); }
/// <summary> /// 执行启用 /// </summary> public string DoEnableIt() { WFEmp emp = new WFEmp(this.No); emp.UseSta = 1; emp.Update(); return("已经执行(启用)成功"); }
/// <summary> /// 执行禁用 /// </summary> public string DoDisableIt() { WFEmp emp = new WFEmp(this.No); emp.UseSta = 0; emp.Update(); return("已经执行(禁用)成功"); }