示例#1
0
        public string UpdateSupplier(SupplierModel supplier)
        {
            string   result         = string.Empty;
            SUPPLIER supplierEntity = GetSupplierEntity(supplier);

            if (supplierEntity != null)
            {
                _context.Entry(supplierEntity).State = EntityState.Modified;
                _context.SaveChanges();
                result = supplierEntity.SUPLNO;
            }
            return(result);
        }
示例#2
0
        public string UpdatePoDetail(PoDetailModel poDetail)
        {
            string   result         = string.Empty;
            PODETAIL poDetailEntity = GetPoDetailEntity(poDetail);

            if (poDetailEntity != null)
            {
                _context.Entry(poDetailEntity).State = EntityState.Modified;
                _context.SaveChanges();
                result = poDetailEntity.PONO;
            }
            return(result);
        }
示例#3
0
        public string UpdateItem(ITEMModel itemModel)
        {
            string result     = string.Empty;
            ITEM   itemEntity = GetItemEntity(itemModel);

            if (itemEntity != null)
            {
                _context.Entry(itemEntity).State = EntityState.Modified;
                _context.SaveChanges();
                result = itemEntity.ITCODE;
            }
            return(result);
        }
示例#4
0
        public string UpdatePoMaster(PoMasterModel poMaster)
        {
            string   result         = string.Empty;
            POMASTER poMasterEntity = GetPoMasterEntity(poMaster);

            if (poMasterEntity != null)
            {
                _context.Entry(poMasterEntity).State = EntityState.Modified;
                _context.SaveChanges();
                result = poMasterEntity.PONO;
            }
            return(result);
        }