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(); } }
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 Button1_Click(object sender, EventArgs e) { if (CheckBox2.Checked) { TextBox183.Text = "1"; } else { TextBox183.Text = "0"; } if (TextBox140.Text.Length == 0) { TextBox140.Text = "01/01/1900"; } TextBox148.Text = DateTime.ParseExact(TextBox140.Text, "dd/MM/yyyy", null).ToString(); if (DropDownList2.SelectedValue == "0") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Ελλιπή Στοιχεία !!!!');", true); } else { TextBox131.Text = ((Convert.ToDecimal(GridView1.Rows[0].Cells[0].Text))).ToString(); TextBox132.Text = ((Convert.ToDecimal(GridView4.Rows[0].Cells[0].Text))).ToString(); TextBox133.Text = "3"; ABE_KINISI_WAIT.Update(); Dikaiologitika.Delete(); foreach (GridViewRow row in GridView12.Rows) { System.Web.UI.WebControls.CheckBox chkRow = (row.Cells[0].FindControl("O_C_CHECK") as System.Web.UI.WebControls.CheckBox); if (chkRow.Checked) { txbYN.Text = "1"; } else { txbYN.Text = "0"; } txbID_Proj.Text = row.Cells[2].Text; txbDikaiol_desc.Text = row.Cells[1].Text; Dikaiologitika.Insert(); } if (GridView1.Rows[0].Cells[0].Text == "0.00" && TextBox183.Text == "0") { TextBox133.Text = "4"; ABE_KINISI_FILL.Update(); ABE_Sub_Category.Update(); TextBox136.Text = DateTime.Now.ToString(); TextBox12.Text = DateTime.Parse(TextBox151.Text).Year.ToString(); TextBox11.Text = DateTime.Parse(TextBox151.Text).Month.ToString(); int Etos_Y = DateTime.Parse(TextBox151.Text).Year; TextBox10.Text = FINANCIAL_MANAGEMENT.App_Code.xrisi.XrisiTR(Etos_Y).ToString(); Kin_Logariasmon.Insert(); ABE_KINISI.Insert(); ABE_KINISI_WAIT.Delete(); ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Αριθμός ΑΒΕ : " + FINANCIAL_MANAGEMENT.App_Code.xrisi.ABE_KINISI_FOR_Kiosk(Convert.ToInt32(TextBox135.Text)) + " ');", true); Session["Update_ABE_WAIT_Schedule"] = "0"; Button2_Click(null, null); } else if (GridView1.Rows[0].Cells[0].Text == "0.00" && TextBox183.Text == "1") { Session["ID_Pers_Check_Proj"] = TextBox135.Text; Session["Return_Path_for_Personel_Tameio"] = "/Kiosk/Kinisis_Kiosk.aspx"; ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(690/2);var Mtop = (screen.height-500)/2;window.open( '../Kiosk/Tameio/Tameio_Pay_Pollaples.aspx', null, 'height=770,width=1100,directories=no,titlebar=no,status=no,toolbar=no,scrollbars=no,menubar=no,location=no, left=\'+Mleft+\'' );", true); } else { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Η εγγραφή αποθηκεύτηκε επιτυχώς, Αναμονή Πληρωμής ');", true); Session["Update_ABE_WAIT_Schedule"] = "0"; Button2_Click(null, null); } } }