protected void getAddintionalProdSrvList()
        {
            ArrayList rfqProdSrvList = (ArrayList)Session[SessionFactory.CREATE_POTENTIAL_SELECTED_POTN_SPEC_MAP];

            if (rfqProdSrvList == null)
            {
                rfqProdSrvList = new ArrayList();
            }

            BackEndObjects.RFQProductServiceDetails rfqSpec = new RFQProductServiceDetails();
            rfqSpec.setPrdCatId(Session[SessionFactory.CREATE_POTENTIAL_SELECTED_PRODUCT_CAT].ToString());
            rfqSpec.setFeatId("ft_dummy");
            rfqSpec.setFromSpecId("");
            rfqSpec.setToSpecId("");
            rfqSpec.setSpecText(TextBox_Spec.Text);
            rfqSpec.setCreatedDate(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            if (User.Identity.Name != null)
            {
                rfqSpec.setCreatedUsr(User.Identity.Name);
            }
            if (FileUpload_Extra_Spec.HasFile)
            {
                rfqSpec.setFileStream(FileUpload_Extra_Spec);
            }


            rfqProdSrvList.Add(rfqSpec);

            Session[SessionFactory.CREATE_POTENTIAL_SELECTED_POTN_SPEC_MAP] = rfqProdSrvList;
        }
Exemple #2
0
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ArrayList rfqProdSrvList = (ArrayList)Session[SessionFactory.CREATE_LEAD_SELECTED_RFQ_SPEC_MAP];

            if (rfqProdSrvList == null)
            {
                rfqProdSrvList = new ArrayList();
            }

            BackEndObjects.RFQProductServiceDetails rfqSpec = new RFQProductServiceDetails();
            rfqSpec.setPrdCatId(Session[SessionFactory.CREATE_LEAD_SELECTED_PRODUCT_CAT].ToString());
            rfqSpec.setFeatId(((Label)GridView1.SelectedRow.Cells[1].FindControl("Label_Hidden")).Text);
            rfqSpec.setFromSpecId(((DropDownList)GridView1.SelectedRow.Cells[2].FindControl("DropDownList_Gridview1_From")).SelectedValue);
            rfqSpec.setToSpecId(((DropDownList)GridView1.SelectedRow.Cells[3].FindControl("DropDownList_Gridview1_To")).SelectedValue);
            //rfqSpec.setSpecText(TextBox_Spec.Text);
            rfqSpec.setCreatedDate(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            if (User.Identity.Name != null)
            {
                rfqSpec.setCreatedUsr(User.Identity.Name);
            }
            if (((FileUpload)GridView1.SelectedRow.Cells[3].FindControl("FileUpload_Spec")).HasFile)
            {
                rfqSpec.setFileStream((FileUpload)GridView1.SelectedRow.Cells[3].FindControl("FileUpload_Spec"));
            }


            rfqProdSrvList.Add(rfqSpec);

            GridView1.SelectedRow.Cells[0].Enabled = false;
            GridView1.SelectedRow.Cells[3].Enabled = false;
            GridView1.SelectedRow.Cells[4].Enabled = false;
            GridView1.SelectedRow.Cells[5].Enabled = false;
            GridView1.SelectedRow.Cells[0].FindControl("Image_Selected").Visible = true;
            Label_Selected_List.Text += "," + GridView1.SelectedRow.DataItemIndex;

            Session[SessionFactory.CREATE_LEAD_SELECTED_RFQ_SPEC_MAP] = rfqProdSrvList;
            Buttin_Show_Spec_List.Enabled = false;
        }