protected void grv_normal_RowCommand(object sender, GridViewCommandEventArgs e) { //确认审核 if (e.CommandName == "Audited") { PolicyManageService.Audit(PolicyType.Team, this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryTeamPolicy(pager.CurrentPageIndex); } //取消审核 if (e.CommandName == "UnAudited") { PolicyManageService.CancelAudit(PolicyType.Team, this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryTeamPolicy(pager.CurrentPageIndex); } //删除政策 if (e.CommandName == "del") { try { PolicyManageService.DeleteTeamPolicy(this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryTeamPolicy(pager.CurrentPageIndex); } catch (Exception ex) { ShowExceptionMessage(ex, "删除政策"); } } }
protected void btnAudited_Click(object sender, EventArgs e) { if (GetCheckBoxValue()) { var list_ids = hidIds.Value.Split(',').Select(Guid.Parse); PolicyManageService.Audit(PolicyType.RoundTrip, this.CurrentUser.UserName, list_ids.ToArray()); QueryBackPolicy(pager.CurrentPageIndex); } }
protected void btnAudited_Click(object sender, EventArgs e) { if (GetCheckBoxValue()) { var list_ids = hidIsAll.Value == "0" ? hidIds.Value.Split(',').Select(Guid.Parse) : PolicyManageService.QueryPolicyIds(GetCondition()).Select(item => item.Key); PolicyManageService.Audit(PolicyType.Notch, this.CurrentUser.UserName, list_ids.ToArray()); QueryNotchPolicy(pager.CurrentPageIndex); ClaerHidValue(); } }
protected void btnAudited_Click(object sender, EventArgs e) { if (GetCheckBoxValue()) { var list_ids = hidIsAll.Value == "0" ? hidIds.Value.Split(',').Select(Guid.Parse) : PolicyManageService.QueryPolicyIds(GetCondition()).Select(item => item.Key); try { PolicyManageService.Audit(PolicyType.Team, this.CurrentUser.UserName, list_ids.ToArray()); } catch (Exception ex) { ShowExceptionMessage(ex, "审核"); } QueryTeamPolicy(pager.CurrentPageIndex); ClaerHidValue(); } }
protected void grv_back_RowCommand(object sender, GridViewCommandEventArgs e) { //确认审核 if (e.CommandName == "Audited") { PolicyManageService.Audit(PolicyType.RoundTrip, this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryBackPolicy(pager.CurrentPageIndex); } //取消审核 if (e.CommandName == "UnAudited") { PolicyManageService.CancelAudit(PolicyType.RoundTrip, this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryBackPolicy(pager.CurrentPageIndex); } //删除政策 if (e.CommandName == "del") { PolicyManageService.DeleteRoundTripPolicy(this.CurrentUser.UserName, Guid.Parse(e.CommandArgument.ToString())); QueryBackPolicy(pager.CurrentPageIndex); } }