var client = new HttpClient();
var url = BASConfig.Instance.SiteSettingsModule.SyncWorkLogAppUrl;
var paramlist = new List<KeyValuePair<string, string>>();
            paramlist.Add(new KeyValuePair<string, string>("CompanyId", bodyId.ToString()));
            paramlist.Add(new KeyValuePair<string, string>("UserId", loginId.ToString()));
            paramlist.Add(new KeyValuePair<string, string>("year", Date.Year.ToString()));
            paramlist.Add(new KeyValuePair<string, string>("month", Date.Month.ToString()));
            paramlist.Add(new KeyValuePair<string, string>("day", Date.Day.ToString()));
            paramlist.Add(new KeyValuePair<string, string>("summary", content));
            var result = client.PostAsync(new Uri(url), new FormUrlEncodedContent(paramlist)).Result;
            return result.Content.ReadAsStringAsync().Result;

 

posted on 2015-05-06 16:43  fuyujian  阅读(331)  评论(0编辑  收藏  举报