| | |
| | | int billMode = -1; |
| | | string remarks = string.Empty; |
| | | string paperMP = string.Empty; |
| | | |
| | | string pageNumsbs = string.Empty; |
| | | int printBoxNumber = 0; |
| | | int printCountByBox = 0; |
| | | int cupType = 0; |
| | |
| | | remarks = request["remarks"].ToString(); |
| | | if (request["pNameMP"] != null) |
| | | paperMP = request["pNameMP"].ToString(); |
| | | if (request["pageNumsbs"] != null) |
| | | pageNumsbs = request["pageNumsbs"].ToString(); |
| | | if (request["printBoxNumber"] != null) |
| | | printBoxNumber = request["printBoxNumber"].ToString().ToInt32().Value; |
| | | if (request["printCountByBox"] != null) |
| | |
| | | model.BillMode = billMode; |
| | | model.Remarks = remarks; |
| | | model.PaperMP = paperMP; |
| | | model.pageNumsbs = pageNumsbs; |
| | | model.PrintBoxNumber = printBoxNumber; |
| | | model.CupType = cupType; |
| | | model.PrintColor = printColor; |
| | |
| | | printDemand += "," + model.GramWeight + "克"; |
| | | } |
| | | printDemand += "," + model.SingleOrdouble + "," + model.PrintColor; |
| | | } |
| | | else if (model.PrintTypeId == 39) //公文纸 |
| | | { |
| | | |
| | | Sys_DictionaryBLL _sys_DictionaryBLL = new Sys_DictionaryBLL();//字典业务逻辑操作类对象 |
| | | var fengmianzhizhangs = _sys_DictionaryBLL.GetDataByType("公文纸纸张").FirstOrDefault(x => x.MeanValue == model.PaperId); |
| | | model.PrintCountName = model.PrintCount.ToString(); |
| | | |
| | | if (model.PrintSizeId != -1) |
| | | { |
| | | SysInquiry_PaperSizeDetail paperSize = _paperSizeDetailBLL.GetPaperSizeDetail(model.PrintTypeId, model.PrintSizeId); |
| | | printDemand = paperSize.Name + ","; |
| | | model.PrintSizeName = paperSize.Name; |
| | | } |
| | | if (fengmianzhizhangs != null) |
| | | { |
| | | printDemand += fengmianzhizhangs.Name + ","; |
| | | } |
| | | |
| | | |
| | | printDemand += model.PrintColor; |
| | | } |
| | | else if (model.PrintTypeId == 22) //便签 |
| | | { |
| | |
| | | { |
| | | if(model.PrintTypeId!=27) |
| | | afterInfo.ParameterName = "胶头(每本" + model.PageNum.ToString() + "页)"; |
| | | |
| | | if (model.PrintTypeId == 39) |
| | | { |
| | | afterInfo.ParameterName = "胶头(" + model.pageNumsbs.ToString() + ")"; |
| | | } |
| | | } |
| | | if (afterInfo.ParameterName == "胶左") |
| | | { |
| | |
| | | newSize = new SysInquiry_PaperSizeDetail(); |
| | | newSize.KeyId = size.KeyId; |
| | | int index=size.Name.IndexOf('('); |
| | | newSize.Name = size.Name.Substring(0, index); |
| | | if (index >= 0) |
| | | { |
| | | newSize.Name = size.Name.Substring(0, index); |
| | | } |
| | | else |
| | | { |
| | | newSize.Name = size.Name; |
| | | } |
| | | |
| | | tempList = newSizeList.Where(p => p.Name == newSize.Name).ToList<SysInquiry_PaperSizeDetail>(); |
| | | if (tempList == null || tempList.Count == 0) |
| | | { |