protected void bt_Add_StaffInOrganizeCity_Click(object sender, EventArgs e)
    {
        if (ddl_StaffInOrganizeCity.SelectedValue != "0" && (int)ViewState["ID"] != 0)
        {
            Org_StaffBLL _staffbll = new Org_StaffBLL((int)ViewState["ID"]);
            _staffbll.StaffInOrganizeCity_Add(int.Parse(ddl_StaffInOrganizeCity.SelectedValue));

            gv_StaffInOrganizeCity.BindGrid<Addr_OrganizeCity>(_staffbll.StaffInOrganizeCity_GetOrganizeCitys());
        }
    }
Ejemplo n.º 2
0
    protected void bt_Add_StaffInOrganizeCity_Click(object sender, EventArgs e)
    {
        if (ddl_StaffInOrganizeCity.SelectedValue != "0" && (int)ViewState["ID"] != 0)
        {
            Org_StaffBLL _staffbll = new Org_StaffBLL((int)ViewState["ID"]);
            _staffbll.StaffInOrganizeCity_Add(int.Parse(ddl_StaffInOrganizeCity.SelectedValue));

            gv_StaffInOrganizeCity.BindGrid <Addr_OrganizeCity>(_staffbll.StaffInOrganizeCity_GetOrganizeCitys());
        }
    }