Skip to content

Commit

Permalink
Function: Ediable About us page
Browse files Browse the repository at this point in the history
  • Loading branch information
thientrinhcoder committed Aug 26, 2015
1 parent d1767fd commit 773ed8e
Show file tree
Hide file tree
Showing 9 changed files with 3,318 additions and 2,962 deletions.
20 changes: 20 additions & 0 deletions SKDN_CMS/BO/AboutUs/AboutUsController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Nextcom.Citinews.Core.Library;

namespace DFISYS.BO.AboutUs
{
public class AboutUsController
{
public static void InsertUpdateAboutUs(AboutUsObject site)
{
new AboutUsDAL().proc_AboutUsInsertUpdate(site);
}
public static AboutUsObject SelectSiteAboutUs(int site)
{
return ObjectHelper.FillObject<AboutUsObject>(new AboutUsDAL().proc_AboutUsSelect(site));
}
}
}
29 changes: 29 additions & 0 deletions SKDN_CMS/BO/AboutUs/AboutUsDAL.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using Microsoft.ApplicationBlocks.Data;

namespace DFISYS.BO.AboutUs
{
public class AboutUsDAL
{
private readonly string _conn;
public AboutUsDAL()
{
_conn = ConfigurationManager.ConnectionStrings["cms_coreConnectionString"].ToString();
}

public IDataReader proc_AboutUsSelect(int Id)
{
return SqlHelper.ExecuteReader(_conn, "proc_AboutUsSelect", Id);
}

public void proc_AboutUsInsertUpdate(AboutUsObject obj)
{
SqlHelper.ExecuteNonQuery(_conn, "proc_AboutUsInsertUpdate", obj.Id, obj.AboutUsImage, obj.AboutUs, obj.SponsorImage, obj.Sponsor, obj.MissionImage, obj.Mission,obj.IsActive);
}
}
}
74 changes: 74 additions & 0 deletions SKDN_CMS/BO/AboutUs/AboutUsObject.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DFISYS.BO.AboutUs
{
public class AboutUsObject
{
private int _id;
private string _aboutUsImage;
private string _aboutUs;
private string _sponsorImage;
private string _sponsor;
private string _missionImage;
private string _mission;
private bool _isActive;
private DateTime _createdDate;

public int Id
{
get { return _id; }
set { _id = value; }
}

public string AboutUsImage
{
get { return _aboutUsImage; }
set { _aboutUsImage = value; }
}

public string AboutUs
{
get { return _aboutUs; }
set { _aboutUs = value; }
}

public string SponsorImage
{
get { return _sponsorImage; }
set { _sponsorImage = value; }
}

public string Sponsor
{
get { return _sponsor; }
set { _sponsor = value; }
}

public string MissionImage
{
get { return _missionImage; }
set { _missionImage = value; }
}

public string Mission
{
get { return _mission; }
set { _mission = value; }
}

public bool IsActive
{
get { return _isActive; }
set { _isActive = value; }
}

public DateTime CreatedDate
{
get { return _createdDate; }
set { _createdDate = value; }
}
}
}
Loading

0 comments on commit 773ed8e

Please sign in to comment.