コード例 #1
0
ファイル: BizCrudFuntion.cs プロジェクト: diegosal/Servicio
 /// <summary>
 /// Bizs the update ticket.
 /// </summary>
 /// <param name="bizTicket">The biz ticket.</param>
 /// <returns>System.String.</returns>
 public string BizUpdateTicket(BizTicket bizTicket)
 {
     return(BizCall(
                new Action(() =>
     {
         crudFuntion.UpdateTicket(bizTicket);
     }
                           )
                ));
 }
コード例 #2
0
ファイル: BizCrudFuntion.cs プロジェクト: diegosal/Servicio
 /// <summary>
 /// Bizs the insert ticket.
 /// </summary>
 /// <param name="bizTicket">The biz ticket.</param>
 /// <returns>System.String.</returns>
 public string BizInsertTicket(BizTicket bizTicket)
 {
     return(BizCall(
                new Action(() =>
     {
         crudFuntion.InsertTicket(bizTicket);
     }
                           )
                ));
 }
コード例 #3
0
ファイル: BaseAdapter.cs プロジェクト: diegosal/Servicio
        /// <summary>
        /// Datas the ticket to biz ticket.
        /// </summary>
        /// <param name="DataTicket">The data ticket.</param>
        /// <returns>BizTicket.</returns>
        public static BizTicket DataTicketToBizTicket(this SYSGetTicket_Result DataTicket)
        {
            BizTicket bizTicket = new BizTicket
            {
                Id               = DataTicket.Id,
                UserId           = 0,
                EventualityId    = 0,
                StatusId         = 0,
                Nombre           = DataTicket.Nombre,
                EventualityName  = DataTicket.EventualityName,
                StatusName       = DataTicket.StatusName,
                CreationDate     = DataTicket.CreationDate,
                ModificationDate = DataTicket.ModificationDate,
            };

            return(bizTicket);
        }
コード例 #4
0
ファイル: BaseAdapter.cs プロジェクト: diegosal/Servicio
        /// <summary>
        /// Bizs the ticket to web ticket.
        /// </summary>
        /// <param name="DataTicket">The data ticket.</param>
        /// <returns>WebTicket.</returns>
        public static WebTicket BizTicketToWebTicket(this BizTicket DataTicket)
        {
            WebTicket webTicket = new WebTicket
            {
                Id               = DataTicket.Id,
                UserId           = DataTicket.UserId,
                EventualityId    = DataTicket.EventualityId,
                StatusId         = DataTicket.StatusId,
                Nombre           = DataTicket.Nombre,
                EventualityName  = DataTicket.EventualityName,
                StatusName       = DataTicket.StatusName,
                CreationDate     = DataTicket.CreationDate,
                ModificationDate = DataTicket.ModificationDate,
            };

            return(webTicket);
        }