Beispiel #1
0
        public bool FeedLedger(StockLedger _ledger) {

            try {

                GenaricRepository<StockLedger> _GRNRepo = new GenaricRepository<StockLedger>(new ItrackContext());
                _GRNRepo.Add(_ledger);
                return true;
            }
            catch (Exception ex) {
                return false;
            }



        }
Beispiel #2
0
        private void feedLedger(GrnItems _item) {
            try {

                StockLedger _ledger = new StockLedger();
                _ledger.ItemCode = _item.ItemCode;
                _ledger.ItemType = "";
                _ledger.TransactionBy = "Admin";
                _ledger.TransactionTime = DateTime.Now;
                _ledger.TransactionType = "GRN";
                _ledger.DocNo = _item.GRNID;
                _ledger.GetTransactionID();
                
                
                _ledger.FeedLedger(_ledger);
            }
            catch (Exception ex) {

            }
        }