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

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

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

            this.ERP_C003_CustomerRepository.SetValues(ERP_C003_Customer, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }