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);
|
}
|
}
|
}
|
}
|