protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e) { int tlpID = Convert.ToInt32(e.CommandArgument); switch (e.CommandName) { case "del2": tlpBll.Del(tlpID); break; case "apply": M_UserInfo mu = buser.GetLogin(); string guid = tlpBll.CopyTlp(tlpID, sfBll.SelReturnModel(mu.SiteID)); function.Script(this, "top.location='/design/?ID=" + guid + "';"); break; } MyBind(); }
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(); }