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

                obj.CreationDate = entity.TS_REMARK;
                obj.CreatorID    = entity.ID_OPER;
                obj.District     = entity.CD_DIST;
                obj.RemarkText   = entity.TXT_REMARK;
                obj.Seq          = (int)entity.CD_SEQ;
                obj.Type         = entity.TP_REMARK;
                obj.WorkRequest  = (int)entity.CD_WR;

                return(obj);
            }

            return(null);
        }
Beispiel #2
0
 public Remark GetByEntity(TWMREMARK entity)
 {
     return(MapEntityToObject(entity));
 }