Esempio n. 1
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);
    }