Example #1
0
        static internal void UpdatePosition(ProjectItem projectItem)
        {
            var op = DataOperation.Parse("setPMProjectObjectPosition",
                                         projectItem.Id, projectItem.Position);

            DataWriter.Execute(op);
        }
Example #2
0
        static internal void WriteBpmnDiagram(BpmnDiagram o)
        {
            var op = DataOperation.Parse("writeSimpleObject",
                                         o.Id, o.GetEmpiriaType().Id, o.UID,
                                         o.Name, o.Xml, o.Keywords, o.Status);

            DataWriter.Execute(op);
        }
        static internal void DeleteBalances(StoredBalanceSet storedBalanceSet)
        {
            var sql = $"DELETE FROM COF_SALDOS " +
                      $"WHERE (ID_GRUPO_SALDOS = {storedBalanceSet.Id})";

            var dataOperation = DataOperation.Parse(sql);

            DataWriter.Execute(dataOperation);
        }
        static internal void AppendSignEvent(SignEvent o)
        {
            var op = DataOperation.Parse("apdEOPSignEvent", o.Id, o.UID,
                                         o.SignRequest.Id, (char)o.EventType,
                                         o.DigitalSign, o.Timestamp,
                                         o.Integrity.GetUpdatedHashCode());

            DataWriter.Execute(op);
        }
        static internal void WriteSignRequest(SignRequest o)
        {
            var op = DataOperation.Parse("writeEOPSignRequest", o.Id, o.UID,
                                         o.RequestedBy.Id, o.RequestedTime, o.RequestedTo.Id,
                                         o.Document.Id, o.SignatureKind, o.ExtensionData.ToString(),
                                         (char)o.SignStatus, o.SignTime, o.DigitalSign,
                                         o.Integrity.GetUpdatedHashCode());

            DataWriter.Execute(op);
        }
    static internal void WriteVoucher(Voucher o) {
      var dataOperation = DataOperation.Parse("write_cof_transaccion", o.Id, o.Number,
                                              o.Ledger.Id, o.FunctionalArea.Id,
                                              o.TransactionType.Id, o.VoucherType.Id,
                                              o.Concept, o.AccountingDate, o.RecordingDate,
                                              o.ElaboratedBy.Id, o.AuthorizedBy.Id, o.IsOpened ? 1 : 0,
                                              o.ClosedBy.Id);

      DataWriter.Execute(dataOperation);
    }
        internal static void WriteStepDataObject(StepDataObject o)
        {
            var op = DataOperation.Parse("writeSTPStepDataObject", o.Id, o.UID,
                                         o.DataItem.Id, o.Step.Id, o.Activity.Id,
                                         o.MediaFile.Id, o.FormId, o.FormData.ToString(),
                                         o.Configuration.ToString(), o.ExtensionData.ToString(),
                                         (char)o.Status);

            DataWriter.Execute(op);
        }
        static internal void WriteStoredBalance(StoredBalance o)
        {
            var dataOperation = DataOperation.Parse("apd_cof_saldos", o.Id, o.StandardAccountId,
                                                    o.LedgerAccountId, o.Currency.Id,
                                                    o.Sector.IsEmptyInstance ? 0 : o.Sector.Id,
                                                    o.SubsidiaryAccountId, o.StoredBalanceSet.BalancesDate,
                                                    o.Balance, o.StoredBalanceSet.Id);

            DataWriter.Execute(dataOperation);
        }
Example #9
0
        static internal void WriteMeeting(Meeting o)
        {
            var op = DataOperation.Parse("writePMMeeting",
                                         o.Id, o.UID, o.Project.Id, o.ControlNo,
                                         o.Title, o.Description, o.Tags,
                                         o.ExtensionData.ToString(), o.Keywords,
                                         o.StartDateTime, o.EndDateTime, (char)o.Status);

            DataWriter.Execute(op);
        }
        static internal void WriteDocument(SignableDocument o)
        {
            var op = DataOperation.Parse("writeEOPSignableDocument", o.Id, o.UID,
                                         o.DocumentType, o.TransactionNo, o.DocumentNo,
                                         o.Description, o.RequestedBy, o.RequestedTime,
                                         o.SignInputData, o.ExtensionData.ToString(),
                                         o.Keywords, o.PostingTime, o.PostedBy.Id, (char)o.Status,
                                         o.Integrity.GetUpdatedHashCode());

            DataWriter.Execute(op);
        }
        static internal void WriteFilingRequest(EFilingRequest o)
        {
            var op = DataOperation.Parse("writeEOPFilingRequest", o.Id, o.UID,
                                         o.Procedure.Id, o.RequestedBy.Name, o.Agency.Id, o.Agent.Id,
                                         o.ExtensionData.ToString(), o.Keywords, o.LastUpdate,
                                         o.Transaction.UID, o.Transaction.Status,
                                         o.Transaction.ExtensionData.ToString(), o.Transaction.LastUpdate,
                                         o.PostingTime, o.PostedBy.Id, (char)o.Status, o.SecurityData.Integrity.GetUpdatedHashCode());

            DataWriter.Execute(op);
        }
        static internal void WriteStepRelationData(StepRelationDataHolder o)
        {
            var op = DataOperation.Parse("writeSTPStepRelation", o.Id, o.UID, o.StepRelationType.Id,
                                         o.RelationKind, o.RelationName, o.Keywords, o.ExtensionData.ToString(),
                                         o.Constraints, o.ExecutionContext, o.DataModels, o.DueOnRule.ToString(),
                                         o.Accessibility, o.DrivenMode, o.FlowControl, o.WorkSequenceKind, o.RelationRole,
                                         o.SourceId, o.TargetId, o.RelationIndex, o.RelationInstanceId, o.DerivedFromRelationId,
                                         o.OwnerId, (char)o.Status, o.FromDate, o.ToDate);

            DataWriter.Execute(op);
        }
        static internal void WriteTicket(HelpDeskTicket o)
        {
            var op = DataOperation.Parse("writeKBHelpDeskTicket",
                                         o.Id, o.TicketType.Id, o.UID,
                                         o.Customer.Id, o.Provider.Id, o.ControlNo,
                                         o.Title, o.Description, o.Tags,
                                         o.ExtensionData.ToString(), o.Keywords,
                                         o.RequestedTime, o.AssignedTo.Id,
                                         o.ResolutionTime, (char)o.Status);

            DataWriter.Execute(op);
        }
        static internal void WriteNote(Note o)
        {
            var op = DataOperation.Parse("writePosting",
                                         o.Id, o.GetEmpiriaType().Id, o.UID,
                                         o.ObjectType, o.ObjectUID,
                                         o.ControlNo, o.Title, o.Body, o.Tags,
                                         o.ExtensionData.ToString(), o.Keywords,
                                         (char)o.AccessMode, o.Owner.Id, o.ParentId,
                                         o.Date, (char)o.Status);

            DataWriter.Execute(op);
        }
        static internal void WriteFaq(Faq o)
        {
            var op = DataOperation.Parse("writePosting",
                                         o.Id, o.GetEmpiriaType().Id, o.UID,
                                         -1, o.ControlNo,
                                         o.Question, o.Answer, o.Tags,
                                         o.Comments, o.Keywords,
                                         (char)o.AccessMode, o.Owner.Id, o.ParentId,
                                         o.Date, (char)o.Status);

            DataWriter.Execute(op);
        }
