| | |
| | | using CY.BLL.Sys; |
| | | using System.Data; |
| | | using CY.BLL.OA; |
| | | using CY.BLL.EC; |
| | | |
| | | namespace CY.WebForm.Pages.business |
| | | { |
| | |
| | | public partial class AgSpecialOrderList : BasePage |
| | | { |
| | | EC_SpecialOrdersBLL bll_EC_SpecialOrdersBLL = null; |
| | | EC_OrderBasicBLL _eC_OrderBasicBLL = null; |
| | | |
| | | //初始化 |
| | | public AgSpecialOrderList() |
| | | { |
| | | bll_EC_SpecialOrdersBLL = new EC_SpecialOrdersBLL(); |
| | | _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | } |
| | | |
| | | //页面加载 |
| | |
| | | JavaScript.MessageBox("删除失败", this); |
| | | } |
| | | } |
| | | |
| | | if (Request["chedan"] != null) |
| | | { |
| | | EC_SpecialOrders model = bll_EC_SpecialOrdersBLL.GetModelByKeyid(Request["chedan"].ToInt32()); |
| | | if (model != null && model.Keyid != null) |
| | | { |
| | | EC_OrderBasic _eC_OrderBasic = _eC_OrderBasicBLL.SelectModelById(model.PO_OrderId.ToInt32().Value); |
| | | if (null == _eC_OrderBasic) |
| | | { |
| | | |
| | | } |
| | | else |
| | | { |
| | | //修改订单状态 |
| | | List<EC_OrderOperate> oprates = new List<EC_OrderOperate>(); |
| | | oprates.Add(new EC_OrderOperate() |
| | | { |
| | | OperateType = 2, |
| | | OrderId = _eC_OrderBasic.Keyid, |
| | | Operator = CurrentUser.ShortName, |
| | | Remark = "" |
| | | }); |
| | | _eC_OrderBasicBLL.UpdateOrderState(oprates[0]); |
| | | //修改订单数量 |
| | | _eC_OrderBasicBLL.UpSurplusPrintNum(_eC_OrderBasic.Keyid, _eC_OrderBasic.OrderExtend.PrintNum, CurrentUser.ShortName); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | bll_EC_SpecialOrdersBLL.DeleteModel(model); |
| | | JavaScript.MessageBox("撤单成功", this); |
| | | Response.Redirect("/Pages/business/AgSpecialOrderList.aspx"); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("撤单失败", this); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //绑定数据 |
| | |
| | | pa.PageSize = UCPager1.AspNetPager.PageSize; |
| | | pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; |
| | | this.RepClientList.DataSource = bll_EC_SpecialOrdersBLL.SelectModelPage(pa, CurrentUser.MemberId,this.txtPrintName.Value,this.txtCustormerName.Value,this.txtPSO_OrderNum.Value, string.IsNullOrEmpty(this.txtBeginDate.Value) ? beginTime : Convert.ToDateTime(this.txtBeginDate.Value) |
| | | , string.IsNullOrEmpty(this.txtEndDate.Value) ? endTime : MyConvert.GetDateTime(this.txtEndDate.Value) |
| | | , string.IsNullOrEmpty(this.txtEndDate.Value) ? endTime : MyConvert.GetDateTime(this.txtEndDate.Value), "补单" |
| | | ); |
| | | this.RepClientList.DataBind(); |
| | | UCPager1.AspNetPager.RecordCount = pa.RecordCount; |