Ejemplo n.º 1
0
 private void SubPopUrl_Load(object sender, EventArgs e)
 {
     label5.Text = GlobalSite.Site; ;
     label3.Text = GlobalUserName.UserName;
     label4.Text = GlobalNoteCarId.notecarid;
     SubPopUrl objsuburl = new SubPopUrl();
     objsuburl.MdiParent = this.MdiParent;
 }
Ejemplo n.º 2
0
        private void dataGridView4_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            string data2 = string.Empty;
            if (e.RowIndex != -1)
            {
                purl = dataGridView4.SelectedCells[0].RowIndex;
                string data0 = dataGridView4.Rows[purl].Cells[0].Value.ToString();
                string data1 = dataGridView4.Rows[purl].Cells[1].Value.ToString();
                if (data1 != "")
                {
                    Regex obj = new Regex("^([1-9]|0[1-9]|1[0-9]|2[0-9]|3[0-1])[- / .]([1-9]|0[1-9]|1[0-2])[- / .]([1-9]|0[1-9]|1[0-9])$");
                    if (obj.IsMatch(data1.ToString()))
                    {
                    }
                    else
                    {
                        data2 = dataGridView4.Rows[purl].Cells[2].Value.ToString();
                        if ((data2 == "UrlPend") || (data2 == "QcPend"))
                        {
                            string data5 = dataGridView4.Rows[purl].Cells[4].Value.ToString();
                            string data4 = dataGridView4.Rows[purl].Cells[3].Value.ToString();
                            if (e.ColumnIndex == 2)
                            {
                                if (data2 == "UrlPend")
                                {
                                    Cursor.Current = Cursors.WaitCursor;
                                    GlobalNoteCarId.notecarid = data5;
                                    GlobalSite.Site = data1;
                                    GlobalUrlid.Urlid = Convert.ToInt32(data0);
                                    SubPopUrl objsuburl = new SubPopUrl();
                                    // objsuburl.MdiParent = this;
                                    objsuburl.ShowDialog();
                                    // objsuburl.BringToFront();
                                    Cursor.Current = Cursors.Default;
                                }
                            }
                            if (e.ColumnIndex == 2)
                            {
                                Cursor.Current = Cursors.WaitCursor;
                                data2 = dataGridView4.Rows[purl].Cells[2].Value.ToString();
                                if (data2 == "QcPend")
                                {
                                    ////button6.Enabled = true;
                                    ////button4.Enabled = true;
                                    button6.Visible = false;
                                    button4.Visible = false; ;
                                    data5 = dataGridView4.Rows[purl].Cells[4].Value.ToString();
                                    string data6 = dataGridView4.Rows[purl].Cells[5].Value.ToString();
                                    string data7 = dataGridView4.Rows[purl].Cells[7].Value.ToString();
                                    string data8 = dataGridView4.Rows[purl].Cells[8].Value.ToString();
                                    GlobalpendURL.pendURL = data6;
                                    GlobalUrlsid.Urlsid = Convert.ToInt32(data0);
                                    GlobalNoteCarId.notecarid = data5;
                                    Globalpenddate.penddate = data8;
                                    lblpostsite.Visible = false;
                                    comboBox1.Visible = false;
                                   //Main objfrm = new Main();
                                    //objfrm.Show();
                                   //------------------------------------------start-------------------------------------
                                    try
                                    {
                                        com.unitedcarexchange.CarsService objService = new com.unitedcarexchange.CarsService();
                                        IList<com.unitedcarexchange.UsedCarsInfo> obUsedCarsInfo = new List<com.unitedcarexchange.UsedCarsInfo>();
                                        obUsedCarsInfo = objService.FindCarID(data5);
                                        // FillCarDetails(obUsedCarsInfo);
                                        QCCarDetails(obUsedCarsInfo);
                                        DataSet dsSubDet = new DataSet();
                                        int cid = Convert.ToInt32(GlobalNoteCarId.notecarid);
                                        dsSubDet = objSubmitionDetailsBL.GetSubmitionDetailsByCarId(cid);
                                        dgvpostforpostedcarid.DataSource = dsSubDet.Tables[0];
                                        DataGridViewColumn clmpostmn0 = dgvpostforpostedcarid.Columns[0];
                                        clmpostmn0.Width = 80;
                                        DataGridViewColumn clmpostmn1 = dgvpostforpostedcarid.Columns[1];
                                        clmpostmn1.Width = 80;
                                        DataGridViewColumn clmpostmn2 = dgvpostforpostedcarid.Columns[2];
                                        clmpostmn2.Width = 75;
                                        tabControl1.SelectedIndex = 4;
                                        if (tabControl1.SelectedIndex == 4)
                                        {
                                            circularProgressControl2.Start();
                                            panel2.Visible = true;
                                            circularProgressControl2.Visible = true;

                                            webBrowser1.Navigate(data6);
                                            webBrowser1.Visible = true;
                                            pnlpoststeps.Visible = false;

                                            label34.Visible = false;
                                            label35.Visible = false;
                                            label36.Visible = false;
                                            label37.Visible = false;
                                            comboBox1.Text = "";
                                            label40.Visible = true;
                                            label41.Visible = true;
                                            // dgvpostforpostedcarid.Visible = false;
                                            comboBox2.Visible = false;
                                            button5.Visible = false;
                                            button7.Visible = false;

                                            textBox2.Visible = false;
                                            lblemail.Visible = false;
                                            label25.Visible = false;
                                            btnpostupload.Visible = false;
                                            btnpostsubmit.Visible = false;
                                            btnuploadtolive.Visible = false;

                                            circularProgressControl2.Stop();
                                            panel2.Visible = false;
                                            circularProgressControl2.Visible = false;

                                            //button4.Visible = true;
                                            //button6.Visible = true;
                                            //button4.Enabled = true;
                                            //button6.Enabled = true;
                                        }
                                    }
                                    catch (Exception ex)
                                    {
                                    }
                                    //--------------end-----------------
                                   GlobalsiteId.siteId = Convert.ToInt32(data7);
                                    Cursor.Current = Cursors.Default;
                                    //QCFormcheck objqcformchech = new QCFormcheck();
                                    //objqcformchech.Show();
                                }
                            }
                        }
                    }
                }
            }
        }