예제 #1
0
        public void Insert(string OptionName, string FieldName, int?SearchTypeID, string Description)
        {
            DDSearchOption item = new DDSearchOption();

            item.OptionName = OptionName;

            item.FieldName = FieldName;

            item.SearchTypeID = SearchTypeID;

            item.Description = Description;


            item.Save(UserName);
        }
예제 #2
0
        public void Update(int OptionID, string OptionName, string FieldName, int?SearchTypeID, string Description)
        {
            DDSearchOption item = new DDSearchOption();

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

            item.OptionID = OptionID;

            item.OptionName = OptionName;

            item.FieldName = FieldName;

            item.SearchTypeID = SearchTypeID;

            item.Description = Description;

            item.Save(UserName);
        }
예제 #3
0
 public bool Destroy(object OptionID)
 {
     return(DDSearchOption.Destroy(OptionID) == 1);
 }
예제 #4
0
 public bool Delete(object OptionID)
 {
     return(DDSearchOption.Delete(OptionID) == 1);
 }