protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { string selname = GridView1.SelectedRow.Cells[0].Text; SqlConnection con = new SqlConnection(str); con.Open(); SqlCommand cmd = new SqlCommand("select * from Library_User where UserName='******'", con); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { lblName.Text = dr.GetString(1); lblAge.Text = dr.GetInt32(2).ToString(); lblDesign.Text = dr.GetString(3); lblContact.Text = dr.GetValue(5).ToString(); lblAdd.Text = dr.GetValue(6).ToString(); } ModalPopupExtender1.Show(); }
protected void drpPaymode_SelectedIndexChanged(object sender, EventArgs e) { ModalPopupExtender1.Show(); try { if (drpPaymode.SelectedIndex == 1) { pnlBank.Visible = true; txtCreditCardNo.Focus(); } else { pnlBank.Visible = false; } } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
protected void grdPaymentTransaction_ItemCommand(object source, DataGridCommandEventArgs e) { if (e.CommandName.ToString() == "Select") { txtPaymentID.Text = e.Item.Cells[1].Text; txtChequeNumber.Text = e.Item.Cells[2].Text; txtpaymentdate.Text = e.Item.Cells[3].Text; string szamt = e.Item.Cells[4].Text; szamt = szamt.Replace('$', ' '); szamt = szamt.Trim(); txtChequeAmount.Text = szamt; txtDescription.Text = e.Item.Cells[5].Text; btnSave.Enabled = false; btnUpdate.Enabled = true; ModalPopupExtender1.Show(); } else { ModalPopupExtender1.Hide(); } }
protected void GrdViewLedger_RowCommand(object sender, GridViewCommandEventArgs e) { try { if (e.CommandName == "Select") { frmViewAdd.Visible = true; frmViewAdd.ChangeMode(FormViewMode.Edit); //GrdViewLedger.Visible = false; //lnkBtnAdd.Visible = false; ////MyAccordion.Visible = false; ModalPopupExtender1.Show(); //if (frmViewAdd.CurrentMode == FormViewMode.Edit) //Accordion1.SelectedIndex = 1; } } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
protected void lnkBtnAdd_Click(object sender, EventArgs e) { try { if (!Helper.IsLicenced(Request.Cookies["Company"].Value)) { ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('This is Trial Version, Please upgrade to Full Version of this Software. Thank You.');", true); return; } frmViewAdd.ChangeMode(FormViewMode.Insert); frmViewAdd.Visible = true; ModalPopupExtender1.Show(); //if (this.frmViewAdd.FindControl("txtTransDateAdd") != null) //((TextBox)this.frmViewAdd.FindControl("txtTransDateAdd")).Text = DateTime.Now.ToShortDateString(); } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
protected void GridView_OnSelectedIndexChanged(object sender, EventArgs e) { UpdatePan.DataBind(); TextBox2.Text = UpdatePan.Rows[1].Cells[1].Text; try { int VUnit; VUnit = Convert.ToInt16(UpdatePan.Rows[2].Cells[1].Text); RadioButtonUnit.SelectedValue = UpdatePan.Rows[2].Cells[1].Text; } catch (FormatException) { Msg.Text = "Поле подразделение ранее было пустым"; } Load_Image(); ModalPopupExtender1.Show(); UpdateButton.Visible = true; InsertButton.Visible = false; DeleteButton.Visible = true; AddImge.Visible = true; }
protected void JournalCodeChanged(object sender, EventArgs e) { if (journalcodeSrch.Text.Trim() == "") { SqlDataSourcePopJournal.SelectCommand = "SELECT Id as ISSN,Title,AbbreviatedTitle FROM [Journal_M]"; popGridJournal.DataBind(); popGridJournal.Visible = true; } else { SqlDataSourcePopJournal.SelectParameters.Clear(); SqlDataSourcePopJournal.SelectParameters.Add("Title", journalcodeSrch.Text); SqlDataSourcePopJournal.SelectCommand = "SELECT Id as ISSN,Title,AbbreviatedTitle FROM [Journal_M] where Title like '%' + @Title + '%'"; popGridJournal.DataBind(); popGridJournal.Visible = true; } ModalPopupExtender1.Show(); }
protected void DropDownList6_SelectedIndexChanged(object sender, EventArgs e) { ModalPopupExtender1.Hide(); Passport_Satet_Edit_data.DataBind(); GridView7.DataBind(); if (GridView7.Rows.Count > 0) { DropDownList5.SelectedValue = GridView7.Rows[0].Cells[1].Text; DropDownList7.SelectedValue = GridView7.Rows[0].Cells[1].Text; TextBox1.Text = GridView7.Rows[0].Cells[2].Text; TextBox117.Text = GridView7.Rows[0].Cells[3].Text; } else { DropDownList5.SelectedValue = "0"; DropDownList7.SelectedValue = "0"; TextBox1.Text = ""; TextBox117.Text = "0"; } ModalPopupExtender1.Show(); }
protected void myhistory_RowCommand(object sender, GridViewCommandEventArgs e) { int _rowidx = Convert.ToInt32(e.CommandArgument); GridViewRow _srow = myhistory.Rows[_rowidx]; TableCell _item = _srow.Cells[1]; TableCell _id = _srow.Cells[0]; Session["docid"] = _id.Text; string _file = _item.Text; string fpath = "https://cmltechniques.com/CMS_DOCS/" + (string)Session["project"] + "/" + _file; if (e.CommandName == "view") { ScriptManager.RegisterStartupScript(this, typeof(string), "close", "parent.callcms('" + fpath + "','10');", true); } else if (e.CommandName == "delete1") { ModalPopupExtender1.Enabled = true; ModalPopupExtender1.Show(); } }
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EditKey") { LinkButton lnkRename = e.CommandSource as LinkButton; GridViewRow row = lnkRename.Parent.Parent as GridViewRow; HiddenField hdnID = row.FindControl("hdnID") as HiddenField; LinkButton lnkName = row.FindControl("lnkName") as LinkButton; if (e.CommandName == "EditKey") { AdministrationEDSC.v_KeyCollectionViewDTRow dr = new AdministrationDAC().RetrieveKeyword(Convert.ToInt32(hdnID.Value)); txtName.Text = dr.Name; txtDescription.Text = dr.Description; txtSynonims.Text = dr.Keywords; hdnThesaurusID.Value = dr.ID.ToString(); hdnThesaurusKeyID.Value = dr.KeywordID.ToString(); UIMode = SystemConstants.FormMode.Edit.ToString(); ModalPopupExtender1.Show(); } } }
protected void IndexCodeChanged(object sender, EventArgs e) { if (IndexcodeSrch.Text.Trim() == "") { SqlDataSourcePopIndex.SelectCommand = "SELECT AgencyId, AgencyName FROM IndexAgency_M"; popGridIndex.DataBind(); popGridIndex.Visible = true; } else { SqlDataSourcePopIndex.SelectParameters.Clear(); SqlDataSourcePopIndex.SelectParameters.Add("AgencyName", IndexcodeSrch.Text); SqlDataSourcePopIndex.SelectCommand = "SELECT AgencyId, AgencyName FROM IndexAgency_M where AgencyName like '%' + @AgencyName + '%'"; popGridIndex.DataBind(); popGridIndex.Visible = true; } ModalPopupExtender1.Show(); }
void load_popup() { DataTable view_fin_info = new DataTable(); view_fin_info = DBCon.Ora_Execute_table("select *,FORMAT(fin_start_dt,'dd/MM/yyyy') st_dt,FORMAT(fin_end_dt,'dd/MM/yyyy') ed_dt from KW_financial_Year where fin_kod_syarikat='" + txt_nombo.Text + "' and fin_year='" + Session["fin_yr"].ToString() + "'"); if (view_fin_info.Rows.Count != 0) { tbl_rw1.Attributes.Add("style", "pointer-events:none;"); tbl_rw2.Attributes.Add("style", "pointer-events:none;"); tbl_rw3.Attributes.Add("style", "pointer-events:none;"); Button5.Text = "Kemaskini"; Button6.Visible = false; fin_year.Text = Session["fin_yr"].ToString(); dd_tran_kew.SelectedValue = view_fin_info.Rows[0]["fin_period"].ToString(); TextBox3.Text = view_fin_info.Rows[0]["fin_months"].ToString(); txt_startdt.Text = view_fin_info.Rows[0]["st_dt"].ToString(); dd_cursts.SelectedValue = view_fin_info.Rows[0]["Status"].ToString(); txt_enddt.Text = view_fin_info.Rows[0]["ed_dt"].ToString(); } ModalPopupExtender1.Show(); }
protected void get_tahun_bulan(object sender, EventArgs e) { if (txt_startdt.Text != "" && txt_enddt.Text != "") { if (chk_tahun.Checked == true) { DateTime startDate = DateTime.ParseExact(txt_startdt.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture); DateTime endDate = DateTime.ParseExact(txt_enddt.Text, "dd/MM/yyyy", CultureInfo.InvariantCulture); int months = endDate.Subtract(startDate).Days / 30; TextBox3.Text = months.ToString(); } else { TextBox3.Text = ""; } } ModalPopupExtender1.Show(); BindData(); }
//private void SetButton() //{ // CallPart part = orderPartsBLL.List.Find(delegate(CallPart cp) { return cp.PartReference.ToString() == partReturnButton.CommandArgument.ToString(); }); // string partDescription; // try // { // partDescription = part.ReturnDescription; // } // catch // { // partDescription = string.Empty; // } // partReturnButton.Enabled = (part != null && part.ReturnRequired) || (partDescription != string.Empty); // added peter 15.04.2013 //} protected void partsOrderGridView_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Select") { partReturnButton.CommandArgument = e.CommandArgument.ToString(); // SetButton(); } else if (e.CommandName == "BookCourier") { SiteSession session = SiteSessionFactory.LoadSession(this.Page); string rmaId = e.CommandArgument.ToString(); string queryString = string.Format("Collectionjob.aspx?SAEDIID={0}&RMAList={1}&loop=true", session.Login.SaediId, rmaId); Iframe.Attributes.Add("src", queryString); ModalPopupExtender1.Show(); } }
protected void gvLeaveApprovalList_RowCommand(object sender, GridViewCommandEventArgs e) { try { if (e.CommandName == "View") { Business.Common.Context.LeaveApplicationId = Convert.ToInt32(e.CommandArgument.ToString()); GetLeaveApplicationDetails_ByLeaveApplicationId(Business.Common.Context.LeaveApplicationId); TabContainer1.ActiveTab = Approval; ModalPopupExtender1.Show(); } } catch (Exception ex) { ex.WriteException(); Message.IsSuccess = false; Message.Text = ex.Message; Message.Show = true; } }
protected void InsertCancelButton_Click(object sender, EventArgs e) { try { //grdViewGroup.Visible = true; frmViewDetails.Visible = false; //lnkBtnAddGroup.Visible = true; ModalPopupExtender1.Hide(); //Label1.Visible = true; //txtSearch.Visible = true; //ddCriteria.Visible = true; //btnSearch.Visible = true; grdViewGroup.Columns[2].Visible = true; } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
public void grdAllotte_command(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Retention") { var gridRow = ((LinkButton)e.CommandSource).NamingContainer as GridViewRow; HiddenField hdnDateOfRetention = gridRow.FindControl("hdnDateOfRetention") as HiddenField; string dateOfRetention = Convert.ToDateTime(hdnDateOfRetention.Value).ToShortDateString(); txtDateOfRetension.Text = string.Empty; txtdateofretensionupto.Text = string.Empty; ddlRetentionPeriod.SelectedIndex = -1; ddlRetentionRule.SelectedIndex = -1; txtDateOfRetension.Text = dateOfRetention; long id = Convert.ToInt64(e.CommandArgument); hdnselected.Value = id.ToString(); ModalPopupExtender1.Show(); } }
protected void OnEdit(object sender, EventArgs e) { GridViewRow row = (sender as ImageButton).NamingContainer as GridViewRow; int rowindex = (gvExcelFile.PageSize * gvExcelFile.PageIndex) + row.RowIndex; lblEntity1Name.Text = ""; txtEntity1Type.Text = ""; txtEntity2Name.Text = ""; txtEntity2Type.Text = ""; txtScore.Text = ""; txtMigrationType.Text = ""; if (row.Cells[1].Text.Trim() != " ") { lblEntity1Name.Text = row.Cells[1].Text.Trim(); } if (row.Cells[2].Text.Trim() != " ") { txtEntity1Type.Text = row.Cells[2].Text.Trim(); } if (row.Cells[3].Text.Trim() != " ") { txtEntity2Name.Text = row.Cells[3].Text.Trim(); } if (row.Cells[4].Text.Trim() != " ") { txtEntity2Type.Text = row.Cells[4].Text.Trim(); } if (row.Cells[5].Text.Trim() != " ") { txtScore.Text = row.Cells[5].Text.Trim(); } if (row.Cells[6].Text.Trim() != " ") { txtMigrationType.Text = row.Cells[6].Text.Trim(); } ModalPopupExtender1.Show(); }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { foreach (GridViewRow row in GridView1.Rows) { if (row.RowIndex == GridView1.SelectedIndex) { row.BackColor = ColorTranslator.FromHtml("#A1DCF2"); row.ToolTip = string.Empty; String product_id; product_id = row.Cells[0].Text; String product_name; product_name = row.Cells[1].Text; String price; price = row.Cells[2].Text; String quantity; quantity = row.Cells[3].Text; TextBox1.Text = "" + product_id; TextBox2.Text = "" + product_name; TextBox3.Text = "" + price; TextBox4.Text = "" + quantity; } else { row.BackColor = ColorTranslator.FromHtml("#FFFFFF"); row.ToolTip = "Click to select this row."; } } TextBox1.Visible = true; TextBox2.Visible = true; TextBox3.Visible = true; TextBox4.Visible = true; TextBox1.Enabled = false; ModalPopupExtender1.Show(); //TextBox1.Text = GridView1.SelectedRow.Cells[0].Text; //TextBox2.Text = GridView1.SelectedRow.Cells[1].Text; //TextBox3.Text = GridView1.SelectedRow.Cells[2].Text; //TextBox4.Text = GridView1.SelectedRow.Cells[3].Text; }
protected void ViewParishioner_RowCommand1(object sender, GridViewCommandEventArgs e) { int Id = int.Parse(dgvFeligres.DataKeys[int.Parse(e.CommandArgument.ToString())].Value.ToString()); List <EN_Feligres> EditarFeligres = BL_Feligres.FeligresId(Id); var FeligresId = EditarFeligres[0]; switch (e.CommandName) { case "Borrar": { FeligresId.Estado = 0; FeligresId.IdEntidad = Id; BL_Feligres.Baja(FeligresId); Enlazar(); lblResultado.Text = "Registros: " + Convert.ToString(dgvFeligres.Rows.Count); break; } case "Seleccionar": { hid.Value = FeligresId.IdEntidad.ToString(); EntidadID = FeligresId.Id; txtNombre.Text = FeligresId.Nombre; txtApellido.Text = FeligresId.Apellido; txtFechaNac.Text = Convert.ToDateTime(FeligresId.FechaNacimiento).ToShortDateString(); LstTDoc.Text = FeligresId.TDoc; txtDocumento.Text = FeligresId.Documento; txtObservaciones.Text = FeligresId.Observaciones; txtTelefono.Text = FeligresId.Telefono; Variables.IdTel = FeligresId.IdTelefono; txtDireccion.Text = FeligresId.Direccion; Variables.IdDir = FeligresId.IdDireccion; txtMail.Text = FeligresId.Mail; Variables.IdMail = FeligresId.IdMail; ModalPopupExtender1.Show(); lblResultado.Text = "Registros: " + Convert.ToString(dgvFeligres.Rows.Count); break; } } }
protected void gvSale_RowCommand(object sender, GridViewCommandEventArgs e) { try { Business.Sale.SaleChallan objSaleChallan = new Business.Sale.SaleChallan(); Entity.Sale.SaleChallan saleChallan = new Entity.Sale.SaleChallan(); if (e.CommandName == "SaleDetails") { DataTable dt = objSaleChallan.SaleChallanDetails_GetBySaleChallanId(long.Parse(e.CommandArgument.ToString())); gvSaleDetails.DataSource = dt; gvSaleDetails.DataBind(); ModalPopupExtender1.Show(); } else if (e.CommandName == "D") { int response = objSaleChallan.Sale_Challan_Delete(int.Parse(e.CommandArgument.ToString())); if (response > 0) { Sale_GetAll(); Message.IsSuccess = true; Message.Text = "Deleted Successfully"; } else { Message.IsSuccess = false; Message.Text = "Data Dependency Exists, please contact system admin."; } Message.Show = true; } } catch (Exception ex) { ex.WriteException(); Message.IsSuccess = false; Message.Text = ex.Message; Message.Show = true; } }
protected void btn_ok_Click(object sender, EventArgs e) { if (txt_current_password.Text == temp_p_db) { if (txt_new_password.Text == txt_confirm_password.Text) { User_Property_tbl_user u = new User_Property_tbl_user(); u.user_name = Session["username"].ToString(); u.password = txt_new_password.Text; int i = Update_Logic.update_password(u.user_name, u.password); if (i == 1) { modal_lbl_msg.Text = "Successfully Changed"; modal_lbl_msg.ForeColor = System.Drawing.Color.Green; ModalPopupExtender1.Show(); } else { modal_lbl_msg.Text = "Error"; modal_lbl_msg.ForeColor = System.Drawing.Color.Red; ModalPopupExtender1.Show(); } } else { modal_lbl_msg.Text = "New Password and Confirm password should be same"; modal_lbl_msg.ForeColor = System.Drawing.Color.Red; ModalPopupExtender1.Show(); } } else { modal_lbl_msg.Text = "Password Does not match"; modal_lbl_msg.ForeColor = System.Drawing.Color.Red; ModalPopupExtender1.Show(); } }
protected void gvPlan_RowCommand(object sender, GridViewCommandEventArgs e) { var index = Convert.ToInt32(e.CommandArgument); if (e.CommandName == "EditRow") { //Get the value of command argument, i.e cuurent row index. var row = gvPlan.Rows[index]; //ddlPlan.Text = row.Cells[1].Text; descr.Text = row.Cells[2].Text; dectVal.Text = row.Cells[3].Text; BindDropDown(); var lbl = (Label)row.FindControl("lblName"); ddlPlan.SelectedIndex = ddlPlan.Items.IndexOf(ddlPlan.Items.FindByText(lbl.Text)); ViewState["Plan_id"] = gvPlan.DataKeys[index].Value; ModalPopupExtender1.Show(); } else if (e.CommandName == "DeleteRow") { //Get the value of command argument, i.e cuurent row index. var row = gvPlan.Rows[index]; //ddlPlan.Text = row.Cells[1].Text; descr1.Text = row.Cells[2].Text; dectval1.Text = row.Cells[3].Text; BindDropDown(); var lbl1 = (Label)row.FindControl("lblName"); ddlPlan1.SelectedIndex = ddlPlan1.Items.IndexOf(ddlPlan1.Items.FindByText(lbl1.Text)); ViewState["Plan_id"] = gvPlan.DataKeys[index].Value; ModalPopupExtender2.Show(); } }
protected void BtnEditAceptar_Click(object sender, EventArgs e) { Proveedor Aux = null; if (IsValid) { Aux = new Proveedor() { Proveedorid = 0, Nombrefantasia = TxtNFantasia.Text.ToLower(), Razonsocial = TxtRazonS.Text.ToLower(), Nombre = TxtNombre.Text.ToLower(), Apellido = TxtApellido.Text.ToLower(), Telefono = TextTelefono.Text, Email = TxtEmail.Text.ToLower(), Cuit = TxtCuit.Text, Direccion = TxtDirecion.Text.ToLower(), Estado = Convert.ToString(ddlestado.SelectedValue) }; if (!_isRefresh) { if (ControlProveedor.Modificar(ProvCuit, Aux)) { RefrecarBusqueda(); ScriptManager.RegisterStartupScript(this, GetType(), "Popup", "successalert();", true); Labelmgg.Visible = false; } else { ModalPopupExtender1.Show(); Labelmgg.Visible = true; } } else { Response.Redirect("EditarProveedor.aspx"); } } }
private void Save() { customer.CustomerPurchaseId = CustomerPurchaseId; customer.CustomerMasterId = CustomerMasterId; customer.Productid = int.Parse(ddlProduct.SelectedValue); customer.SerialNo = txtProductSlNo.Text; customer.PurchaseDate = DateTime.MinValue; customer.MachineId = ""; customer.InstallationDate = (string.IsNullOrEmpty(txtInstallationDate.Text.Trim())) ? DateTime.MinValue : Convert.ToDateTime(txtInstallationDate.Text.Trim()); customer.AssignEngineer = int.Parse(ddlAssignEngineer.SelectedValue); customer.CustomerRemarks = txtCustomerRemarks.Text; customer.UserId = int.Parse(HttpContext.Current.User.Identity.Name); customer.CompanyMasterId_FK = 1; customer.ContactPerson = txtContactPerson.Text; customer.Address = txtAddress.Text; customer.MobileNo = txtMobileNo.Text; customer.PhoneNo = txtPhone.Text; customer.Stamp = (FileUploadStamp.HasFile) ? System.IO.Path.GetExtension(FileUploadStamp.FileName) : ""; string retValue = objCustomer.CustomerPurchase_Save(customer); if (!string.IsNullOrEmpty(retValue)) { if (FileUploadStamp.HasFile) { FileUploadStamp.PostedFile.SaveAs(Server.MapPath(" ") + "\\StampImage\\" + retValue + customer.Stamp); } LoadCustomerPurchaseList(); ClearControl(); Message.IsSuccess = true; Message.Text = "Customer purchase data saved"; } else { Message.IsSuccess = false; Message.Text = "Customer purchase data con not save."; } Message.Show = true; ModalPopupExtender1.Show(); }
protected void imgbtnEdit_Click(object sender, ImageClickEventArgs e) { try { ImageButton imb = (ImageButton)sender; MasDistributor obj = new MasDistributor(); if (imb != null) { int objID = ToInt32(imb.CommandArgument); using (BillingEntities cre = new BillingEntities()) { obj = cre.MasDistributors.FirstOrDefault(w => w.DistributorID.Equals(objID)); }; if (obj != null) { hddID.Value = imb.CommandArgument; txtMDistributorCode.Text = obj.DistributorCode; txtMDistributorName.Text = obj.DistributorName; txtMDistributorAddress.Text = obj.DistributorAddress; ModalPopupExtender1.Show(); hddMode.Value = "Edit"; } else { SendMailError("obj is null, objID = " + imb.CommandArgument, System.Reflection.MethodBase.GetCurrentMethod()); } } else { SendMailError("imb is null", System.Reflection.MethodBase.GetCurrentMethod()); } } catch (Exception ex) { ShowMessageBox("เกิดข้อผิดพลาด กรุณาติดต่อผู้ดูแลระบบ."); SendMailError(ex.Message, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void SubmitNewDataForIncoming() { string i = string.Empty; if (pnlEntry.Visible) { i = InsertStudyNomination(txtPassportNo.Text, "NA", txtName.Text, txtOrganisation.Text , txtDesignation.Text, txtEmail.Text, txtMobileNo.Text, txtTelephone.Text, Session["StudyID"].ToString(), "N", lblPassno.Text); } else if (pnlEntryForOutgoing.Visible) { i = InsertStudyNomination("NA", txtAadhar.Text, txtName2.Text, txtOrganisation2.Text , txtDesignation2.Text, txtEmail2.Text, txtMobileNo2.Text, txtTelephone2.Text, Session["StudyID"].ToString(), "N", lblAAd.Text); } if (i == "0") { lblMessage.Text = "<b> Record already exist"; ModalPopupExtender1.Show(); } else if (i == "00") { lblMessage.Text = "<b> Your Record updated successfully"; lblError.Text = lblMessage.Text; ModalPopupExtender1.Show(); funcClear(); this.bindNominatedUser(Convert.ToInt32(Session["StudyID"].ToString())); } else { lblMessage.Text = "<b>Your Nomination has been completed successfully"; lblMessage.Text += txtid.Text == ""? "<br /><b>Note: Your Reference Key For Nomination is" + " " + i :""; ModalPopupExtender1.Show(); funcClear(); funcClearOutgoing(); this.bindNominatedUser(Convert.ToInt32(Session["StudyID"].ToString())); } }
protected void Button9_Click(object sender, EventArgs e) { GridViewRow row = (GridViewRow)Session["Row_Gridview_for_TakeOver"]; FINANCIAL_MANAGEMENT.App_Code.xrisi.Update_Reserv_ABE_Wait(Convert.ToInt32(row.Cells[19].Text), 1, User.Identity.Name); GridView3.DataBind(); if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) == TextBox126.Text || FINANCIAL_MANAGEMENT.App_Code.xrisi.User_For_ABE_Wait(Convert.ToInt32(row.Cells[19].Text)) == 0) { // GridView11.SelectedRow.Cells[17].Text; if (Convert.ToInt32(row.Cells[26].Text) != 28) // Cells[26] = Sub_cat_ID { Session["Return_Path_for_Personel_Tameio_diav"] = "/Kiosk/Kinisis_Pass_Kiosk.aspx"; Session["Edit_YN_Pass"] = FINANCIAL_MANAGEMENT.App_Code.xrisi.Status_For_PTE(row.Cells[19].Text); Session["Passport_Person_Kiosk"] = row.Cells[19].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'Kinisis_Pass_Kiosk_Person.aspx', null, 'height=750,width=1300,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); } else { Session["Return_Path_for_Personel_Tameio_diav"] = "/Kiosk/Kinisis_Pass_Kiosk.aspx"; Session["Edit_YN_Pass_PTE"] = FINANCIAL_MANAGEMENT.App_Code.xrisi.Status_For_PTE(row.Cells[19].Text); Session["Passport_Person_Kiosk_PTE"] = row.Cells[19].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'Kinisis_Pass_PTE.aspx', null, 'height=800,width=1300,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); } Resv_For_Marqee.DataBind(); Repeater1.DataBind(); Session["Update_ABE_WAIT_pass_Schedule"] = "1"; GridView3.SelectedIndex = -1; GridView3.DataBind(); ModalPopupExtender1.Hide(); } else { Session["Passport_Person_Kiosk"] = row.Cells[19].Text; Session["Passport_Person_Kiosk_PTE"] = row.Cells[19].Text; Label4.Text = "Ο/Η <b>" + row.Cells[17].Text + "</b> Διεκπεραιώνεται από τον χειριστή <b>" + FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) + "</b> . Αλλαγή χειριστή !"; ModalPopupExtender4.Show(); GridView3.DataBind(); GridView3.SelectedIndex = -1; } }
protected void btnSubmit_Click(object sender, EventArgs e) { if (ddlLocation.SelectedValue != "0" && ddlLocation.SelectedValue != null && ddlLocation.SelectedValue != "" && ddlServiceProvider.SelectedValue != "0" && ddlServiceProvider.SelectedValue != null && ddlServiceProvider.SelectedValue != "") { if (HappyOrSad.Text != null && HappyOrSad.Text != "") { lblRateError.Text = ""; bll.Username = uid; bll.LocationID = ddlLocation.SelectedValue; bll.ServiceProviderID = ddlServiceProvider.SelectedValue; bll.ServiceProviderLocationID = bll.GetServiceProviderLocationID().Rows[0][0].ToString(); if (bll.GetRatingUsingUsername().Rows.Count == 0) { ModalPopupExtender1.Show(); } else { DateTime userRatingDate = (DateTime)bll.GetRatingUsingUsername().Rows[0][4]; bll.IsActive = "y"; int RateLimit = int.Parse(bll.LimitSelectActive().Rows[0][1].ToString()); if ((DateTime.Now - userRatingDate).TotalHours >= RateLimit) { ModalPopupExtender1.Show(); } else { lblRateError.Text = "You can only rate this service provider once every " + RateLimit + " hour(s)."; } } } else { lblRateError.Text = "Please rate the service provider"; HappyOrSad.Text = null; } } else { lblRateError.Text = "Please select a service provider and location"; } }
protected void btnRelationSave_Click(object sender, EventArgs e) { try { if (ValidateRelation()) { int response = 0; Model.MemberRelationMapping memberRelationMapping = new Model.MemberRelationMapping() { FirstMemberId = MemberId, MemberRelationMappingId = this.MemberRelationMappingId, RelationId = int.Parse(ddlRelation.SelectedValue), SecondMemberId = int.Parse(ddlPerson.SelectedValue) }; using (var scope = Startup.Container.BeginLifetimeScope()) { var MemberRelationMapping = scope.Resolve <IMemberRelationMapping>(); response = MemberRelationMapping.MemberRelationMapping_Save(memberRelationMapping); } if (response > 0) { ClearMemberRelationMappingControls(); MemberRelationMapping_GetAll(); MessageRelation.IsSuccess = true; MessageRelation.Text = "Saved Successfully"; } else { MessageRelation.IsSuccess = false; MessageRelation.Text = "Not saved."; } } } catch (Exception ex) { MessageRelation.IsSuccess = false; MessageRelation.Text = ex.Message; } finally { ModalPopupExtender1.Show(); } }