Esempio n. 1
0
        public void Create(WMS_C102_Area WMS_C102_Area)
        {
            WMS_C102_Area.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_C102_Area.CreateUser = tempUser.UserName;
            WMS_C102_Area.Validate();
            this.WMS_C102_AreaRepository.Add(WMS_C102_Area);
            this.runtimeService.Commit();
        }
Esempio n. 2
0
        public void Update(WMS_C102_Area WMS_C102_Area)
        {
            WMS_C102_Area.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.WMS_C102_AreaRepository.SetValues(WMS_C102_Area, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }