username@email.com
2025-05-12 ae6e40362a745caef9ead36f81f38313fb8c2c66
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CY.Model;
using CY.BLL;
using CY.Infrastructure.Common;
using CY.Infrastructure.Query;
 
namespace CY.WebForm.Pages.personnel
{
    //吴辉
    //新增/修改简历投递记录    
    public partial class OA_StaffPostLogAdd : BasePage
    {
        OA_StaffPostLogBLL bll_OA_StaffPostLogBLL = null;
 
        //初始化
        public OA_StaffPostLogAdd()
        {
            bll_OA_StaffPostLogBLL = new OA_StaffPostLogBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }
        }
 
        //数据加载
        public void InitData()
        {
            OA_StaffPostLog m_OA_StaffPostLog = bll_OA_StaffPostLogBLL.GetModelByKeyid(Request["keyid"].ToInt32());
            if (m_OA_StaffPostLog != null)
            {
                if (m_OA_StaffPostLog.PL_Status == 0)
                {
                    m_OA_StaffPostLog.PL_Status = 1;
                    m_OA_StaffPostLog.PL_LookStatus = 1;
                    m_OA_StaffPostLog.PL_LookTime = DateTime.Now;
                    m_OA_StaffPostLog.LastUpdateTime = DateTime.Now;
                    m_OA_StaffPostLog.Operator = CurrentUser.ShortName;
                    bll_OA_StaffPostLogBLL.UpdateModel(m_OA_StaffPostLog);
                }
 
                this.spanPL_ReplyTime.InnerText = m_OA_StaffPostLog.PL_ReplyTime.ToString2();
                this.spanPL_ReplyContent.InnerText = m_OA_StaffPostLog.PL_ReplyContent.ToString2();
 
                this.spanPL_InviteCreatTime.InnerText = m_OA_StaffPostLog.PL_InviteCreatTime.ToString2();
                this.spanPL_InviteTime.InnerText = m_OA_StaffPostLog.PL_InviteTime.ToString2();
                this.spanPL_InvitePlace.InnerText = m_OA_StaffPostLog.PL_InvitePlace.ToString2();
                this.spanPL_InvitePeople.InnerText = m_OA_StaffPostLog.PL_InvitePeople.ToString2();
                this.spanPL_InvitePhone.InnerText = m_OA_StaffPostLog.PL_InvitePhone.ToString2();
                this.spanPL_InviteRemark.InnerText = m_OA_StaffPostLog.PL_InviteRemark.ToString2();
                this.spanPL_InviteCar.InnerText = m_OA_StaffPostLog.PL_InviteCar.ToString2();
 
                this.txtPL_ReplyContent.Value = m_OA_StaffPostLog.PL_ReplyContent.ToString2();
                this.txtPL_InviteTime.Value = m_OA_StaffPostLog.PL_InviteTime.ToString2();
                this.txtPL_InvitePlace.Value = m_OA_StaffPostLog.PL_InvitePlace.ToString2();
                this.txtPL_InvitePeople.Value = m_OA_StaffPostLog.PL_InvitePeople.ToString2();
                this.txtPL_InvitePhone.Value = m_OA_StaffPostLog.PL_InvitePhone.ToString2();
                this.txtPL_InviteRemark.Value = m_OA_StaffPostLog.PL_InviteRemark.ToString2();
                this.txtPL_InviteCar.Value = m_OA_StaffPostLog.PL_InviteCar.ToString2();
                if (m_OA_StaffPostLog.PL_Status == 1)
                {
                    this.Panel1.Visible = true;
                    this.Panel2.Visible = false;
                    this.Panel3.Visible = false;
                    this.Panel4.Visible = false;
                    this.Panel5.Visible = false;
                }
                else if (m_OA_StaffPostLog.PL_Status == 2)
                {
                    this.Panel1.Visible = false;
                    this.Panel3.Visible = true;
                    this.Panel4.Visible = false;
                    if (Request["o"] =="i")
                    {
                        this.Panel2.Visible = true;
                        this.Panel5.Visible = false;
                    }
                    else
                    {
                        this.Panel2.Visible = false;
                        this.Panel5.Visible = true;
                    }
                }
                else if (m_OA_StaffPostLog.PL_Status == 3)
                {
                    this.Panel1.Visible = false;
                    this.Panel2.Visible = false;
                    this.Panel3.Visible = true;
                    this.Panel4.Visible = true;
                    this.Panel5.Visible = false;
                    this.Panel6.Visible = false;
                }
            }
        }
 
        //表单提交
        protected void btn_submit_form(object sender, EventArgs e)
        {
            try
            {
                DateTime nowTime = DateTime.Now;
                OA_StaffPostLog m_OA_StaffPostLog = bll_OA_StaffPostLogBLL.GetModelByKeyid(Request["keyid"].ToInt32());
                if (m_OA_StaffPostLog == null)
                {
                    JavaScript.MessageBox("操作失败", this);
                    return;
                }
                if (m_OA_StaffPostLog.PL_Status == 1)
                {
                    m_OA_StaffPostLog.PL_Status = 2;
                    m_OA_StaffPostLog.PL_InviteStatus = 1;
                    m_OA_StaffPostLog.PL_InviteCreatTime =nowTime;
                    m_OA_StaffPostLog.PL_InviteTime = this.txtPL_InviteTime.Value.ToString2();
                    m_OA_StaffPostLog.PL_InvitePlace = this.txtPL_InvitePlace.Value.ToString2();
                    m_OA_StaffPostLog.PL_InvitePeople = this.txtPL_InvitePeople.Value.ToString2();
                    m_OA_StaffPostLog.PL_InvitePhone = this.txtPL_InvitePhone.Value.ToString2();
                    m_OA_StaffPostLog.PL_InviteRemark = this.txtPL_InviteRemark.Value.ToString2();
                    m_OA_StaffPostLog.PL_InviteCar = this.txtPL_InviteCar.Value.ToString2();
                }
                else if (m_OA_StaffPostLog.PL_Status == 2)
                {
                    m_OA_StaffPostLog.PL_Status = 3;
                    m_OA_StaffPostLog.PL_ReplyStatus = 1;
                    m_OA_StaffPostLog.PL_ReplyTime = nowTime;
                    m_OA_StaffPostLog.PL_ReplyContent = this.txtPL_ReplyContent.Value.ToString2();
                }
                else
                {
                    return;
                }
                m_OA_StaffPostLog.LastUpdateTime = nowTime;
                m_OA_StaffPostLog.Operator = CurrentUser.ShortName;
                m_OA_StaffPostLog.Remark = "";
 
                if (bll_OA_StaffPostLogBLL.UpdateModel(m_OA_StaffPostLog))
                    JavaScript.MessageBox("操作成功", this, true, true);
                else
                    JavaScript.MessageBox("操作失败", this);
            }
            catch (Exception ex)
            {
                PAGEHandleException(ex);
                JavaScript.MessageBox("操作失败", this);
            }
        }
    }
}