public App_WorkTicket(JT_WorkTicket workTicket, JT_WorkTicket workTicketStepZero, JT_WorkTicketClass workTicketClass,
                              App_RepairItem repairItem, App_ServiceAgreement serviceAgreement, JT_ClassificationCode problemCode,
                              JT_ClassificationCode coverageExceptionCode)
        {
            _workTicket            = workTicket;
            _workTicketStepZero    = workTicketStepZero;
            _workTicketClass       = workTicketClass;
            _repairItem            = repairItem;
            _serviceAgreement      = serviceAgreement;
            _problemCode           = problemCode;
            _coverageExceptionCode = coverageExceptionCode;


            // puke... need service agreement (hdr, dtl, pmdtl)
            // puke... need sales order header for address info


            _hdrServiceContractCode = workTicket.HdrServiceContractCode;
            _statusCode             = workTicket.StatusCode;
            _statusDescription      = "PUKE";        // comes from JT_Status.Description -- need to add
            _dtlWarrantyRepair      = workTicket.DtlWarrantyRepair;
            _dtlCoveredOnContract   = workTicket.DtlCoveredOnContract;
            _activityCode           = workTicket.ActivityCode;
            _dtlMfgSerialNo         = workTicket.DtlMfgSerialNo;
        }
        public App_CurrentWorkTicket()
        {
            // empty
            _workTicket       = App.Database.RetrieveCurrentWorkTicket();
            _workTicketText   = App.Database.RetrieveTextFromCurrentWorkTicket();
            _salesOrderHeader = App.Database.RetrieveSalesOrderHeaderFromCurrentWorkTicket();
            _customer         = App.Database.RetrieveCustomerFromCurrentWorkTicket();
            _repairItem       = App.Database.RetrieveRepairItemFromCurrentWorkTicket();
            //_partsList = App.Database.RetrievePartsListFromCurrentWorkTicket();

            //_timeEntry = App.Database.
        }
Ejemplo n.º 3
0
 public JT_WorkTicket(JT_WorkTicket workTicket)
 {
     this.SalesOrderNo               = workTicket.SalesOrderNo;
     this.WTNumber                   = workTicket.WTNumber;
     this.WTStep                     = workTicket.WTStep;
     this.Description                = workTicket.Description;
     this.HdrContactCode             = workTicket.HdrContactCode;
     this.DtlRepairItemCode          = workTicket.DtlRepairItemCode;
     this.DtlInternalSerialNo        = workTicket.DtlInternalSerialNo;
     this.HdrServiceContractCode     = workTicket.HdrServiceContractCode;
     this.StatusCode                 = workTicket.StatusCode;
     this.DtlWarrantyRepair          = workTicket.DtlWarrantyRepair;
     this.DtlMfgSerialNo             = workTicket.DtlMfgSerialNo;
     this.DtlCoveredOnContract       = workTicket.DtlCoveredOnContract;
     this.DtlPreventitiveMaintenance = workTicket.DtlPreventitiveMaintenance;
     this.ActivityCode               = workTicket.ActivityCode;
     this.DtlCoverageExceptionCode   = workTicket.DtlCoverageExceptionCode;
 }
        public App_WorkTicket(JT_WorkTicket workTicket, JT_WorkTicket workTicketStepZero, JT_WorkTicketClass workTicketClass,
                              App_RepairItem repairItem, App_ServiceAgreement serviceAgreement, JT_ClassificationCode problemCode,
                              JT_ClassificationCode coverageExceptionCode)
        {
            _workTicket            = workTicket;
            _workTicketStepZero    = workTicketStepZero;
            _workTicketClass       = workTicketClass;
            _repairItem            = repairItem;
            _serviceAgreement      = serviceAgreement;
            _problemCode           = problemCode;
            _coverageExceptionCode = coverageExceptionCode;

            _hdrServiceContractCode = workTicket.HdrServiceContractCode;
            _statusCode             = workTicket.StatusCode;
            _statusDescription      = ""; // comes from JT_Status.Description -- need to add TODO
            _dtlWarrantyRepair      = workTicket.DtlWarrantyRepair;
            _dtlCoveredOnContract   = workTicket.DtlCoveredOnContract;
            _activityCode           = workTicket.ActivityCode;
            _dtlMfgSerialNo         = workTicket.DtlMfgSerialNo;

            _statusDate = workTicket.StatusDate;        // dch rkl 12/01/2016 Add Status Date
        }
Ejemplo n.º 5
0
        public JT_WorkTicket(JT_WorkTicket workTicket)
        {
            this.SalesOrderNo           = workTicket.SalesOrderNo;
            this.WTNumber               = workTicket.WTNumber;
            this.WTStep                 = workTicket.WTStep;
            this.Description            = workTicket.Description;
            this.HdrContactCode         = workTicket.HdrContactCode;
            this.DtlRepairItemCode      = workTicket.DtlRepairItemCode;
            this.DtlInternalSerialNo    = workTicket.DtlInternalSerialNo;
            this.HdrServiceContractCode = workTicket.HdrServiceContractCode;
            this.StatusCode             = workTicket.StatusCode;
            this.DtlWarrantyRepair      = workTicket.DtlWarrantyRepair;
            this.DtlCoveredOnContract   = workTicket.DtlCoveredOnContract;

            // dch rkl 11/30/2016 Field was spelled incorrectly
            //this.DtlPreventitiveMaintenance = workTicket.DtlPreventitiveMaintenance;
            this.DtlPreventiveMaintenance = workTicket.DtlPreventiveMaintenance;

            this.ActivityCode             = workTicket.ActivityCode;
            this.DtlCoverageExceptionCode = workTicket.DtlCoverageExceptionCode;

            // dch rkl 12/01/2016
            this.StatusDate = workTicket.StatusDate;
        }