internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("Usuario", Usuario); _json.Put("UsuarioUserDefined", UsuarioUserDefined); _json.Put("size_sp", Size_sp); _json.Put("user_sp", User_sp); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("passwordHash", PasswordHash); _json.Put("user", User); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("username", Username); _json.Put("remoteId", RemoteId); _json.Put("UsuarioParam", UsuarioParam); _json.Put("id", Id); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("remoteId", RemoteId); _json.Put("batchId", BatchId); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("SISTEMA", SISTEMA); _json.Put("PEDIDO", PEDIDO); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("entityType", EntityType); _json.Put("surrogateKey", SurrogateKey); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("COD_CLI", COD_CLI); _json.Put("COD_RRCC", COD_RRCC); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("key_name", Key_name); _json.Put("value", Value); _json.Put("user_defined", User_defined); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("diaInteraccion", DiaInteraccion); _json.Put("mesInteraccion", MesInteraccion); _json.Put("anioInteraccion", AnioInteraccion); _json.Put("idTipoInteraccion", IdTipoInteraccion); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("key_name", Key_name); _json.Put("package_name", Package_name); _json.Put("user_name", User_name); _json.Put("domain_name", Domain_name); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("domain", Domain); _json.Put("package", Package); _json.Put("syncGroup", SyncGroup); _json.Put("clientId", ClientId); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("NRO_ACTIVIDAD", NRO_ACTIVIDAD); _json.Put("PRODUCTO", PRODUCTO); _json.Put("PRECIO", PRECIO); _json.Put("VOLUMEN", VOLUMEN); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("TAMANO", TAMANO); _json.Put("SEGMENTO", SEGMENTO); _json.Put("SUBSEGMENTO", SUBSEGMENTO); _json.Put("RAZ_SOC_1", RAZ_SOC_1); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("valorBoolean", ValorBoolean); _json.Put("valorInteger", ValorInteger); _json.Put("valorString", ValorString); _json.Put("valorDouble", ValorDouble); _json.Put("valorDateTime", com.sybase.afx.util.DateTimeUtil.ToString(ValorDateTime)); _json.Put("idCustomLocalData", IdCustomLocalData); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("key_name", Key_name); _json.Put("user", User); _json.Put("value", Value); _json.Put("user_defined", User_defined); _json.Put("description", Description); _json.Put("id", Id); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("tipoInteraccion", TipoInteraccion); _json.Put("cantidadInteraccion", CantidadInteraccion); _json.Put("diaInteraccion", DiaInteraccion); _json.Put("mesInteraccion", MesInteraccion); _json.Put("anioInteraccion", AnioInteraccion); _json.Put("idTipoInteraccion", IdTipoInteraccion); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("KUNNR", KUNNR); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("firstId", FirstId); _json.Put("lastId", LastId); _json.Put("nextId", NextId); _json.Put("remoteId", RemoteId); _json.Put("batchId", BatchId); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("operationType", OperationType); _json.Put("rootEntityType", RootEntityType); _json.Put("rootSurrogateKey", RootSurrogateKey); _json.Put("entityType", EntityType); _json.Put("surrogateKey", SurrogateKey); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("OBJECT_ID", OBJECT_ID); _json.Put("NOM_PROD", NOM_PROD); _json.Put("VOLUMEN", VOLUMEN); _json.Put("STOCK", STOCK); _json.Put("TIP_PRODUCTO", TIP_PRODUCTO); _json.Put("CRITICIDAD", CRITICIDAD); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("OBJECT_ID", OBJECT_ID); _json.Put("NRO_LINEA", NRO_LINEA); _json.Put("MARCA", MARCA); _json.Put("CANAL", CANAL); _json.Put("DESPACHO", DESPACHO); _json.Put("LOGISTICA", LOGISTICA); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("FORMULARIO", FORMULARIO); _json.Put("PREGUNTA", PREGUNTA); _json.Put("RESPUESTA", RESPUESTA); _json.Put("OBSERVACION", OBSERVACION); _json.Put("PUNTAJE", PUNTAJE); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("RAZ_SOC_2", RAZ_SOC_2); _json.Put("TEXTO_ZR03", TEXTO_ZR03); _json.Put("TEXTO_ZR04", TEXTO_ZR04); _json.Put("TEXTO_ZR05", TEXTO_ZR05); _json.Put("TEXTO_ZR06", TEXTO_ZR06); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("NRO_ACTIVIDAD", NRO_ACTIVIDAD); _json.Put("COMPETENCIA", COMPETENCIA); _json.Put("PRODUCTO", PRODUCTO); _json.Put("VOL_TOTAL", VOL_TOTAL); _json.Put("VOL_DIR_ENTREGA", VOL_DIR_ENTREGA); return(_json); }
/// <summary> /// Sybase internal use only. /// <summary> public void RbsReplayInternal(YPF.Comercial.RRCC.SUP.RelevamientoProducto entity) { YPF.Comercial.RRCC.SUP.intrnl.OperationReplay _replay = new YPF.Comercial.RRCC.SUP.intrnl.OperationReplay(); _replay.RemoteId = ("."); _replay.Component = ("CRMMobileDesa.RelevamientoProducto_rs"); _replay.EntityKey = (entity.KeyToString()); _replay.Operation = (entity.LastOperation); bool _includeBig = !("delete").Equals(_replay.Operation); com.sybase.afx.json.JsonObject _parameters = new com.sybase.afx.json.JsonObject(); _parameters.Put("entity", YPF.Comercial.RRCC.SUP.RelevamientoProducto.__toJSON(entity, _includeBig)); //_replay.Parameters =(_parameters.ToString()); //lock(typeof(YPF.Comercial.RRCC.SUP.CRMMobileDesaDB)) //{ Sybase.Persistence.ConnectionWrapper _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBWriteConnection(); Sybase.Persistence.LocalTransaction _tran = null; try { _tran = _conn.BeginTransaction(); com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _replay.Attributes = (_json.ToString()); _replay.Save(); _replay.SaveParameter(_parameters); _tran.Commit(); } catch (Sybase.Persistence.PersistenceException pe) { _tran.Rollback(); throw pe; } catch (System.ApplicationException e) { _tran.Rollback(); throw e; } //} }
/// <summary> /// Sybase internal use only. /// <summary> public void RbsReplayInternal(YPF.Comercial.RRCC.SUP.Motivo entity) { YPF.Comercial.RRCC.SUP.intrnl.OperationReplay _replay = new YPF.Comercial.RRCC.SUP.intrnl.OperationReplay(); _replay.RemoteId =("."); _replay.Component =("CRMMobileDesa.Motivo_rs"); _replay.EntityKey =(entity.KeyToString()); _replay.Operation =(entity.LastOperation); bool _includeBig = !("delete").Equals(_replay.Operation); com.sybase.afx.json.JsonObject _parameters = new com.sybase.afx.json.JsonObject(); _parameters.Put("entity", YPF.Comercial.RRCC.SUP.Motivo.__toJSON(entity, _includeBig)); //_replay.Parameters =(_parameters.ToString()); //lock(typeof(YPF.Comercial.RRCC.SUP.CRMMobileDesaDB)) //{ Sybase.Persistence.ConnectionWrapper _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBWriteConnection(); Sybase.Persistence.LocalTransaction _tran = null; try { _tran = _conn.BeginTransaction(); com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _replay.Attributes =(_json.ToString()); _replay.Save(); _replay.SaveParameter(_parameters); _tran.Commit(); } catch (Sybase.Persistence.PersistenceException pe) { _tran.Rollback(); throw pe; } catch (System.ApplicationException e) { _tran.Rollback(); throw e; } //} }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idRepresentanteComercial", IdRepresentanteComercial); _json.Put("usuario", Usuario); _json.Put("nombre", Nombre); _json.Put("apellido", Apellido); _json.Put("idNegocio", IdNegocio); _json.Put("codigoRRCC", CodigoRRCC); _json.Put("codigoInterlocutor", CodigoInterlocutor); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idTablaRelevamiento", IdTablaRelevamiento); _json.Put("nombre", Nombre); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("NOM_USER_RRCC", NOM_USER_RRCC); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("OPERACION", OPERACION); _json.Put("DESCRIPCION", DESCRIPCION); _json.Put("CATEGORIA", CATEGORIA); _json.Put("COD_TRAN_INT", COD_TRAN_INT); _json.Put("NRO_ACTIVIDAD", NRO_ACTIVIDAD); _json.Put("SEGMENTO", SEGMENTO); _json.Put("NEGOCIO", NEGOCIO); _json.Put("COD_FORMULARIO", COD_FORMULARIO); _json.Put("PUNTAJE", PUNTAJE); _json.Put("LATITUD", LATITUD); _json.Put("LONGITUD", LONGITUD); _json.Put("TEXTO_0002", TEXTO_0002); _json.Put("TEXTO_ZR01", TEXTO_ZR01); _json.Put("TEXTO_ZR02", TEXTO_ZR02); _json.Put("TEXTO_ZR07", TEXTO_ZR07); _json.Put("TEXTO_ZR08", TEXTO_ZR08); _json.Put("TEXTO_ZR09", TEXTO_ZR09); _json.Put("TEXTO_ZR10", TEXTO_ZR10); _json.Put("TEXTO_ZR11", TEXTO_ZR11); _json.Put("FECHA_INI_P", com.sybase.afx.util.DateUtil.ToString(FECHA_INI_P)); _json.Put("HORA_INI_P", com.sybase.afx.util.TimeUtil.ToString(HORA_INI_P)); _json.Put("FECHA_FIN_P", com.sybase.afx.util.DateUtil.ToString(FECHA_FIN_P)); _json.Put("HORA_FIN_P", com.sybase.afx.util.TimeUtil.ToString(HORA_FIN_P)); _json.Put("FECHA_INI_R", com.sybase.afx.util.DateUtil.ToString(FECHA_INI_R)); _json.Put("HORA_INI_R", com.sybase.afx.util.TimeUtil.ToString(HORA_INI_R)); _json.Put("FECHA_FIN_R", com.sybase.afx.util.DateUtil.ToString(FECHA_FIN_R)); _json.Put("HORA_FIN_R", com.sybase.afx.util.TimeUtil.ToString(HORA_FIN_R)); _json.Put("CLIENTE", CLIENTE); _json.Put("NOMBRE_CLIENTE", NOMBRE_CLIENTE); _json.Put("RRCC", RRCC); _json.Put("NOMBRE_RRCC", NOMBRE_RRCC); _json.Put("RESPONSABLE", RESPONSABLE); _json.Put("NOMBRE_RESPONSABLE", NOMBRE_RESPONSABLE); _json.Put("ESTADO", ESTADO); _json.Put("MOTIVO", MOTIVO); _json.Put("CALLE", CALLE); _json.Put("NUMERO", NUMERO); _json.Put("COD_POSTAL", COD_POSTAL); _json.Put("CIUDAD", CIUDAD); _json.Put("PROVINCIA", PROVINCIA); _json.Put("PAIS", PAIS); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("listClientPK", YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSONList(ListClientPK)); _json.Put("listSessionPK", YPF.Comercial.RRCC.SUP.SessionPersonalization.ToJSONList(ListSessionPK)); _json.Put("ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey", YPF.Comercial.RRCC.SUP.ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNR.ToJSONList(ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey)); _json.Put("ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKeyUserDefined", ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKeyUserDefined); _json.Put("ZCRM_CONSULTA_CLI_INTERLOCUTORESKey", YPF.Comercial.RRCC.SUP.ZCRM_CONSULTA_CLI_INTERLOCUTORES.ToJSONList(ZCRM_CONSULTA_CLI_INTERLOCUTORESKey)); _json.Put("ZCRM_CONSULTA_CLI_INTERLOCUTORESKeyUserDefined", ZCRM_CONSULTA_CLI_INTERLOCUTORESKeyUserDefined); _json.Put("ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey", YPF.Comercial.RRCC.SUP.ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDAD.ToJSONList(ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey)); _json.Put("ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKeyUserDefined", ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKeyUserDefined); _json.Put("FECHA_SINCRONIZACIONKey", com.sybase.afx.util.DateUtil.ToString(FECHA_SINCRONIZACIONKey)); _json.Put("FECHA_SINCRONIZACIONKeyUserDefined", FECHA_SINCRONIZACIONKeyUserDefined); _json.Put("Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey", YPF.Comercial.RRCC.SUP.Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIAL.ToJSONList(Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey)); _json.Put("Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKeyUserDefined", Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKeyUserDefined); _json.Put("Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey", YPF.Comercial.RRCC.SUP.Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOS.ToJSONList(Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey)); _json.Put("Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKeyUserDefined", Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKeyUserDefined); _json.Put("REPRESENTANTE_COMERCIALKey", REPRESENTANTE_COMERCIALKey); _json.Put("REPRESENTANTE_COMERCIALKeyUserDefined", REPRESENTANTE_COMERCIALKeyUserDefined); _json.Put("Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey", YPF.Comercial.RRCC.SUP.Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIAL.ToJSONList(Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey)); _json.Put("Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKeyUserDefined", Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKeyUserDefined); _json.Put("CUITsKey", CUITsKey); _json.Put("CUITsKeyUserDefined", CUITsKeyUserDefined); _json.Put("CUENTAS_SGCKey", CUENTAS_SGCKey); _json.Put("CUENTAS_SGCKeyUserDefined", CUENTAS_SGCKeyUserDefined); _json.Put("APIESsKey", APIESsKey); _json.Put("APIESsKeyUserDefined", APIESsKeyUserDefined); _json.Put("username", Username); _json.Put("usernameUserDefined", UsernameUserDefined); _json.Put("password", Password); _json.Put("passwordUserDefined", PasswordUserDefined); return(_json); }
public void Run() { Sybase.Persistence.SynchronizationContext syncContext = new Sybase.Persistence.SynchronizationContext(); Sybase.Collections.GenericList<Sybase.Persistence.ISynchronizationGroup> sgs; System.Exception syncException; bool failed; while (true) { // Block for entries in SRQ if (_SRQ.Peek()) { // This thread is the only entity the dequeue while all only enqueue // so there is no race condition regarding multiple dequeuers // Transfer SRQ to IMQ while (_SRQ.Size() != 0) { Sybase.Persistence.SynchronizationRequest request = _SRQ.Dequeue(); request.SyncReqStatus = Sybase.Persistence.SynchronizationRequest.ACTIVE; _IMQ.Enqueue(request); } // Clear set to build list of synchronization group syncSet.Clear(); contextSet.Clear(); syncMode = Sybase.Persistence.SynchronizationRequest.UPLOADONLYSYNC; // onSynchronization call back for each request in case application wishes to cancel foreach (Sybase.Persistence.SynchronizationRequest sr in _IMQ) { string userContext = (string)sr.Context; syncContext.UserContext = userContext; sgs = sr.SyncReqGroups; syncContext.Status = Sybase.Persistence.SynchronizationStatus.STARTING; // onSynchronize call back to validate sync requests Sybase.Persistence.SynchronizationAction action = onSynchronizeCallback(sgs, syncContext); if (action == Sybase.Persistence.SynchronizationAction.CANCEL) { // mark request canceled sr.SyncReqStatus = Sybase.Persistence.SynchronizationRequest.CANCELLED; } else { // Collect distinct sync groups for approved requests foreach (Sybase.Persistence.ISynchronizationGroup syncGroup in sr.SyncReqGroups) { if (!syncSet.Contains(syncGroup.Name)) { syncSet.Add(syncGroup.Name); } } if (sr.SyncReqMode == Sybase.Persistence.SynchronizationRequest.FULLSYNC) { syncMode = Sybase.Persistence.SynchronizationRequest.FULLSYNC; } if (userContext != null) { // the user context is always a string // Add non-duplicated context for this batch synchronization contextSet.Add(userContext); } } } try { failed = false; syncException = null; if (syncSet.Size() > 0) { string allGroups = com.sybase.afx.util.StringUtil.Join(syncSet, ","); // set up Synchronization context // status field should still be STARTING syncContext.Exception = null; string allUserContext = com.sybase.afx.util.StringUtil.Join(contextSet, ","); syncContext.UserContext = allUserContext; com.sybase.afx.json.JsonObject syncContextEx = new com.sybase.afx.json.JsonObject(); if (syncMode == Sybase.Persistence.SynchronizationRequest.UPLOADONLYSYNC) { syncContextEx.Put("uploadOnly", "true"); } else { syncContextEx.Put("uploadOnly", "false"); } InternalSynchronize(allGroups, new Sybase.Persistence.DefaultStatusListener(syncContext), syncContext, syncContextEx); } } catch (Sybase.Persistence.SynchronizeException ex) { failed = true; syncException = ex; } catch (System.Exception e) { failed = true; syncException = new Sybase.Persistence.SynchronizeException(e); } foreach (Sybase.Persistence.SynchronizationRequest sr in _IMQ) { if (sr.SyncReqStatus == Sybase.Persistence.SynchronizationRequest.CANCELLED) { continue; } syncContext.UserContext = sr.Context; sgs = sr.SyncReqGroups; if (failed) { syncContext.Status = Sybase.Persistence.SynchronizationStatus.ERROR; syncContext.Exception = syncException; } else { syncContext.Status = Sybase.Persistence.SynchronizationStatus.FINISHING; if(YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.GetSynchronizationProfile().AsyncReplay) { syncContext.Status = Sybase.Persistence.SynchronizationStatus.ASYNC_REPLAY_UPLOADED; } syncContext.Exception = null; } // onSynchronize call back with synchronization result onSynchronizeCallback(sgs, syncContext); } _IMQ.Clear(); } } }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idInteraccion", IdInteraccion); _json.Put("interaccion_nroOperacionSAP", Interaccion_nroOperacionSAP); _json.Put("idRelevamientoProveedor", IdRelevamientoProveedor); _json.Put("marca", Marca); _json.Put("relevamientoProveedorCanal_CodigoSAP", RelevamientoProveedorCanal_CodigoSAP); _json.Put("despacho", Despacho); _json.Put("relevamientoProveedorLogistica_CodigoSAP", RelevamientoProveedorLogistica_CodigoSAP); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("interaccionFK", InteraccionFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("username", Username); _json.Put("remoteId", RemoteId); _json.Put("UsuarioParam", UsuarioParam); _json.Put("id", Id); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("OBJECT_ID", OBJECT_ID); _json.Put("NOM_PROD", NOM_PROD); _json.Put("VOLUMEN", VOLUMEN); _json.Put("STOCK", STOCK); _json.Put("TIP_PRODUCTO", TIP_PRODUCTO); _json.Put("CRITICIDAD", CRITICIDAD); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("NRO_ACTIVIDAD", NRO_ACTIVIDAD); _json.Put("COMPETENCIA", COMPETENCIA); _json.Put("PRODUCTO", PRODUCTO); _json.Put("VOL_TOTAL", VOL_TOTAL); _json.Put("VOL_DIR_ENTREGA", VOL_DIR_ENTREGA); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idInteraccion", IdInteraccion); _json.Put("interaccion_nroOperacionSAP", Interaccion_nroOperacionSAP); _json.Put("relevamientoProductoProducto_CodigoSAP", RelevamientoProductoProducto_CodigoSAP); _json.Put("volumen", Volumen); _json.Put("stock", Stock); _json.Put("relevamientoProductoTipo_CodigoSAP", RelevamientoProductoTipo_CodigoSAP); _json.Put("critico", Critico); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("interaccionFK", InteraccionFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("key_name", Key_name); _json.Put("user", User); _json.Put("value", Value); _json.Put("user_defined", User_defined); _json.Put("description", Description); _json.Put("id", Id); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("operationType", OperationType); _json.Put("rootEntityType", RootEntityType); _json.Put("rootSurrogateKey", RootSurrogateKey); _json.Put("entityType", EntityType); _json.Put("surrogateKey", SurrogateKey); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("cuentaLP0", CuentaLP0); _json.Put("UN", UN); _json.Put("deudaActual", DeudaActual); _json.Put("deudaVencida", DeudaVencida); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("sistema", Sistema); _json.Put("CUIT", CUIT); _json.Put("idDireccionEntrega", IdDireccionEntrega); _json.Put("periodoMesAnio", PeriodoMesAnio); _json.Put("grupoArticulo_CodigoSAP", GrupoArticulo_CodigoSAP); _json.Put("volumen", Volumen); _json.Put("unidadMedida", UnidadMedida); _json.Put("importeBruto", ImporteBruto); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("INSPECCION", INSPECCION); _json.Put("PRECIO", PRECIO); _json.Put("CLUSTER", CLUSTER); _json.Put("RED", RED); _json.Put("APIES", APIES); _json.Put("MERCADO", MERCADO); _json.Put("SUBMERCADO", SUBMERCADO); _json.Put("PRECIO_TASA", PRECIO_TASA); _json.Put("OBSER_TASA", OBSER_TASA); _json.Put("INCLUIDA", INCLUIDA); _json.Put("ESTRATEGICO", ESTRATEGICO); _json.Put("CAMARA", CAMARA); _json.Put("PROG_FIDELIZAC", PROG_FIDELIZAC); _json.Put("OTROS_NEGOCIOS", OTROS_NEGOCIOS); _json.Put("MEDIOS_PAGO", MEDIOS_PAGO); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idMotivo", IdMotivo); _json.Put("idNegocio", IdNegocio); _json.Put("idFormulario", IdFormulario); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("negocioFK", NegocioFK); _json.Put("motivoFK", MotivoFK); _json.Put("formularioFK", FormularioFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("level", Level); _json.Put("code", Code); _json.Put("eisCode", EisCode); _json.Put("message", Message); _json.Put("component", Component); _json.Put("entityKey", EntityKey); _json.Put("operation", Operation); _json.Put("requestId", RequestId); _json.Put("timestamp", com.sybase.afx.util.DateTimeUtil.ToString(Timestamp)); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("messageId", MessageId); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("domain", Domain); _json.Put("package", Package); _json.Put("syncGroup", SyncGroup); _json.Put("clientId", ClientId); return _json; }
private static void InternalSynchronize (string synchronizationGroup, Sybase.Persistence.SyncStatusListener listener, Sybase.Persistence.SynchronizationContext syncContext, com.sybase.afx.json.JsonObject syncContextEx) { string mlServerHost; int mlServerPort; string syncUsername; string syncPassword; bool isInitialSync = "initialSync".Equals(synchronizationGroup) || KeyGenerator.InitSync(); YPF.Comercial.RRCC.SUP.PersonalizationParameters _pp = GetPersonalizationParameters(); _pp.Username =(GetSynchronizationProfile().UserName); _pp.Password =(GetSynchronizationProfile().Password); _pp.SaveUserNamePassword(); lock(_synchronizeLock) { Sybase.Mobile.Application.GetInstance().ApplicationSettings.CheckApplicationSettingsAvailable(); Sybase.Persistence.ConnectionProfile _interProfile = new Sybase.Persistence.ConnectionProfile(); _interProfile.DomainName =("default"); _interProfile.ServerName =("sdbuetmapl28"); _interProfile.PortNumber =(2480); _interProfile.NetworkProtocol =("http,https"); _interProfile.NetworkStreamParams =("trusted_certificates=;url_suffix="); _interProfile.ApplyProperties(Sybase.Mobile.Application.GetInstance().ApplicationSettings); _interProfile.ApplyProperties(GetSynchronizationProfile()); mlServerHost = _interProfile.ServerName; mlServerPort = _interProfile.PortNumber; syncUsername = _interProfile.UserName; syncPassword = _interProfile.Password; string sysPlatform = _interProfile.GetProperty("os"); Sybase.Persistence.ConnectionWrapper ulConn = null; com.sybase.afx.db.ConnectionSyncParams syncParms = new com.sybase.afx.db.ConnectionSyncParams(); try { YPF.Comercial.RRCC.SUP.PersonalizationParameters pp = new YPF.Comercial.RRCC.SUP.PersonalizationParameters(); syncUsername += ("@" + _interProfile.DomainName); com.sybase.afx.json.JsonObject json = new com.sybase.afx.json.JsonObject(); Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization> listClientPersonalization = pp.ListClientPK; foreach(YPF.Comercial.RRCC.SUP.ClientPersonalization __item in listClientPersonalization) { json.Put(__item.Key_name, __item.GetRealValue()); } Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.SessionPersonalization> sessionServerPersonalization = pp.ListSessionPK; foreach(YPF.Comercial.RRCC.SUP.SessionPersonalization __item in sessionServerPersonalization) { json.Put(__item.Key_name, __item.Value); } json.Put("pv", "" + YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.GetProtocolVersion()); json.Put("pid", com.sybase.afx.util.PidUtil.GetId()); json.Put("cle", _interProfile.GetProperty("changeLogEnabled", "false")); if(isInitialSync) { com.sybase.afx.json.JsonObject jsonMBOMap = new com.sybase.afx.json.JsonObject(); jsonMBOMap.Put("DireccionEntrega",231); jsonMBOMap.Put("Interaccion",232); jsonMBOMap.Put("CalendarioInteraccionLocal",233); jsonMBOMap.Put("CategoriaPregunta",234); jsonMBOMap.Put("ClienteCabeceraPedido",235); jsonMBOMap.Put("ClienteDetallePedido",236); jsonMBOMap.Put("ClienteDeuda",237); jsonMBOMap.Put("ClienteFacturacion",238); jsonMBOMap.Put("CustomLocalData",239); jsonMBOMap.Put("Direccion",240); jsonMBOMap.Put("EstadoInteraccion",241); jsonMBOMap.Put("Formulario",242); jsonMBOMap.Put("FormularioMercado",243); jsonMBOMap.Put("FormularioMercadoSegmento",244); jsonMBOMap.Put("FormularioMercadoSubsegmento",245); jsonMBOMap.Put("FormularioMercadoTamano",246); jsonMBOMap.Put("FormularioPrecios",247); jsonMBOMap.Put("FormularioPreciosMercado",248); jsonMBOMap.Put("FormularioPreciosRed",249); jsonMBOMap.Put("FormularioPreciosZonaInspeccion",250); jsonMBOMap.Put("FormularioTransporte",251); jsonMBOMap.Put("Mail",252); jsonMBOMap.Put("Motivo",253); jsonMBOMap.Put("Negocio",254); jsonMBOMap.Put("OpcionRespuesta",255); jsonMBOMap.Put("Parametro",256); jsonMBOMap.Put("Pregunta",257); jsonMBOMap.Put("PreguntaFormulario",258); jsonMBOMap.Put("Provincia",259); jsonMBOMap.Put("RelevamientoPrecios",260); jsonMBOMap.Put("RelevamientoPreciosProducto",261); jsonMBOMap.Put("RelevamientoProducto",262); jsonMBOMap.Put("RelevamientoProductoProducto",263); jsonMBOMap.Put("RelevamientoProductoTipo",264); jsonMBOMap.Put("RelevamientoProveedor",265); jsonMBOMap.Put("RelevamientoProveedorCanal",266); jsonMBOMap.Put("RelevamientoProveedorLogistica",267); jsonMBOMap.Put("RelevamientoTransporte",268); jsonMBOMap.Put("RelevamientoTransporteCompetidor",269); jsonMBOMap.Put("RelevamientoTransporteProducto",270); jsonMBOMap.Put("RepresentanteComercial",271); jsonMBOMap.Put("Respuesta",272); jsonMBOMap.Put("RespuestaInteraccionFormulario",273); jsonMBOMap.Put("Segmento",274); jsonMBOMap.Put("SeleccionFormulario",275); jsonMBOMap.Put("SeleccionTablaRelevamiento",276); jsonMBOMap.Put("TablaRelevamiento",277); jsonMBOMap.Put("Telefono",278); jsonMBOMap.Put("TipoInteraccion",279); jsonMBOMap.Put("LogRecordImpl",281); jsonMBOMap.Put("OperationReplay",282); jsonMBOMap.Put("SISSubscription",285); jsonMBOMap.Put("PackageProperties",286); jsonMBOMap.Put("ChangeLogImpl",288); jsonMBOMap.Put("OfflineAuthentication",289); jsonMBOMap.Put("RepresentanteComercialSynchronizationParameters",290); jsonMBOMap.Put("RepresentanteComercial_pull_pq",291); jsonMBOMap.Put("ClientPersonalization",341); jsonMBOMap.Put("KeyGenerator",346); jsonMBOMap.Put("LocalKeyGenerator",348); json.Put("mboMap", jsonMBOMap); json.Put("publications", synchronizationGroup); json.Put("isInitialSync", isInitialSync.ToString()); } else { json.Put("publications", synchronizationGroup); } bool async = !isInitialSync && _interProfile.GetBoolean("asyncReplay", true); if(syncContextEx == null) { syncContextEx = new com.sybase.afx.json.JsonObject(); } syncContextEx.Remove("async"); syncContextEx.Put("async", async + ""); json.Put("_as", async + ""); if(async && !IsReplayQueueEmpty()) { YPF.Comercial.RRCC.SUP.intrnl.OperationReplay rq = new YPF.Comercial.RRCC.SUP.intrnl.OperationReplay(); rq.SetComponent("CRMMobileDesaDB"); com.sybase.afx.json.JsonObject parameter = new com.sybase.afx.json.JsonObject(); if(syncContext != null) { object userContext = syncContext.UserContext; if(userContext != null) { if(userContext is string) { parameter.Put("userContext", userContext); } else { throw new Sybase.Persistence.PersistenceException("user context must be string for async operation replay"); } } parameter.Put("synchronizationGroup",synchronizationGroup); } rq.SetParameters(parameter.ToString()); rq.SetOperation("batchNotify"); rq.Save(); } if(_appName != null) { json.Put("app", _appName); } json.Put("appId", Sybase.Mobile.Application.GetInstance().ApplicationIdentifier); if (sysPlatform != null) { json.Put("os", sysPlatform); } string str = json.ToString(); byte[] bin = com.sybase.afx.util.StringUtil.ToUTF8(str); string authParam = com.sybase.afx.util.BinaryUtil.ToStringBase64(bin); bool isHttps = _interProfile.NetworkProtocol.Equals("https", System.StringComparison.OrdinalIgnoreCase); int maxLen = 4000; int size = (authParam.Length + maxLen - 1) / maxLen; if (size > 16) { throw new Sybase.Persistence.SynchronizeException("the whole length of personalization parameters exceeds the limit of authenticate parameters and the safe length is 512 bytes"); } string[] authList = new string[16]; for (int i = 0; i < size; i++) { authList[i] = authParam.Substring(i * maxLen, ((i + 1) * maxLen < authParam.Length) ? maxLen : (authParam.Length - i * maxLen)); } for (int i = size; i < 16; i++) { authList[i] = "x";//Spacer } ulConn = AcquireDBWriteConnection(); syncParms.IsHttps = isHttps; syncParms.Version = _interProfile.DomainName + "_" + "crmmobiledesa.1_0"; syncParms.UserName = syncUsername; if(_interProfile.Certificate != null) { syncPassword = null; } syncParms.Password = syncPassword + ("@" + com.sybase.afx.util.PidUtil.GetId()); string mlStreamParams = "host=\"" + mlServerHost + "\";port=\"" + mlServerPort + "\""; string urlSuffix = com.sybase.afx.util.NetworkStreamParams.ExtractValue("url_suffix", _interProfile.NetworkStreamParams); if(urlSuffix != null && urlSuffix.Length != 0) { mlStreamParams = "host=\"" + mlServerHost + "\";port=\"" + mlServerPort + "\";url_suffix=\"" + urlSuffix + "\""; } //setting http_userid and http_password if HTTPCredentials are available Sybase.Persistence.LoginCredentials lc = Sybase.Mobile.Application.GetInstance().ConnectionProperties.HTTPCredentials; if (lc != null) { string http_userid = lc.UserName; string http_password = lc.Password; mlStreamParams = mlStreamParams + ";http_userid=\"" + http_userid + "\";http_password=\"" + http_password + "\""; } string cookie = com.sybase.afx.util.NetworkStreamParams.ExtractValue("set_cookie", _interProfile.NetworkStreamParams); Sybase.Collections.StringProperties httpCookies = Sybase.Mobile.Application.GetInstance().ConnectionProperties.HttpCookies; if (httpCookies != null) { foreach(string key in httpCookies.Keys()) { string value = httpCookies.Item(key); if (cookie == null || cookie.Length == 0) { cookie = key + "=" + value; } else { cookie += "," + key + "=" + value; } } } if (cookie != null && cookie.Length != 0) { mlStreamParams = mlStreamParams + ";set_cookie=\"" + cookie +"\""; } System.Collections.Generic.List<string> headers = com.sybase.afx.util.NetworkStreamParams.ExtractListValue("custom_header", _interProfile.NetworkStreamParams); foreach (string header in headers) { mlStreamParams = mlStreamParams + ";custom_header=\"" + header +"\""; } Sybase.Collections.StringProperties httpHeaders = Sybase.Mobile.Application.GetInstance().ConnectionProperties.HttpHeaders; if (httpHeaders != null) { foreach(string key in httpHeaders.Keys()) { string value = httpHeaders.Item(key); mlStreamParams = mlStreamParams + ";custom_header=\"" + key + ":" + value + "\""; } } string ip = _interProfile.GetString("client_ip"); if(ip != null && ip.Length != 0) { mlStreamParams = mlStreamParams + ";client_ip_addr=\"" + ip + "\""; } if(isHttps) { string ts = com.sybase.afx.util.NetworkStreamParams.ExtractValue("trusted_certificates", _interProfile.NetworkStreamParams); mlStreamParams += ";trusted_certificates=\"" + ts + "\""; string tls = com.sybase.afx.util.NetworkStreamParams.ExtractValue("tls_type", _interProfile.NetworkStreamParams); if (tls != null) { mlStreamParams += ";tls_type=\"" + tls + "\""; } } System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<string, string>> nwParams = com.sybase.afx.util.NetworkStreamParams.Parse(_interProfile.NetworkStreamParams); foreach (System.Collections.Generic.KeyValuePair<string, string> entry in nwParams) { string v = entry.Key; if (!v.StartsWith("url_suffix") && !v.StartsWith("trusted_certificates") && !v.StartsWith("tls_type") && !v.StartsWith("http_userid") && !v.StartsWith("http_password") && !v.StartsWith("set_cookie") && !v.StartsWith("custom_header")) { mlStreamParams += ";" + v + "=\"" + entry.Value + "\""; } } syncParms.StreamParms = mlStreamParams; syncParms.Publications = synchronizationGroup; syncParms.AuthenticationParms = authList; syncParms.UploadOnly = syncContextEx.GetBoolean("uploadOnly"); com.sybase.afx.db.ConnectionUtil.SetConnectionSyncParams(ulConn, syncParms); com.sybase.afx.db.CommandUtil.TraceSynchronize(_profile.GetSyncProfile(), synchronizationGroup, syncContext, GetRemoteId(ulConn)); if (listener != null) { string[] mboNames = com.sybase.afx.DatabaseBase.GetMBONames(synchronizationGroup, GetPublications()); System.Collections.Hashtable tableMBOMap = getTableMBOMap(); com.sybase.afx.db.ConnectionUtil.Synchronize(ulConn, listener, _interProfile.ToSyncConnection(), mboNames, tableMBOMap); } else { com.sybase.afx.db.ConnectionUtil.Synchronize(ulConn); } //check protocol version PackageProperties _props = PackageProperties.Find("protocol_version"); int _pv = 0; if (_props != null) { _pv = System.Int32.Parse(_props.Value); } if (!isInitialSync && GetProtocolVersion() > _pv) { string _msg = "device's protocol version is incompatible with the server's protocol version. (" + GetProtocolVersion() + " > " + _pv + ")"; Sybase.Persistence.ProtocolException _pe = new Sybase.Persistence.ProtocolException(_msg); GetCallbackHandler().OnMessageException(_pe); throw _pe; } PackageProperties lastRequestId = PackageProperties.Find("lastRequestId"); if(lastRequestId == null) { lastRequestId = new PackageProperties(); lastRequestId.Key = "lastRequestId"; } try { lastRequestId.Value = KeyGenerator.GenerateId()+""; } catch(Sybase.Persistence.SynchronizeRequiredException) { lastRequestId = null; } if(lastRequestId != null) { lastRequestId.Save(); } YPF.Comercial.RRCC.SUP.intrnl.OperationReplay.Finish(); } catch(com.sybase.afx.db.SynchronizationException _ex) { string exMsg = _ex.ToString(); com.sybase.afx.db.ConnectionImpl connImpl = (com.sybase.afx.db.ConnectionImpl)ulConn; iAnywhere.Data.UltraLite.ULConnection ul_conn = (iAnywhere.Data.UltraLite.ULConnection)connImpl.GetConnection(); if (_ex.NativeError == com.sybase.afx.db.SynchronizationException.SQLE_MOBILINK_COMMUNICATIONS_ERROR) { string strMessage = ul_conn.SyncResult.StreamErrorParameters; try { int errorCode = System.Convert.ToInt32(strMessage); Sybase.Mobile.Application.GetInstance().ApplicationCallback.OnHttpCommunicationError(errorCode, "", new Sybase.Collections.StringProperties()); } catch (System.FormatException) { } } long authValue = ul_conn.SyncResult.AuthValue; if ((_ex.NativeError == com.sybase.afx.db.SynchronizationException.SQLE_MOBILINK_AUTHENTICATION_FAILED) && (authValue == com.sybase.afx.util.AuthExceptionUtil.FAILURE_CODE_TOKEN_VALIDATION_ERROR || authValue == 4000)) { GetCallbackHandler().OnLoginFailure(); if (syncContext == null) { syncContext = new Sybase.Persistence.SynchronizationContext(); } syncContext.ErrorCode = 401; syncContext.ErrorMessage = "authentication failed."; if (authValue == com.sybase.afx.util.AuthExceptionUtil.FAILURE_CODE_TOKEN_VALIDATION_ERROR) { syncContext.ErrorCode = 412; } } com.sybase.afx.util.AuthExceptionUtil.CheckAuthValueAfterSync(com.sybase.afx.db.ConnectionUtil.GetConnectionSyncAuthValue(ulConn), _ex); if (_ex.NativeError == com.sybase.afx.db.SynchronizationException.SQLE_MOBILINK_COMMUNICATIONS_ERROR) { exMsg += "Details:\n" + com.sybase.afx.db.ConnectionUtil.GetConnectionSyncDetail(ulConn) + "\n"; } if( !"system".Equals(synchronizationGroup) && com.sybase.afx.db.SynchronizationException.SQLE_SERVER_SYNCHRONIZATION_ERROR == _ex.NativeError ) { try { YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.Synchronize("system", null); } catch { if (!"initialSync".Equals(synchronizationGroup)) { string _msg = "the package is not deployed or device's protocol version may be incompatible with the server's protocol version. (" + GetProtocolVersion() + " > 0)"; Sybase.Persistence.ProtocolException _pe = new Sybase.Persistence.ProtocolException(_msg); GetCallbackHandler().OnMessageException(_pe); throw _pe; } } } throw new Sybase.Persistence.SynchronizeException(exMsg,_ex); } catch(System.Exception _ex) { throw new Sybase.Persistence.SynchronizeException(_ex.ToString(),_ex); } finally { if(ulConn != null) { ReleaseDBConnection();; } } } }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("OPERACION", OPERACION); _json.Put("DESCRIPCION", DESCRIPCION); _json.Put("CATEGORIA", CATEGORIA); _json.Put("COD_TRAN_INT", COD_TRAN_INT); _json.Put("NRO_ACTIVIDAD", NRO_ACTIVIDAD); _json.Put("SEGMENTO", SEGMENTO); _json.Put("NEGOCIO", NEGOCIO); _json.Put("COD_FORMULARIO", COD_FORMULARIO); _json.Put("PUNTAJE", PUNTAJE); _json.Put("LATITUD", LATITUD); _json.Put("LONGITUD", LONGITUD); _json.Put("TEXTO_0002", TEXTO_0002); _json.Put("TEXTO_ZR01", TEXTO_ZR01); _json.Put("TEXTO_ZR02", TEXTO_ZR02); _json.Put("TEXTO_ZR07", TEXTO_ZR07); _json.Put("TEXTO_ZR08", TEXTO_ZR08); _json.Put("TEXTO_ZR09", TEXTO_ZR09); _json.Put("TEXTO_ZR10", TEXTO_ZR10); _json.Put("TEXTO_ZR11", TEXTO_ZR11); _json.Put("FECHA_INI_P", com.sybase.afx.util.DateUtil.ToString(FECHA_INI_P)); _json.Put("HORA_INI_P", com.sybase.afx.util.TimeUtil.ToString(HORA_INI_P)); _json.Put("FECHA_FIN_P", com.sybase.afx.util.DateUtil.ToString(FECHA_FIN_P)); _json.Put("HORA_FIN_P", com.sybase.afx.util.TimeUtil.ToString(HORA_FIN_P)); _json.Put("FECHA_INI_R", com.sybase.afx.util.DateUtil.ToString(FECHA_INI_R)); _json.Put("HORA_INI_R", com.sybase.afx.util.TimeUtil.ToString(HORA_INI_R)); _json.Put("FECHA_FIN_R", com.sybase.afx.util.DateUtil.ToString(FECHA_FIN_R)); _json.Put("HORA_FIN_R", com.sybase.afx.util.TimeUtil.ToString(HORA_FIN_R)); _json.Put("CLIENTE", CLIENTE); _json.Put("NOMBRE_CLIENTE", NOMBRE_CLIENTE); _json.Put("RRCC", RRCC); _json.Put("NOMBRE_RRCC", NOMBRE_RRCC); _json.Put("RESPONSABLE", RESPONSABLE); _json.Put("NOMBRE_RESPONSABLE", NOMBRE_RESPONSABLE); _json.Put("ESTADO", ESTADO); _json.Put("MOTIVO", MOTIVO); _json.Put("CALLE", CALLE); _json.Put("NUMERO", NUMERO); _json.Put("COD_POSTAL", COD_POSTAL); _json.Put("CIUDAD", CIUDAD); _json.Put("PROVINCIA", PROVINCIA); _json.Put("PAIS", PAIS); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idTipoInteraccion", IdTipoInteraccion); _json.Put("descripcion", Descripcion); _json.Put("codigoSAP", CodigoSAP); _json.Put("categoriaSAP", CategoriaSAP); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("deviceId", DeviceId); _json.Put("username", Username); _json.Put("appname", Appname); _json.Put("enable", Enable); _json.Put("adminLock", AdminLock); _json.Put("interval", Interval); _json.Put("protocol", Protocol); _json.Put("address", Address); _json.Put("domain", Domain); _json.Put("package", Package); _json.Put("syncGroup", SyncGroup); _json.Put("clientId", ClientId); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("pedido_CodigoSAP", Pedido_CodigoSAP); _json.Put("pedido_Cuenta", Pedido_Cuenta); _json.Put("pedido_Estado_CodigoSAP", Pedido_Estado_CodigoSAP); _json.Put("pedido_direccionEntrega", Pedido_direccionEntrega); _json.Put("pedido_FechaCreacion", com.sybase.afx.util.DateUtil.ToString(Pedido_FechaCreacion)); _json.Put("pedido_HoraCreacion", com.sybase.afx.util.TimeUtil.ToString(Pedido_HoraCreacion)); _json.Put("pedido_FechaAprobacion", com.sybase.afx.util.DateUtil.ToString(Pedido_FechaAprobacion)); _json.Put("pedido_HoraAprobacion", com.sybase.afx.util.TimeUtil.ToString(Pedido_HoraAprobacion)); _json.Put("pedido_ImporteTotal", Pedido_ImporteTotal); _json.Put("pedido_ImporteFacturado", Pedido_ImporteFacturado); _json.Put("producto_CodigoSAP", Producto_CodigoSAP); _json.Put("producto_Estado_CodigoSAP", Producto_Estado_CodigoSAP); _json.Put("producto_Terminal_CodigoSAP", Producto_Terminal_CodigoSAP); _json.Put("producto_VolumenTotal", Producto_VolumenTotal); _json.Put("producto_VolumenPendiente", Producto_VolumenPendiente); _json.Put("producto_VolumenDespachado", Producto_VolumenDespachado); _json.Put("producto_UnidadMedida", Producto_UnidadMedida); _json.Put("producto_ImporteTotal", Producto_ImporteTotal); _json.Put("entrega_CodigoSAP", Entrega_CodigoSAP); _json.Put("entrega_NumeroRemito", Entrega_NumeroRemito); _json.Put("entrega_Estado_CodigoSAP", Entrega_Estado_CodigoSAP); _json.Put("entrega_Patente", Entrega_Patente); _json.Put("entrega_EstadoTransporte_CodigoSAP", Entrega_EstadoTransporte_CodigoSAP); _json.Put("entrega_FechaPlanificada", com.sybase.afx.util.DateUtil.ToString(Entrega_FechaPlanificada)); _json.Put("entrega_FechaCarga", com.sybase.afx.util.DateUtil.ToString(Entrega_FechaCarga)); _json.Put("entrega_FechaInicio", com.sybase.afx.util.DateUtil.ToString(Entrega_FechaInicio)); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("remoteId", RemoteId); _json.Put("batchId", BatchId); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idFormulario", IdFormulario); _json.Put("idPregunta", IdPregunta); _json.Put("valor", Valor); _json.Put("operacionNoCumplimiento", OperacionNoCumplimiento); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("preguntaFK", PreguntaFK); _json.Put("formulario1FK", Formulario1FK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idInteraccion", IdInteraccion); _json.Put("flota", Flota); _json.Put("empresasCliente", EmpresasCliente); _json.Put("recorrido", Recorrido); _json.Put("SYMA", SYMA); _json.Put("RAZ_SOC_2", RAZ_SOC_2); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("interaccionFK", InteraccionFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("deviceId", DeviceId); _json.Put("username", Username); _json.Put("appname", Appname); _json.Put("enable", Enable); _json.Put("adminLock", AdminLock); _json.Put("interval", Interval); _json.Put("protocol", Protocol); _json.Put("address", Address); _json.Put("domain", Domain); _json.Put("package", Package); _json.Put("syncGroup", SyncGroup); _json.Put("clientId", ClientId); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); _json.Put("ID", ID); _json.Put("INSPECCION", INSPECCION); _json.Put("PRECIO", PRECIO); _json.Put("CLUSTER", CLUSTER); _json.Put("RED", RED); _json.Put("APIES", APIES); _json.Put("MERCADO", MERCADO); _json.Put("SUBMERCADO", SUBMERCADO); _json.Put("PRECIO_TASA", PRECIO_TASA); _json.Put("OBSER_TASA", OBSER_TASA); _json.Put("INCLUIDA", INCLUIDA); _json.Put("ESTRATEGICO", ESTRATEGICO); _json.Put("CAMARA", CAMARA); _json.Put("PROG_FIDELIZAC", PROG_FIDELIZAC); _json.Put("OTROS_NEGOCIOS", OTROS_NEGOCIOS); _json.Put("MEDIOS_PAGO", MEDIOS_PAGO); return(_json); }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idDireccionEntrega", IdDireccionEntrega); _json.Put("razonSocial", RazonSocial); _json.Put("CUIT", CUIT); _json.Put("agrupacion", Agrupacion); _json.Put("UN", UN); _json.Put("contacto", Contacto); _json.Put("APIES", APIES); _json.Put("cuentaSGC", CuentaSGC); _json.Put("cuentaLPO", CuentaLPO); _json.Put("cuentaLP2", CuentaLP2); _json.Put("cuentaQP1", CuentaQP1); _json.Put("operaYER", OperaYER); _json.Put("cantidadTarjetaYER", CantidadTarjetaYER); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("direccionFK", DireccionFK); _json.Put("mailFK", MailFK); _json.Put("telefonoFK", TelefonoFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("passwordHash", PasswordHash); _json.Put("user", User); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); if(this.IsNew) { _json.Put("_op", 'C'); } else { _json.Put("_op", PendingChange); } _json.Put("idInteraccion", IdInteraccion); _json.Put("formulario_CodigoSAP", Formulario_CodigoSAP); _json.Put("pregunta_CodigoSAP", Pregunta_CodigoSAP); _json.Put("respuesta_CodigoSAP", Respuesta_CodigoSAP); _json.Put("observaciones", Observaciones); _json.Put("puntaje", Puntaje); _json.Put("pending", Pending); _json.Put("pendingChange", PendingChange); _json.Put("replayPending", ReplayPending); _json.Put("replayFailure", ReplayFailure); _json.Put("interaccionFK", InteraccionFK); _json.Put("surrogateKey", SurrogateKey); _json.Put("_rc", ReplayCounter); _json.Put("disableSubmit", DisableSubmit); return _json; }
internal com.sybase.afx.json.JsonObject _toJSON(bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes) { com.sybase.afx.json.JsonObject _json = new com.sybase.afx.json.JsonObject(); char op_2 = 'N'; if (this.IsNew) { op_2 = 'C'; } else if (this.IsDirty) { op_2 = 'U'; } else if (this.IsDeleted) { op_2 = 'D'; } _json.Put("_op", op_2); _json.Put("tipoInteraccion", TipoInteraccion); _json.Put("cantidadInteraccion", CantidadInteraccion); _json.Put("diaInteraccion", DiaInteraccion); _json.Put("mesInteraccion", MesInteraccion); _json.Put("anioInteraccion", AnioInteraccion); _json.Put("idTipoInteraccion", IdTipoInteraccion); return _json; }