Example #16
0
        internal static void RemoveParticipant(Meeting meeting, Contact participant)
        {
            var objectTypeInfo = meeting.GetEmpiriaType();
            //var linkName = "Meeting->Participants";

            //var association = objectTypeInfo.Associations[linkName];

            // association.RemoveLink(participant);
            var op = DataOperation.Parse("do", meeting.UID);

            DataWriter.Execute(op);
        }
Example #17
0
        static internal void WriteProject(Project o)
        {
            var op = DataOperation.Parse("writePMProjectObject",
                                         o.Id, o.GetEmpiriaType().Id, o.UID, o.Name, o.Notes,
                                         o.ExtensionData.ToString(), String.Empty, o.EstimatedDuration.ToString(),
                                         o.ActualStartDate, o.ActualEndDate, o.PlannedEndDate, o.Deadline,
                                         o.Tags.ToString(), o.Keywords, o.Position, -1,
                                         o.Resource, o.Owner.Id,
                                         o.Responsible.Id, ExecutionServer.DateMaxValue, -1,
                                         -1, o.Parent.Id, 'U', (char)o.Status, String.Empty, String.Empty);

            DataWriter.Execute(op);
        }
        static internal void WriteStepData(StepDataHolder o)
        {
            var op = DataOperation.Parse("writeSTPStep", o.Id, o.UID, o.StepType.Id,
                                         o.StepKind, o.StepName, o.Notes, o.Themes, o.Tags, o.Keywords,
                                         o.ExtensionData.ToString(), o.ForeignLanguageData.ToString(),
                                         o.Constraints, o.ExecutionContext,
                                         o.DataModels, o.DefinedMacro, o.MicroWorkflowModel, o.Accessibility,
                                         o.DrivenMode, o.FlowControl, o.WorkItemType, o.StepRole, o.ProcessStage,
                                         o.IsOptional, o.LoopControl, o.PeriodicityRule.ToString(), o.EstimatedDuration.ToString(),
                                         o.DerivedFromStepId, o.NewVersionOfStepId, o.ReferenceOfStepId, o.ParentStepId,
                                         o.StepPosition, o.BaseStepId, o.OwnerId, o.ProcedureEntityId, o.ProcedureId,
                                         (char)o.Status, o.OldProjectObjectId);

            DataWriter.Execute(op);
        }
Example #19
0
        static internal void WriteSummary(Summary o)
        {
            if (o.IsNew && !o.HasProcess)
            {
                o.SetProcess(ProcessID, SubProcessID);
            }

            var op = DataOperation.Parse("writePMProjectObject",
                                         o.Id, o.ProjectObjectType.Id, o.UID, o.Name, o.Notes,
                                         o.ExtensionData.ToString(), o.ForeignLanguageData.ToString(),
                                         o.EstimatedDuration.ToString(), o.ActualStartDate, o.ActualEndDate,
                                         o.PlannedEndDate, o.Deadline, o._theme, o.Tag, o.Keywords, o.Position,
                                         o.TemplateId, o.Resource, o.Project.Owner.Id,
                                         -1, ExecutionServer.DateMaxValue, -1,
                                         o.Project.Id, o.Parent.Id, (char)o.Stage, (char)o.Status, o.ProcessID, o.SubprocessID);

            DataWriter.Execute(op);
        }
    static internal void DeleteVoucher(Voucher voucher) {
      var dataOperation = DataOperation.Parse("do_delete_cof_transaccion", voucher.Id);

      DataWriter.Execute(dataOperation);
    }