| | |
| | | if (!string.IsNullOrEmpty(Request["chexiao"])) |
| | | { |
| | | EC_OrderBasic _eC_OrderBasic = bll_EC_OrderBasicBLL.SelectModelById(Request["chexiao"].ToInt32().Value); |
| | | if(_eC_OrderBasic.SellerName != "其他") |
| | | { |
| | | JavaScript.MessageBox("已经确认供应商不能撤单!", this); |
| | | } |
| | | //if(_eC_OrderBasic.SellerName != "其他") |
| | | //{ |
| | | // JavaScript.MessageBox("已经确认供应商不能撤单!", this); |
| | | //} |
| | | if (_eC_OrderBasic.BuyerId == CurrentUser.MemberId) |
| | | { |
| | | var res = false; |
| | |
| | | { |
| | | try |
| | | { |
| | | //修改订单状态 |
| | | List<EC_OrderOperate> oprates = new List<EC_OrderOperate>(); |
| | | oprates.Add(new EC_OrderOperate() |
| | | { |
| | | OperateType = 1, |
| | | OrderId = Request["OldOrderId"].ToInt32().Value, |
| | | Operator = CurrentUser.ShortName, |
| | | Remark = "" |
| | | }); |
| | | res = bll_EC_OrderBasicBLL.UpdateOrderState(oprates[0]); |
| | | res = bll_EC_OrderBasicBLL.UpdateOldOrderSurplusPrintNum(Request["chexiao"].ToInt32().Value); |
| | | res = bll_EC_OrderBasicBLL.DeleteOutOrder(Request["chexiao"].ToInt32().Value); |
| | | scope.Complete(); |
| | |
| | | private void BindList() |
| | | { |
| | | Pagination pa = new Pagination(); |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | pa.PageSize = this.ddlPageSize.Value.ToInt32().Value;// UCPager1.AspNetPager.PageSize; |
| | | UCPager1.AspNetPager.PageSize = this.ddlPageSize.Value.ToInt32().Value; |
| | | this.RepClientList.DataSource = bll_EC_OrderBasicBLL.SelectAferOfOutOrder(pa, CurrentUser.MemberId, this.txtStartCreatTime.Value.ToDateTime2(), this.txtEndCreatTime.Value.ToDateTime2(), this.txtStartReturnTime.Value.ToDateTime2(), this.txtEndReturnTime.Value.ToDateTime2(), this.txtCreater.Value, this.selOutFirm.Value, this.selWorkStates.Value, this.txtOutOrderId.Value, 4,this.selPayStates.Value); |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |