Beispiel #1
0
    protected void NoDataInsert_Click(object sender, EventArgs e)
    {
        TextBox tbCode = DeptGridView.Controls[0].Controls[0].FindControl("NoDataCode") as TextBox;
          TextBox tbDescription = DeptGridView.Controls[0].Controls[0].FindControl("NoDataDescription") as TextBox;

          DeptsBLL deptBll = new DeptsBLL();
          deptBll.AddDept(tbCode.Text, tbDescription.Text);
          DeptGridView.DataBind();
    }
Beispiel #2
0
    protected void InsertNew_Click(object sender, EventArgs e)
    {
        TextBox tbCode = DeptGridView.FooterRow.FindControl("InsertCode") as TextBox;
        TextBox tbDescription = DeptGridView.FooterRow.FindControl("InsertDescription") as TextBox;

        DeptsBLL deptBll = new DeptsBLL();
        deptBll.AddDept(tbCode.Text, tbDescription.Text);
        DeptGridView.DataBind();
    }
Beispiel #3
0
 public bool UpdateDept(DeptsBLL bll)
 {
     return UpdateDept(bll.Id, bll.Code, bll.Description);
 }
Beispiel #4
0
 public bool DeleteDept(DeptsBLL bll)
 {
     return DeleteDept(bll.Id);
 }