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

            _record.CopyValues(source.Base.Record);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #5
0
 public static string SELECT(Library.Invoice.QueryConditions conditions)
 {
     return(ConceptoTicket.SELECT(conditions, false));
 }
Пример #6
0
 public static string SELECT()
 {
     return(ConceptoTicket.SELECT(0, false));
 }