* @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
*/
public Response insertRecord(ValueObject newPersistentObject) throws Exception {
Response response = ClientUtils.getData("insertEmployee",newPersistentObject);
if (!response.isError()) {
DetailEmployeeVO vo = (DetailEmployeeVO)((VOResponse)response).getVo();
companyCodeSys01SCH01 = vo.getCompanyCodeSys01REG04();
progressiveReg04SCH01 = vo.getProgressiveREG04();
gridFrame.reloadData();
detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,companyCodeSys01SCH01);
detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,progressiveReg04SCH01);
detailFrame.getGrid().reloadData();
detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,companyCodeSys01SCH01);
detailFrame.getGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,progressiveReg04SCH01);
detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.COMPANY_CODE_SYS01,vo.getCompanyCodeSys01SCH01());
detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.PROGRESSIVE_REG04,vo.getProgressiveReg04SCH01());
String actTypes = "'"+ApplicationConsts.ACT_ABSENCE+"','"+ApplicationConsts.ACT_HOLIDAY+"','"+ApplicationConsts.ACT_ILLNESS+"'";
detailFrame.getAbsGrid().getOtherGridParams().put(ApplicationConsts.ACTIVITY_TYPE,actTypes);
detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
ApplicationConsts.SUBJECT_PK,
new SubjectPK(vo.getCompanyCodeSys01SCH01(),vo.getProgressiveReg04SCH01())
);
detailFrame.getHierarchiesPanel().getGrid().getOtherGridParams().put(
ApplicationConsts.SUBJECT_TYPE,
ApplicationConsts.SUBJECT_EMPLOYEE
);