internal void CopyValues(ConceptoTicket source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);
        }
Exemplo n.º 2
0
        public static long GetCountByExpediente(long oid_exp)
        {
            CriteriaEx criteria = ConceptoTicket.GetCriteria(ConceptoTicket.OpenSession());

            criteria.Childs = false;

            criteria.Query = ConceptoTicket.COUNT_BY_EXPEDIENTE(oid_exp);
            IDataReader reader = nHManager.Instance.SQLNativeSelect(criteria.Query, criteria.Session);

            reader.Read();
            long cuenta = Convert.ToInt64(reader["CUENTA"]);

            CloseSession(criteria.SessionCode);
            return(cuenta);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <param name="get_childs">retrieving the childs</param>
        /// <returns>ConceptoTicketList</returns>
        public static ConceptoTicketList GetChildList(bool childs)
        {
            CriteriaEx criteria = ConceptoTicket.GetCriteria(ConceptoTicket.OpenSession());

            criteria.Childs = childs;

            //No criteria. Retrieve all de List
            if (nHManager.Instance.UseDirectSQL)
            {
                criteria.Query = SELECT();
            }

            ConceptoTicketList list = DataPortal.Fetch <ConceptoTicketList>(criteria);

            CloseSession(criteria.SessionCode);
            return(list);
        }
Exemplo n.º 4
0
        public static ConceptoTicketList GetListByExpediente(long oid, bool childs)
        {
            CriteriaEx criteria = ConceptoTicket.GetCriteria(ConceptoTicket.OpenSession());

            criteria.Childs = childs;

            Library.Invoice.QueryConditions conditions = new Library.Invoice.QueryConditions {
                Expediente = ExpedientInfo.New(oid)
            };
            criteria.Query = ConceptoTicketList.SELECT(conditions);

            ConceptoTicketList list = DataPortal.Fetch <ConceptoTicketList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }
Exemplo n.º 5
0
 public static string SELECT(Library.Invoice.QueryConditions conditions)
 {
     return(ConceptoTicket.SELECT(conditions, false));
 }
Exemplo n.º 6
0
 public static string SELECT()
 {
     return(ConceptoTicket.SELECT(0, false));
 }