河北专项检查和移动端
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.MaterialManage
|
||||
{
|
||||
public partial class ElectrodeRecoveryBatch : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批量审核
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
|
||||
{
|
||||
DateTime date1 = DateTime.Now.Date;
|
||||
DateTime date2 = date1.AddDays(1);
|
||||
var electrodeRecoverys = from x in Funs.DB.HJGL_ElectrodeRecovery where x.ProjectId == this.CurrUser.LoginProjectId && x.CompileDate > date1 && x.CompileDate < date2 select x;
|
||||
string[] strs = this.txtCode.Text.Trim().Split(',');
|
||||
foreach (var str in strs)
|
||||
{
|
||||
Model.HJGL_ElectrodeRecovery electrodeRecovery = electrodeRecoverys.FirstOrDefault(x => x.ElectrodeRecoveryCode == str);
|
||||
if (electrodeRecovery != null)
|
||||
{
|
||||
electrodeRecovery.AuditMan = this.CurrUser.UserId;
|
||||
electrodeRecovery.AuditDate = System.DateTime.Now;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
Alert.ShowInTop("批量审核成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user