/// <summary> /// 初始化卖家的买家系统分组;另外功能还需要提供卖家自定义分组。 /// </summary> private void InitGroup(string strNick) { //同步系统分组功能 Group obj = new Group(); obj.Group_name = "新客户"; obj.SellerNick = strNick; obj.Memo = ""; obj.OpenStatus = true; //如果添加分组成功 if (!BuyerBLL.CheckGroupIsExit(strNick, "新客户")) { //BuyerBLL.AddBuyerGroup(obj); BuyerBLL.AddGroup(obj); } Group obj2 = new Group(); obj2.Group_name = "老客户"; obj2.SellerNick = strNick; obj2.Memo = ""; obj2.OpenStatus = true; //如果添加分组成功 if (!BuyerBLL.CheckGroupIsExit(strNick, "老客户")) { BuyerBLL.AddGroup(obj2); } Group obj3 = new Group(); obj3.Group_name = "休眠3个月"; obj3.SellerNick = strNick; obj3.Memo = ""; obj3.OpenStatus = true; //如果添加分组成功 if (!BuyerBLL.CheckGroupIsExit(strNick, "休眠3个月")) { BuyerBLL.AddGroup(obj3); } Group obj5 = new Group(); obj5.Group_name = "潜在客户"; obj5.SellerNick = strNick; obj5.Memo = ""; obj5.OpenStatus = true; //如果添加分组成功 if (!BuyerBLL.CheckGroupIsExit(strNick, "潜在客户")) { BuyerBLL.AddGroup(obj5); } }