oa/rwgl/ztdbrw.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 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;
using System.Data.SqlClient;
using haoke365;
using System.Drawing;
namespace hkoa.oa.rwgl
{
public partial class ztdbrw : System.Web.UI.Page
{
protected void Page_Load(object Sender, EventArgs E)
{
mydb hkdb = new mydb();
hkdb.VeriSess("3");
if (!IsPostBack)
{
hkdb.PassTo("10302", "10302");
AspNetPager1.PageSize = int.Parse(Request.Cookies["haoke"].Values["pagecount"]);
//页面绑定
GridViewBind();
}
}
//查询
public void Query_Click(object sender, EventArgs e)
{
GridViewBind();
}
//gv绑定
public void GridViewBind()
{
string Str1 = " where (rwzt='已暂停' or rwzt='已发布') and fbr='" + this.Session["userid"] + "' ";
if (!string.IsNullOrEmpty(query_content.Text))
{
Str1 = Str1 + "and " + query_tj.SelectedItem.Value + " like '%" + query_content.Text + "%' ";
}
AspNetPager1.RecordCount = (int)SqlHelper.ExecuteScalar("select count(*) from OA_RWD01 a left outer join yh b on (a.fbr=b.ui_id) left outer JOIN hk_ZDYLX c on (a.rwxz=c.id)" + Str1);
DataSet ds = SqlHelper.ExecuteDs("select fblx,'按用户' as fblxmc,((select y.ui_desc+'等' from yh y where ui_id=(select SUBSTRING(convert(varchar(500), z.jsdx)+',',1,CHARINDEX(',',convert(varchar(500), z.jsdx)+',')-1) from OA_RWD01 z where fblx='3' and a.rwid=z.rwid)))as jsdxmc,rwid,rwdh,rwbt,rwnr,(case when jjcd='高' then 'h' when jjcd='中' then 'm' else 'l' end)as jjcd,rwxz,(case when ynxs='是' then 'ch' else 'noch' end)as ynxs,rwzt,fbr,fbsj,wcsj,b.ui_desc,c.mc,case when( fjmc=''or fjmc is null) then null else 'y' end as fjmc,case when ksrq='1900-01-01' then null else ksrq end as ksrq,case when jzrq='1900-01-01' then null else jzrq end as jzrq from OA_RWD01 a left outer join yh b on (a.fbr=b.ui_id) left outer JOIN hk_ZDYLX c on (a.rwxz=c.id)" + Str1 + "order by fbsj desc", AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1), AspNetPager1.PageSize);
GridView1.DataSource = ds;
GridView1.DataBind();
}
protected void AspNetPager1_PageChanged(object sender, System.EventArgs e)
{
GridViewBind();
}
public void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
后面还有 121 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
