| | |
| | | }; |
| | | IEnumerable<EC_OrderBasic> result = _eC_OrderBasicBLL.SelectModelPageSheji(pagination, CurrentUser.MemberId,this.txtBeginData.Value,this.txtEndDate.Value,this.txtOrderId.Value |
| | | ,this.selPrintTypes.Value,this.selBusinessManager.Value,this.selShejirenyuan.Value,this.txtBuyerName.Value,this.txtDocumentName.Value,this.selShejiStatus.SelectedValue); |
| | | |
| | | decimal PageAllMoney = 0; |
| | | var ssss = result.Sum(x => x.ShejiSumPrice); |
| | | var ssssaa = result.Sum(x => x.ShejiSumPriceneiye); |
| | | var sssssssss = ssss.HasValue ? ssss.Value : 0; |
| | | var sssssssssaa = ssssaa.HasValue ? ssssaa.Value : 0; |
| | | PageAllMoney = sssssssss + sssssssssaa; |
| | | foreach (var eC_OrderBasic in result) |
| | | { |
| | | if(eC_OrderBasic.BusinessManagerId.HasValue && eC_OrderBasic.BusinessManagerId.Value > 0) |
| | |
| | | eC_OrderBasic.BusinessManager = oA_Staff.Name; |
| | | } |
| | | } |
| | | |
| | | // PageAllMoney +=( eC_OrderBasic.ShejiSumPrice.Value + eC_OrderBasic.ShejiSumPriceneiye.Value); |
| | | eC_OrderBasic.Shejiticheng = eC_OrderBasic.ShejirenyuanName + eC_OrderBasic.Shejicount + "*" + (eC_OrderBasic.ShejiUnitPrice.HasValue? eC_OrderBasic.ShejiUnitPrice.Value.ToString("G29"):"0") + "=" + (eC_OrderBasic.ShejiSumPrice.HasValue ? eC_OrderBasic.ShejiSumPrice.Value.ToString("G29") : "0"); |
| | | if (eC_OrderBasic.PrintTypeId == 6 || eC_OrderBasic.PrintTypeId == 15 || eC_OrderBasic.PrintTypeId == 38) |
| | | { |
| | |
| | | } |
| | | eC_OrderBasic.Shejicountneiyename = (eC_OrderBasic.Shejicountneiye.HasValue && eC_OrderBasic.Shejicountneiye.Value > 0) ? eC_OrderBasic.Shejicountneiye.Value.ToString() : ""; |
| | | } |
| | | this.NowPageAllMoney.InnerText = PageAllMoney.ToString("0.00"); |
| | | this.AllMoney.InnerText = pagination.heji1.Value.ToString("0.00"); |
| | | |
| | | rptData.DataSource = result; |
| | | rptData.DataBind(); |
| | | |