protected void Page_Load(object sender, EventArgs e) { try { if (base.Request.QueryString["bc"] != null) { this.businessCode = base.Request.QueryString["bc"].ToString(); } if (base.Request.QueryString["ic"] != null) { this.AddNewTr(base.Request.QueryString["ic"], this.businessCode, this.businessClass); } this.LbUserName.Text = FlowAuditAction.OrganigerName(new Guid(base.Request["ic"]), this.businessCode, this.businessClass); this.LbStartTime.Text = FlowAuditAction.StartTime(new Guid(base.Request["ic"]), this.businessCode, this.businessClass); } catch { throw new Exception("请确保Get请求中包含'ic',并且配置有BusiClass和BusiCode"); } }
protected void Page_Load(object sender, System.EventArgs e) { base.Response.Cache.SetNoStore(); this.InstanceCode = new System.Guid(base.Request["ic"]); this.BusinessCode = base.Request["bc"].ToString(); this.BusinessClass = base.Request["bcl"].ToString(); this.AddNewTr(FlowAuditAction.QueryAuditStatus(this.InstanceCode, this.BusinessCode, this.BusinessClass)); this.btnPrint.Attributes["onclick"] = "PrintPage();return false;"; this.divTemplateName.InnerText = FlowAuditAction.TemplateName(this.InstanceCode, this.BusinessCode, this.BusinessClass); this.LbUserName.Text = FlowAuditAction.OrganigerName(this.InstanceCode, this.BusinessCode, this.BusinessClass); if (this.divTemplateName.InnerText.Length > 10) { this.divTemplateName.Style.Add("word-wrap", "break-word"); } this.LbStartTime.Text = FlowAuditAction.StartTime(this.InstanceCode, this.BusinessCode, this.BusinessClass); DataTable dataTable = publicDbOpClass.DataTableQuary(string.Concat(new string[] { " select * from WF_Business_Class where BusinessCode= '", this.BusinessCode, "' and BusinessClass='", this.BusinessClass, "' " })); this.LbConter.Text = dataTable.Rows[0]["BusinessClassName"].ToString() + ":"; DataTable dataTable2 = publicDbOpClass.DataTableQuary(" select * from WF_BusinessCode where BusinessCode='" + this.BusinessCode + "' "); try { DataTable dataTable3 = publicDbOpClass.DataTableQuary(string.Concat(new object[] { " select ", dataTable2.Rows[0]["NameField"].ToString(), " from ", dataTable2.Rows[0]["LinkTable"].ToString(), " where ", dataTable2.Rows[0]["PrimaryField"].ToString(), " ='", this.InstanceCode, "' " })); if (this.BusinessCode == "089") { this.LinkButton1.Text = TenderInfo.GetProjectName(dataTable3.Rows[0][0].ToString()); } else { if (this.BusinessCode == "100" || this.BusinessCode == "106") { this.LinkButton1.Text = ProjectInfo.GetProjectName(dataTable3.Rows[0][0].ToString()); } else { this.LinkButton1.Text = dataTable3.Rows[0][0].ToString(); } } } catch { this.LinkButton1.Text = "查看"; } this.LinkButton1.Attributes["onclick"] = string.Concat(new object[] { " viewopen ('", FlowAuditAction.DoWithUrl(this.BusinessCode), "ic=", this.InstanceCode, "')" }); this.LbAuditCode.Text = FlowAuditAction.GetTemplateCode(this.InstanceCode, this.BusinessCode, this.BusinessClass); }
protected void gvAuditingList_RowDataBoundWX(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[0].Text = System.Convert.ToString(e.Row.RowIndex + 1 + this.gvAuditingList.PageIndex * this.gvAuditingList.PageSize); e.Row.Attributes["id"] = System.Convert.ToString(e.Row.RowIndex + 1); DataRowView dataRowView = (DataRowView)e.Row.DataItem; string text = dataRowView["InstanceCode"].ToString(); string text2 = dataRowView["NoteID"].ToString(); string text3 = dataRowView["IsAllPass"].ToString(); string text4 = dataRowView["NodeID"].ToString(); string text5 = dataRowView["BusinessCode"].ToString(); string text6 = dataRowView["BusinessClass"].ToString(); System.Convert.ToInt32(dataRowView["During"]); e.Row.Cells[2].Text = FlowAuditAction.OrganigerName(new System.Guid(dataRowView["instanceCode"].ToString()), text5, text6); DataTable dataTable = FlowAuditAction.QueryAuditStatus(new System.Guid(dataRowView["instanceCode"].ToString()), dataRowView["BusinessCode"].ToString(), dataRowView["businessclass"].ToString()); for (int i = 0; i < dataTable.Rows.Count; i++) { if (i < dataTable.Rows.Count - 1) { TableCell expr_19E = e.Row.Cells[3]; expr_19E.Text = expr_19E.Text + dataTable.Rows[i]["auditor"].ToString() + ","; } else { TableCell expr_1E3 = e.Row.Cells[3]; expr_1E3.Text += dataTable.Rows[i]["auditor"].ToString(); } } decimal d = 0m; try { d = System.Convert.ToDecimal(dataRowView["cs"]); } catch { } LinkButton linkButton = (LinkButton)e.Row.Cells[1].Controls[0]; DataTable dataTable2 = publicDbOpClass.DataTableQuary(" select * from WF_BusinessCode where BusinessCode='" + dataRowView["BusinessCode"].ToString() + "' "); try { DataTable dataTable3 = publicDbOpClass.DataTableQuary(string.Concat(new string[] { " select ", dataTable2.Rows[0]["NameField"].ToString(), " from ", dataTable2.Rows[0]["LinkTable"].ToString(), " where ", dataTable2.Rows[0]["PrimaryField"].ToString(), " ='", dataRowView["instanceCode"].ToString(), "' " })); if (dataRowView["BusinessCode"].ToString() == "089") { if (!string.IsNullOrEmpty(dataTable3.Rows[0][0].ToString())) { LinkButton expr_389 = linkButton; expr_389.Text = expr_389.Text + "—" + TenderInfo.GetProjectName(dataTable3.Rows[0][0].ToString()); } } else { if (dataRowView["BusinessCode"].ToString() == "100" || dataRowView["BusinessCode"].ToString() == "106") { if (!string.IsNullOrEmpty(dataTable3.Rows[0][0].ToString())) { LinkButton expr_41C = linkButton; expr_41C.Text = expr_41C.Text + "—" + ProjectInfo.GetProjectName(dataTable3.Rows[0][0].ToString()); } } else { if (!string.IsNullOrEmpty(dataTable3.Rows[0][0].ToString())) { LinkButton expr_471 = linkButton; expr_471.Text = expr_471.Text + "—" + dataTable3.Rows[0][0].ToString(); } } } } catch { } linkButton.Attributes["class"] = "firstpage"; linkButton.Attributes["style"] = " color:blue;"; if (d > 0m) { string str = "超时"; linkButton.Text = "[<font color=\"red\">" + str + "</font>]" + linkButton.Text; } string str2 = string.Concat(new string[] { "/EPC/Workflow/AuditFrameWX.aspx?ic=", text, "&id=", text2, "&pass="******"&nid=", text4, "&bc=", text5, "&bcl=", text6 }); linkButton.Attributes["onclick"] = "view('" + str2 + "','审核内容查看')"; } }