Пример #1
0
 public App_ErpOptions(
     JT_FieldServiceOptions fieldServiceOptions,
     JT_TechnicianStatus defaultArriveStatus,
     JT_TechnicianStatus defaultDepartStatus,
     JT_MiscellaneousCodes defaultServiceTicketArriveStatus)
 {
     _fieldServiceOptions              = fieldServiceOptions;
     _defaultTechnicianArriveStatus    = defaultArriveStatus;
     _defaultTechnicianDepartStatus    = defaultDepartStatus;
     _defaultServiceTicketArriveStatus = defaultServiceTicketArriveStatus;
 }
Пример #2
0
        public App_Expense(JT_MiscellaneousCodes miscCode, App_WorkTicket workTicket)
        {
            _id         = 0;
            _workTicket = workTicket;

            Date               = System.DateTime.Now.Date;
            Category           = miscCode.MiscellaneousCode;
            BillingDescription = miscCode.Description;

            string[] brokenDescription = BreakDescription(miscCode.AddtlDescNum);
            if (brokenDescription != null)
            {
                ChargeCode    = brokenDescription[0];
                Quantity      = 0;
                UnitOfMeasure = brokenDescription[1];
                UnitPrice     = double.Parse(brokenDescription[2]);
            }

            UnitCost               = 0; // puke
            IsReimbursable         = false;
            IsChargeableToCustomer = false;
        }