Exemple #1
0
 public static void Upload(QCReport6Month report, bool isUpdating = false)
 {
     CallAsync(() =>
     {
         _connectClient.Service.UploadQCReport6Month(CheckReportSerializedData(report));
         SaveReportUpload(report);
     });
 }
Exemple #2
0
        public static void Create(PDFDocument document, QCReport6Month qcReport6Month)
        {
            AddImageFromResource(document, "skillray_small", 61, 770);
            AddImageFromResource(document, "webcal_print_logo", 200, 770);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_CENTRE_QC_CHECK, 400, 770, 560, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_CENTRE_NAME, 61, 725, 480, 25, document.GetRegularFont(true), Element.ALIGN_LEFT);
            AbsolutePositionText(document, qcReport6Month.CentreName, 150, 725, 480, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_CENTRE_SEAL_NUMBER, 61, 700, 480, 25, document.GetRegularFont(true), Element.ALIGN_LEFT);
            AbsolutePositionText(document, qcReport6Month.CentreSealNumber, 150, 700, 480, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_DECLARATION, 61, 675, 480, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_3, 61, 600, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_3_QUESTION_1, qcReport6Month.Section3Question1, 61, 575, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_3_QUESTION_2, qcReport6Month.Section3Question1, 61, 550, 480, 25);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_4, 61, 525, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_4_QUESTION_1, qcReport6Month.Section4Question1, 61, 500, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_4_QUESTION_2, qcReport6Month.Section4Question2, 61, 475, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_4_QUESTION_3, qcReport6Month.Section4Question3, 61, 450, 480, 25);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_5, 61, 425, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_5_QUESTION_1, qcReport6Month.Section5Question1, 61, 400, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_5_QUESTION_2, qcReport6Month.Section5Question1, 61, 375, 480, 25);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_7, 61, 350, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_7_QUESTION_1, qcReport6Month.Section7Question1, 61, 325, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_7_QUESTION_2, qcReport6Month.Section7Question1, 61, 300, 480, 25);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_9, 61, 275, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_9_10_QUESTION_1, qcReport6Month.CalibrationSection9And10Question1, 61, 250, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_9_10_QUESTION_2, qcReport6Month.CalibrationSection9And10Question2, 61, 225, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_9_10_QUESTION_3, qcReport6Month.CalibrationSection9And10Question3, 61, 200, 480, 25);

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_SECTION_10, 61, 175, 480, 25, document.GetRegularFont(true, true), Element.ALIGN_LEFT);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_10_QUESTION_1, qcReport6Month.DataManagementSection10Question1, 61, 150, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_10_QUESTION_2, qcReport6Month.DataManagementSection10Question2, 61, 125, 480, 25);
            AddAnswerSection(document, Resources.TXT_QC_6_MONTH_SECTION_10_QUESTION_3, qcReport6Month.DataManagementSection10Question3, 61, 100, 480, 25);

            document.AddPage();

            AbsolutePositionText(document, Resources.TXT_QC_6_MONTH_STATE_REASONS, 61, 767, 500, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);
            document.DrawBox(61, 525, 464, 200);
            AbsolutePositionText(document, qcReport6Month.FurtherDetails, 71, 615, 480, 730, document.GetRegularFont(false), Element.ALIGN_LEFT);

            document.DrawBox(61, 450, 225, 35);
            AbsolutePositionText(document, $"{Resources.TXT_QC_REPORT_CHECK_TECHNICIAN} {qcReport6Month.Name}", 65, 480, 255, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);

            document.DrawBox(61, 400, 225, 35);
            AbsolutePositionText(document, Resources.TXT_QC_REPORT_CHECK_SIGNATURE, 65, 430, 450, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);
            TryAddSignature(document, qcReport6Month.Name, 100, 390);

            document.DrawBox(61, 350, 225, 35);
            AbsolutePositionText(document, Resources.DATE + DateTime.Now.ToString(Constants.ShortYearDateFormat), 65, 380, 255, 25, document.GetRegularFont(false), Element.ALIGN_LEFT);
        }
        public CentreCheckViewModel(QCReport6Month qcReport6Month)
        {
            if (qcReport6Month == null)
            {
                return;
            }

            CentreName       = qcReport6Month.CentreName;
            SealNumber       = qcReport6Month.CentreSealNumber;
            Date             = qcReport6Month.Date;
            Name             = qcReport6Month.Name;
            DocumentId       = qcReport6Month.Id;
            DocumentTypeEnum = DocumentType.QCReport6Month;
        }
Exemple #4
0
 private void FromQCReport6Month(QCReport6Month report)
 {
     Type           = "QC 3 Month Walkaround";
     Created        = report.Created;
     TechnicianName = report.Name;
 }
 public void UploadQCReport6Month(QCReport6Month report)
 {
     UploadReport(report);
 }
 public void AutoUploadQCReport6Month(QCReport6Month report)
 {
     AutoUploadReport(report);
 }