Exemple #1
0
        public formQuoteMaintenance(string quoteNumber, DateTime?sop, DateTime?eop, int?rowId, QuoteTypes quoteType)
        {
            InitializeComponent();

            _context = new QuoteLogContext();

            _quoteType = quoteType;
            _sop       = sop;
            _eop       = eop;
            _rowID     = rowId;

            _quoteMaintenanceController = new QuoteMaintenanceController(quoteNumber, quoteType, this);

            if (_quoteType != QuoteTypes.ModifyExisting)
            {
                gbxLTA.Visible  = btnCSM.Visible = false;
                lblMessage.Text = "CSM and LTA sections will become available after saving.";
            }
            else
            {
                lblMessage.Text = "";
            }

            printDocStatus    = PrintDocStatus.NoActionTaken;
            cbxRepeat.Visible = false;
        }
        public formQuoteMaintenance(string quoteNumber, DateTime?sop, DateTime?eop, int?rowId, QuoteTypes quoteType, string customer,
                                    string customerRfqNumber, string customerPartNumber, string eeiPartNumber, string notes, string oem, string applicationCode,
                                    string applicationName, string functionName, string eau, string program, string nameplate, string programManagerInitials,
                                    string engineeringInitials, string salesInitials, string engineeringMaterialsInitials, string quoteReviewInitials,
                                    string quotePricingInitials, string customerQuoteInitials, string modelYear, string packageNumber, string quoteReason,
                                    string productLine, string printFilePath, string customerQuoteFilePath, string marketSegment, string marketSubsegment,
                                    string minimumOrderQuantity, string awarded, string awardedDate, string straightMaterialCost, string stdHours,
                                    string tooling, string quotePrice, string prototypePrice)
        {
            InitializeComponent();

            _context = new QuoteLogContext();

            _quoteType                    = quoteType;
            _sop                          = sop;
            _eop                          = eop;
            _customer                     = customer;
            _customerRfqNumber            = customerRfqNumber;
            _customerPartNumber           = customerPartNumber;
            _eeiPartNumber                = eeiPartNumber;
            _notes                        = notes;
            _oem                          = oem;
            _applicationCode              = applicationCode;
            _applicationName              = applicationName;
            _functionName                 = functionName;
            _eau                          = eau;
            _program                      = program;
            _nameplate                    = nameplate;
            _programManagerInitials       = programManagerInitials;
            _engineeringInitials          = engineeringInitials;
            _salesInitials                = salesInitials;
            _engineeringMaterialsInitials = engineeringMaterialsInitials;
            _quoteReviewInitials          = quoteReviewInitials;
            _quotePricingInitials         = quotePricingInitials;
            _customerQuoteInitials        = customerQuoteInitials;
            _modelYear                    = modelYear;
            _packageNumber                = packageNumber;
            _quoteReason                  = quoteReason;
            _productLine                  = productLine;
            _printFilePath                = printFilePath;
            _customerQuoteFilePath        = customerQuoteFilePath;
            _marketSegment                = marketSegment;
            _marketSubsegment             = marketSubsegment;
            _awarded                      = awarded;
            _awardedDate                  = awardedDate;
            _straightMaterialCost         = straightMaterialCost;
            _stdHours                     = stdHours;
            _tooling                      = tooling;
            _quotePrice                   = quotePrice;
            _prototypePrice               = prototypePrice;
            _minimumOrderQuantity         = minimumOrderQuantity;
            _rowID                        = rowId;

            _quoteMaintenanceController = new QuoteMaintenanceController(quoteNumber, quoteType, this);

            if (_quoteType != QuoteTypes.ModifyExisting)
            {
                gridControl3.Enabled = btnCSM.Visible = false;
                lblMessage.Text      = "CSM and LTA sections will become available after saving.";
            }
            else
            {
                lblMessage.Text = "";
            }

            printDocStatus    = PrintDocStatus.NoActionTaken;
            cbxRepeat.Visible = false;

            // File Management
            ShowQuotePrintFileInfo();
            ShowCustomerQuoteFileInfo();
        }