CustomerService.BLL.Customer.GetModel C# (CSharp) Method

GetModel() public method

得到一个对象实体
public GetModel ( System.Guid GUID ) : CustomerService.Model.Customer
GUID System.Guid
return CustomerService.Model.Customer
		public CustomerService.Model.Customer GetModel(Guid GUID)
		{
			
			return dal.GetModel(GUID);
		}

Usage Example

示例#1
0
        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();
        }
All Usage Examples Of CustomerService.BLL.Customer::GetModel