コード例 #1
0
ファイル: Config.aspx.cs プロジェクト: gmhawash/SSR
    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();
    }
コード例 #2
0
ファイル: Config.aspx.cs プロジェクト: gmhawash/SSR
    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();
    }
コード例 #3
0
ファイル: DeptsBLL.cs プロジェクト: gmhawash/SSR
 public bool UpdateDept(DeptsBLL bll)
 {
     return UpdateDept(bll.Id, bll.Code, bll.Description);
 }
コード例 #4
0
ファイル: DeptsBLL.cs プロジェクト: gmhawash/SSR
 public bool DeleteDept(DeptsBLL bll)
 {
     return DeleteDept(bll.Id);
 }