Ejemplo n.º 1
0
        public void UpdateMOMOTagLine(MOTagLine MTL)
        {
            MOTagCount _moTagCount = new MOTagCount();

            _moTagCount = MOTagLine2Entity(MTL);
            _moTagCountLogic.Update(_moTagCount);
        }
Ejemplo n.º 2
0
        public void CreateMOTagLine(MOTagLine MTL)
        {
            MOTagCount _moTagLine = new MOTagCount();

            _moTagLine = MOTagLine2Entity(MTL);
            _moTagCountLogic.Create(_moTagLine);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Converts a MOTagLine to a EF MOTagHeader Enttity
        /// </summary>
        /// <param name="_t"></param>
        /// <returns></returns>
        private MOTagCount MOTagLine2Entity(MOTagLine _t)
        {
            MOTagCount MOTCount = new MOTagCount();

            MOTCount.SeqNum          = _t.SeqNum;
            MOTCount.Component_No    = _t.Component_No;
            MOTCount.Component_Desc  = _t.Component_Desc;
            MOTCount.UM              = _t.UM;
            MOTCount.Qty_Per         = _t.Qty_Per;
            MOTCount.Issued_Qty      = _t.Issued_Qty;
            MOTCount.LooseCountQty   = _t.LooseCountQty;
            MOTCount.LooseReCountQty = _t.LooseReCountQty;
            MOTCount.MOTagCountKey   = _t.MOTagLineID;
            MOTCount.MOTagHeaderKey  = _t.MOTagID;

            return(MOTCount);
        }