예제 #1
0
        public string AddSupplier(SupplierModel supplier)
        {
            string result = string.Empty;

            SUPPLIER supplierEntity = GetSupplierEntity(supplier);

            if (supplierEntity != null)
            {
                _context.SUPPLIERs.Add(supplierEntity);
                _context.SaveChanges();
                result = supplierEntity.SUPLNO;
            }
            return(result);
        }
예제 #2
0
        public string AddPoDetail(PoDetailModel poDetail)
        {
            string result = string.Empty;

            PODETAIL poDetailEntity = GetPoDetailEntity(poDetail);

            if (poDetailEntity != null)
            {
                _context.PODETAILs.Add(poDetailEntity);
                _context.SaveChanges();
                result = poDetailEntity.PONO;
            }
            return(result);
        }
예제 #3
0
        public string AddItem(ITEMModel itemModel)
        {
            string result = string.Empty;

            ITEM itemEntity = GetItemEntity(itemModel);

            if (itemEntity != null)
            {
                _context.ITEMs.Add(itemEntity);
                _context.SaveChanges();
                result = itemEntity.ITCODE;
            }
            return(result);
        }
예제 #4
0
        public string AddPoMaster(PoMasterModel poMaster)
        {
            string result = string.Empty;

            POMASTER poMasterEntity = GetPoMasterEntity(poMaster);

            if (poMasterEntity != null)
            {
                _context.POMASTERs.Add(poMasterEntity);
                _context.SaveChanges();
                result = poMasterEntity.PONO;
            }
            return(result);
        }