Пример #1
0
 /// <summary>
 /// Get the mobile business object by surrogate key.
 /// </summary>
 /// <param name="id">surrogate key</param>
 /// <returns>the mobile business object for the surroget key</returns>
 /// <exception cref="ObjectNotFoundException">Thrown if unable to retrieve mobile business object.</exception>
 /// <remarks> </remarks>
 public static YPF.Comercial.RRCC.SUP.ClientPersonalization Load(long id)
 {
     YPF.Comercial.RRCC.SUP.ClientPersonalization _ent = Find(id);
     if (_ent == null)
     {
         throw new Sybase.Persistence.ObjectNotFoundException();
     }
     return(_ent);
 }
Пример #2
0
 /// <summary>
 /// copy the MBO attributes to current MBO
 /// </summary>
 public void CopyAll(YPF.Comercial.RRCC.SUP.ClientPersonalization entity)
 {
     this._isNew         = entity._isNew;
     this.__key_name     = entity.__key_name;
     this.__user         = entity.__user;
     this.__value        = entity.__value;
     this.__user_defined = entity.__user_defined;
     this.__description  = entity.__description;
     this.__id           = entity.Id;
 }
Пример #3
0
 /// <summary>
 /// Sybase internal use only.
 /// <summary>
 public static com.sybase.afx.json.JsonObject __toJSON(YPF.Comercial.RRCC.SUP.ClientPersonalization _object, bool _includeBigAttribute)
 {
     if (_includeBigAttribute)
     {
         return(YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSON(_object));
     }
     else
     {
         return(YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSONWithoutBigAttribute(_object));
     }
 }
Пример #4
0
 /// <summary>
 /// Set current MBO attributes by specified MBO.
 /// </summary>
 public static YPF.Comercial.RRCC.SUP.ClientPersonalization Merge(YPF.Comercial.RRCC.SUP.ClientPersonalization entity)
 {
     YPF.Comercial.RRCC.SUP.ClientPersonalization ent = Find(entity._pk());
     if (ent == null)
     {
         ent = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
     }
     ent.CopyAll(entity);
     ent.Save();
     return(ent);
 }
Пример #5
0
 internal static com.sybase.afx.json.JsonObject ToJSON(YPF.Comercial.RRCC.SUP.ClientPersonalization _object, bool __buildGraph, bool _includeBigAttribute, bool _includeUserAttributes)
 {
     if ((_object == null))
     {
         return(null);
     }
     else
     {
         return(_object._toJSON(__buildGraph, _includeBigAttribute, _includeUserAttributes));
     }
 }
Пример #6
0
        /// <summary>
        /// Refresh the mobile business object from database.
        /// </summary>
        public void Refresh()
        {
            if (!_isNew)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization ent = Load(_pk());
                CopyAll(ent);

                _isNew   = false;
                _isDirty = false;
            }
        }
Пример #7
0
 internal static YPF.Comercial.RRCC.SUP.ClientPersonalization FromJSON(object _json)
 {
     if (_json == null)
     {
         return(null);
     }
     else
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization _obj = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         _obj._fromJSON((com.sybase.afx.json.JsonObject)_json);
         return(_obj);
     }
 }
Пример #8
0
        /// <summary>
        /// override method
        /// </summary>
        public override bool Equals(object that)
        {
            YPF.Comercial.RRCC.SUP.ClientPersonalization that_1 = that as YPF.Comercial.RRCC.SUP.ClientPersonalization;
            if (that_1 == null)
            {
                return(false);
            }
            long?id_2 = this._pk();
            long?id_3 = that_1._pk();

            if ((id_2 == null) || (id_3 == null))
            {
                return(false);
            }
            return(id_2.Equals(id_3));
        }
