Exemplo n.º 1
0
 public static void AddHeaderCellDetailMill(PdfPTable tableLayout, MillDetailVM millDetail, int resultCount)
 {
     PDFGenerateUtilityHelper.AddCellToBody(tableLayout, millDetail.TCNumber, 1);
     PDFGenerateUtilityHelper.AddCellToBody(tableLayout, millDetail.TCDate.ToShortDateString(), 1);
     PDFGenerateUtilityHelper.AddCellToBody(tableLayout, millDetail.MillName, 1);
     PDFGenerateUtilityHelper.AddCellToBody(tableLayout, resultCount.ToString(), 1);
 }
Exemplo n.º 2
0
 public static void UpdateMillDetail(this MillDetail millDetail, MillDetailVM millDetailVM)
 {
     millDetail.Description     = millDetailVM.Description;
     millDetail.HeatOrLotNumber = millDetailVM.HeatOrLotNumber;
     millDetail.MillName        = millDetailVM.MillName;
     millDetail.ProductNumber   = millDetailVM.ProductNumber;
     millDetail.TCDate          = millDetailVM.TCDate;
     millDetail.TCNumber        = millDetailVM.TCNumber;
 }
        private string GetLabOrMillTCDate(LabReportVM labReport, MillDetailVM millDetail)
        {
            if (millDetail != null && !string.IsNullOrWhiteSpace(millDetail.MillName) && !string.IsNullOrWhiteSpace(millDetail.TCNumber))
            {
                return(millDetail.TCDate.ToString("dd/MM/yyyy"));
            }

            if (labReport != null && !string.IsNullOrWhiteSpace(labReport.LabName) && !string.IsNullOrWhiteSpace(labReport.TCNumber))
            {
                return(labReport.TCDate.ToString("dd/MM/yyyy"));
            }

            return(string.Empty);
        }