-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1767fd
commit 773ed8e
Showing
9 changed files
with
3,318 additions
and
2,962 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} | ||
} |
Oops, something went wrong.