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

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

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

            this.WMS_M001_ProductRepository.SetValues(WMS_M001_Product, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }