Esempio n. 1
0
    private void Load_TinhTrangViecLam()
    {
        DataTable tblTrangThaiViecLam = new DanhMuc().getList(38);
        DataRow   row = tblTrangThaiViecLam.NewRow();

        row["IdDanhMuc"]   = 0;
        row["NameDanhMuc"] = "--Chọn tình trạng việc làm--";
        tblTrangThaiViecLam.Rows.InsertAt(row, 0);
        ddlTinhTrangViecLam.DataValueField = "IdDanhMuc";
        ddlTinhTrangViecLam.DataTextField  = "NameDanhMuc";
        ddlTinhTrangViecLam.DataSource     = tblTrangThaiViecLam;
        ddlTinhTrangViecLam.DataBind();
    }
Esempio n. 2
0
    private void LuongToiThieuVung()
    {
        DataTable tblLuongToiThieu = new DanhMuc().getList(19);

        if (tblLuongToiThieu != null && tblLuongToiThieu.Rows.Count > 0)
        {
            DataRow Row = tblLuongToiThieu.NewRow();
            Row["Note"]        = "0";
            Row["NameDanhMuc"] = "Chọn vùng lương tối thiểu";
            tblLuongToiThieu.Rows.InsertAt(Row, 0);
            ddlLuongToiThieu.DataValueField = "Note";
            ddlLuongToiThieu.DataTextField  = "NameDanhMuc";
            ddlLuongToiThieu.DataSource     = tblLuongToiThieu;
            ddlLuongToiThieu.DataBind();
        }
    }