11
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using BLL;
|
||||
using Apache.NMS.ActiveMQ.Commands;
|
||||
using BLL;
|
||||
using System;
|
||||
using BLL.Common;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
@@ -8,6 +10,28 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
public partial class PersonInfo : PageBase
|
||||
{
|
||||
public string consumerIdR
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["consumerIdR"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["consumerIdR"] = value;
|
||||
}
|
||||
}
|
||||
public string tokenR
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["tokenR"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["tokenR"] = value;
|
||||
}
|
||||
}
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
@@ -18,6 +42,12 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
////获取token
|
||||
tokenR = YunMouHelper.getToken();
|
||||
////创建消费者消费者如果5分钟未调用拉取消息接口将被删除。
|
||||
consumerIdR = YunMouHelper.addConsumer(tokenR);
|
||||
|
||||
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
btnNew.OnClientClick = Window1.GetShowReference("PersonInfoEdit.aspx") + "return false;";
|
||||
@@ -369,6 +399,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
}
|
||||
|
||||
Alert.ShowInTop("写入考勤" + count.ToString() + "条。", MessageBoxIcon.Success);
|
||||
} //云眸同步
|
||||
protected void btnYunMou_Click(object sender, EventArgs e)
|
||||
{
|
||||
YunMouService.manualOperation(tokenR, consumerIdR);
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user