public static bool UpdateStatus(string strIDList, ContStatus status) { return(BizBase.dbo.ExecSQL(string.Concat(new object[] { " UPDATE cms_Content SET [Status] =", (int)status, " WHERE AutoID in ( ", strIDList, " )" }))); }
protected void Page_Load(object sender, System.EventArgs e) { this.strListType = WebUtils.GetQueryString("ListType", "Normal"); string text = this.strListType; if (text != null) { if (!(text == "Normal")) { if (!(text == "Recycle")) { if (text == "DraftBox") { this.contStatus = ContStatus.WaittingAudit; this.btn_AuditOK.Visible = true; this.btn_AuditCancel.Visible = true; this.ddlMoveTo.Visible = true; this.btn_MoveTo.Visible = true; this.btn_SaveSort.Visible = true; this.btn_DelBat.Visible = true; } } else { this.contStatus = ContStatus.Recycle; this.btn_Clear.Visible = true; } } else { this.contStatus = ContStatus.AuditSuccess; this.btn_AuditOK.Visible = true; this.btn_AuditCancel.Visible = true; this.ddlMoveTo.Visible = true; this.btn_MoveTo.Visible = true; this.btn_SaveSort.Visible = true; this.btn_DelBat.Visible = true; } } if (!base.IsPostBack) { this.BindNodeTree(); this.BindData(); } }