Exemplo n.º 1
0
    private void BindDocuments()
    {
        if (Request.QueryString["RegId"] != "" && Request.QueryString["RegId"] != null)
        {
            lnkuploadDoc.Visible = false;
            DocDO.AddedBy        = Convert.ToInt32(ViewState["RegId"]);
            DocDO.FriendId       = Convert.ToInt32(Session["ExternalUserId"]);
            dt = DocDA.GetDataTable(DocDO, DA_ProfileDocuments.DocumenTemp.GetPublicDocsForFriend);
        }
        else
        {
            DocDO.AddedBy = Convert.ToInt32(ViewState["UserID"]);
            dt            = DocDA.GetDataTable(DocDO, DA_ProfileDocuments.DocumenTemp.Getdocuments);
        }

        if (dt.Rows.Count > 0)
        {
            divEmptyResult.Style.Add("display", "none");
            LstDocument.DataSource = dt;
            LstDocument.DataBind();
        }
        else
        {
            divEmptyResult.Style.Add("display", "block");
            LstDocument.DataSource = null;
            LstDocument.DataBind();
        }
    }
Exemplo n.º 2
0
 protected void BindDocsDetails()
 {
     objDoProDocs.AddedBy = Convert.ToInt32(ViewState["UserID"]);
     dt = objDAProDocs.GetDataTable(objDoProDocs, DA_ProfileDocuments.DocumenTemp.GetMyDocDetailByAddedBy);
     if (dt.Rows.Count > 0)
     {
         LstDocument.DataSource = dt;
         LstDocument.DataBind();
     }
 }
    private void BindDocuments()
    {
        DocDO.intGroupId = Convert.ToInt32(ViewState["intGroupId"]);
        DocDO.AddedBy    = Convert.ToInt32(ViewState["UserID"]);
        dt = DocDA.GetGroupUploadTable(DocDO, DA_ProfileDocuments.UploadDocument.Getdocuments);

        if (dt.Rows.Count > 0)
        {
            LstDocument.DataSource = dt;
            LstDocument.DataBind();
        }
    }
 protected void GetOuterDocuments()
 {
     DocDO.intGroupId = Convert.ToInt32(Request.QueryString["GrpId"]);
     dt = DocDA.GetGrouDocumetDataTable(DocDO, DA_ProfileDocuments.GropDocument.Getdocuments);
     if (dt.Rows.Count > 0)
     {
         LstDocument.DataSource = dt;
         LstDocument.DataBind();
     }
     else
     {
         LstDocument.DataSource = null;
         LstDocument.DataBind();
     }
 }
 protected void GetChildFileDoc()
 {
     DocDO.intFolderId = Convert.ToInt32(ViewState["intFolderId"]);
     DocDO.intGroupId  = Convert.ToInt32(Request.QueryString["GrpId"]);
     dt = DocDA.GetGrouDocumetDataTable(DocDO, DA_ProfileDocuments.GropDocument.GetDocsDetailsByFolderId);
     if (dt.Rows.Count > 0)
     {
         pnlLstDocument.Visible = true;
         LstDocument.DataSource = dt;
         LstDocument.DataBind();
     }
     else
     {
         pnlLstDocument.Visible = false;
         LstDocument.DataSource = null;
         LstDocument.DataBind();
     }
 }