20230302修改人员同步方法,推送日志方法优化

This commit is contained in:
2023-03-02 17:33:49 +08:00
parent 59586afee7
commit 2cc23282fd
24 changed files with 294 additions and 64 deletions
@@ -5,6 +5,7 @@ using System.Data;
using System.Data.SqlClient;
using System.Text;
using AspNet = System.Web.UI.WebControls;
using System.Linq;
namespace FineUIPro.Web.ZHGL.RealName
{
@@ -22,6 +23,12 @@ namespace FineUIPro.Web.ZHGL.RealName
Funs.DropDownPageSize(this.ddlPageSize);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
ProjectService.InitAllProjectShortNameDropDownList(this.drpProject, this.CurrUser.PersonId, true);
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
this.drpProject.Readonly = true;
}
this.GridBind();
}
}
@@ -46,6 +53,11 @@ namespace FineUIPro.Web.ZHGL.RealName
strSql += " AND PushTime < @EndDate";
listStr.Add(new SqlParameter("@EndDate", Funs.GetNewDateTime(this.txtEndDate.Text).Value.AddDays(1)));
}
if (this.drpProject.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpProject.SelectedValue))
{
strSql += " AND ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
}
if (!string.IsNullOrEmpty(this.txtConet.Text))
{
strSql += " AND (Success LIKE @name OR Message LIKE @name OR ReturnData LIKE @name)";
@@ -154,5 +166,23 @@ namespace FineUIPro.Web.ZHGL.RealName
this.GridBind();
}
#endregion
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
{
GridBind();
}
protected void btnDele_Click(object sender, EventArgs e)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getRealName_PushLog = from x in db.RealName_PushLog select x;
if (getRealName_PushLog.Count() > 0)
{
db.RealName_PushLog.DeleteAllOnSubmit(getRealName_PushLog);
db.SubmitChanges();
}
}
}
}
}