Пример #9
0
        /// <summary>
        /// Find a List of YPF.Comercial.RRCC.SUP.ClientPersonalization
        /// </summary>
        /// <exception cref="PersistentException">Thrown if unable to retrieve mobile business object.</exception>
        /// <remarks> </remarks>
        public static Sybase.Collections.GenericList <YPF.Comercial.RRCC.SUP.ClientPersonalization> FindByUser(string user, int skip, int take)
        {
            skip = skip + 1;
            Sybase.Collections.GenericList <YPF.Comercial.RRCC.SUP.ClientPersonalization> result_2 = new Sybase.Collections.GenericList <YPF.Comercial.RRCC.SUP.ClientPersonalization>();
            System.Data.IDataReader rs_4 = null;
            int count_5 = 0;

            Sybase.Persistence.ConnectionWrapper _conn = null;
            try
            {
                _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBReadConnection();
                string _selectSQL = " p.\"key_name\",p.\"user\",p.\"value\",p.\"user_defined\",p.\"description\",p.\"id\" from \"co_crmmobiledesa_1_0_clientpersonalization\" p where p.\"user\" = ?";
                _selectSQL = "select top " + take + " start at " + skip + " " + _selectSQL;
                System.Data.IDbCommand ps_3 = com.sybase.afx.db.CommandUtil.CreateCommand(_conn, _selectSQL);
                com.sybase.afx.db.CommandUtil.SetString(_conn.GetConnectionProfile(), ps_3, "user", user);
                rs_4 = ps_3.ExecuteReader();
                Sybase.Persistence.ConnectionProfile profile = _conn.GetConnectionProfile();
                while (com.sybase.afx.db.ReaderUtil.Read(profile, rs_4))
                {
                    YPF.Comercial.RRCC.SUP.ClientPersonalization entity_6 = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                    entity_6.Bind(profile, rs_4);
                    count_5++;
                    result_2.Add(entity_6);
                }
                if (rs_4 != null)
                {
                    com.sybase.afx.db.ReaderUtil.Close(profile, rs_4, count_5);
                }
                if (ps_3 != null)
                {
                    ps_3.Dispose();
                }
                _selectSQL = null;
            }
            catch (System.Data.DataException ex)
            {
                throw new Sybase.Persistence.PersistenceException(ex.ToString(), ex);
            }
            finally
            {
                YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.ReleaseDBConnection();
            }
            return(result_2);
        }
Пример #10
0
        private static YPF.Comercial.RRCC.SUP.ClientPersonalization _find(long id, String sql, bool findOs, bool findNonPending)
        {
            Sybase.Persistence.ConnectionWrapper _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBReadConnection();
            System.Data.IDataReader _rs = null;
            int count = 0;

            try
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization _rt = null;
                System.Data.IDbCommand ps = com.sybase.afx.db.CommandUtil.CreateCommand(_conn, sql);
                com.sybase.afx.db.CommandUtil.SetLong(_conn.GetConnectionProfile(), ps, "id", id);
                _rs = ps.ExecuteReader();
                Sybase.Persistence.ConnectionProfile profile = _conn.GetConnectionProfile();
                while (com.sybase.afx.db.ReaderUtil.Read(profile, _rs))
                {
                    _rt = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                    _rt.Bind(profile, _rs);
                    count++;
                }
                if (_rs != null)
                {
                    com.sybase.afx.db.ReaderUtil.Close(profile, _rs, count);
                }
                if (ps != null)
                {
                    ps.Dispose();
                }
                return(_rt);
            }
            catch (System.Data.DataException ex)
            {
                throw new Sybase.Persistence.PersistenceException(ex.ToString(), ex);
            }
            finally
            {
                YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.ReleaseDBConnection();
            }
        }
Пример #11
0
 /// <summary>
 /// Find a List of YPF.Comercial.RRCC.SUP.ClientPersonalization
 /// </summary>
 /// <exception cref="PersistentException">Thrown if unable to retrieve mobile business object.</exception>
 /// <remarks> </remarks>
 public static Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization> FindByUser(string user, int skip, int take)
 {
         skip = skip + 1;
     Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization> result_2 = new Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization>();
     System.Data.IDataReader rs_4 = null;
     int count_5 = 0;
     Sybase.Persistence.ConnectionWrapper _conn = null;
     try
     {
         _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBReadConnection();
         string _selectSQL = " p.\"key_name\",p.\"user\",p.\"value\",p.\"user_defined\",p.\"description\",p.\"id\" from \"co_crmmobiledesa_1_0_clientpersonalization\" p where p.\"user\" = ?";
         _selectSQL = "select top " + take + " start at " + skip + " " + _selectSQL;
         System.Data.IDbCommand ps_3 = com.sybase.afx.db.CommandUtil.CreateCommand(_conn, _selectSQL);
         com.sybase.afx.db.CommandUtil.SetString(_conn.GetConnectionProfile(), ps_3, "user", user);
         rs_4 = ps_3.ExecuteReader();
         Sybase.Persistence.ConnectionProfile profile = _conn.GetConnectionProfile();
         while (com.sybase.afx.db.ReaderUtil.Read(profile, rs_4))
         {       
             YPF.Comercial.RRCC.SUP.ClientPersonalization entity_6 = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
             entity_6.Bind(profile, rs_4);
             count_5++;
             result_2.Add(entity_6);
         }
         if (rs_4 != null) com.sybase.afx.db.ReaderUtil.Close(profile, rs_4, count_5);
         if (ps_3 != null) ps_3.Dispose();
         _selectSQL = null;
     }
     catch (System.Data.DataException ex)
     {
         throw new Sybase.Persistence.PersistenceException(ex.ToString(), ex);
     }
     finally
     {
         YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.ReleaseDBConnection();
     } 
     return result_2; 
   
 }
