• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# json.JsonObject类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中com.sybase.afx.json.JsonObject的典型用法代码示例。如果您正苦于以下问题:C# com.sybase.afx.json.JsonObject类的具体用法?C# com.sybase.afx.json.JsonObject怎么用?C# com.sybase.afx.json.JsonObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



com.sybase.afx.json.JsonObject类属于命名空间,在下文中一共展示了com.sybase.afx.json.JsonObject类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RbsReplayInternal

 /// <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;
         }
     //}
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:41,代码来源:Motivo_rs.cs


示例2: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:30,代码来源:FormularioTransporte.cs


示例3: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:28,代码来源:ClientPersonalization.cs


示例4: _toJSON

 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();
 
 
 
     return _json;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:8,代码来源:Motivo_rs.cs


示例5: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:29,代码来源:PreguntaFormulario.cs


示例6: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:49,代码来源:ClienteDetallePedido.cs


示例7: InternalSynchronize

 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);
//.........这里部分代码省略.........
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:101,代码来源:CRMMobileDesaDB.cs


示例8: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:32,代码来源:LogRecordImpl.cs


示例9: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:27,代码来源:ChangeLogImpl.cs


示例10: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:31,代码来源:RelevamientoProducto.cs


示例11: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:15,代码来源:ZCRM_ACTRRCC_ABM_DETALLE_PRODUCTO.cs


示例12: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:14,代码来源:ZCRM_ACTRRCC_ABM_FORMULARIO_2.cs


示例13: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:26,代码来源:RepresentanteComercial_pull_pq.cs


示例14: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:29,代码来源:SeleccionFormulario.cs


示例15: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:34,代码来源:SISSubscription.cs


示例16: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:50,代码来源:ZCRM_ACTRRCC_ABM_CABECERA.cs


示例17: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:10,代码来源:KeyGeneratorPK.cs


示例18: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:24,代码来源:OfflineAuthentication.cs


示例19: Run

     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);
//.........这里部分代码省略.........
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:101,代码来源:CRMMobileDesaDB.cs


示例20: _toJSON

 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;
 }
开发者ID:hihack,项目名称:CRM.Mobile,代码行数:27,代码来源:ClienteDeuda.cs



注:本文中的com.sybase.afx.json.JsonObject类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# complex类代码示例发布时间:2022-05-24
下一篇:
C# common.BitMatrix类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap