//批量审批提示(提示申请单总数、申报金额) protected void btn_Audit_Click(object sender, EventArgs e) { Hid_ReportId.Value = string.Empty; var errorMsg = new StringBuilder(); if (Request["ckId"] != null) { var datas = Request["ckId"].Split(','); string reportIds = string.Empty; foreach (var item in datas) { var reportId = item.Split('&')[0]; var state = item.Split('&')[1]; var reportNo = item.Split('&')[2]; if (!int.Parse(state).Equals((int)CostReportState.Auditing)) { errorMsg.Append("“").Append(reportNo).Append("”状态已更新,不允许此操作!").Append("<br/>"); continue; } reportIds += "," + reportId; } if (!string.IsNullOrEmpty(reportIds)) { Hid_ReportId.Value = reportIds.Substring(1); ArrayList arrayList = _costReport.GetSumReport(Hid_ReportId.Value.Split(',')); if (arrayList.Count > 0) { errorMsg.Append("<b>申请单</b><span style='color:red; padding:0 5px 0 5px;'>" + arrayList[0] + "</span>张、<b>申报金额</b><span style='color:red; padding:0 5px 0 5px;'>" + ERP.UI.Web.Common.WebControl.RemoveDecimalEndZero(decimal.Parse(arrayList[1].ToString())) + "</span>元"); } } } else { errorMsg.Append("<span style='color:red;'>请选择相关数据!</span>"); } lit_Msg.Text = errorMsg.ToString(); MessageBox.AppendScript(this, "moveShow();ShowValue('" + Hid_ReportId.Value + "');"); }