Beispiel #1
0
        public void Create(WMS_M105_MatSotre WMS_M105_MatSotre)
        {
            WMS_M105_MatSotre.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_M105_MatSotre.CreateUser = tempUser.UserName;
            WMS_M105_MatSotre.Validate();
            this.WMS_M105_MatSotreRepository.Add(WMS_M105_MatSotre);
            this.runtimeService.Commit();
        }
Beispiel #2
0
        public void Update(WMS_M105_MatSotre WMS_M105_MatSotre)
        {
            WMS_M105_MatSotre.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.WMS_M105_MatSotreRepository.SetValues(WMS_M105_MatSotre, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }