| | |
| | | //如果该功能已经分享,更新原有的数据 |
| | | if (null != sd) |
| | | { |
| | | sd.ShareDataBytes = DAL.CommonPage.MyEncodingUTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(f)); |
| | | sd.ShareDataBytes = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(f)); |
| | | result = EditShareData(sd); |
| | | } |
| | | else//如果该功能未被分享,则新增分享 |
| | |
| | | bool EditShareData(ShareData sd) |
| | | { |
| | | ResponsePack responePack = new HttpServerRequest().EditShareData(sd); |
| | | if (responePack.StateCode.ToUpper() == "SUCCESS") |
| | | if (responePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | return true; |
| | | } |
| | |
| | | void LoadMethod_GetMemberSharedDataList(ResidenceMemberInfo info) |
| | | { |
| | | ResponsePack responePack = new HttpServerRequest().GetShareDataByMemberAccount(info.SubAccountDistributedMark); |
| | | if (responePack.StateCode.ToUpper() == "SUCCESS") |
| | | if (responePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ShareData>>(responePack.ResponseData.ToString()); |
| | | info.CurResidenceShareDate = responeObj; |
| | |
| | | { |
| | | var result = false; |
| | | ResponsePack responePack = new HttpServerRequest().GetResidenceMemberAccount(); |
| | | if (responePack.StateCode.ToUpper() == "SUCCESS") |
| | | if (responePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | memberList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ResidenceMemberInfo>>(responePack.ResponseData.ToString()); |
| | | foreach (var mInfo in memberList) |