private void GetCustomerGroupAndSelected(Guid guid)
{
//获得所属客户组
BLL.Customer bllCustomer = new BLL.Customer();
BLL.CustomerGroup bllGroup = new BLL.CustomerGroup();
Model.Customer modelCustomer = new Model.Customer();
modelCustomer = bllCustomer.GetModel(guid);
List <string> lst = new List <string>();
bllGroup.GetSelected(ref lst, modelCustomer.parentGUID);
StringBuilder sb = new StringBuilder();
for (int i = lst.Count - 1; i > 0; i--)
{
sb.Append(lst[i]);
sb.Append(this.cbxCustomerGroup.BranchSeparator);
}
sb.Append(lst[0]);
this.cbxCustomerGroup.Text = sb.ToString();
this.cbxCustomerGroup.SelectedNode =
(this.cbxCustomerGroup.Nodes.Find(
modelCustomer.parentGUID.ToString(), true))[0];
cbxCustomerGroup_Leave(null, null);
cbxName.SelectedValue = guid.ToString();
}