Пример #12
0
 /// <summary>
 /// Set current MBO attributes by specified MBO.
 /// </summary>
 public static YPF.Comercial.RRCC.SUP.ClientPersonalization Merge(YPF.Comercial.RRCC.SUP.ClientPersonalization entity)
 {
     YPF.Comercial.RRCC.SUP.ClientPersonalization ent = Find(entity._pk());
     if (ent == null)
     {
         ent = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
     }
     ent.CopyAll(entity);
     ent.Save();
     return ent;
 }
Пример #13
0
 private static YPF.Comercial.RRCC.SUP.ClientPersonalization _find(long id, String sql, bool findOs, bool findNonPending)
 {
     Sybase.Persistence.ConnectionWrapper _conn = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.AcquireDBReadConnection();
     System.Data.IDataReader _rs = null;
     int count = 0;
     try
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization _rt = null;
         System.Data.IDbCommand ps = com.sybase.afx.db.CommandUtil.CreateCommand(_conn, sql);
         com.sybase.afx.db.CommandUtil.SetLong(_conn.GetConnectionProfile(), ps, "id", id);
         _rs = ps.ExecuteReader();
         Sybase.Persistence.ConnectionProfile profile = _conn.GetConnectionProfile();
         while (com.sybase.afx.db.ReaderUtil.Read(profile, _rs))
         {
             _rt = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
             _rt.Bind(profile, _rs);
             count++;
         }
         if (_rs != null) com.sybase.afx.db.ReaderUtil.Close(profile, _rs, count);
         if (ps != null) ps.Dispose();
         return _rt;
     }
     catch(System.Data.DataException ex)
     {
         throw new Sybase.Persistence.PersistenceException(ex.ToString(), ex);
     }
     finally
     {
         YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.ReleaseDBConnection();
     }
 }
Пример #14
0
 internal static com.sybase.afx.json.JsonObject ToJSON(YPF.Comercial.RRCC.SUP.ClientPersonalization _object, bool __buildGraph, bool _includeBigAttribute)
 {
     return(ToJSON(_object, __buildGraph, _includeBigAttribute, true));
 }
Пример #15
0
 internal static com.sybase.afx.json.JsonObject ToJSON(YPF.Comercial.RRCC.SUP.ClientPersonalization _object)
 {
     return(YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSON(_object, false, true, true));
 }
Пример #16
0
 internal static com.sybase.afx.json.JsonObject ToJSONWithoutUserAttributes(YPF.Comercial.RRCC.SUP.ClientPersonalization _object)
 {
     return(YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSON(_object, false, false, false));
 }
Пример #17
0
 private void CreateBySQL(Sybase.Persistence.ConnectionWrapper _conn, string sql, YPF.Comercial.RRCC.SUP.ClientPersonalization __theObject)
 {
     System.Data.IDbCommand ps = com.sybase.afx.db.CommandUtil.CreateCommand(_conn, sql);
     com.sybase.afx.db.CommandUtil.SetString(_conn.GetConnectionProfile(), ps, "key_name", __theObject.Key_name);
     com.sybase.afx.db.CommandUtil.SetString(_conn.GetConnectionProfile(), ps, "user", __theObject.User);
     com.sybase.afx.db.CommandUtil.SetNullableString(_conn.GetConnectionProfile(), ps, "value", __theObject.Value);
     com.sybase.afx.db.CommandUtil.SetBoolean(_conn.GetConnectionProfile(), ps, "user_defined", __theObject.User_defined);
     com.sybase.afx.db.CommandUtil.SetNullableString(_conn.GetConnectionProfile(), ps, "description", __theObject.Description);
     com.sybase.afx.db.CommandUtil.SetLong(_conn.GetConnectionProfile(), ps, "id", __theObject.Id);
     ps.ExecuteNonQuery();
     ps.Dispose();;
 }
