protected static FR_Guid Execute(DbConnection Connection, DbTransaction Transaction, P_L5DO_SWSDV_1130 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_Guid(); //Put your code here for (int i = 0; i < Parameter.WebShopDocumentID.Length; i++) { ORM_ECM_DOC_GeneralDocument wsDocument = new ORM_ECM_DOC_GeneralDocument(); wsDocument.Load(Connection, Transaction, Parameter.WebShopDocumentID[i]); if (wsDocument != null) { wsDocument.IsPublicallyVisible = Parameter.WebShopVisibility[i]; wsDocument.Save(Connection, Transaction); } } return(returnValue); #endregion UserCode }
protected static FR_Guid Execute(DbConnection Connection, DbTransaction Transaction, P_L2DO_SEDGD_1813 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { var returnValue = new FR_Guid(); var item = new ORM_ECM_DOC_GeneralDocument(); if (Parameter.ECM_DOC_GeneralDocumentID != Guid.Empty) { var result = item.Load(Connection, Transaction, Parameter.ECM_DOC_GeneralDocumentID); if (result.Status != FR_Status.Success || item.ECM_DOC_GeneralDocumentID == Guid.Empty) { var error = new FR_Guid(); error.ErrorMessage = "No Such ID"; error.Status = FR_Status.Error_Internal; return(error); } } if (Parameter.IsDeleted == true) { item.IsDeleted = true; return(new FR_Guid(item.Save(Connection, Transaction), item.ECM_DOC_GeneralDocumentID)); } //Creation specific parameters (Tenant, Account ... ) if (Parameter.ECM_DOC_GeneralDocumentID == Guid.Empty) { item.Tenant_RefID = securityTicket.TenantID; } item.DocumentMatchingID = Parameter.DocumentMatchingID; item.DocumentTypeMatchingID = Parameter.DocumentTypeMatchingID; item.Document_RefID = Parameter.Document_RefID; item.IsPublicallyVisible = Parameter.IsPublicallyVisible; return(new FR_Guid(item.Save(Connection, Transaction), item.ECM_DOC_GeneralDocumentID)); }