| | |
| | | using CY.Infrastructure.Common; |
| | | using CY.Model; |
| | | using CY.BLL.Sys; |
| | | using CY.BLL.EC; |
| | | |
| | | namespace CY.WebForm.Pages.procurement |
| | | { |
| | |
| | | |
| | | procurement.FirmId = CurrentUser.MemberId; |
| | | procurement.GoodsId = this.dwGoodsList.SelectedValue.ToInt32(); |
| | | procurement.Remark = ""; |
| | | procurement.Remark = this.txtRemark.Value; |
| | | procurement.BrandId = this.dwBrand.SelectedValue.ToInt32(); |
| | | procurement.SpecificationId = this.dwSpecification.SelectedValue.ToInt32(); |
| | | procurement.PaperWeightId = this.dwPaperWeight.SelectedValue.ToInt32() ?? 0; |
| | |
| | | } |
| | | else |
| | | { |
| | | var sss = Request["orderIdstrrrr"]; |
| | | if (!string.IsNullOrEmpty(Request["orderIdstrrrr"]) && Request["orderIdstrrrr"].ToInt32() > 0) |
| | | { |
| | | EC_OrderBasicBLL _eC_OrderBasicBLL = new EC_OrderBasicBLL(); |
| | | EC_OrderBasic _eC_OrderBasic = _eC_OrderBasicBLL.SelectModelById(Request["orderIdstrrrr"].ToInt32().Value); |
| | | if (_eC_OrderBasic != null) |
| | | { |
| | | procurement.orderId = Request["orderIdstrrrr"].ToInt32(); |
| | | procurement.DocumentName = _eC_OrderBasic.DocumentName; |
| | | } |
| | | } |
| | | if (_OA_ProcurementBLL.insertModel(procurement)) |
| | | { |
| | | ClearData(); |