SuLei.Web/admin/company/work_edit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data;
using SuLei.Common;
using SuLei.UI;
namespace SuLei.Web.admin.company
{
public partial class work_edit : ManagePage
{
private string action = SLEnums.ActionEnum.Add.ToString(); //操作类型
private int id = 0; //内容ID
//页面加载事件
protected void Page_Load(object sender, EventArgs e)
{
string _action = SLRequest.GetQueryString("action");
//如果是编辑或复制则检查信息是否存在
if (_action == SLEnums.ActionEnum.Edit.ToString())
{
this.action = _action;//修改或复制类型
this.id = SLRequest.GetQueryInt("id");
if (this.id == 0)
{
JscriptMsg("传输参数不正确!", "back");
return;
}
if (!new BLL.sl_law().Exists(this.id))
{
JscriptMsg("信息不存在或已被删除!", "back");
return;
}
}
if (!Page.IsPostBack)
{
ChkAdminLevel("sl_company_work", SLEnums.ActionEnum.View.ToString()); //检查权限
if (action == SLEnums.ActionEnum.Edit.ToString()) //修改
{
ShowInfo(this.id);
}
else
{
law_code.Attributes.Add("ajaxurl", "../tools/admin_ajax.ashx?action=law_code_validate");
}
}
}
#region 赋值操作=================================
private void ShowInfo(int _id)
{
后面还有 78 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
