| | |
| | | selSubject.Disabled = true; |
| | | txtPlanContent.Disabled = true; |
| | | selHoubufapiaoStatus.Disabled = true; |
| | | this.Button1.Enabled = false; |
| | | this.Button3.Enabled = false; |
| | | this.Button2.Enabled = false; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(Request["zaici"])) |
| | | { |
| | | this.Button1.Enabled = false; |
| | | this.Button3.Enabled = false; |
| | | this.Button2.Enabled = false; |
| | | this.btn_submit.Text = "再次提交"; |
| | | this.Button1.Text = "再次提交"; |
| | | } |
| | | |
| | | if (m_OA_WorkPlan != null) |
| | |
| | | } |
| | | |
| | | //表单提交 |
| | | protected void btn_submit_form(object sender, EventArgs e) |
| | | protected void btn_baocun_form(object sender, EventArgs e) |
| | | { |
| | | var HideKeyidFapiao = Request["HideKeyidFapiao"].Split(','); |
| | | if(HideKeyidFapiao.Length<=1 && this.selHoubufapiaoStatus.Value == "1") |
| | | { |
| | | JavaScript.MessageBox("选择有发票必须上传发票", this); |
| | | return; |
| | | } |
| | | if (HideKeyidFapiao.Length <= 1 && this.selHoubufapiaoStatus.Value == "1") |
| | | { |
| | | JavaScript.MessageBox("选择有发票必须上传发票", this); |
| | | return; |
| | | } |
| | | |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | |
| | | } |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(m_OA_WorkPlan.EvaluationContent)) |
| | | { |
| | | using (var client = new HttpClient()) |
| | | { |
| | | HttpResponseMessage response = client.GetAsync(url).Result; |
| | | response.EnsureSuccessStatusCode(); |
| | | string responseBody = response.Content.ReadAsStringAsync().Result; |
| | | JavaScriptSerializer serializer = new JavaScriptSerializer(); |
| | | var person = serializer.Deserialize<Responsebody>(responseBody); |
| | | if (person != null && person.code == 1) |
| | | { |
| | | m_OA_WorkPlan.EvaluationContent = person.data; |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("生成报销单号失败", this); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | //m_OA_WorkPlan.EvaluationContent = ""; |
| | | //if (string.IsNullOrEmpty(m_OA_WorkPlan.EvaluationContent)) |
| | | //{ |
| | | // using (var client = new HttpClient()) |
| | | // { |
| | | // HttpResponseMessage response = client.GetAsync(url).Result; |
| | | // response.EnsureSuccessStatusCode(); |
| | | // string responseBody = response.Content.ReadAsStringAsync().Result; |
| | | // JavaScriptSerializer serializer = new JavaScriptSerializer(); |
| | | // var person = serializer.Deserialize<Responsebody>(responseBody); |
| | | // if (person != null && person.code == 1) |
| | | // { |
| | | // m_OA_WorkPlan.EvaluationContent = person.data; |
| | | // } |
| | | // else |
| | | // { |
| | | // 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()); |
| | |
| | | |
| | | |
| | | //表单保存 |
| | | protected void btn_baocun_form(object sender, EventArgs e) |
| | | protected void btn_tijiao_form(object sender, EventArgs e) |
| | | { |
| | | var HideKeyidFapiao = Request["HideKeyidFapiao"].Split(','); |
| | | //if (HideKeyidFapiao.Length <= 1 && this.selHoubufapiaoStatus.Value == "1") |