Package framework.beans

Examples of framework.beans.ModificationInfo


            checkCommandAccessibility(COMMAND_REMOVE);
            ServiceRender entity = getExistentEntity();
            onRemove(entity, auditDocList);
            remove(manager, entity, getCollaborator(), auditDocList);
            List<AuditDetails> auditInfo = persistAudit(auditDocList);
            return new ModificationInfo(entity.getId(), auditInfo);
        } catch (ClipsServerException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new ClipsServerException("Ошибка удаления", ex);
        }
View Full Code Here


        List<AuditDoc> auditDocList = new ArrayList<AuditDoc>();
        ServiceRender entity = getExistentEntity();
        breakPacket(manager, entity, getCollaborator(), auditDocList);
        auditDetList.addAll(persistAudit(auditDocList));

        ModificationInfo mi = remove();
        auditDetList.addAll(mi.getAudit());
        return new ModificationInfo(0, auditDetList);
    }
View Full Code Here

        AuditDoc<Expenditure> auditExp = new AuditDoc<Expenditure>(exp, getCollaborator());
        exp.setQuantity(details.quantity);
        exp.setType(findEntity(ExpenditureType.class, details.expenTypeID));
        int id = saveEntity(exp);
        auditExp.check(exp);
        return new ModificationInfo(id, persistAudit(auditExp));
    }
View Full Code Here

        Expenditure exp = findEntity(Expenditure.class, id);
        checkTheSame(exp.getServiceRender());
        AuditDoc<Expenditure> auditExp = new AuditDoc<Expenditure>(exp, getCollaborator());
        manager.remove(exp);
        auditExp.check(null);
        return new ModificationInfo(persistAudit(auditExp));
    }
View Full Code Here

                d.created = c.date;
                d.dateReg = c.dataSt;
                d.emcID = c.emcID;
                d.extKey = c.nSyst;
                diseaseBean.initByID(0, getSessionId());
                ModificationInfo info = diseaseBean.update(d);
                c.diseaseID = info.getId();
                auditDetailsList.addAll(info.getAudit());
            }
        }
    }
View Full Code Here

            d.closerID = c.collID;
        }
        d.visitingPurposeID = c.purposeID;
        d.diseaseResultID = c.resultID;
        //d.closed = c.date;
        ModificationInfo info = diseaseBean.update(d);
        auditDetailsList.addAll(info.getAudit());
        if (needResult) {
            return findEntity(Disease.class, c.diseaseID).getDetails(this);
        } else {
            return null;
        }
View Full Code Here

        d.functionsID = c.collFuncID;       //исполняемые обязанности
        d.uet = c.uet;
        d.received = c.received;

        serviceRenderBean.initByID(serren.getId(), getSessionId());
        ModificationInfo info = serviceRenderBean.update(d);
        int serrenID = info.getId();
        auditDetailsList.addAll(info.getAudit());
        if (needResult) {
            return findEntity(ServiceRender.class, serrenID).getDetails(this);
        } else {
            return null;
        }
View Full Code Here

            } else {
                d.stage = 0;
            }
            d.complicationID = dc.complicationID;
            d.traumaTypeID = dc.trawmaTypeID;
            ModificationInfo info = bean.update(d);
            int id = info.getId();
            auditDetailsList.addAll(info.getAudit());
            manager.flush();
            if (dc.diagTypeID != 0) {
                if (mainDiagId != 0) {
                    throw new EDataIntegrity("Указано более одного основного диагноза");
                }
View Full Code Here

                saveEntity(checkup);
                auditDoc.check(checkup);
                auditDetailsList.add(persistAudit(auditDoc));
            }
        }
        return new ModificationInfo(entity.getId(), auditDetailsList);
    }
View Full Code Here

        }
        AuditDoc<CheckupShedule> auditShedule = new AuditDoc<CheckupShedule>(entity, getCollaborator());
        removeEntity(entity);
        auditShedule.check(null);
        auditDetailsList.add(persistAudit(auditShedule));
        return new ModificationInfo(0, auditDetailsList);
    }
View Full Code Here

TOP

Related Classes of framework.beans.ModificationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.