Beispiel #1
0
        private PalletProcess convertToObjFromMaintainInfo(PalletProcess obj, PalletProcessMaintainInfo temp)
        {

            obj.Customer = temp.Customer;
            obj.Process = temp.Process;
            obj.Udt = temp.Udt;
            obj.Cdt = temp.Cdt;
            obj.Editor = temp.Editor;

            return obj;
        }
Beispiel #2
0
        private PalletProcessMaintainInfo convertToMaintainInfoFromObj(PalletProcess temp)
        {
            PalletProcessMaintainInfo palletProcess = new PalletProcessMaintainInfo();

            palletProcess.Customer = temp.Customer;
            palletProcess.Process = temp.Process;
            palletProcess.Editor = temp.Editor;
            palletProcess.Cdt = temp.Cdt;
            palletProcess.Udt = temp.Udt;

            return palletProcess;
        }
Beispiel #3
0
        public void addPalletProcesses(IList<string> arrCheckedCustomer, PalletProcessMaintainInfo palletProcessInfo)
        {
            try
            {

                IUnitOfWork work = new UnitOfWork();

                processRepository.DeletePalletProcessByProcessDefered(work, palletProcessInfo.Process);

                for (int i = 0; i < arrCheckedCustomer.Count(); i++)
                {
                    PalletProcess palletProcessObj = new PalletProcess();

                    palletProcessInfo.Customer = arrCheckedCustomer[i];

                    palletProcessObj = convertToObjFromMaintainInfo(palletProcessObj, palletProcessInfo);

                    processRepository.AddPalletProcessDefered(work, palletProcessObj);

                }

                work.Commit();

            }
            catch (FisException e)
            {
                logger.Error(e.mErrmsg);
                throw e;
            }
            catch (Exception e)
            {
                logger.Error(e.Message);
                throw;
            }
        }