JobView.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class JobView : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Job job = new Job();
DataSet ds_Job = job.GetDataSet("");
GV_Job.DataSource = ds_Job.Tables["T_Job"];
GV_Job.DataBind();
lbl_Count.Text = ds_Job.Tables["T_Job"].Rows.Count.ToString();
}
if (Request.Cookies["Rank_Code"] != null)
{
publicFunction pFunction = new publicFunction();
String strRankCode = Request.Cookies["Rank_Code"].Value;
String strFunctionCode = "Job";
String strReturn = pFunction.GetPurview(strRankCode, strFunctionCode);
if (strReturn.Contains("fail"))
Response.Redirect("PurviewError.aspx");
}
}
protected void GV_Job_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
int Int_SelectIndex = e.NewSelectedIndex;
Response.Cookies["RowIndex_job"].Value = Int_SelectIndex.ToString();
Job job = new Job();
DataSet ds_Job = job.GetDataSet("");
GV_Job.DataSource = ds_Job.Tables["T_Job"];
GV_Job.DataBind();
}
protected void GV_Job_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
int Int_RowIndex = e.RowIndex;
Job job = new Job();
//删除部门
job.RowIndex_job = Int_RowIndex;
String strReturn = job.JobDelete();
if (strReturn.Contains("ok"))
{
//获取新的部门信息列表
DataSet ds_Job = new DataSet();
ds_Job = job.GetDataSet("");
GV_Job.DataSource = ds_Job.Tables["T_Job"];
GV_Job.DataBind();
后面还有 26 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
