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

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

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

            this.ERP_M003_InStoreRepository.SetValues(ERP_M003_InStore, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }