Ejemplo n.º 1
0
        private static Personal_qr PersonalQRAdd(IDbTransaction trans, Personal o)
        {
            Personal_qr oPQr = new Personal_qr()
            {
                Id_personal = o.Id, Idf = o.PQr.Idf
            };

            try
            {
                Personal_qrMng oPQrMng = new Personal_qrMng();
                oPQrMng.O_Personal_qr = oPQr;
                oPQrMng.add(trans);

                Personal_qr_pivoteMng oPQRPivMng = new Personal_qr_pivoteMng();
                Personal_qr_pivote    oPQRPiv    = new Personal_qr_pivote()
                {
                    Idf = o.PQr.Idf
                };
                oPQRPivMng.O_Personal_qr_pivote = oPQRPiv;
                oPQRPivMng.dltByIdf(trans);
            }
            catch
            {
                throw;
            }
            return(oPQr);
        }
Ejemplo n.º 2
0
 public static Personal_qr_pivote PersonalQrPivoteAdd(Personal_qr_pivote o)
 {
     try
     {
         Personal_qr_pivoteMng oMng = new Personal_qr_pivoteMng()
         {
             O_Personal_qr_pivote = o
         };
         oMng.add();
     }
     catch
     {
         throw;
     }
     return(o);
 }
Ejemplo n.º 3
0
 private static void PersonalQrPivoteDltByUser(int id_usuario)
 {
     try
     {
         Personal_qr_pivoteMng oPqrPMng = new Personal_qr_pivoteMng();
         Personal_qr_pivote    oPQrPiv  = new Personal_qr_pivote()
         {
             Id_usuario = id_usuario
         };
         oPqrPMng.O_Personal_qr_pivote = oPQrPiv;
         oPqrPMng.dltByUser();
     }
     catch
     {
         throw;
     }
 }
Ejemplo n.º 4
0
        public static string PersonalQrPivoteGetFolio(int id_usuario)
        {
            string folio = string.Empty;

            try
            {
                Personal_qr_pivoteMng oPqrPMng = new Personal_qr_pivoteMng();
                Personal_qr_pivote    oPQrPiv  = new Personal_qr_pivote()
                {
                    Id_usuario = id_usuario
                };
                oPqrPMng.O_Personal_qr_pivote = oPQrPiv;
                oPqrPMng.fillLstByIdUsuario();
                if (oPqrPMng.Lst.Count > 0)
                {
                    folio = oPqrPMng.Lst.First().Idf;
                }
            }
            catch
            {
                throw;
            }
            return(folio);
        }