protected void Link_Show_NDA(object sender, CommandEventArgs e) { if (e.CommandArgument.Equals("org")) { ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENT_CONTEXT_RFQ); icObj.setParentContextValue(Session[SessionFactory.ALL_SALE_ALL_POTENTIAL_SELECTED_RFQ_ID].ToString()); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_NDA_FOR_PARENT_RFQ); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; Response.Redirect("/Pages/DispImage.aspx", true); } else if (e.CommandArgument.Equals("new")) { ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENT_CONTEXT_RFQ_RESPONSE); icObj.setParentContextValue(Session[SessionFactory.ALL_SALE_ALL_POTENTIAL_SELECTED_RFQ_ID].ToString()); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_NDA_FOR_PARENT_RFQ_RESPONSE); Dictionary <String, String> childContextDict = new Dictionary <string, string>(); childContextDict.Add(ActionLibrary.ImageContextFactory.CHILD_CONTEXT_RFQ_RESPONSE_RESPONSE_ENTITY_ID, Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString()); icObj.setChildContextObjects(childContextDict); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; // Server.Transfer("/Pages/DispImage.aspx", true); Response.Redirect("/Pages/DispImage.aspx"); } }
protected void Link_Feat_Img_Show_Command(object sender, CommandEventArgs e) { GridView grdInner = (GridView)((LinkButton)sender).Parent.Parent.Parent.Parent; Int32 SelectedRowIndex = Convert.ToInt32(e.CommandArgument) % grdInner.PageSize; //SelectedRowIndex = ((GridViewRow)grdInner.Rows).RowIndex; int selectedIndexParent = ((GridViewRow)grdInner.Parent.Parent).RowIndex; String prodCatId = ((Label)((GridView)grdInner.Parent.Parent.Parent.Parent).Rows[selectedIndexParent].Cells[0].FindControl("Label_Hidden")).Text; String featId = ((Label)((GridView)grdInner).Rows[SelectedRowIndex].Cells[1].FindControl("Label_Hidden")).Text; //String prodCatId = row.Cells[1].Text; ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENT_CONTEXT_RFQ); icObj.setParentContextValue(Session[SessionFactory.ALL_PURCHASE_ALL_RFQ_SELECTED_RFQ_ID].ToString()); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_FEAT_FOR_PARENT_RFQ); Dictionary <String, String> childContextDict = new Dictionary <string, string>(); childContextDict.Add(ActionLibrary.ImageContextFactory.CHILD_CONTEXT_PRODCAT_ID, prodCatId); childContextDict.Add(ActionLibrary.ImageContextFactory.CHILD_CONTEXT_FEAT_ID, featId); icObj.setChildContextObjects(childContextDict); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; //Server.Transfer("/Pages/DispImage.aspx", true); Response.Redirect("/Pages/DispImage.aspx"); }
protected void LinkButton_Doc_Command(object sender, CommandEventArgs e) { ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); GridViewRow gVR = GridView_Notes.Rows[int.Parse(e.CommandArgument.ToString())]; icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENT_CONTEXT_NOTES); icObj.setParentContextValue(((Label)gVR.Cells[0].FindControl("Label_Hidden_Comm")).Text); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_DOC_FOR_PARENT_NOTE); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; Response.Redirect("DispImage.aspx"); //Server.Transfer("DispImage.aspx", true); }
protected void Link_Show_NDA(object sender, CommandEventArgs e) { if (e.CommandArgument.Equals("new")) { ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENT_CONTEXT_RFQ); icObj.setParentContextValue(Session[SessionFactory.ALL_PURCHASE_ALL_RFQ_SELECTED_RFQ_ID].ToString()); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_NDA_FOR_PARENT_RFQ); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; Response.Redirect("/Pages/DispImage.aspx", true); } }
protected void LinkButton_Existing_Doc_Command(object sender, CommandEventArgs e) { if (e.CommandArgument.Equals("new")) { ActionLibrary.ImageContextFactory icObj = new ImageContextFactory(); icObj.setParentContextName(ActionLibrary.ImageContextFactory.PARENET_CONTEXT_DEFECT); icObj.setParentContextValue(Request.QueryString.GetValues("contextId1")[0]); icObj.setDestinationContextName(ActionLibrary.ImageContextFactory.DESTINATION_CONTEXT_DOC_FOR_PARENT_DEFECT); Session[SessionFactory.DISP_IMAGE_CONTEXT_FACTORY_OBJ] = icObj; Response.Redirect("/Pages/DispImage.aspx", true); } }