protected void GridNodalOfficerDetails_RowCommand(object sender, GridViewCommandEventArgs e) { try { if (e.CommandName == "NodalOfficerDetails") { //Determine the RowIndex of the Row whose Button was clicked. string loginId = e.CommandArgument.ToString(); DashBoardDataBL obje = null; obje = new DashBoardDataBL(); DataTable dt = obje.GetNodalOfficerNameBL("NodalOfficerDetails", loginId); lblName.Text = dt.Rows[0]["N_Name"].ToString(); lblMinistry.Text = dt.Rows[0]["MinName"].ToString(); lblDesignation.Text = dt.Rows[0]["DesignationName"].ToString(); lblMobile.Text = dt.Rows[0]["N_Mobile"].ToString(); lblEmail.Text = dt.Rows[0]["N_Email"].ToString(); lbltelephone.Text = dt.Rows[0]["N_Telephone"].ToString(); lbladdress.Text = dt.Rows[0]["N_Address1"].ToString() + " " + dt.Rows[0]["N_Address2"].ToString() + " " + dt.Rows[0]["N_Address3"].ToString(); ModalPopupExtender3.Show(); } } catch (Exception ex) { LogError(ex); } }
protected void Button111_Click(object sender, EventArgs e) { TextBox9.Text = DropDownList10.SelectedValue; Ypologos.DataBind(); ModalPopupExtender3.Hide(); }
protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e) { if (Session["company_id"] != null) { company_id = Convert.ToInt32(Session["company_id"].ToString()); } SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["connection"]); SqlCommand cmd = new SqlCommand("Select * from subcategory where category_id='" + DropDownList4.SelectedItem.Value + "' and Com_Id='" + company_id + "'", con); con.Open(); DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(ds); DropDownList6.DataSource = ds; DropDownList6.DataTextField = "subcategoryname"; DropDownList6.DataValueField = "subcategory_id"; DropDownList6.DataBind(); DropDownList6.Items.Insert(0, new ListItem("All", "0")); con.Close(); ModalPopupExtender3.Show(); }
protected void ImageButton4_Click(object sender, ImageClickEventArgs e) { if (EpikCHB.Checked) { TextBox12.Text = "8"; Reservations.Update(); for (int i = 0; i < Convert.ToInt16(DropDownList1.SelectedValue); i++) { Reservations.Insert(); ABE_KINISI.Insert(); } Reservations.Delete(); Response.Redirect("SCEND.aspx"); } else { if ((int)Session["Lang_EN_GR"] == 0) { Label2.Text = "Παρακαλώ επιλέξτε Προξενική Πράξη"; } else { Label2.Text = "Please choose a Consular Service"; } Button8.Visible = false; ModalPopupExtender3.Show(); } }
protected void BtnBankInfo_Click(object sender, EventArgs e) { try { string employeeid = Convert.ToString(Session["EID"]); string Ocode = ((SessionUser)Session["SessionUser"]).OCode; List <HRM_BankInfo> bankInfo = bankDALObj.GetBankInfo(employeeid, Ocode); foreach (HRM_BankInfo abank in bankInfo) { txtbxBankName.Text = abank.BankName; txtbxAc.Text = abank.AccountNo; txtbxBranch.Text = abank.Branch; txtbxAddress.Text = abank.Address; txtbxMobileNO.Text = abank.MobileNo; } btnBankDel.Visible = true; btnBankUpdate.Visible = true; ModalPopupExtender3.Show(); } catch (Exception) { throw; } }
public void CreateGroup_Click(object sender, EventArgs e) { ModalPopupExtender3.Show(); SetFocus(AddGroupName.ClientID); }
protected void Button3_Click(object sender, EventArgs e) { Session["New_Apoleies_DT"] = "0"; Session["Return_TO_Ap_FD"] = "0"; // Response.Redirect("Apoleia.aspx"); ModalPopupExtender3.Show(); }
protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { ArticuloId = null; ImageButton ImgB = sender as ImageButton; GridViewRow gvRow = (GridViewRow)ImgB.NamingContainer; if (!_isRefresh) { ArticuloId = ControlArticulo.BuscarXId(Convert.ToInt32(gvRow.Cells[0].Text)); if (ControlDetallePedido.ArtRepetidosEnElPedidoDetalle(ListaDetalleDTO, ArticuloId) == false) { ModalPopupExtender3.Show(); } else { ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "ArtIngresado();", true); TxtBuscarNombre.Text = ""; } } else { //Limpiar(); Response.Redirect("EditarPedido.aspx"); } }
protected void btnSuggest_Click(object sender, EventArgs e) { txtSuggestServiceProvider.Text.Trim(); if (txtSuggestServiceProvider.Text != "" && txtSuggestServiceProvider.Text != null && ddlSuggestLocation.SelectedValue != "0" && ddlSuggestLocation.SelectedValue != null) { string value = "\""; value = Regex.Escape(value); string serviceProvider = Regex.Replace(txtSuggestServiceProvider.Text, value, ""); bll.Name = Regex.Replace(serviceProvider, "'", ""); bll.LocationID = ddlSuggestLocation.SelectedValue; if (bll.CheckExistingServiceProviderAndLocation().Rows.Count == 0) { bll.ServiceProviderID = bll.InsertServiceProviderInSuggestion().Rows[0][0].ToString(); Audit(uid, "INSERT", "Service_Providers", bll.ServiceProviderID); bll.ServiceProviderLocationID = bll.InsertServiceProviderAndLocationInSuggestion().Rows[0][0].ToString(); Audit(uid, "INSERT", "Service_Providers_Locations", bll.ServiceProviderLocationID); bll.Username = uid; string SuggestionID = bll.InsertSuggestion().Rows[0][0].ToString(); Audit(uid, "INSERT", "Suggestions", SuggestionID); lblSuggestError.Text = ""; txtSuggestServiceProvider.Text = ""; ddlSuggestLocation.SelectedValue = "0"; ModalPopupExtender2.Hide(); ModalPopupExtender3.Show(); } else { ModalPopupExtender2.Show(); lblSuggestError.Text = "The Service Provider is already existing."; } } else { ModalPopupExtender2.Show(); lblSuggestError.Text = "Please input the desired service provider and location."; } }
protected void ImageButton4_Click(object sender, ImageClickEventArgs e) { if (TextBox5.Text.Length > 10) { if ((int)Session["Lang_EN_GR"] == 0) { Label2.Text = "Λανθασμένη Ημερομηνία Γεννήσεως, αποδεκτή μορφή HH/MM/EEEE π.χ. '15/01/1980'"; } else { Label2.Text = "Wrong Date of Birth, acceptable format dd/MM/yyyy e.g. '15/01/1980'"; } ModalPopupExtender3.Show(); } else { Reservations.Update(); ABE_KINISI.Insert(); Search_politi.DataBind(); GridView1.DataBind(); Response.Redirect("SCEND.aspx"); } }
protected void btnNomineeUpdate_Click(object sender, EventArgs e) { HRM_PersonalInformations personalInfo = new HRM_PersonalInformations(); string employeeId = ""; try { employeeId = Convert.ToString(Session["EID"]); personalInfo.NomineeName = txtbxNomineeName.Text.Trim(); personalInfo.NomineeAge = txtbxAge.Text; personalInfo.NomineeRelation = txtbxRelation.Text.Trim(); //Addresss int result = empSetupDal.UpdateNomineeInfoPersonalInfo(personalInfo, employeeId); if (result == 1) { lblNomineeMessage.Text = "Data Update Successfully."; GetPersonalInfo(employeeId); ModalPopupExtender3.Hide(); } else { } } catch (Exception) { throw; } }
protected void ManagePayComponentGrid_SelectedIndexChanged(object sender, EventArgs e) { foreach (GridViewRow row in ManagePayComponentGrid.Rows) { if (row.RowIndex == ManagePayComponentGrid.SelectedIndex) { row.BackColor = ColorTranslator.FromHtml("#A1DCF2"); row.ToolTip = string.Empty; //ViewState["PayCompId"] = (int)ManagePayComponentGrid.DataKeys[ManagePayComponentGrid.SelectedIndex].Value; txtfrmDate.Enabled = true; btnEditDate.Enabled = true; txtDeclaredAmt.Enabled = true; ModalPopupExtender3.Show(); EmployeePayCompPopUp.Visible = true; } else { row.BackColor = ColorTranslator.FromHtml("#FFFFFF"); row.ToolTip = "Click to select this row."; ModalPopupExtender3.Show(); EmployeePayCompPopUp.Visible = true; } } }
public void btn_edit_Click(object sender, EventArgs e) { LinkButton lb = (LinkButton)sender; GridViewRow row = (GridViewRow)lb.NamingContainer; if (row != null) { int index = row.RowIndex; //gets the row index selected using (GridViewRow row1 = (GridViewRow)((LinkButton)sender).Parent.Parent) { txt_Editmasked.ReadOnly = true; txt_Editmasked.Text = row1.Cells[0].Text; txt_editcustname.Text = row1.Cells[1].Text; txt_editcustemail.Text = row1.Cells[2].Text; txt_editcustccemail.Text = row1.Cells[3].Text.Replace(" ", ""); SqlConnection con = new SqlConnection(constr); SqlCommand cmd = new SqlCommand("spGetPDFPass", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@masked", txt_Editmasked.Text); con.Open(); cmd.ExecuteNonQuery(); SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); txt_editpdfpass.Text = dr["pdfpassword"].ToString(); dr.Close(); con.Close(); ModalPopupExtender3.Show(); } } }
protected void btnStatement_Click(object sender, EventArgs e) { try { string eid = Convert.ToString(Session["EID"]); string OCODE = ((SessionUser)Session["SessionUser"]).OCode; List <HRM_EmployeeStatement> employeeStatments = employeeSetupDal.GetStatementList(eid, OCODE); if (employeeStatments.Count > 0) { foreach (HRM_EmployeeStatement aitem in employeeStatments) { txtbxNameOfRelative.Text = aitem.NameOfRelative; txtbxEId.Text = aitem.RelativeEID; txtbxRelation.Text = aitem.Relation; } } //Button2.Visible = true; Button3.Visible = true; ModalPopupExtender3.Show(); } catch (Exception) { throw; } }
protected void onCancelGrid(object sender, System.EventArgs e) { LinkButton btn = (LinkButton)sender; gvr = (GridViewRow)btn.NamingContainer; ModalPopupExtender3.Show(); }
protected void Button11_Click(object sender, EventArgs e) { Session["Apoleies_ID_For_Update"] = "0"; Session["New_Pass_Per"] = "XXX"; Label2.Text = "Δημιουργία Αίτησης Νέου : "; ModalPopupExtender3.Show(); }
protected void ImgBtnAddCantidad_Click(object sender, ImageClickEventArgs e) { ImageButton ImgB = sender as ImageButton; GridViewRow gvRow = (GridViewRow)ImgB.NamingContainer; Artid = Convert.ToInt32(gvRow.Cells[0].Text); ModalPopupExtender3.Show(); }
protected void Button4_Click(object sender, EventArgs e) { Label1.Text = ""; clear(); pnladdnew.Visible = false; btntest.Visible = true; ModalPopupExtender3.Hide(); }
protected void Button3_Click(object sender, EventArgs e) { ModalPopupExtender3.Hide(); TextCant.Text = "1"; LblError.Visible = false; HdfArt.Value = null; ArticuloId = null; TxtBuscarNombre.Text = null; }
protected void Button6_Click(object sender, EventArgs e) { TextBox10.Text = DropDownList10.SelectedItem.Text + TextBox7.Text + TextBox15.Text; TextBox7.Text = ""; TextBox15.Text = ""; TextBox8.Text = ""; TextBox13.Text = ""; TextBox14.Text = ""; ModalPopupExtender3.Hide(); }
public void NewProduct_Click(object sender, EventArgs e) { var productnumber = this.Panel3.FindControl("NewProductNumber") as TextBox; var productdescription = this.Panel3.FindControl("NewProductDescription") as TextBox; var unittype = this.Panel3.FindControl("NewUnitType") as DropDownList; var rop = this.Panel3.FindControl("NewROP") as TextBox; var modulea = this.Panel3.FindControl("NewModuleA") as DropDownList; var quantitya = this.Panel3.FindControl("NewQuantityA") as TextBox; var moduleb = this.Panel3.FindControl("NewModuleB") as DropDownList; var quantityb = this.Panel3.FindControl("NewQuantityB") as TextBox; var producttype = this.Panel3.FindControl("NewProductType") as DropDownList; using (SqlConnection sqlCon = new SqlConnection(connectionString)) { SqlCommand cmd = new SqlCommand("INSERT INTO Products(ProductNumber, ProductDescription, UnitType, ROP, ModuleA, QuantityA, ModuleB, QuantityB, ProductType) VALUES (@ProductNumber, @ProductDescription, @UnitType, @ROP, @ModuleA, @QuantityA, @ModuleB, @QuantityB, @ProductType)", sqlCon); cmd.Parameters.AddWithValue("@ProductNumber", productnumber.Text); cmd.Parameters.AddWithValue("@ProductDescription", productdescription.Text); cmd.Parameters.AddWithValue("@UnitType", unittype.Text); cmd.Parameters.AddWithValue("@ROP", rop.Text); cmd.Parameters.AddWithValue("@ModuleA", modulea.Text); cmd.Parameters.AddWithValue("@QuantityA", quantitya.Text); cmd.Parameters.AddWithValue("@ModuleB", moduleb.Text); cmd.Parameters.AddWithValue("@QuantityB", quantityb.Text); cmd.Parameters.AddWithValue("@ProductType", producttype.Text); sqlCon.Open(); cmd.ExecuteNonQuery(); SqlDataAdapter sqlDa = new SqlDataAdapter("SELECT * FROM Products", sqlCon); DataTable dtbl = new DataTable(); sqlDa.Fill(dtbl); gvProducts.DataSource = dtbl; gvProducts.DataBind(); sqlCon.Close(); Label1products.Text = (gvProducts.DataSource as DataTable).Rows.Count + " Products"; if (NewProductType.SelectedValue == "1") { NewModuleA.Visible = true; NewQuantityA.Visible = true; NewModuleB.Visible = true; NewQuantityB.Visible = true; NANewROP.Visible = true; NewROP.Visible = false; } else { NewModuleA.Visible = false; NewQuantityA.Visible = false; NewModuleB.Visible = false; NewQuantityB.Visible = false; NANewROP.Visible = false; NewROP.Visible = true; } } ModalPopupExtender3.Hide(); NewProductFinish.Visible = false; }
private void ValidarModalSearch() { if (HiddenActivateModalSearch.Value == "1") { ModalPopupExtender3.Show(); } else { ModalPopupExtender3.Hide(); } }
protected void Button110_Click(object sender, EventArgs e) { // Neo aitima TextBox9.Text = DropDownList10.SelectedValue; Ypologos.DataBind(); ModalPopupExtender3.Hide(); Old_Eggrafa.DataBind(); TextBox27.Text = "0"; }
protected void imgbtnSearchItem_Click_Click(object sender, ImageClickEventArgs e) { try { ModalPopupExtender3.Show(); SearchItem(); } catch (Exception ex) { } }
protected void btnMItemSearch_Click(object sender, EventArgs e) { try { ModalPopupExtender3.Show(); SearchItem(); } catch (Exception ex) { } }
protected void AssignRolePayMapBtn_Click(object sender, EventArgs e) { if (PayCompRolePayGrid.Rows.Count == 0) { ModalPopupExtender3.Show(); EmployeePayCompPopUp.Visible = true; StringBuilder scriptMsg = new StringBuilder(); scriptMsg.Append("alert('Pay Components is empty');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), scriptMsg.ToString(), true); } }
protected void btnSearchClients_Click(object sender, EventArgs e) { try { ModalPopupExtender3.Show(); HiddenActivateModalSearch.Value = "1"; } catch (Exception ex) { UserMessage(ex.Message, "danger"); } }
protected void DropDownList10_SelectedIndexChanged(object sender, EventArgs e) { if (TextBox27.Text != "0") { ModalPopupExtender3.Show(); } else { TextBox9.Text = DropDownList10.SelectedValue; Ypologos.DataBind(); } }
protected void btnAddModal_Click(object sender, EventArgs e) { try { ClearTextSearchItem(); ModalPopupExtender3.Show(); SearchItem(); } catch (Exception ex) { } }
protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { try { Session["pagesearch"] = null; ModalPopupExtender3.Hide(); //Response.Redirect(Request.QueryString["page"].ToString()); } catch (Exception ex) { } }