public static void ClearDocument(string TargetObjectName, string SessionID) { CustomProfile profile = CustomProfile.GetProfile(); BrilliantWMS.DocumentService.iUC_AttachDocumentClient DocumentServiceClient = new iUC_AttachDocumentClient(); DocumentServiceClient.ClearTempData(SessionID, profile.Personal.UserID.ToString(), TargetObjectName + "Document", profile.DBConnection._constr); DocumentServiceClient.Close(); }
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(); }