Beispiel #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);
        }