Esempio n. 1
0
        private void btn_Create_Click(object sender, EventArgs e)
        {
            RtQ rtq = new RtQ(rtqId, txt_CustomerName.Text, txt_custAdd.Text, rfqId.ToString(), txt_rtqTxt.Text, lst_customItems, contact);

            Common_Rules.UpdateDocumentResponse("RequestForQuotation_Report", rfqId.ToString());
            string[]    form   = null;
            PDF_Preview viewer = new PDF_Preview(form);

            viewer.Text      = "Refusal to Quote";
            viewer.MdiParent = this.MdiParent;
            viewer.Show();
            this.Close();
            documents.Clear();
        }
 private void btn_Create_Click(object sender, EventArgs e)
 {
     if (validateDates() != null)
     {
         if (customer != null && parts != null && customPart != null)
         {
             string[]    form   = null;
             RfQ         rfq    = new RfQ(rfqId.ToString(), customer, parts, customPart, deliveryDates, contact);
             PDF_Preview viewer = new PDF_Preview(form);
             viewer.Text      = "Request for Quotation";
             viewer.MdiParent = this.MdiParent;
             viewer.Show();
             customPart.Clear();
             this.Close();
         }
     }
 }
Esempio n. 3
0
        private void btn_Create_Click(object sender, EventArgs e)
        {
            custID      = custID_tb.Text;
            text        = txt_tb.Text;
            workOrderID = rgaID_tb.Text;
            custName    = custName_tb.Text;

            if (workOrderID == "")
            {
                MessageBox.Show("Please select a Work Order ID from the dropdown menu.");
            }
            else
            {
                RGArequest rga = new RGArequest(rgaID, custName, custID, workOrderID, text);
                MessageBox.Show("RGA Request successfully created!");

                string[]    comboType = { };
                PDF_Preview viewer    = new PDF_Preview(comboType);
                viewer.MdiParent = this.MdiParent;
                viewer.Show();
                this.Close();
            }
        }