protected void modalclose4_Click(object sender, EventArgs e) { ModalPopupExtender4.Hide(); NewSOFinish.Visible = false; UpdateSO.Visible = false; Button6SO.Enabled = true; }
protected void imgbtnEdit_Click(object sender, ImageClickEventArgs e) { List <MasProduct> lst = (List <MasProduct>)Session["DetailProdcut"]; ImageButton imb = (ImageButton)sender; if (imb != null) { Int32 id = ToInt32(imb.CommandArgument); //Int32 PackageDetailID = ToInt32(imb.CommandName); MasProduct Data = lst.FirstOrDefault(x => x.ProductID == id); hddProductID.Value = Data.ProductID.ToString(); txtProductCode.Text = Data.ProductCode; txtProductName.Text = Data.ProductName; //txtProductSellPrice.Text = Data.SellPrice.ToString("#,###0.00"); txtProductAmount.Text = Data.Amount.ToString(); ChkCanChange.Checked = Data.CanChange == "Change" ? true : false; ChkIsFree.Checked = Data.IsFree == "Y" ? true : false; //ModelDataAdd.CanChange = ChkCanChange.Checked == true ? "Change" : "Fix"; hddProductMode.Value = "Edit"; hddPackageDetailID.Value = imb.CommandName; } ModalPopupExtender4.Show(); }
protected void Button119_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); // 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); 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); 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(); ModalPopupExtender4.Hide(); }
protected void imgbtnChooseItem_Click(object sender, ImageClickEventArgs e) { var dal = ProductDal.Instance; ImageButton imb = (ImageButton)sender; if (imb != null) { //int rowIndex = Convert.ToInt32(imb.CommandArgument); int objCode = ToInt32(imb.CommandArgument); HiddenField hdd = (HiddenField)gvItemSearch.Rows[objCode].FindControl("hddItemID"); if (hdd != null) { int pid = ToInt32(hdd.Value); MasProduct ModelData = new MasProduct(); ModelData = dal.GetSearchProductID(pid); if (ModelData.ProductName != null) { hddProductID.Value = ModelData.ProductID.ToString(); txtProductCode.Text = ModelData.ProductCode; txtProductName.Text = ModelData.ProductName; //txtProductSellPrice.Text = ModelData.SellPrice.ToString("#,###0.00"); } } } ModalPopupExtender4.Show(); }
protected void GridView5_DataBound(object sender, EventArgs e) { int Sent_YN; int CountRows = GridView5.Rows.Count; if (CountRows == 1) { if (Convert.ToBoolean(GridView5.Rows[0].Cells[3].Text)) { Sent_YN = 1; } else { Sent_YN = 0; } DropDownList3.SelectedValue = Sent_YN.ToString(); TextBox115.Text = TextBox21.Text; Label3.Text = GridView5.Rows[0].Cells[0].Text; DropDownList3.SelectedValue = GridView5.Rows[0].Cells[3].Text; ModalPopupExtender4.Show(); } else if (CountRows > 1) { ModalPopupExtender2.Show(); } else if (CountRows == 0 && TextBox21.Text.Length > 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν βρέθηκε διαβατήριο σε αναμονή με αυτά τα στοιχεία!!!!');", true); TextBox21.Text = ""; } }
protected void Button3_Click(object sender, EventArgs e) { FillterCategorysearch(); fillpagegrid(); filtermainmenu(); ModalPopupExtender4.Show(); }
protected void btnSubmitRatingAndComment_Click(object sender, EventArgs e) { lblRateError.Text = ""; bll.Username = uid; bll.LocationID = ddlLocation.SelectedValue; bll.ServiceProviderID = ddlServiceProvider.SelectedValue; bll.ServiceProviderLocationID = bll.GetServiceProviderLocationID().Rows[0][0].ToString(); bll.Date = DateTime.Now.ToString(); bll.Username = uid; bll.Rating = HappyOrSad.Text; bll.RatingID = bll.RatingAdd().Rows[0][0].ToString(); Audit(uid, "INSERT", "Ratings", bll.RatingID); sendNotification(); string comment = commentsSuggestions.Text.Trim(); if (comment != "" && comment != null) { string value = "\""; value = Regex.Escape(value); string trimmedComments = Regex.Replace(comment, value, ""); bll.Comment = Regex.Replace(trimmedComments, "'", ""); if (HappyOrSad.Text.Equals("happy")) { bll.IsReview = "y"; } else { bll.IsReview = "n"; } bll.IsDeleted = "n"; bll.CommentID = bll.CommentAdd().Rows[0][0].ToString(); Audit(uid, "INSERT", "Comments", bll.CommentID); } ModalPopupExtender1.Hide(); ModalPopupExtender4.Show(); ddlServiceProvider.SelectedValue = "0"; ddlLocation.SelectedValue = "0"; commentsSuggestions.Text = ""; HappyOrSad.Text = ""; }
protected void Button120_Click(object sender, EventArgs e) { DropDownList1.SelectedValue = "0"; DropDownList1_SelectedIndexChanged(null, null); DropDownList2.SelectedValue = "10"; Label7.Text = ""; Label6.Text = ""; TextBox21.Text = ""; Pass_BarCode.DataBind(); ModalPopupExtender4.Hide(); }
private void ValidarModalDireccion() { if (HiddenActivateModalDireccion.Value == "1") { ModalPopupExtender4.Show(); } else { ModalPopupExtender4.Hide(); } }
protected void chkfilter_CheckedChanged(object sender, EventArgs e) { if (chkfilter.Checked == true) { ModalPopupExtender4.Show(); pnltype.Visible = true; } if (chkfilter.Checked == false) { ModalPopupExtender4.Hide(); pnltype.Visible = false; } }
protected void BtnSaveProductDetail_Click(object sender, EventArgs e) { List <MasProduct> lst = (List <MasProduct>)Session["DetailProdcut"]; bool IsCheckData = true; if (hddProductID.Value == "") { ShowMessageBox("กรุณาระบุ สินค้า !!!"); ModalPopupExtender4.Show(); return; } if (txtProductAmount.Text == "") { ShowMessageBox("กรุณาระบุ จำนวน !!!"); ModalPopupExtender4.Show(); return; } int pid = ToInt32(hddProductID.Value); if (hddProductMode.Value == "Add") { if (lst.Where(x => x.ProductID == pid).ToList().Count > 0) { ShowMessageBox("รหัสสินค้านี้ มีอยู่ใน list แล้ว!!!"); ModalPopupExtender4.Show(); return; } } else if (hddProductMode.Value == "Edit") { int pdid = ToInt32(hddPackageDetailID.Value); if (lst.Where(x => x.ProductID == pid && x.PackageDetailID != pdid).ToList().Count > 0) { ShowMessageBox("รหัสสินค้านี้ มีอยู่ใน list แล้ว!!!"); ModalPopupExtender4.Show(); return; } } if (IsCheckData) { SaveProductDetail(); } else { ModalPopupExtender4.Show(); } }
protected void chktaskproject_CheckedChanged(object sender, EventArgs e) { if (chktaskproject.Checked == true) { pnltaskproject.Visible = true; ModalPopupExtender4.Show(); plllll.Visible = true; } if (chktaskproject.Checked == false) { pnltaskproject.Visible = false; ModalPopupExtender4.Show(); } }
protected void btnSubmitRating_Click(object sender, EventArgs e) { lblRateError.Text = ""; bll.Username = uid; bll.LocationID = ddlLocation.SelectedValue; bll.ServiceProviderID = ddlServiceProvider.SelectedValue; bll.ServiceProviderLocationID = bll.GetServiceProviderLocationID().Rows[0][0].ToString(); bll.Date = DateTime.Now.ToString(); bll.Username = uid; bll.Rating = HappyOrSad.Text; bll.RatingID = bll.RatingAdd().Rows[0][0].ToString(); ddlServiceProvider.SelectedValue = "0"; ddlLocation.SelectedValue = "0"; commentsSuggestions.Text = ""; HappyOrSad.Text = ""; Audit(uid, "INSERT", "Ratings", bll.RatingID); sendNotification(); ModalPopupExtender1.Hide(); ModalPopupExtender4.Show(); }
protected void Button119_Click(object sender, EventArgs e) { if (DropDownList4.SelectedValue == "1" && string.IsNullOrWhiteSpace(this.TextBox115.Text)) { Label7.Text = "Δεν έχει συμπληρωθεί ο Αριθμός Διαβατηρίου"; ModalPopupExtender4.Show(); } else { TextBox8.Text = TextBox116.Text; TextBox8_TextChanged(null, null); TextBox20.Text = TextBox115.Text; Button1_Click(null, null); } }
protected void RadioButtonList2_SelectedIndexChanged(object sender, EventArgs e) { if (RadioButtonList2.SelectedValue == "0") { pnlusertype.Visible = true; pnlusername.Visible = false; ModalPopupExtender4.Show(); } if (RadioButtonList2.SelectedValue == "1") { pnlusertype.Visible = false; pnlusername.Visible = true; ModalPopupExtender4.Show(); } }
protected void UpdateSO_Click(object sender, EventArgs e) { ModalPopupExtender4.Hide(); using (SqlConnection sqlCon = new SqlConnection(connectionString)) { foreach (GridViewRow row in gvSO.Rows) { var chk = row.FindControl("SelectRowSO") as CheckBox; var companyname = this.Panel4.FindControl("NewCompanyNameSO") as TextBox; var sonumber = this.Panel4.FindControl("NewSONumber") as TextBox; var date = this.Panel4.FindControl("NewDateSO") as TextBox; var address = this.Panel4.FindControl("NewAddressSO") as TextBox; var billingaddress = this.Panel4.FindControl("NewBillingAddressSO") as TextBox; var salesrep = this.Panel4.FindControl("NewSalesRepSO") as DropDownList; var clientcode = this.Panel4.FindControl("NewClientCodeSO") as TextBox; var terms = this.Panel4.FindControl("NewTermsSO") as DropDownList; var phonenumber = this.Panel4.FindControl("NewPhoneNumberSO") as TextBox; var email = this.Panel4.FindControl("NewEmailSO") as TextBox; if (chk.Checked) { var lblID = row.FindControl("IdDisplaySO") as Label; SqlCommand cmd = new SqlCommand(); cmd.CommandText = "UPDATE SO SET CompanyName = @CompanyName, SONumber = @SONumber, Date = @Date, Address = @Address, BillingAddress = @BillingAddress, SalesRep = @SalesRep, ClientCode = @ClientCode, Terms = @Terms, PhoneNumber = @PhoneNumber, Email = @Email WHERE Id=@id"; cmd.Connection = sqlCon; cmd.Parameters.AddWithValue("@CompanyName", companyname.Text); cmd.Parameters.AddWithValue("@SONumber", sonumber.Text); cmd.Parameters.AddWithValue("@id", int.Parse(lblID.Text)); cmd.Parameters.AddWithValue("@Date", date.Text); cmd.Parameters.AddWithValue("@Address", address.Text); cmd.Parameters.AddWithValue("@BillingAddress", billingaddress.Text); cmd.Parameters.AddWithValue("@SalesRep", salesrep.Text); cmd.Parameters.AddWithValue("@ClientCode", clientcode.Text); cmd.Parameters.AddWithValue("@Terms", terms.Text); cmd.Parameters.AddWithValue("@PhoneNumber", phonenumber.Text); cmd.Parameters.AddWithValue("@Email", email.Text); sqlCon.Open(); cmd.ExecuteNonQuery(); SqlDataAdapter sqlDa = new SqlDataAdapter("SELECT * FROM SO", sqlCon); DataTable dtbl = new DataTable(); sqlDa.Fill(dtbl); gvSO.DataSource = dtbl; gvSO.DataBind(); sqlCon.Close(); } } } }
protected void chkdate_CheckedChanged(object sender, EventArgs e) { if (chkdate.Checked == true) { pnldate.Visible = true; RadioButtonList1_SelectedIndexChanged(sender, e); ModalPopupExtender4.Show(); plllll.Visible = true; } if (chkdate.Checked == false) { pnldate.Visible = false; pnlfromto.Visible = false; pnlperiod.Visible = false; ModalPopupExtender4.Show(); } }
protected void chkuser_CheckedChanged(object sender, EventArgs e) { if (chkuser.Checked == true) { pnluser.Visible = true; RadioButtonList2_SelectedIndexChanged(sender, e); ModalPopupExtender4.Show(); plllll.Visible = true; } if (chkuser.Checked == false) { pnluser.Visible = false; pnlusername.Visible = false; pnlusertype.Visible = false; ModalPopupExtender4.Show(); } }
protected void EditSO_Click(object sender, EventArgs e) { ModalPopupExtender4.Show(); UpdateSO.Visible = true; NewSONumber.Enabled = true; NewCompanyNameSO.Enabled = true; using (SqlConnection sqlCon = new SqlConnection(connectionString)) { foreach (GridViewRow row in gvSO.Rows) { var chk = row.FindControl("SelectRowSO") as CheckBox; if (chk.Checked) { var lblID = row.FindControl("IdDisplaySO") as Label; var companyname = row.FindControl("CompanyNameSOlbl") as Label; var sonumber = row.FindControl("SONumberlbl") as Label; var date = row.FindControl("DateDisplaySO") as Label; var address = row.FindControl("AddressDisplaySO") as Label; var billingaddress = row.FindControl("BillingAddressDisplaySO") as Label; var salesrep = row.FindControl("SalesRepDisplaySO") as Label; var clientcode = row.FindControl("ClientCodeDisplaySO") as Label; var terms = row.FindControl("TermsDisplaySO") as Label; var phonenumber = row.FindControl("PhoneNumberDisplaySO") as Label; var email = row.FindControl("EmailDisplaySO") as Label; SqlCommand comm = new SqlCommand(); comm.CommandText = "SELECT * FROM SO WHERE Id=@id"; comm.Connection = sqlCon; comm.Parameters.AddWithValue("@id", int.Parse(lblID.Text)); NewSONumber.Text = sonumber.Text; NewCompanyNameSO.Text = companyname.Text; NewDateSO.Text = date.Text; NewAddressSO.Text = address.Text; NewBillingAddressSO.Text = billingaddress.Text; NewSalesRepSO.Text = salesrep.Text; NewClientCodeSO.Text = clientcode.Text; NewTermsSO.Text = terms.Text; NewPhoneNumberSO.Text = phonenumber.Text; NewEmailSO.Text = email.Text; sqlCon.Open(); comm.ExecuteNonQuery(); sqlCon.Close(); } } } }
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e) { if (RadioButtonList1.SelectedValue == "0") { pnlfromto.Visible = true; pnlperiod.Visible = false; txteenddate.Text = System.DateTime.Now.ToShortDateString(); txtestartdate.Text = System.DateTime.Now.ToShortDateString(); ModalPopupExtender4.Show(); } if (RadioButtonList1.SelectedValue == "1") { ddlperiod_SelectedIndexChanged(sender, e); pnlfromto.Visible = false; pnlperiod.Visible = true; ModalPopupExtender4.Show(); } }
protected void Button9_Click(object sender, EventArgs e) { GridViewRow row = (GridViewRow)Session["Row_Gridview_for_TakeOver"]; if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) == TextBox126.Text || FINANCIAL_MANAGEMENT.App_Code.xrisi.User_For_ABE_Wait(Convert.ToInt32(row.Cells[20].Text)) == 0) { FINANCIAL_MANAGEMENT.App_Code.xrisi.Update_Reserv_ABE_Wait(Convert.ToInt32(row.Cells[20].Text), 1, User.Identity.Name); Session["Return_Path_for_Personel_Tameio"] = "/Kiosk/Kinisis_Kiosk.aspx"; Session["Edit_YN"] = row.Cells[17].Text; Session["ID_Pers_Check_Proj"] = row.Cells[20].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'PersonalDataKiosk.aspx', null, 'height=770,width=1200,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); ModalPopupExtender1.Hide(); TextBox135.Text = row.Cells[20].Text; Session["Update_ABE_WAIT_Schedule"] = "1"; txbID_Res.Text = TextBox135.Text; TextBox133.Text = "1"; ABE_KINISI_FILL.Update(); ABE_KINISI_FILL.DataBind(); GridView3.DataBind(); GridView3.SelectedIndex = -1; Resv_For_Marqee.DataBind(); Repeater1.DataBind(); } else { ABE_KINISI_FILL.DataBind(); GridView3.DataBind(); ModalPopupExtender1.Hide(); GridView3.SelectedIndex = -1; Label4.Text = "Ο/Η <b>" + row.Cells[13].Text + "</b> Διεκπεραιώνεται από τον χειριστή <b>" + FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) + "</b> . Αλλαγή χειριστή !"; ModalPopupExtender4.Show(); } }
public void NewSOFinish_Click(object sender, EventArgs e) { var companyname = this.Panel4.FindControl("NewCompanyNameSO") as TextBox; var sonumber = this.Panel4.FindControl("NewSONumber") as TextBox; var date = this.Panel4.FindControl("NewDateSO") as TextBox; var address = this.Panel4.FindControl("NewAddressSO") as TextBox; var billingaddress = this.Panel4.FindControl("NewBillingAddressSO") as TextBox; var salesrep = this.Panel4.FindControl("NewSalesRepSO") as DropDownList; var clientcode = this.Panel4.FindControl("NewClientCodeSO") as TextBox; var terms = this.Panel4.FindControl("NewTermsSO") as DropDownList; var phonenumber = this.Panel4.FindControl("NewPhoneNumberSO") as TextBox; var email = this.Panel4.FindControl("NewEmailSO") as TextBox; using (SqlConnection sqlCon = new SqlConnection(connectionString)) { SqlCommand cmd = new SqlCommand("INSERT INTO SO(CompanyName, SONumber, Date, Address, BillingAddress, SalesRep, ClientCode, Terms, PhoneNumber, Email) VALUES (@CompanyName, @SONumber, @Date, @Address, @BillingAddress, @SalesRep, @ClientCode, @Terms, @PhoneNumber, @Email)", sqlCon); cmd.Parameters.AddWithValue("@CompanyName", companyname.Text); cmd.Parameters.AddWithValue("@SONumber", sonumber.Text); cmd.Parameters.AddWithValue("@Date", date.Text); cmd.Parameters.AddWithValue("@Address", address.Text); cmd.Parameters.AddWithValue("@BillingAddress", billingaddress.Text); cmd.Parameters.AddWithValue("@SalesRep", salesrep.Text); cmd.Parameters.AddWithValue("@ClientCode", clientcode.Text); cmd.Parameters.AddWithValue("@Terms", terms.Text); cmd.Parameters.AddWithValue("@PhoneNumber", phonenumber.Text); cmd.Parameters.AddWithValue("@Email", email.Text); sqlCon.Open(); cmd.ExecuteNonQuery(); SqlDataAdapter sqlDa = new SqlDataAdapter("SELECT * FROM SO", sqlCon); DataTable dtbl = new DataTable(); sqlDa.Fill(dtbl); gvSO.DataSource = dtbl; gvSO.DataBind(); sqlCon.Close(); Label1SO.Text = (gvSO.DataSource as DataTable).Rows.Count + " Sales Orders"; } ModalPopupExtender4.Hide(); NewSOFinish.Visible = false; }
protected void Button120_Click(object sender, EventArgs e) { GridView3.SelectedIndex = -1; GridView3.DataBind(); ModalPopupExtender4.Hide(); }
protected void GridView3_RowCommand(object sender, GridViewCommandEventArgs e) { int rowIndex = Convert.ToInt32(e.CommandArgument); GridViewRow row = GridView3.Rows[rowIndex]; Session["Row_Gridview_for_TakeOver"] = row; if (e.CommandName == "SelectCH") { if (Convert.ToInt16(row.Cells[25].Text) == 0) { if (Convert.ToInt16(row.Cells[17].Text) == 0 || string.IsNullOrEmpty(row.Cells[17].Text as string) || FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) != TextBox126.Text) { if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) != TextBox126.Text) { GridView3.DataBind(); Label4.Text = "Ο/Η <b>" + row.Cells[13].Text + "</b> Διεκπεραιώνεται από τον χειριστή <b>" + FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) + "</b>. Αλλαγή χειριστή !"; ModalPopupExtender4.Show(); } else { Label2.Text = "Ο/Η " + " <b>" + row.Cells[13].Text + " </b>" + " θα διεκπεραιωθεί από τον " + User.Identity.Name; Session["Index_select_row_for_TakeOver"] = GridView3.SelectedIndex; TextBox135.Text = row.Cells[20].Text; ModalPopupExtender1.Show(); Repeater1.DataBind(); } } else if (Convert.ToInt16(row.Cells[17].Text) == 1) { TextBox133.Text = "2"; ABE_KINISI_FILL.Update(); Session["ID_Pers_Check_Proj"] = row.Cells[20].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'PersonalDataKiosk.aspx', null, 'height=770,width=1200,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); Session["Update_ABE_WAIT_Schedule"] = "1"; GridView3.DataBind(); GridView3.SelectedIndex = -1; } else if (Convert.ToInt16(row.Cells[17].Text) == 2) { TextBox133.Text = "2"; ABE_KINISI_FILL.Update(); Session["ID_Pers_Check_Proj"] = row.Cells[20].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'PersonalDataKiosk.aspx', null, 'height=770,width=1200,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); Session["Update_ABE_WAIT_Schedule"] = "1"; GridView3.SelectedIndex = -1; } else if (Convert.ToInt16(row.Cells[17].Text) == 3) { Label3.Text = "Δεν έχει εκδοθεί Αριθμός ΑΒΕ, Αναμονή Πληρωμής <br />" + " Επεξεργασία ;"; TextBox135.Text = row.Cells[20].Text; ModalPopupExtender2.Show(); } } else { if (Convert.ToInt16(row.Cells[18].Text) == 6) { Session["Visa_Ait_K"] = "101"; Session["Visa_ID_K"] = row.Cells[16].Text; Session["Name_Ensima_V"] = row.Cells[13].Text; Session["Praxi_Ensima_V"] = row.Cells[9].Text + ", " + row.Cells[10].Text; Session["ID_Ensima_V"] = row.Cells[25].Text; Session["Poso_Ensima_V"] = row.Cells[6].Text; Session["Poso_Ensima_LC_V"] = row.Cells[7].Text; Session["Etos_Esnima_V"] = row.Cells[14].Text; Session["Status_Cur_V"] = row.Cells[17].Text; Session["Date_Ensima"] = row.Cells[8].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'Visa_Status.aspx', null, 'height=220,width=690,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); GridView3.SelectedIndex = -1; // Response.Redirect("VISA_Print_Kiosk.aspx"); ABE_KINISI_FILL.DataBind(); GridView3.DataBind(); } else { if (Convert.ToDecimal(row.Cells[6].Text) > 300) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Γραμμάτιο Είσπραξης : " + row.Cells[25].Text + " από " + row.Cells[8].Text + " ');", true); ABE_KINISI_FILL.DataBind(); GridView3.DataBind(); } else { Session["Name_Ensima"] = row.Cells[13].Text; Session["Praxi_Ensima"] = row.Cells[9].Text + ", " + row.Cells[10].Text; Session["ID_Ensima"] = row.Cells[25].Text; Session["Poso_Ensima"] = row.Cells[6].Text; Session["Poso_Ensima_LC"] = row.Cells[7].Text; Session["Etos_Esnima"] = row.Cells[14].Text; Session["Status_Cur"] = row.Cells[17].Text; Session["Date_Ensima"] = row.Cells[8].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'Tameio/Ensima_Number_T.aspx', null, 'height=290,width=680,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); GridView3.SelectedIndex = -1; ABE_KINISI_FILL.DataBind(); GridView3.DataBind(); } } } } else if (e.CommandName == "Document") { // GridView3.SelectedIndex = -1; Session["ID_Ensima_K"] = row.Cells[25].Text; Session["Etos_Esnima_K"] = row.Cells[14].Text; Session["ID_Files_ABE"] = row.Cells[23].Text; Session["ABE_VISA_FET_Pics"] = row.Cells[24].Text; TextBox131.Text = (string)Session["ID_Ensima_K"]; // var chk = (System.Web.UI.WebControls.CheckBox)(row.Cells[13].FindControl("O_C_CHECK")); // CheckBox chk = (CheckBox)row.FindControl("O_C_CHECK"); // if (chk != null && chk.Checked) if (row.Cells[22].Text == "0") { ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(700/2);window.open( '../Diaxeirisi/Files_For_ABE.aspx', null, 'height=280,width=690,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); TextBox131.Text = null; } else { int cc = Convert.ToInt32(row.Cells[23].Text); Response.Redirect("~/Diaxeirisi/DownloadFile.ashx?yourVariable=" + cc); } } else if (e.CommandName == "SelectCHDESC") { if (Convert.ToInt16(row.Cells[17].Text) == 0 || string.IsNullOrEmpty(row.Cells[17].Text as string) || (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) != TextBox126.Text && Convert.ToInt32(row.Cells[17].Text) < 4)) { if (row.Cells[11].Text != " " && FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) != TextBox126.Text && Convert.ToInt32(row.Cells[17].Text) < 4) { GridView3.DataBind(); Label4.Text = "Ο/Η <b>" + row.Cells[13].Text + "</b> Διεκπεραιώνεται από τον χειριστή <b>" + FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[20].Text) + "</b>. Αλλαγή χειριστή !"; ModalPopupExtender4.Show(); } else { Label2.Text = "Ο/Η " + " <b>" + row.Cells[13].Text + " </b>" + " θα διεκπεραιωθεί από τον <b>" + User.Identity.Name + " </b>"; Session["Index_select_row_for_TakeOver"] = GridView3.SelectedIndex; TextBox135.Text = row.Cells[20].Text; ModalPopupExtender1.Show(); Resv_For_Marqee.DataBind(); Repeater1.DataBind(); } } else { Session["Return_Path_for_Personel_Tameio"] = "/Kiosk/Kinisis_Kiosk.aspx"; Session["Edit_YN"] = row.Cells[17].Text; Session["ID_Pers_Check_Proj"] = row.Cells[20].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'PersonalDataKiosk.aspx', null, 'height=770,width=1200,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); Session["Update_ABE_WAIT_Schedule"] = "1"; GridView3.SelectedIndex = -1; } } }
protected void btnAddModal_Click(object sender, EventArgs e) { ModalPopupExtender4.Show(); }
protected void btnModalClose3_Click(object sender, EventArgs e) { txtSearchProductCode.Text = ""; txtSearchProductName.Text = ""; ModalPopupExtender4.Show(); }
protected void Button17_Click(object sender, EventArgs e) { Label3.Text = GridView5.Rows[0].Cells[0].Text; Label6.Text = " Ημ.Απάντησης : "; ModalPopupExtender4.Show(); }
protected void btncancel_Click(object sender, EventArgs e) { ModalPopupExtender4.Hide(); }
protected void ddlusername_SelectedIndexChanged(object sender, EventArgs e) { SelectMsgforSendBox(); ModalPopupExtender4.Show(); }
protected void buttongo_Click(object sender, EventArgs e) { SelectMsgforSendBox(); ModalPopupExtender4.Show(); }