protected void Button119_Click(object sender, EventArgs e) { // TextBox8_TextChanged(null, null); // Button1_Click(null, null); Pass_kinisi_Rep_Οld.Update(); Pass_kinisi.DataBind(); GridView3.DataBind(); TextBox21.Text = ""; }
protected void Button2_Click(object sender, EventArgs e) { TextBox152.Text = ""; Pass_kinisi.DataBind(); GridView3.DataBind(); Resv_For_Marqee.DataBind(); Repeater1.DataBind(); }
protected void Button112_Click(object sender, EventArgs e) { Passport_Satet.DataBind(); Passport_Satet_Edit_data.DataBind(); DropDownList6.SelectedValue = "0"; DropDownList1.SelectedValue = "0"; TextBox8.Text = ""; DropDownList6_SelectedIndexChanged(null, null); Pass_kinisi.DataBind(); DropDownList1.DataBind(); GridView3.DataBind(); ModalPopupExtender2.Hide(); }
protected void GridView3_RowCommand(object sender, GridViewCommandEventArgs e) { // GridView3.SelectedIndex = -1; int rowIndex = Convert.ToInt32(e.CommandArgument); //Reference the GridView Row. GridViewRow row = GridView3.Rows[rowIndex]; Session["ID_Ensima_K"] = row.Cells[0].Text; Session["Etos_Esnima_K"] = row.Cells[10].Text; Session["ID_Files_ABE"] = row.Cells[19].Text; TextBox131.Text = (string)Session["ID_Ensima_K"]; if (e.CommandName == "Select") { Pass_kinisi.DataBind(); } else if (e.CommandName == "Document") { // 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 (Convert.ToBoolean(row.Cells[18].Text) == false) { Session["ABE_VISA_FET_Pics"] = "1"; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(700/2);window.open( '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[19].Text); Response.Redirect("DownloadFile.ashx?yourVariable=" + cc); } } }
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList3.SelectedValue == "0") { Label1.Text = "Ημ. Παράδοσης"; Button1.Visible = true; Button4.Visible = false; Button5.Visible = false; } else { Label1.Text = "Ημ. Επιστροφής Χρημάτων"; Button1.Visible = false; Button4.Visible = true; Button5.Visible = true; } Pass_kinisi.DataBind(); GridView3.DataBind(); Passport_Satet.DataBind(); DropDownList1.Items.Clear(); DropDownList1.Items.Add(new ListItem("Επιλογή", "0")); DropDownList1.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { TextBox9.Text = TextBox13.Text + " " + TextBox138.Text; if (TextBox145.Text.Length == 0) { TextBox145.Text = "01/01/1900"; } Find_Date(); if (TextBox129.Text == "0" && TextBox128.Text == "1") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Δεν έχει ορισθεί Ισοτιμία για τον μήνα');", true); } else { if (DropDownList2.SelectedValue == "0" || TextBox9.Text.Length == 0 || TextBox13.Text.Length == 0 || TextBox138.Text.Length == 0 || TextBox139.Text.Length == 0 || TextBox140.Text.Length == 0 || TextBox141.Text.Length == 0 || TextBox142.Text.Length == 0 || TextBox143.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Ελλειπή Στοιχεία!!!!');", true); } else { TextBox148.Text = DateTime.ParseExact(TextBox140.Text, "dd/MM/yyyy", null).ToString(); TextBox149.Text = DateTime.ParseExact(TextBox145.Text, "dd/MM/yyyy", null).ToString(); TextBox12.Text = DateTime.Parse(TextBox8.Text).Year.ToString(); TextBox11.Text = DateTime.Parse(TextBox8.Text).Month.ToString(); xrisi(); if (GridView1.Rows.Count > 0) { TextBox121.Text = GridView1.Rows[0].Cells[0].Text; if (TextBox128.Text == "1") { TextBox130.Text = GridView6.Rows[0].Cells[0].Text; } } if (Convert.ToDateTime(TextBox8.Text) < Convert.ToDateTime(TextBox133.Text)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Λανθασμένη Ημερομηνία, υπάρχει μεταγενέστερη εγγραφή : " + TextBox133.Text + " ');", true); } else { TextBox125.Text = GridView2.Rows[0].Cells[0].Text; if (TextBox128.Text == "1") { TextBox131.Text = GridView7.Rows[0].Cells[0].Text; } Passport_KINISI.Insert(); ABE_Kinisi.Insert(); Kin_Logariasmon.Delete(); //it inserts post cost 5 euro Reservations.Insert(); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Η εγγραφή αποθηκεύτηκε επιτυχώς ');window.open('Kinisis_Pass.aspx','_self');", true); } } } Pass_kinisi.DataBind(); }
protected void Button3_Click(object sender, EventArgs e) { if (TextBox20.Text == "0") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Δεν έχει επιλεγεί Αίτηση για αποστολή ');", true); } else { for (int i = 0; i < GridView3.Rows.Count; i++) { var chk = (System.Web.UI.WebControls.CheckBox)(GridView3.Rows[i].Cells[1].FindControl("O_C_CHECK")); if (chk.Checked) { TextBox117.Text = GridView3.Rows[i].Cells[8].Text; Pass_kinisi.Update(); } } Pass_kinisi.DataBind(); GridView3.DataBind(); TextBox129.Text = DateTime.ParseExact(TextBox8.Text, "dd/MM/yyyy", CultureInfo.CurrentCulture).ToString("MM/dd/yyyy"); ReportViewer1.LocalReport.DataSources.Clear(); ReportDataSource rds1 = new ReportDataSource(); rds1.Name = "DataSet1"; rds1.Value = Pass_kinisi_Rep; ReportViewer1.LocalReport.DataSources.Add(rds1); ReportViewer1.LocalReport.Refresh(); Warning[] warnings; string[] streamIds; string mimeType = string.Empty; string encoding = string.Empty; string extension = string.Empty; // Setup the report viewer object and get the array of bytes ReportViewer viewer = ReportViewer1; viewer.ProcessingMode = ProcessingMode.Local; viewer.LocalReport.ReportPath = "Diaxeirisi/ToELAS.rdlc"; byte[] bytes = viewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings); // Now that you have all the bytes representing the PDF report, buffer it and send it to the client. Response.Buffer = true; Response.Clear(); Response.ContentType = mimeType; Response.AddHeader("content-disposition", "attachment; filename=PDF" + "." + extension); Response.BinaryWrite(bytes); // create the file Response.Flush(); // send it to the client to download Response.End(); Pass_kinisi.DataBind(); GridView3.DataBind(); } }
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") { ClientScript.RegisterStartupScript(typeof(Page), "closePage", "Ensimo_Number.close();", true); if (Convert.ToInt32(row.Cells[24].Text) == 0) { if (string.IsNullOrEmpty(row.Cells[18].Text) || Convert.ToInt32(row.Cells[18].Text) == 0 || FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) != TextBox126.Text) { if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) != TextBox126.Text) { GridView3.DataBind(); 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(); } else { Label1.Text = "Ο/Η " + " <b>" + row.Cells[17].Text + " </b>" + " θα διεκπεραιωθεί από τον " + User.Identity.Name; ModalPopupExtender1.Show(); } } else if (Convert.ToInt32(row.Cells[18].Text) == 1 || Convert.ToInt32(row.Cells[18].Text) == 2) // Cells[18] = STATUS { if (Convert.ToInt32(row.Cells[26].Text) != 28) // Cells[26] = Sub_cat_ID { //FINANCIAL_MANAGEMENT.App_Code.xrisi.Update_Reserv_ABE_Wait(Convert.ToInt32(row.Cells[18].Text), 2, User.Identity.Name); Session["Return_Path_for_Personel_Tameio_diav"] = "/Kiosk/Kinisis_Pass_Kiosk.aspx"; 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); } GridView3.DataBind(); Session["Update_ABE_WAIT_pass_Schedule"] = "1"; } else if (Convert.ToInt32(row.Cells[18].Text) == 3) { TextBox135.Text = row.Cells[19].Text; Label3.Text = " <b>" + row.Cells[17].Text + "</b> , Αναμονή Πληρωμής, έκδοση ABE <br />" + " Επεξεργασία ;"; ModalPopupExtender2.Show(); Resv_For_Marqee.DataBind(); Repeater1.DataBind(); } } else { Session["Name_Ensima"] = row.Cells[17].Text; Session["Praxi_Ensima"] = row.Cells[15].Text; Session["ID_Ensima"] = row.Cells[24].Text; Session["Poso_Ensima"] = row.Cells[7].Text; Session["Poso_Ensima_LC"] = row.Cells[8].Text; Session["Etos_Esnima"] = row.Cells[13].Text; Session["Status_Cur"] = row.Cells[18].Text; Session["ID_Pass"] = row.Cells[19].Text; Session["Date_Pass"] = row.Cells[11].Text; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( 'Passport_Status.aspx', null, 'height=200,width=640,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); } Pass_kinisi.DataBind(); } else if (e.CommandName == "Document") { // GridView3.SelectedIndex = -1; Session["ID_Ensima_K"] = row.Cells[24].Text; Session["Etos_Esnima_K"] = row.Cells[13].Text; Session["ID_Files_ABE"] = row.Cells[23].Text; // 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") { Session["ABE_VISA_FET_Pics"] = "1"; 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); } else { int cc = Convert.ToInt32(row.Cells[23].Text); Response.Redirect("~/Diaxeirisi/DownloadFile.ashx?yourVariable=" + cc); } } else if (e.CommandName == "SelectCHDESC") { if (Convert.ToInt32(row.Cells[18].Text) == 0 || string.IsNullOrEmpty(row.Cells[18].Text) || (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) != TextBox126.Text && Convert.ToInt32(row.Cells[18].Text) < 4)) { if (row.Cells[14].Text != " " && FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_User_Abe_Kinisis_Wait(row.Cells[19].Text) != TextBox126.Text && Convert.ToInt32(row.Cells[18].Text) < 4) { 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(); } else { Session["Passport_Person_Kiosk"] = row.Cells[19].Text; Session["Passport_Person_Kiosk_PTE"] = row.Cells[19].Text; Label1.Text = "Ο/Η " + " <b>" + row.Cells[17].Text + " </b>" + "θα διεκπεραιωθεί από τον <b>" + User.Identity.Name + " </b>"; ModalPopupExtender1.Show(); Resv_For_Marqee.DataBind(); Repeater1.DataBind(); } } else { 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); } GridView3.DataBind(); Session["Update_ABE_WAIT_pass_Schedule"] = "1"; } } }