Ejemplo n.º 1
0
    protected void FilesBind(int moduleID)
    {
        this.Literal1.Text = "";
        string      recordCode  = base.Request.QueryString["LogID"].ToString();
        int         annexType   = 0;
        AnnexAction annexAction = new AnnexAction();
        DataTable   fileList    = annexAction.GetFileList(recordCode, annexType, moduleID);

        foreach (DataRow dataRow in fileList.Rows)
        {
            Literal expr_63 = this.Literal1;
            string  text    = expr_63.Text;
            expr_63.Text = string.Concat(new string[]
            {
                text,
                "<a href='#' onclick=\"javascript:download('",
                dataRow["FilePath"].ToString(),
                dataRow["AnnexName"].ToString(),
                "','",
                dataRow["OriginalName"].ToString(),
                "');\" >",
                dataRow["OriginalName"].ToString(),
                "</a> <br>"
            });
        }
    }
Ejemplo n.º 2
0
    protected string FilesBind(int moduleID, string recordCode)
    {
        string      text        = "";
        int         annexType   = 0;
        AnnexAction annexAction = new AnnexAction();
        DataTable   fileList    = annexAction.GetFileList(recordCode, annexType, moduleID);

        foreach (DataRow dataRow in fileList.Rows)
        {
            string text2 = text;
            text = string.Concat(new string[]
            {
                text2,
                "<a href='#' onclick=\"javascript:download('",
                dataRow["FilePath"].ToString(),
                dataRow["AnnexName"].ToString(),
                "','",
                dataRow["OriginalName"].ToString(),
                "');\" >",
                dataRow["OriginalName"].ToString(),
                "</a> <br>"
            });
        }
        return(text);
    }
Ejemplo n.º 3
0
    protected void FilesBind(string recordCode, int moduleID)
    {
        this.Literal1.Text = "";
        int         annexType   = 0;
        AnnexAction annexAction = new AnnexAction();
        DataTable   fileList    = annexAction.GetFileList(recordCode, annexType, moduleID);

        foreach (DataRow dataRow in fileList.Rows)
        {
            Literal expr_47 = this.Literal1;
            string  text    = expr_47.Text;
            expr_47.Text = string.Concat(new string[]
            {
                text,
                "<a href='",
                dataRow["FilePath"].ToString(),
                dataRow["AnnexName"].ToString(),
                "' target=_blank>",
                dataRow["OriginalName"].ToString(),
                "</a> "
            });
        }
    }
Ejemplo n.º 4
0
    protected void FilesBind(int moduleID)
    {
        this.Literal1.Text = "";
        string      value       = this.hdnRecordId.Value;
        int         annexType   = 0;
        AnnexAction annexAction = new AnnexAction();
        DataTable   fileList    = annexAction.GetFileList(value, annexType, moduleID);

        foreach (DataRow dataRow in fileList.Rows)
        {
            Literal expr_54 = this.Literal1;
            string  text    = expr_54.Text;
            expr_54.Text = string.Concat(new string[]
            {
                text,
                "<a href='#' onclick=\"javascript:download('",
                dataRow["FilePath"].ToString(),
                dataRow["AnnexName"].ToString(),
                "');\" target=\"_self\" >",
                dataRow["OriginalName"].ToString(),
                "</a> "
            });
        }
    }