protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e) { int tlpID = Convert.ToInt32(e.CommandArgument); M_Design_Tlp tlpMod = tlpBll.SelReturnModel(tlpID); switch (e.CommandName) { case "del2": tlpMod.ZStatus = (int)ZLEnum.ConStatus.Recycle; tlpBll.UpdateByID(tlpMod); break; case "setdef": tlpBll.SetDef(tlpID, ZType); break; case "rec"://恢复 tlpMod.ZStatus = 0; tlpBll.UpdateByID(tlpMod); break; case "del"://彻底删除 tlpBll.Del(tlpMod.ID); break; } MyBind(); }