Exemple #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (!this.Page.IsPostBack)
     {
         this.InstanceCode  = new System.Guid(base.Request["ic"]);
         this.BusinessCode  = base.Request["bc"].ToString();
         this.BusinessClass = base.Request["bcl"].ToString();
         DataTable dataTable = FlowAuditAction.QueryAuditStatus(this.InstanceCode, this.BusinessCode, this.BusinessClass);
         this.dgFlow.DataSource = dataTable;
         this.dgFlow.DataBind();
         int num = 1;
         for (int i = 0; i < dataTable.Rows.Count - 1; i++)
         {
             if (dataTable.Rows[i]["id"].ToString() != dataTable.Rows[i + 1]["id"].ToString())
             {
                 DataGridItem dataGridItem = new DataGridItem(-1, -1, ListItemType.Item);
                 num++;
                 for (int j = 0; j < this.dgFlow.Columns.Count; j++)
                 {
                     TableCell tableCell = new TableCell();
                     tableCell.Text = "&nbsp;";
                     dataGridItem.Cells.Add(tableCell);
                 }
                 dataGridItem.BackColor   = Color.FromName("#E4ECF1");
                 dataGridItem.BorderColor = Color.FromName("#E4ECF1");
                 this.dgFlow.Controls[0].Controls.AddAt(i + num, dataGridItem);
             }
         }
     }
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     base.Response.Cache.SetNoStore();
     if (!this.Page.IsPostBack)
     {
         this.InstanceCode  = new 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));
     }
 }
Exemple #3
0
    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);
    }
Exemple #4
0
 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 + "','审核内容查看')";
     }
 }
Exemple #5
0
    protected void AddNewTr(string ic, string businessCode, string businessClass)
    {
        Guid      instanceCode = new Guid(ic);
        DataTable dataTable    = FlowAuditAction.QueryAuditStatus(instanceCode, businessCode, businessClass);

        if (dataTable.Rows.Count == 0)
        {
            this.table.Visible       = false;
            this.tableHeader.Visible = false;
            return;
        }
        for (int i = 0; i < dataTable.Rows.Count; i++)
        {
            HtmlTableRow htmlTableRow = new HtmlTableRow();
            htmlTableRow.Attributes["class"] = "rowa";
            htmlTableRow.Attributes["style"] = "text-align:center;";
            HtmlTableCell htmlTableCell = new HtmlTableCell();
            htmlTableCell.InnerText = (i + 1).ToString();
            htmlTableCell.RowSpan   = 3;
            htmlTableRow.Cells.Add(htmlTableCell);
            HtmlTableCell htmlTableCell2 = new HtmlTableCell();
            htmlTableCell2.InnerText = dataTable.Rows[i]["NodeName"].ToString();
            htmlTableRow.Cells.Add(htmlTableCell2);
            HtmlTableCell htmlTableCell3 = new HtmlTableCell();
            htmlTableCell3.InnerText = dataTable.Rows[i]["auditor"].ToString();
            htmlTableRow.Cells.Add(htmlTableCell3);
            HtmlTableCell htmlTableCell4 = new HtmlTableCell();
            htmlTableCell4.InnerText = dataTable.Rows[i]["AuditDate"].ToString();
            htmlTableRow.Cells.Add(htmlTableCell4);
            HtmlTableCell htmlTableCell5 = new HtmlTableCell();
            htmlTableCell5.InnerText = dataTable.Rows[i]["Result"].ToString();
            htmlTableRow.Cells.Add(htmlTableCell5);
            this.table.Rows.Add(htmlTableRow);
            HtmlTableRow  htmlTableRow2  = new HtmlTableRow();
            HtmlTableCell htmlTableCell6 = new HtmlTableCell();
            htmlTableCell6.Style.Add("white-space", "nowrap");
            htmlTableCell6.InnerHtml = "<b>审核意见:</b>";
            htmlTableCell6.InnerText = "审核意见:";
            htmlTableCell6.Height    = "auto";
            htmlTableCell6.Align     = "right";
            htmlTableRow2.Cells.Add(htmlTableCell6);
            HtmlTableCell htmlTableCell7 = new HtmlTableCell();
            htmlTableCell7.InnerHtml = "<div style=\"width: 95%; word-break: break-all;\">";
            HtmlTableCell expr_1FD = htmlTableCell7;
            expr_1FD.InnerHtml += dataTable.Rows[i]["AuditInfo"].ToString();
            HtmlTableCell expr_22A = htmlTableCell7;
            expr_22A.InnerHtml    += "</div>";
            htmlTableCell7.ColSpan = 4;
            htmlTableRow2.Cells.Add(htmlTableCell7);
            this.table.Rows.Add(htmlTableRow2);
            HtmlTableRow  htmlTableRow3  = new HtmlTableRow();
            HtmlTableCell htmlTableCell8 = new HtmlTableCell();
            htmlTableCell8.Style.Add("white-space", "nowrap");
            htmlTableCell8.InnerHtml = "<b>相关附件:</b>";
            htmlTableCell8.InnerText = "相关附件:";
            htmlTableCell8.Align     = "right";
            htmlTableRow3.Cells.Add(htmlTableCell8);
            HtmlTableCell htmlTableCell9 = new HtmlTableCell();
            htmlTableCell9.InnerHtml = this.FilesBind(ic, dataTable.Rows[i]["NoteID"].ToString());
            htmlTableCell9.ColSpan   = 4;
            htmlTableRow3.Cells.Add(htmlTableCell9);
            this.table.Rows.Add(htmlTableRow3);
        }
    }
