示例#1
0
        private void AddNewHistory(int _ekanbanHisId)
        {
            try
            {
                AppHistory his = new AppHistory
                {
                    SysActionCode = (int)SysActionCode.EKANBAN_ADD_NEW_ITEM,
                    DateTime      = DateTime.Now,
                    Description   = $"Add new Ekanban information: {SelectedEKanbanDevice.Name}",
                    Remark        = $"PO:{SelectedSchedule.PoNumber}, Line:{SelectedProductionLine.LineName}, Sequence:{SelectedSequence.SequenceNo}",
                };
                SysHistoryQuery.AddNewAppHistory(his);
                EKanbanAddHis addHis = new EKanbanAddHis
                {
                    DateTime            = DateTime.Now,
                    Added               = true,
                    EKanbanHis_Id       = _ekanbanHisId,
                    OriginalSequence_Id = SelectedSequence.id,
                    SequenceNo          = SelectedSequence.SequenceNo,
                    SequenceQty         = SelectedSequence.Quantity,
                };

                SysHistoryQuery.AddNewAddHistory(addHis);
            }
            catch (Exception e)
            { }
        }
示例#2
0
        public void AddNewSequenceViewer(Schedule _schedule)
        {
            SequenceCounter++;
            SequenceCtrl seqCtrl = new SequenceCtrl(_schedule, true);

            SequenceLoader.Controls.Add(new SequenceItem(seqCtrl, SequenceCounter));

            AppHistory his = new AppHistory
            {
                SysActionCode = (int)(SysActionCode.VIEW_SEQUENCE),
                Remark        = $"PO:{(_schedule as Schedule).PoNumber}",
            };

            SysHistoryQuery.AddNewAppHistory(his);
        }