Beispiel #1
0
        public JobOperListDataSet GetOperationListDs()
        {
            var jobOpSearch = new JobOperSearch(this.Session.ConnectionPool);

            bool pgs;

            try
            {
                JobOperListDataSet jobOperList = jobOpSearch.GetList("JobNum = \'" + this.Jobnumber + "\'", 0, 0, out pgs);
                return(jobOperList);
            }
            catch
            {
                return(null);
            }
        }
Beispiel #2
0
        public JobOperation(Job j, int oper, int assy = 0)
        {
            this.job       = j;
            this.operation = oper;
            this.assembly  = assy;

            try
            {
                JobOp     = new JobOperSearch(job.Session.ConnectionPool);
                JobOpData = new JobOperSearchDataSet();
                JobOpData = JobOp.GetByID(job.Jobnumber, this.assembly, this.operation);
            }
            catch (Exception JobOpInit)
            {
                Log.LogThis(JobOpInit.Message, eloglevel.error);
                throw JobOpInit;
            }
        }