Exemplo n.º 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, "删除政策");
         }
     }
 }
Exemplo n.º 2
0
 protected void btnUnAudited_Click(object sender, EventArgs e)
 {
     if (GetCheckBoxValue())
     {
         var list_ids = hidIds.Value.Split(',').Select(Guid.Parse);
         PolicyManageService.CancelAudit(PolicyType.RoundTrip, this.CurrentUser.UserName, list_ids.ToArray());
         QueryBackPolicy(pager.CurrentPageIndex);
     }
 }
 protected void btnUnAudited_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.CancelAudit(PolicyType.Bargain, this.CurrentUser.UserName, list_ids.ToArray());
         QueryBargainPolicy(pager.CurrentPageIndex); ClaerHidValue();
     }
 }
Exemplo n.º 4
0
 protected void btnUnAudited_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.CancelAudit(PolicyType.Team, this.CurrentUser.UserName, list_ids.ToArray());
         }
         catch (Exception ex)
         {
             ShowExceptionMessage(ex, "取消审核");
         }
         QueryTeamPolicy(pager.CurrentPageIndex);
         ClaerHidValue();
     }
 }
Exemplo n.º 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);
     }
 }