public int InsertInsideEdgeProfile(InsideEdgeProfile pInsideEdgeProfile)
 {
     try
     {
         return(_AD.InsertInsideEdgeProfile(pInsideEdgeProfile));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
 public bool UpdateInsideEdgeProfile(InsideEdgeProfile pInsideEdgeProfile)
 {
     try
     {
         _AD.UpdateInsideEdgeProfile(pInsideEdgeProfile);
         return(true);
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 3
0
        public void UpdateInsideEdgeProfile(InsideEdgeProfile pInsideEdgeProfile)
        {
            string sql = @"[spUpdateInsideEdgeProfile] '{0}', '{1}', '{2}', '{3}'";

            sql = string.Format(sql, pInsideEdgeProfile.Id, pInsideEdgeProfile.Description, pInsideEdgeProfile.Status.Id,
                                pInsideEdgeProfile.ModificationUser);
            try
            {
                _MB.EjecutarSQL(_CN, sql);
            }
            catch (Exception err)
            {
                throw err;
            }
        }
Esempio n. 4
0
        public int InsertInsideEdgeProfile(InsideEdgeProfile pInsideEdgeProfile)
        {
            string sql = @"[spInsertInsideEdgeProfile] '{0}', '{1}', '{2}', '{3}'";

            sql = string.Format(sql, pInsideEdgeProfile.Description, pInsideEdgeProfile.Status.Id,
                                pInsideEdgeProfile.CreatorUser, pInsideEdgeProfile.ModificationUser);
            try
            {
                return(_MB.EjecutarSQL(_CN, sql));
            }
            catch (Exception err)
            {
                throw err;
            }
        }
Esempio n. 5
0
        public InsideEdgeProfile GetInsideEdgeProfileById(int Id)
        {
            InsideEdgeProfile insideedge = new InsideEdgeProfile();
            string            sql        = @"[spGetInsideEdgeProfile] '{0}' ";

            sql = string.Format(sql, Id);

            try
            {
                DataSet ds = new DataSet();
                ds = _MB.CreaDS(ds, "InsideEdgeProfile", sql, _CN);
                if (ds.Tables["InsideEdgeProfile"].Rows.Count > 0)
                {
                    foreach (DataRow item in ds.Tables["InsideEdgeProfile"].Rows)
                    {
                        insideedge = new InsideEdgeProfile()
                        {
                            Id     = int.Parse(item["Id"].ToString()),
                            Status = new Status()
                            {
                                Id = int.Parse(item["IdStatus"].ToString()), Description = item["DescripStatus"].ToString()
                            },
                            Description      = item["Description"].ToString(),
                            CreationDate     = (item["CreationDate"].ToString() != "") ? DateTime.Parse(item["CreationDate"].ToString()) : DateTime.Parse("01/01/1900"),
                            ModificationDate = (item["ModificationDate"].ToString() != "") ? DateTime.Parse(item["ModificationDate"].ToString()) : DateTime.Parse("01/01/1900"),
                            CreatorUser      = int.Parse(item["CreatorUser"].ToString()),
                            ModificationUser = int.Parse(item["ModificationUser"].ToString()),
                        };
                    }
                }
                return(insideedge);
            }
            catch (Exception)
            {
                throw;
            }
        }