Esempio n. 1
0
        protected void DataGrid_tinbai_EditCommand(object source, DataGridCommandEventArgs e)
        {
            DataSet ds = new DataSet();

            if (e.CommandArgument.ToString().ToLower() == "edit")
            {
                HPCBusinessLogic.DAL.TinBaiDAL Dal = new HPCBusinessLogic.DAL.TinBaiDAL();
                string _matinbai = DataGrid_tinbai.DataKeys[e.Item.ItemIndex].ToString();
                string sqlselect = "select * from T_Lichsu_Thaotac_TinBai where Ma_TinBai=" + _matinbai + " order by NgayThaotac";
                ds = Ulti.ExecSqlDataSet(sqlselect);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    DataGridLichsuthaotactinbai.DataSource = ds;
                    DataGridLichsuthaotactinbai.DataBind();
                    ModalPopupThaotactinbai.Show();
                }
            }
        }
Esempio n. 2
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     ModalPopupThaotactinbai.Hide();
 }