Cloud 如何定制Acumatica的登录页面

Cloud 如何定制Acumatica的登录页面,cloud,customization,erp,acumatica,Cloud,Customization,Erp,Acumatica,谁能指导我如何在Acumatica中自定义登录页面?我想在选择公司登录时添加一些信息。 感谢您的支持。作为建议,我可以建议您分析页面母版页\Login.master并修改其中的一些信息 这是我的把戏 首先修改Frames/Login.aspx.cs并添加以下功能 private DataSet GetCompanyList() { string connectionString = ConfigurationManager.ConnectionStrings["P

谁能指导我如何在Acumatica中自定义登录页面?我想在选择公司登录时添加一些信息。
感谢您的支持。

作为建议,我可以建议您分析页面母版页\Login.master并修改其中的一些信息

这是我的把戏

首先修改Frames/Login.aspx.cs并添加以下功能

    private DataSet GetCompanyList()
    {
        string connectionString = ConfigurationManager.ConnectionStrings["ProjectX"].ConnectionString;
        string queryString = "SELECT b.AcctCD, b.AcctName FROM BAccount b WHERE b.[Type] = 'CP'";
        SqlDataAdapter adapter = new SqlDataAdapter(queryString, connectionString);

        DataSet companies = new DataSet();
        adapter.Fill(companies, "BAccount");

        return companies;
    }
然后编辑FillCompanyCombo函数:

private void FillCompanyCombo()
{
    DataSet ds = GetCompanyList();
    DataTable dt = ds.Tables[0];

    string[] companies = PXDatabase.AvailableCompanies;

    var query = from row in dt.AsEnumerable()
                join a in companies on row["AcctCD"].ToString().Trim() equals a
                select new { Code = a, Name = row["AcctName"] };
    var list = query.ToList();

    if (list.Count == 0)
    {
        this.cmbCompany.Visible = false;
    }
    else
    {
        this.cmbCompany.Items.Clear();
        foreach (var item in list)
        {
            this.cmbCompany.Items.Add(new ListItem(item.Code + " - " + item.Name, item.Code));
        }

        if (list.Count == 1)
        {
            this.cmbCompany.Visible = false;
            this.cmbCompany.SelectedValue = this.cmbCompany.Items[0].Value;
        }
        else
        {
            HttpCookie cookie = this.Request.Cookies["CompanyID"];
            if (cookie != null && !string.IsNullOrEmpty(cookie.Value))
                this.cmbCompany.SelectedValue = cookie.Value;
        }
    }
}

我正在使用acumatica 4.0版,因此找不到Login.master.Hm。请告诉我你用哪一种针灸?我可以尝试在我的电脑上安装你的版本,希望能给你一些答案