username@email.com
2025-06-23 f3f02a5a68c0e1d70a5447dc7bc8385a92c1807f
CY_ECommercePlatform/CY.WebForm/Pages/work/MyBaoxiaoAdd.aspx.cs
@@ -86,15 +86,15 @@
                    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)
@@ -120,14 +120,14 @@
        }
        //表单提交
        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
@@ -188,27 +188,27 @@
                        }
                    }
                  
                    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());
@@ -390,7 +390,7 @@
        //表单保存
        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")