JFGL/JFWHJL.aspx.cs
(开头部分) 21KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
/*
* 机房维护记录
* 宋朝云
* 2012-10-23
* 景利业 2012年10月24日修改
*/
namespace Web_GZJL.JFGL
{
public partial class JFWHJL : System.Web.UI.Page
{
public string t1 = "", t0 = "";
protected void Page_Load(object sender, EventArgs e)
{
// Session["userid"] = "admin";
//Session["USERNAME"] = "管理员";
//Session["XZQH"] = "130100";
if (Session["userid"] == null)
{
Response.Redirect("../tooltip/Error.aspx", true);
return;
}
t0 = DataOper.retMenuTitle(Request.Path, "0");
t1 = DataOper.retMenuTitle(Request.Path, "1");
rq.Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
rq.Disabled = true;
if (!IsPostBack)
{
txt_sbmc.Attributes.Add("readonly","readonly");
DateTime now = DateTime.Now;
DateTime d1 = now.AddDays(15);
DateTime d2 = now.AddDays(-15);
DataBase.fill_red("select ID,lfname from TB_JFCRSQ where lfrq <= '" + d1.ToString("yyyy-MM-dd") + "' and lfrq >= '" + d2.ToString("yyyy-MM-dd") + "' and id in(select MAX(id) from TB_JFCRSQ group by lfname having COUNT(*)>=1 )", ddl_jcry, "lfname", "ID");//下拉列表数据绑定
//dataTimeKaiShi.Value = d1.ToString("yyyy-MM-dd");
//dataTimejs.Value = d2.ToString("yyyy-MM-dd");
ViewState["edit"] = "";
//ViewState["dtl"] = DataBase.Exe_dt("select ID,jcxm,jcjg,jfwhjlid from TB_JCXM where 1=2");
//if ( Session["js"].ToString() == "01")//角色等于管理员
//{
ViewState["where"] = " ";//1维护 2维修
//}
//else
//{
// ViewState["where"] = " 1=1 and USERID='" + Session["userid"].ToString() + "' and departid='" + Session["departid"].ToString() + "' ";
//}
//DataBase.Exe_fill(DropDownList2, "select CODE,TITLE FROM T_ZU", "CODE", "TITLE");
DataBase.Exe_fill(ddl_ptry, " select code,username from SYS_USER left join SYS_ROLE on ROLEID=js where ROLENAME like '%机房%' ", "code", "username");
getData();
//getdata2();
后面还有 504 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
