//保存 protected void btnSubmit_Click(object sender, EventArgs e) { BLL.daikuan bll = new BLL.daikuan(); bll.UpdateField(id, "status=2"); var reason = txtReason.Text.Trim(); bll.UpdateField(id, "reason='" + reason + "'"); JscriptMsg("驳回借款成功!", Utils.CombUrlTxt("daikuan_audit_list.aspx", "keywords={0}", this.keywords)); }
//批量审核 protected void btnAudit_Click(object sender, EventArgs e) { BLL.daikuan bll = new BLL.daikuan(); Repeater rptList = new Repeater(); rptList = this.rptList; for (int i = 0; i < rptList.Items.Count; i++) { int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value); CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId"); if (cb.Checked) { bll.UpdateField(id, "status=1"); bll.UpdateField(id, "audit_time='" + DateTime.Now + "'"); } } AddAdminLog(DTEnums.ActionEnum.Audit.ToString(), "审核频道内容信息"); //记录日志 JscriptMsg("批量审核成功!", Utils.CombUrlTxt("daikuan_audit_list.aspx", "keywords={0}", this.keywords)); }