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

            ERP_C004_Supplier.CreateUser = tempUser.UserName;
            ERP_C004_Supplier.CompCode   = tempUser.CompCode;
            ERP_C004_Supplier.Validate();
            this.ERP_C004_SupplierRepository.Add(ERP_C004_Supplier);
            this.runtimeService.Commit();
        }
Exemplo n.º 2
0
        public void Update(ERP_C004_Supplier ERP_C004_Supplier)
        {
            ERP_C004_Supplier.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.ERP_C004_SupplierRepository.SetValues(ERP_C004_Supplier, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }