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

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

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

            this.ERP_C003_Supplier_FileRepository.SetValues(ERP_C003_Supplier_File, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }