コード例 #1
0
    private DataTable GetAccountType(int LoginId)
    {
        DataTable dtAccountType = new AdministrationBAL().GetAccountTypeByLoginView();

        DataRow[] dr = dtAccountType.Select("LoginId=" + LoginId.ToString());

        DataTable dtvalid = dtAccountType.Clone();

        dtvalid = dr.CopyToDataTable();

        return(dtvalid);
    }
コード例 #2
0
    private DataTable GetLoginTable(int LoginId, int AccountTypeId)
    {
        DataTable dtLoginView = new AdministrationBAL().GetLoginTypeById();

        DataRow[] drLogin = dtLoginView.Select("LoginId=" + LoginId.ToString() + " AND " + "Type=" + AccountTypeId.ToString());

        DataTable dtLogin = null;

        if (drLogin.Length > 0)
        {
            dtLogin = dtLoginView.Clone();

            dtLogin = drLogin.CopyToDataTable();
        }
        else
        {
            dtLogin = dtLoginView.Clone();
        }

        return(dtLogin);
    }