public override void setCheckBoxes() { SystemMaterial sysmat = SystemMaterials.FirstOrDefault(x => x.Name == "MIRADRAIN 6000 XL (VERTICAL ONLY)"); if (sysmat != null) { SystemMaterials.FirstOrDefault(x => x.Name == "MIRASTICK ADHESIVE (GLUE DOWN DRAIN MAT)").IsMaterialChecked = sysmat.IsMaterialChecked; } }
public override void setCheckBoxes() { SystemMaterial sm = SystemMaterials.FirstOrDefault(x => x.Name == "PINS & LOADS"); if (sm != null) { sm.IsMaterialChecked = totalSqft > 0 ? true : false; } sm = SystemMaterials.FirstOrDefault(x => x.Name == "PARAMASTIC AND PARASTICK AND DRY (FOR PENETRATIONS)"); if (sm != null) { sm.IsMaterialChecked = riserCount > 0 ? true : false; } }
public override void JobSetup_OnJobSetupChange(object sender, EventArgs e) { JobSetup Js = sender as JobSetup; if (Js != null) { additionalTermBarLF = Js.AdditionalTermBarLF; insideOutsideCornerDetails = Js.InsideOutsideCornerDetails; superStopFooting = Js.SuperStopAtFooting; rearMidLagging = Js.RearMidLagging; rakerCornerBases = Js.RakerCornerBases; cementBoardDetail = Js.CementBoardDetail; rockPockets = Js.RockPockets; parasealFoundation = Js.ParasealFoundation; } base.JobSetup_OnJobSetupChange(sender, e); SystemMaterial SM = SystemMaterials.FirstOrDefault(x => x.Name == "LABOR FOR ALL PENETRATIONS, CEMENT BOARD, LAGGING PREP"); SM.Hours = (cementBoardDetail / 30) * 16 + (rakerCornerBases / 12) * 16 + (riserCount / 20) * 8 + (rockPockets / 8) * 16 + (rearMidLagging / 280) * 16; SM.LaborExtension = SM.Hours == 0 ? 0 : SM.SetupMinCharge > SM.Hours ? SM.SetupMinCharge * laborRate : SM.Hours * laborRate; SM.LaborUnitPrice = laborRate;//SM.LaborExtension / SM.Qty; }