Beispiel #1
0
    protected void ComputSum()
    {
        string    text            = "0";
        string    text2           = "0";
        string    text3           = "0";
        string    text4           = "0";
        string    text5           = "0";
        string    text6           = "0";
        string    text7           = "0";
        string    text8           = "0";
        string    text9           = "0";
        string    text10          = "0";
        DataTable summarizingInfo = TenderInfo.GetSummarizingInfo(this.txtCode.Text.Trim(), this.txtName.Text.Trim(), this.ddlType.SelectedValue.Trim(), this.txtManager.Value.Trim(), this.txtPrjFollowPeople.Value.Trim(), this.txtPrjPeople.Value.Trim(), this.ddlPrjState.SelectedValue.Trim(), this.txtStartTime.Text.Trim(), this.txtEndTime.Text, this.txtOwnerName.Text.Trim(), this.txtProjPeopleDep.Text, this.dropPrjProperty.SelectedValue, this.txtPrincipal.Value.Trim(), base.UserCode, this.txtPrjStateChangeTimeStart.Text.Trim(), this.txtPrjStateChangeTimeEnd.Text.Trim());

        if (summarizingInfo != null && summarizingInfo.Rows.Count > 0)
        {
            text   = summarizingInfo.Rows[0]["2"].ToString();
            text2  = summarizingInfo.Rows[0]["3"].ToString();
            text6  = summarizingInfo.Rows[0]["4"].ToString();
            text7  = summarizingInfo.Rows[0]["5"].ToString();
            text8  = summarizingInfo.Rows[0]["6"].ToString();
            text3  = summarizingInfo.Rows[0]["14"].ToString();
            text4  = summarizingInfo.Rows[0]["15"].ToString();
            text5  = summarizingInfo.Rows[0]["16"].ToString();
            text10 = summarizingInfo.Rows[0]["18"].ToString();
            text9  = summarizingInfo.Rows[0]["19"].ToString();
        }
        text   = ((text == "") ? "0" : text);
        text2  = ((text2 == "") ? "0" : text2);
        text6  = ((text6 == "") ? "0" : text6);
        text7  = ((text7 == "") ? "0" : text7);
        text8  = ((text8 == "") ? "0" : text8);
        text3  = ((text3 == "") ? "0" : text3);
        text4  = ((text4 == "") ? "0" : text4);
        text5  = ((text5 == "") ? "0" : text5);
        text10 = ((text10 == "") ? "0" : text10);
        text9  = ((text9 == "") ? "0" : text9);
        string text11 = "<span style='margin-left:3px;margin-right:3px;'>";
        string text12 = "</span>";

        this.lblTotal.Text = string.Concat(new string[]
        {
            "汇总:信息立项",
            text11,
            text,
            text12,
            "项,报名通过",
            text11,
            text2,
            text12,
            "项,报名不通过",
            text11,
            text9,
            text12,
            "项,资格预审",
            text11,
            text3,
            text12,
            "项,预审通过",
            text11,
            text4,
            text12,
            "项,预审失败",
            text11,
            text5,
            text12,
            "项,投标",
            text11,
            text6,
            text12,
            "项,中标",
            text11,
            text7,
            text12,
            "项,落标",
            text11,
            text8,
            text12,
            "项,放弃",
            text11,
            text10,
            text12,
            "项"
        });
    }