Beispiel #1
0
        public MilestoneRequirement MapEntityToObject(TWMMILESTONERQMT entity)
        {
            if (entity != null)
            {
                MilestoneRequirement obj = new MilestoneRequirement();

                obj.WorkRequestId = entity.CD_WR.ToString();
                obj.District      = entity.CD_DIST;

                obj.RequirementId   = entity.CD_RQMT.ToString();
                obj.Description     = entity.DS_MILESTONE_RQMT;
                obj.Status          = entity.ST_RQMT;
                obj.ResponsibleId   = entity.ID_OPER_RESPONSIBLE;
                obj.LastUpdatedId   = entity.ID_OPER_LAST_UPDTD;
                obj.LastUpdatedDate = entity.TS_OPER_LAST_UPDTD;
                obj.AssignedDate    = entity.DT_ASSIGNED;

                obj.FG_LEAD_TIME   = entity.FG_LEAD_TIME;
                obj.FG_WORK_QUEUE  = entity.FG_WORK_QUEUE;
                obj.FG_SERVICE_STD = entity.FG_LEAD_TIME;

                return(obj);
            }

            return(null);
        }
Beispiel #2
0
        public TWMMILESTONERQMT MapObjectToEntity(MilestoneRequirement obj)
        {
            if (obj != null)
            {
                TWMMILESTONERQMT entity = new TWMMILESTONERQMT();
                entity.CD_WR   = (long)int.Parse(obj.WorkRequestId);
                entity.CD_DIST = obj.District;

                entity.CD_RQMT             = int.Parse(obj.RequirementId);
                entity.DS_MILESTONE_RQMT   = obj.Description;
                entity.ST_RQMT             = obj.Status;
                entity.ID_OPER_RESPONSIBLE = obj.ResponsibleId;
                entity.ID_OPER_LAST_UPDTD  = obj.LastUpdatedId;
                entity.TS_OPER_LAST_UPDTD  = obj.LastUpdatedDate;
                entity.DT_ASSIGNED         = obj.AssignedDate;

                entity.FG_LEAD_TIME   = obj.FG_LEAD_TIME;
                entity.FG_WORK_QUEUE  = obj.FG_WORK_QUEUE;
                entity.FG_SERVICE_STD = obj.FG_SERVICE_STD;

                return(entity);
            }

            return(null);
        }
Beispiel #3
0
 public MilestoneRequirement GetByEntity(TWMMILESTONERQMT entity)
 {
     return(MapEntityToObject(entity));
 }