Esempio n. 1
0
        /// <summary>
        /// Descripción : Método para actualizar personal asignado a un planning
        /// Fecha       : 17/09/2010
        /// Creado por  : Ing. Mauricio Ortiz
        /// </summary>
        /// <param name="sid_planning"></param>
        /// <param name="iPerson_id"></param>
        /// <param name="bStaffPlanning_Status"></param>
        /// <param name="sStaffPlanning_ModiBy"></param>
        /// <param name="tStaffPlanning_DateModiBy"></param>
        /// <returns></returns>
        public EStaff_Planning ActualizaPersonal(string sid_planning, int iPerson_id, bool bStaffPlanning_Status,
                                                 string sStaffPlanning_ModiBy, DateTime tStaffPlanning_DateModiBy)
        {
            DStaff_Planning odStaff_Planninf = new DStaff_Planning();
            EStaff_Planning oeStaff_Planning = odStaff_Planninf.ActualizaPersonal(sid_planning, iPerson_id, bStaffPlanning_Status,
                                                                                  sStaffPlanning_ModiBy, tStaffPlanning_DateModiBy);

            odStaff_Planninf = null;
            return(oeStaff_Planning);
        }
        /// <summary>
        /// Descripción : Método para actualizar personal asignado a un planning
        /// Fecha       : 17/09/2010
        /// Creado por  : Ing. Mauricio Ortiz
        /// <param name="sid_planning"></param>
        /// <param name="iPerson_id"></param>
        /// <param name="bStaffPlanning_Status"></param>
        /// <param name="sStaffPlanning_ModiBy"></param>
        /// <param name="tStaffPlanning_DateModiBy"></param>
        /// <returns>oeStaff_Planning</returns>
        public EStaff_Planning ActualizaPersonal(string sid_planning, int iPerson_id, bool bStaffPlanning_Status,
                                                 string sStaffPlanning_ModiBy, DateTime tStaffPlanning_DateModiBy)
        {
            DataTable dt = oConn.ejecutarDataTable("UP_WEBXPLORA_PLA_ACTUALIZARPERSONALPLANNING", sid_planning, iPerson_id, bStaffPlanning_Status,
                                                   sStaffPlanning_ModiBy, tStaffPlanning_DateModiBy);

            EStaff_Planning oeStaff_Planning = new EStaff_Planning();

            oeStaff_Planning.id_planning              = sid_planning;
            oeStaff_Planning.Person_id                = iPerson_id;
            oeStaff_Planning.StaffPlanning_Status     = bStaffPlanning_Status;
            oeStaff_Planning.StaffPlanning_ModiBy     = sStaffPlanning_ModiBy;
            oeStaff_Planning.StaffPlanning_DateModiBy = tStaffPlanning_DateModiBy;
            return(oeStaff_Planning);
        }