| | |
| | | if (indexeList.Count > 0) |
| | | { |
| | | dicSateteList.Clear(); |
| | | string s = string.Empty; |
| | | string userNameStr = string.Empty; |
| | | string seleUsrIdStr = string.Empty; |
| | | string tag = string.Empty; |
| | | //数据封装 |
| | | string[] arrayUserIds = new string[indexeList.Count]; |
| | | //开门类型 |
| | | AddDictionary("open_type", "1", "integer"); |
| | | for (int i = 0; i < indexeList.Count; i++) |
| | | { |
| | | |
| | | if (i > faceIdList.Count) |
| | | { |
| | | continue; |
| | | } |
| | | var indexe = indexeList[i]; |
| | | var face = faceIdList[indexe]; |
| | | AddDictionary("user_id", face.userId, "string"); |
| | | s += face.userName; |
| | | s += ","; |
| | | tag += face.userId; |
| | | tag += "_"; |
| | | userNameStr += face.userName; |
| | | userNameStr += ","; |
| | | arrayUserIds[i] = face.userId; |
| | | } |
| | | seleUsrIdStr = Newtonsoft.Json.JsonConvert.SerializeObject(arrayUserIds); |
| | | AddDictionary("user_id", seleUsrIdStr, "string", "[]"); |
| | | //界面显示选中值 |
| | | btnState.Text = s; |
| | | btnState.Text = InpOrOutLogicMethod.Current.RemoveLastStr(userNameStr); |
| | | btnState.Tag = tag; |
| | | } |
| | | |