Beispiel #1
0
        public static string GetCategoryTagFromCheckboxList(CheckBoxList cblSubCategories)
        {
            string strTags = string.Empty;

            foreach (ListItem li in cblSubCategories.Items)
            {
                if (li.Selected)
                {
                    HitblMainMan objSubMain = HitblMainMan.FetchByID(Convert.ToInt32(li.Value));
                    strTags += objSubMain.ManTitle + Constants.TAG_DELIMITER;
                }
            }
            return(strTags.TrimEnd(' '));
        }
        public void Insert(int?ManLevel, int?ManManId, string ManTitle, int?ManStatus, int ManOrder, Guid TgwId)
        {
            HitblMainMan item = new HitblMainMan();

            item.ManLevel = ManLevel;

            item.ManManId = ManManId;

            item.ManTitle = ManTitle;

            item.ManStatus = ManStatus;

            item.ManOrder = ManOrder;

            item.TgwId = TgwId;


            item.Save(UserName);
        }
        public void Update(int ManId, int?ManLevel, int?ManManId, string ManTitle, int?ManStatus, int ManOrder, Guid TgwId)
        {
            HitblMainMan item = new HitblMainMan();

            item.MarkOld();
            item.IsLoaded = true;

            item.ManId = ManId;

            item.ManLevel = ManLevel;

            item.ManManId = ManManId;

            item.ManTitle = ManTitle;

            item.ManStatus = ManStatus;

            item.ManOrder = ManOrder;

            item.TgwId = TgwId;

            item.Save(UserName);
        }
 public bool Destroy(object ManId)
 {
     return(HitblMainMan.Destroy(ManId) == 1);
 }
 public bool Delete(object ManId)
 {
     return(HitblMainMan.Delete(ManId) == 1);
 }