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

            WMS_MatConsume_ActMat.CreateUser = tempUser.UserName;
            WMS_MatConsume_ActMat.Validate();
            this.WMS_MatConsume_ActMatRepository.Add(WMS_MatConsume_ActMat);
            this.runtimeService.Commit();
        }
Пример #2
0
        public void Update(WMS_MatConsume_ActMat WMS_MatConsume_ActMat)
        {
            WMS_MatConsume_ActMat.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_MatConsume_ActMat.ModifyUser = tempUser.UserName;
            WMS_MatConsume_ActMat.Validate();
            var existstb_Sys_Menu = this.GetById(WMS_MatConsume_ActMat.Id);

            this.WMS_MatConsume_ActMatRepository.SetValues(WMS_MatConsume_ActMat, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }