コード例 #1
0
        protected void GridView3_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList1.SelectedValue = GridView3.SelectedRow.Cells[12].Text;
            DropDownList1_SelectedIndexChanged(null, null);
            TextBox21.Text = "";
            TextBox21_TextChanged(null, null);

            if (GridView3.SelectedRow.Cells[13].Text == "2")
            {
                DropDownList2.SelectedValue = "2";
                Show_Date_moneyBack();
                //          DropDownList3.Enabled = false;
                DropDownList2.Enabled = false;
                //         DropDownList1.Enabled = false;
            }
            else
            {
                //          DropDownList3.Enabled = true;
                DropDownList2.Enabled = true;
                //          DropDownList1.Enabled = true;
            }

            GridView3.SelectedIndex = -1;
            LnkFocus.Focus();
        }
コード例 #2
0
        protected void GridView10_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList2.SelectedValue = GridView10.SelectedRow.Cells[5].Text;

            dele_DDL();
            DropDownList2_SelectedIndexChanged(this, EventArgs.Empty);
            LnkFocus.Focus();
        }
コード例 #3
0
        protected void GridView3_SelectedIndexChanged(object sender, EventArgs e)
        {
            TextBox18.Text = GridView3.SelectedRow.Cells[12].Text;
            DropDownList1.SelectedValue = GridView3.SelectedRow.Cells[12].Text;
            Pass_kinisi_data.DataBind();
            GridView4.DataBind();


            if (GridView4.Rows.Count > 0)
            {
                TextBox17.Text   = Convert.ToDateTime(GridView4.Rows[0].Cells[2].Text).ToShortDateString();
                calEx2.StartDate = Convert.ToDateTime(TextBox17.Text);
            }

            LnkFocus.Focus();
            GridView3.SelectedIndex = -1;
        }
コード例 #4
0
        protected void GridView3_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList1.SelectedValue = GridView3.SelectedRow.Cells[12].Text;
            DropDownList1_SelectedIndexChanged(null, null);

            if (GridView3.SelectedRow.Cells[13].Text == "2")
            {
                DropDownList2.SelectedValue = "2";
                Show_Date_moneyBack();

                LnkFocus.Focus();
            }
            else
            {
                LnkFocus.Focus();
            }

            GridView3.SelectedIndex = -1;
        }
コード例 #5
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     if (DropDownList2.Items.Count <= 1 || DropDownList2.SelectedValue == "10000000")
     {
         ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                 "alertMessage",
                                                 "alert('Δεν έχει γίνει επιλογή  !!!!');", true);
     }
     else
     {
         txbID_Res.Text = GridView9.Rows[0].Cells[18].Text;
         ABE_KINISI_WAIT_GRID.Update();
         ABE_KINISI_WAIT_GRID.DataBind();
         ABE_KINISI_WAIT_List.DataBind();
         DropDownList2.DataBind();
         GridView10.DataBind();
         LnkFocus.Focus();
     }
 }