示例#1
0
    /// <summary>
    /// Bind Select Document Grid
    /// </summary>
    private void BindDocumentGrid()
    {
        oDocument_BLogic = new Document_BLogic();
        oDocument        = new MailDocument();

        oDocument.Documentpath = Server.MapPath("~/Documents/AdmissionDocument");

        GvDocument.DataSource = oDocument_BLogic.BAL_Document_SelectALL(oDocument);
        GvDocument.DataBind();
    }
示例#2
0
        public void ClearDocument(string TargetObjectName)
        {
            CustomProfile profile = CustomProfile.GetProfile();

            hndDocumentTargetObjectName.Value = TargetObjectName;
            BrilliantWMS.DocumentService.iUC_AttachDocumentClient DocumentServiceClient = new iUC_AttachDocumentClient();
            DocumentServiceClient.ClearTempData(Session.SessionID, profile.Personal.UserID.ToString(), TargetObjectName + "Document", profile.DBConnection._constr);
            DocumentServiceClient.Close();
            GvDocument.DataSource = null;
            GvDocument.DataBind();
        }
示例#3
0
 public void FillDocumentByObjectNameReferenceID(long ReferenceID, string SourceObjectName, string TargetObjectName)
 {
     try
     {
         CustomProfile profile = CustomProfile.GetProfile();
         hndDocumentTargetObjectName.Value = TargetObjectName;
         BrilliantWMS.DocumentService.iUC_AttachDocumentClient DocumentServiceClient = new iUC_AttachDocumentClient();
         GvDocument.DataSource = DocumentServiceClient.GetDocumentByReferenceId(SourceObjectName + "Document", TargetObjectName + "Document", ReferenceID, profile.Personal.UserID.ToString(), Session.SessionID.ToString(), profile.DBConnection._constr);
         GvDocument.DataBind();
     }
     catch (System.Exception ex)
     {
         Login.Profile.ErrorHandling(ex, "UC_AttachDocuments.ascx.cs", "FillDocumentByObjectNameReferenceID");
     }
 }
示例#4
0
 protected void RebindGrid(object sender, EventArgs e)
 {
     try
     {
         DataSet ds = new DataSet();
         ds = GetPrdLst(GvDocument.CurrentPageIndex, hdnFilterText.Value);
         GvDocument.DataSource = ds;
         //GvDocument.GroupBy = hndgrupByGrid.Value;
         GvDocument.DataBind();
     }
     catch (System.Exception ex)
     {
         Login.Profile.ErrorHandling(ex, this, "DocumentSearch.aspx.cs", "RebindGrid");
     }
 }
示例#5
0
        protected void GvDocument_OnRebind(object sender, EventArgs e)
        {
            CustomProfile profile = CustomProfile.GetProfile();

            BrilliantWMS.DocumentService.iUC_AttachDocumentClient DocumentServiceClient = new iUC_AttachDocumentClient();
            if (Session["PORRequestID"].ToString() != "0" && Session["PORRequestID"].ToString() != "Company")
            {
                long RequestID = Convert.ToInt64(Session["PORRequestID"].ToString());
                FillDocumentByObjectNameReferenceID(RequestID, "RequestPartDetail", "RequestPartDetail");
            }
            else
            {
                GvDocument.DataSource = DocumentServiceClient.GetExistingTempDataBySessionIDObjectNameToRebind(Session.SessionID, profile.Personal.UserID.ToString(), hndDocumentTargetObjectName.Value + "Document", profile.DBConnection._constr);
                GvDocument.DataBind();
            }
            DocumentServiceClient.Close();
        }