username@email.com
2025-05-15 9be7596c0b251c392ab0788f3d18806502c6ee76
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Model;
using CY.Infrastructure.Query;
using CY.Infrastructure.Common;
using CY.BLL.Sys;
using System.Text;
using CY.BLL.OA;
 
namespace CY.WebForm.Pages.business
{
    //吴辉
    //修改自动外协价格
    public partial class OutsourceFirmPrice : BasePage
    {
        OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null;
 
        //初始化
        public OutsourceFirmPrice()
        {
            bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }
 
        //绑定数据
        public void BindData()
        {
            OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["keyid"].ToGuid2());
            if (m_OA_CorporateClients != null)
            {
                this.txtOutRate.Value = (m_OA_CorporateClients.OutRate * 100).ToInt32().ToString2();
            }
        }
 
        //提交事件
        protected void btn_Submit_Config(object sender, EventArgs e)
        {
            OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["keyid"].ToGuid2());
            if (m_OA_CorporateClients != null)
            {
                m_OA_CorporateClients.OutRate = this.txtOutRate.Value.ToInt32().ToDouble2() / 100;
                if (bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients))
                    JavaScript.MessageBox("修改成功", this, true, true);
                else
                    JavaScript.MessageBox("修改失败", this, true, true);
            }
            else
                JavaScript.MessageBox("修改失败", this, true, true);
        }
    }
}