Beispiel #1
0
    public static string pdf_name(string heat_no)
    {
        string  temp  = "";
        decimal tc_id = 0;

        tc_id = Decimal.Parse(WebTools.GetExpr("TC_ID", "PIP_TEST_CARDS_DETAIL",
                                               " WHERE HEAT_NO='" + heat_no + "'"));
        temp = WebTools.GetTC_Path(tc_id);
        return(temp);
    }
Beispiel #2
0
    protected void btnPDF_Click(object sender, EventArgs e)
    {
        if (MTC.SelectedIndex < 0)
        {
            Master.ShowMessage("Select the entire test certificate!");
            return;
        }
        string path = WebTools.GetTC_Path(Decimal.Parse(MTC.SelectedValue.ToString()));

        if (path == null)
        {
            Master.ShowWarn("Cant find the pdf for selected tc!");
        }
        else
        {
            Response.Redirect(path);
        }
    }