protected void btnSaveunlock_Click(object sender, EventArgs e)
 {
     if (CheckBoxValue())
     {
         var p = GetCondition();
         p.PolicyType = PolicyType.Bargain;
         var listIds = hidIsAll.Value == "0" ? hidIds.Value.Split(',').Select(Guid.Parse) : PolicyManageService.QueryPolicyIds(p).Select(item => item.Key);
         hidIsAll.Value = "";
         hidIds.Value   = "";
         try
         {
             PolicyManageService.UnLockPolicy(PolicyType.Bargain, this.CurrentUser.UserName, this.txtlockReason.Text, CurrentCompany.CompanyType == CompanyType.Platform ? OperatorRole.Platform : OperatorRole.User, listIds.ToArray());
             QueryLowPricePolicy(grv_bargain.PageIndex + 1);
             ClaerHidValue();
         }
         catch (Exception ex)
         {
             ShowExceptionMessage(ex, "解锁政策");
             QueryLowPricePolicy(grv_bargain.PageIndex + 1);
             return;
         }
     }
     //if (CheckBoxValue())
     //{
     //    var list_ids = hidIds.Value.Split(',').Select(item => Guid.Parse(item));
     //    PolicyManageService.UnLockPolicy(PolicyType.Bargain, this.CurrentUser.UserName, this.txtunlockReason.Text, CurrentCompany.CompanyType == CompanyType.Platform ? OperatorRole.Platform : OperatorRole.User, list_ids.ToArray());
     //    QueryLowPricePolicy(grv_bargain.PageIndex + 1);
     //}
 }
Exemplo n.º 2
0
 protected void btnSaveunlock_Click(object sender, EventArgs e)
 {
     if (CheckBoxValue())
     {
         var list_ids = hidIds.Value.Split(',').Select(item => Guid.Parse(item));
         PolicyManageService.UnLockPolicy(PolicyType.RoundTrip, this.CurrentUser.UserName, this.txtunlockReason.Text, list_ids.ToArray());
         QueryBackPolicy(grv_back.PageIndex + 1);
     }
 }
Exemplo n.º 3
0
 protected void btnunlock_Click(object sender, EventArgs e)
 {
     CheckIsVail();
     PolicyManageService.UnLockPolicy(PolicyType.Bargain, this.CurrentUser.UserName, this.txtunlockReason.Text, CurrentCompany.CompanyType == CompanyType.Platform ? OperatorRole.Platform : OperatorRole.User, Guid.Parse(Request.QueryString["id"].ToString()));
     Response.Redirect("./low_price_policy_manage.aspx");
 }
Exemplo n.º 4
0
 protected void btnunlock_Click(object sender, EventArgs e)
 {
     CheckIsVail();
     PolicyManageService.UnLockPolicy(PolicyType.RoundTrip, this.CurrentUser.UserName, this.txtunlockReason.Text, Guid.Parse(Request.QueryString["id"]));
     Response.Redirect("./back_to_policy_manage.aspx");
 }