Exemplo n.º 1
0
        private void btnVersionOld_Click(object sender, EventArgs e)
        {
            var old = new FormMain();
            old.ShowDialog();

            ResetControls();
            VisibleControlAddPcb(false);
            _currentModel = new Model();
            _currentPo = new PackingPO();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Trả về QtyPO và Remains theo workingOder và PoNo
        /// </summary>
        /// <param name="modelNo">Model</param>
        /// <param name="poNo">PO</param>
        private bool GetQtyPoAndRemainsByWorkingOderAndPoNo(string modelNo, string poNo)
        {
            _iqcService = new IqcService();
            _currentPo = _iqcService.GetPoByModelAndPoNo(modelNo, poNo);
            if (_currentPo != null)
            {
                lblQtyPO.Text = _currentPo.QuantityPO.ToString(CultureInfo.InvariantCulture);
                lblRemains.Text = _currentPo.QuantityRemain.ToString(CultureInfo.InvariantCulture);

                return true;
            }
            return false;
        }
Exemplo n.º 3
0
        private void btnXuatLe_Click(object sender, EventArgs e)
        {
            var xuatLe = new RetailProducts();
            xuatLe.ShowDialog();

            ResetControls();
            VisibleControlAddPcb(false);
            _currentModel = new Model();
            _currentPo = new PackingPO();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Insert PO
        /// </summary>
        /// <param name="modelId"></param>
        /// <param name="po"></param>
        /// <param name="qtyPo"></param>
        /// <param name="createdBy"></param>
        public void InsertPo(string modelId, string po, int qtyPo, string createdBy)
        {
            var poAdd = new PackingPO()
            {
                ModelID = modelId,
                PO_NO = po,
                QuantityPO = qtyPo,
                QuantityRemain = qtyPo,
                DateCreated = DateTime.Now,
                TimeCreated = DateTime.Now.TimeOfDay,
                CreateBy = createdBy,
            };

            try
            {
                Repository.Insert(poAdd);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }