Monday, 18 June 2012

BL(BLL)

STEP 1: Create the class file like QuickLinksBL.cs


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VCSB.INTRANET.DAL;

namespace VCSB.INTRANET.BLL
{

  public class QuickLinksBL:IVCSBIntranetBL
  {


      # region Fields & Properties
      int _listId;

        string _title = string.Empty, _quickurl = string.Empty;
        string _quicktitle;

        public string Quicktitle
        {
            get { return _quicktitle; }
            set { _quicktitle = value; }
        }
        public string Quickurl
        {
            get { return _quickurl; }
            set { _quickurl = value; }
        }
       
        public int ID
        {
            get { return _listId; }
            set { _listId = value; }
        }

        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

      # endregion

        #region Constructor
        public QuickLinksBL()
        {


        }
        public QuickLinksBL(int listId)
        {
            this.ID = listId;
        }
        public QuickLinksBL(int quicklinksID, string quicklinkstitle, string quicklinksurl)
        {
            this.ID = quicklinksID;
            this.Quicktitle = quicklinkstitle;
            this.Quickurl = quicklinksurl;
           
        }
        # endregion

        # region Methods
        public bool insert()
        {
            throw new NotImplementedException();
        }

        public bool update()
        {
          return QuickLinksDL.update(this);

        }

        public bool delete()
        {
            throw new NotImplementedException();
        }

        public System.Data.DataTable GetAllListItem()
        {
            return QuickLinksDL.GetAllListItem(this);
        }

        public void GetSingleRowListItem(int id)
        {
            throw new NotImplementedException();
        }
        public System.Data.DataTable GetSingleRowListItem()
        {
          return QuickLinksDL.GetSingleRowListItem(this);
        }
        # endregion
  }

}

No comments:

Post a Comment

SharePoint online - Get List-item attachments and Display to div

Step 1 : Create a List ex: TestList and attach few images Step 2 : Copy and Pastet the below coding in App.js var  Items =  null ; ...