Пример #18
0
 public static Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization> FindAll()
 {
     // 
     string who = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.GetSyncUsername();
     Sybase.Collections.GenericList<YPF.Comercial.RRCC.SUP.ClientPersonalization> list = FindByUser(who);
     bool p1 = false;
     bool p2 = false;
     bool p3 = false;
     bool p4 = false;
     bool p5 = false;
     bool p6 = false;
     bool p7 = false;
     bool p8 = false;
     bool p9 = false;
     bool p10 = false;
     bool p11 = false;
     foreach (YPF.Comercial.RRCC.SUP.ClientPersonalization __p in list)
     {
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey"))
         {
             p1 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZCRM_CONSULTA_CLI_INTERLOCUTORESKey"))
         {
             p2 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey"))
         {
             p3 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "FECHA_SINCRONIZACIONKey"))
         {
             p4 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey"))
         {
             p5 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey"))
         {
             p6 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "REPRESENTANTE_COMERCIALKey"))
         {
             p7 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey"))
         {
             p8 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "CUITsKey"))
         {
             p9 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "CUENTAS_SGCKey"))
         {
             p10 = true;
             __p.Description = "\n        \n    ";
         }
         if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "APIESsKey"))
         {
             p11 = true;
             __p.Description = "\n        \n    ";
         }
     }
     if (! p1)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p2)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "ZCRM_CONSULTA_CLI_INTERLOCUTORESKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p3)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p4)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "FECHA_SINCRONIZACIONKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p5)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p6)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p7)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "REPRESENTANTE_COMERCIALKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p8)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey";
         __p.User = who;
         __p.Value = null;
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p9)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "CUITsKey";
         __p.User = who;
         __p.Value = "";
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p10)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "CUENTAS_SGCKey";
         __p.User = who;
         __p.Value = "";
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     if (! p11)
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         __p.Key_name = "APIESsKey";
         __p.User = who;
         __p.Value = "";
         __p.User_defined = false;
         __p.Description = "\n        \n    ";
         list.Add(__p);
     }
     return list;
 }
Пример #19
0
        public static Sybase.Collections.GenericList <YPF.Comercial.RRCC.SUP.ClientPersonalization> FindAll()
        {
            //
            string who = YPF.Comercial.RRCC.SUP.CRMMobileDesaDB.GetSyncUsername();

            Sybase.Collections.GenericList <YPF.Comercial.RRCC.SUP.ClientPersonalization> list = FindByUser(who);
            bool p1  = false;
            bool p2  = false;
            bool p3  = false;
            bool p4  = false;
            bool p5  = false;
            bool p6  = false;
            bool p7  = false;
            bool p8  = false;
            bool p9  = false;
            bool p10 = false;
            bool p11 = false;

            foreach (YPF.Comercial.RRCC.SUP.ClientPersonalization __p in list)
            {
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey"))
                {
                    p1 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZCRM_CONSULTA_CLI_INTERLOCUTORESKey"))
                {
                    p2 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey"))
                {
                    p3 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "FECHA_SINCRONIZACIONKey"))
                {
                    p4 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey"))
                {
                    p5 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey"))
                {
                    p6 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "REPRESENTANTE_COMERCIALKey"))
                {
                    p7 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey"))
                {
                    p8 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "CUITsKey"))
                {
                    p9 = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "CUENTAS_SGCKey"))
                {
                    p10             = true;
                    __p.Description = "\n        \n    ";
                }
                if (com.sybase.afx.util.StringUtil.Equal(__p.Key_name, "APIESsKey"))
                {
                    p11             = true;
                    __p.Description = "\n        \n    ";
                }
            }
            if (!p1)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "ZARFIAR_RFC_DEUDASCLIENTES_IM_KUNNRKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p2)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "ZCRM_CONSULTA_CLI_INTERLOCUTORESKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p3)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "ZCRM_ACTRRCC_CONSULTA_INTERLO_ACTIVIDADKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p4)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "FECHA_SINCRONIZACIONKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p5)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "Z01CRM_RRCC_F_CABPEDIDOS_REPRESENTANTE_COMERCIALKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p6)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "Z01CRM_RRCC_F_DETPEDIDOS_PEDIDOSKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p7)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "REPRESENTANTE_COMERCIALKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p8)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "Z01CRM_RRCC_F_FACTURACION_REPRESENTANTE_COMERCIALKey";
                __p.User         = who;
                __p.Value        = null;
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p9)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "CUITsKey";
                __p.User         = who;
                __p.Value        = "";
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p10)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "CUENTAS_SGCKey";
                __p.User         = who;
                __p.Value        = "";
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            if (!p11)
            {
                YPF.Comercial.RRCC.SUP.ClientPersonalization __p = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
                __p.Key_name     = "APIESsKey";
                __p.User         = who;
                __p.Value        = "";
                __p.User_defined = false;
                __p.Description  = "\n        \n    ";
                list.Add(__p);
            }
            return(list);
        }
Пример #20
0
 internal static YPF.Comercial.RRCC.SUP.ClientPersonalization FromJSON(object _json)
 {
     if (_json == null)
     {
         return null;
     }
     else
     {
         YPF.Comercial.RRCC.SUP.ClientPersonalization _obj = new YPF.Comercial.RRCC.SUP.ClientPersonalization();
         _obj._fromJSON((com.sybase.afx.json.JsonObject)_json);
         return _obj;
     }
 }
Пример #21
0
 /// <summary>
 /// Sybase internal use only.
 /// <summary>
 public static com.sybase.afx.json.JsonObject __toJSON(YPF.Comercial.RRCC.SUP.ClientPersonalization _object)
 {
     return(YPF.Comercial.RRCC.SUP.ClientPersonalization.ToJSON(_object));
 }