Microsoft Dynamics CRM 2013 - 创建弹出/对话框

时间:2015-04-29 10:55:23

标签: popup crm microsoft-dynamics

我正在尝试创建一个像这样的弹出窗口:

http://i.stack.imgur.com/faqQA.png

但我不知道从哪里开始。 它是Webresource吗?如果是,是通过JScript或ASPX完成的吗?

2 个答案:

答案 0 :(得分:1)

重新检查我的文章,该文章描述了逐步创建自己的对话框窗口 - http://a33ik.blogspot.com/2014/06/step-by-step-creating-dialog-windows.html

答案 1 :(得分:0)

public IOrganizationService GetCRMService()         {

        string Username = "**********";
        string password = "**********";
        IOrganizationService _service;
        ClientCredentials credentials = new ClientCredentials();
        credentials.UserName.UserName = Username;
        credentials.UserName.Password = password;
        credentials.Windows.ClientCredential = CredentialCache.DefaultNetworkCredentials;
        Uri serviceUri = new Uri("https://*******.api.crm**.dynamics.com/XRMServices/2011/Organization.svc");

        Uri HomeRealm = null;


        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
        OrganizationServiceProxy proxy = new OrganizationServiceProxy(serviceUri, HomeRealm, credentials, null);
        {

            _service = (IOrganizationService)proxy;

        }
        return _service;
    }<!---- Modal Gridvview popup for Dynamic crm -------!>protected void Page_Load(object sender, EventArgs e)
    {
        IOrganizationService _service = GetCRMService();
        QueryExpression Query = new QueryExpression("contact");
        Query.ColumnSet.AllColumns = true;
        filtering conditions
        Query.Criteria.AddCondition("fullname", ConditionOperator.NotEqual, "xxx");
        Query.Criteria.AddCondition("emailaddress1", ConditionOperator.NotEqual, "xxx");
        Query.Criteria.AddCondition("telephone1", ConditionOperator.NotEqual, "xxx");
        Query.Criteria.AddCondition("address1_line2", ConditionOperator.NotEqual, "xxx");
        EntityCollection collection = _service.RetrieveMultiple(Query);
        DataTable dt = new DataTable();
        dt.Columns.Add("fullname");
        dt.Columns.Add("emailaddress1");
        dt.Columns.Add("telephone1");
        dt.Columns.Add("address1_line2");
        dt.Columns.Add("");

        foreach (Entity entity in collection.Entities)
        {
            DataRow dr = dt.NewRow();
            dr["fullname"] = entity.Attributes["fullname"].ToString();
            dr["emailaddress1"] = entity.Attributes["emailaddress1"].ToString();
            dr["telephone1"] = entity.Attributes["telephone1"].ToString();
             dr["address1_line2"] = entity.Attributes["address1_line2"].ToString();
            dt.Rows.Add(dr);
        }
        GridView1.DataSource = dt;
        GridView1.DataBind();


    }