Exemple #6
0
 protected void dgFlow_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
 {
     this.dgFlow.CurrentPageIndex = e.NewPageIndex;
     this.dgFlow.DataSource       = FlowAuditAction.QueryAuditStatus(this.InstanceCode, this.BusinessCode, this.BusinessClass);
     this.dgFlow.DataBind();
 }
Exemple #7
0
 protected void gvwPlans_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         DataRowView dataRowView = (DataRowView)e.Row.DataItem;
         string      text        = dataRowView["InstanceCode"].ToString();
         e.Row.Attributes["id"] = text;
         string text2 = dataRowView["NoteID"].ToString();
         string text3 = dataRowView["NodeID"].ToString();
         string text4 = dataRowView["IsAllPass"].ToString();
         string text5 = dataRowView["BusinessCode"].ToString();
         string text6 = dataRowView["BusinessClass"].ToString();
         string a     = dataRowView["Sing"].ToString();
         System.Convert.ToInt32(dataRowView["During"]);
         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_12B = e.Row.Cells[6];
                 expr_12B.Text = expr_12B.Text + dataTable.Rows[i]["auditor"].ToString() + ",";
             }
             else
             {
                 TableCell expr_170 = e.Row.Cells[6];
                 expr_170.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];
         linkButton.ToolTip = linkButton.Text;
         string str   = string.Empty;
         string text7 = string.Empty;
         string text8 = string.Empty;
         if (d > 0m && a == "0")
         {
             str             = "超时";
             linkButton.Text = "[<font color=\"red\">" + str + "</font>]" + StringUtility.GetStr(linkButton.Text, 25);
         }
         if (a == "0")
         {
             e.Row.Cells[3].Text = "待审核";
             text7 = string.Concat(new string[]
             {
                 "/EPC/Workflow/AuditFrame.aspx?ic=",
                 text,
                 "&id=",
                 text2,
                 "&pass="******"&nid=",
                 text3,
                 "&bc=",
                 text5,
                 "&bcl=",
                 text6
             });
             text8 = "流程审核";
         }
         else
         {
             e.Row.Cells[3].Text = "<span style='color:#008B45;'>已审核</span>";
             text7 = "/ProgressManagement/Plan/RatifyView.aspx?ic=" + text;
             text8 = "流程审核记录";
         }
         e.Row.Attributes["procedureURL"] = string.Concat(new string[]
         {
             "/epc/Workflow/AuditViewPrint.aspx?ic=",
             text,
             "&bc=",
             text5,
             "&bcl=",
             text6
         });
         e.Row.Attributes["flowStateURL"] = string.Concat(new string[]
         {
             "/epc/Workflow/AuditViewWF.aspx?ic=",
             text,
             "&bc=",
             text5,
             "&bcl=",
             text6
         });
         linkButton.Attributes["class"]   = "firstpage link tooltip";
         linkButton.Attributes["onclick"] = string.Concat(new string[]
         {
             "top.ui._flowclass = window; toolbox_oncommand('",
             text7,
             "','",
             text8,
             "')"
         });
     }
 }