| | |
| | | using System.Transactions; |
| | | using System.Net.Http; |
| | | using System.Web.Script.Serialization; |
| | | using System.Net; |
| | | using System.IO; |
| | | |
| | | namespace CY.WebForm.Pages.work |
| | | { |
| | |
| | | // } |
| | | // } |
| | | //} |
| | | m_OA_WorkPlan.EvaluationContent = this.txtEvaluationContent.Value; |
| | | try |
| | | { |
| | | var request = (HttpWebRequest)WebRequest.Create(url); |
| | | request.Method = "GET"; |
| | | |
| | | using (var response = (HttpWebResponse)request.GetResponse()) |
| | | { |
| | | using (var reader = new StreamReader(response.GetResponseStream())) |
| | | { |
| | | string content = reader.ReadToEnd(); |
| | | JavaScriptSerializer serializer = new JavaScriptSerializer(); |
| | | var person = serializer.Deserialize<Responsebody>(content); |
| | | if (person != null && person.code == 1) |
| | | { |
| | | m_OA_WorkPlan.EvaluationContent = person.data; |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("生成报销单号失败", this); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | JavaScript.MessageBox("生成报销单号失败", this); |
| | | return; |
| | | } |
| | | |
| | | //m_OA_WorkPlan.EvaluationContent = this.txtEvaluationContent.Value; |
| | | |
| | | m_OA_WorkPlan.RewardResult = this.selSubject.Value; |
| | | var a_SubjectSet = _OA_SubjectSetBLL.getSingleSubject(this.selSubject.Value.ToInt32()); |