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

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

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

            this.ERP_M001_Product_SemiProductRepository.SetValues(ERP_M001_Product_SemiProduct, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }