예제 #1
0
        public void UpdateCategory(Category param)
        {
            // Get sysdate
            var currentDate = DateTime.Now;

            // Set item
            var entity = GetSingle<Category>(param.CategoryCd, true);
            entity.CategoryName = param.CategoryName;
            entity.CategorySearchName = param.CategorySearchName;
            entity.CategoryDiv = param.CategoryDiv;
            entity.SortKey = param.SortKey;
            entity.DeleteFlag = param.DeleteFlag;
            entity.UpdateUser = PageHelper.UserName;
            entity.UpdateDate = currentDate;
        }
예제 #2
0
        public void InsertCategory(SaveDataModel inputObject)
        {
            // Get sysdate
            var currentDate = DateTime.Now;

            // Set item
            var entity = new Category();
            entity.CategoryCd = inputObject.CategoryCd;
            entity.CategoryName = inputObject.CategoryName;
            entity.CategorySearchName = inputObject.CategorySearchName;
            entity.CategoryDiv = inputObject.CategoryDiv;
            entity.Notes = string.Empty;
            entity.SortKey = inputObject.SortKey;
            entity.CreateUser = PageHelper.UserName;
            entity.CreateDate = currentDate;
            entity.UpdateUser = PageHelper.UserName;
            entity.UpdateDate = currentDate;
            entity.DeleteFlag = inputObject.DeleteFlag;

            EntityManager.Categories.InsertOnSubmit(entity);

            // Submit
            EntityManager.SubmitChanges();
        }
예제 #3
0
 partial void DeleteCategory(Category instance);
예제 #4
0
 partial void UpdateCategory(Category instance);
예제 #5
0
 partial void InsertCategory(Category instance);