Пример #1
0
        public void Create(WMS_MatConsume_ActMatDetail WMS_MatConsume_ActMatDetail)
        {
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_MatConsume_ActMatDetail.Validate();
            this.WMS_MatConsume_ActMatDetailRepository.Add(WMS_MatConsume_ActMatDetail);
            this.runtimeService.Commit();
        }
Пример #2
0
        public void Update(WMS_MatConsume_ActMatDetail WMS_MatConsume_ActMatDetail)
        {
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_MatConsume_ActMatDetail.Validate();
            var existstb_Sys_Menu = this.GetById(WMS_MatConsume_ActMatDetail.Id);

            this.WMS_MatConsume_ActMatDetailRepository.SetValues(WMS_MatConsume_ActMatDetail, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }