コード例 #1
0
 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, "删除政策");
         }
     }
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
 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);
     }
 }