| | |
| | | string works = string.Empty; |
| | | int printMode = 1; |
| | | int gramWeight = -1; |
| | | string Qitazhi = string.Empty; |
| | | int brandId = -1; |
| | | int printCount = -1; |
| | | string singleOrdouble = string.Empty; |
| | |
| | | { |
| | | paperId = 3; |
| | | } |
| | | if (request["Qitazhi0"] != null) |
| | | { |
| | | Qitazhi = request["Qitazhi0"]; |
| | | } |
| | | |
| | | if (request["gramWeight0"] != null) |
| | | gramWeight = request["gramWeight0"].ToString().ToInt32().Value; |
| | | gramWeight = request["gramWeight0"].ToInt32().HasValue? request["gramWeight0"].ToInt32().Value:0; |
| | | if (request["brand0"] != null) |
| | | { |
| | | brandId = request["brand0"].ToString().ToInt32().Value; |
| | | brandId = request["brand0"].ToInt32().HasValue ?request["brand0"].ToString().ToInt32().Value : 0; |
| | | } |
| | | if (request["printCount"] != null) |
| | | printCount = request["printCount"].ToString().ToInt32().Value; |
| | |
| | | model.PaperId = paperId; |
| | | model.GramWeight = gramWeight; |
| | | model.BrandId = brandId; |
| | | model.Qitazhi = Qitazhi; |
| | | model.PrintCount = printCount; |
| | | model.Unit = ysuint; |
| | | model.SingleOrdouble = singleOrdouble; |
| | |
| | | insideModel.PaperId = 3; |
| | | insideModel.PrintColor = "四色印刷"; |
| | | if (request["pageNum1"] != null) |
| | | insideModel.PageNum = request["pageNum1"].ToString().ToInt32().Value; |
| | | insideModel.PageNum = request["pageNum1"].ToInt32().HasValue ? request["pageNum1"].ToString().ToInt32().Value : 0; |
| | | if (request["gramWeight1"] != null) |
| | | insideModel.GramWeight = request["gramWeight1"].ToString().ToInt32().Value; |
| | | insideModel.GramWeight = request["gramWeight1"].ToInt32().HasValue? request["gramWeight1"].ToString().ToInt32().Value:0; |
| | | model.InquiryInsideList.Add(insideModel); |
| | | printDemand += paperSize.Name + ",骑马订"; |
| | | printDemand += ",封面要求:铜版纸," + model.GramWeight + "克," + model.PrintColor + ",4页"; |
| | |
| | | insideModel.PaperId = request["paper" + i].ToString().ToInt32().Value; |
| | | } |
| | | if (request["brand" + i] != null) |
| | | insideModel.BrandId = request["brand" + i].ToString().ToInt32().Value; |
| | | insideModel.BrandId = request["brand" + i].ToInt32().HasValue ? request["brand" + i].ToString().ToInt32().Value:0; |
| | | if (request["gramWeight" + i] != null) |
| | | insideModel.GramWeight = request["gramWeight" + i].ToString().ToInt32().Value; |
| | | insideModel.GramWeight = request["gramWeight" + i].ToInt32().HasValue ? request["gramWeight" + i].ToString().ToInt32().Value:0; |
| | | if (request["Qitazhi" + i] != null) |
| | | insideModel.Qitazhi = request["Qitazhi" + i]; |
| | | if (request["printColor" + i] != null) |
| | | insideModel.PrintColor = request["printColor" + i].ToString(); |
| | | if (request["pageNum" + i] != null) |
| | | insideModel.PageNum = request["pageNum" + i].ToString().ToInt32().Value; |
| | | insideModel.PageNum = request["pageNum" + i].ToInt32().HasValue? request["pageNum" + i].ToInt32().Value:0; |
| | | if (request["works" + i] != null) |
| | | works = request["works" + i].ToString(); |
| | | if (!string.IsNullOrEmpty(works)) |
| | |
| | | insideModel.GildingType = request["gildingType" + i].ToString(); |
| | | model.InquiryInsideList.Add(insideModel); |
| | | } |
| | | PaperInfoBLL _paperInfoBLL = new PaperInfoBLL(); |
| | | SysInquiry_PaperInfo paperInfo = _paperInfoBLL.GetPaperModel(model.PaperId); |
| | | |
| | | |
| | | AfterParameterInfoBLL _afterParameterInfoBLL = new AfterParameterInfoBLL(); |
| | | SysInquiry_AfterParameterInfo bindingModeObj = _afterParameterInfoBLL.GetModel(model.BindingMode); |
| | | printDemand += model.PrintSizeName + "," + bindingModeObj.ParameterName; |
| | | printDemand += ",封面要求:" + paperInfo.PaperName + ""; |
| | | PaperInfoBLL _paperInfoBLL = new PaperInfoBLL(); |
| | | SysInquiry_PaperInfo paperInfo = null; |
| | | if (model.PaperId >= 0) |
| | | { |
| | | paperInfo = _paperInfoBLL.GetPaperModel(model.PaperId); |
| | | printDemand += ",封面要求:" + paperInfo.PaperName + ""; |
| | | } |
| | | else |
| | | { |
| | | printDemand += ",封面要求:" + model.Qitazhi + ""; |
| | | } |
| | | |
| | | BrandInfoBLL _brandInfoBLL = new BrandInfoBLL(); |
| | | if (model.PaperId != 0) |
| | | if (model.PaperId > 0) |
| | | { |
| | | SysInquiry_BrandInfo brandInfo = _brandInfoBLL.SelectModelByKey(model.BrandId); |
| | | printDemand += "(" + brandInfo.BrandName + ")"; |
| | |
| | | foreach (InquiryInsideModel insideModelObj in model.InquiryInsideList) |
| | | { |
| | | printDemand += "内页" + insideModelObj.InsideIndex.ToString() + ":"; |
| | | paperInfo = _paperInfoBLL.GetPaperModel(insideModelObj.PaperId); |
| | | printDemand += paperInfo.PaperName; |
| | | if (insideModelObj.PaperId != 0) |
| | | if(insideModelObj.PaperId >= 0) |
| | | { |
| | | paperInfo = _paperInfoBLL.GetPaperModel(insideModelObj.PaperId); |
| | | printDemand += paperInfo.PaperName; |
| | | } |
| | | else |
| | | { |
| | | printDemand += insideModelObj.Qitazhi; |
| | | } |
| | | |
| | | if (insideModelObj.PaperId > 0) |
| | | { |
| | | SysInquiry_BrandInfo brandInfo = _brandInfoBLL.SelectModelByKey(insideModelObj.BrandId); |
| | | printDemand += "(" + brandInfo.BrandName + ")"; |
| | | printDemand += "," + insideModelObj.GramWeight + "克"; |
| | | } |
| | | printDemand += "," + insideModelObj.PrintColor + "," + insideModelObj.PageNum.ToString(); |
| | | if (paperInfo.PaperName == "硫酸纸") |
| | | if (insideModelObj.PaperId >= 0 && paperInfo.PaperName == "硫酸纸") |
| | | { |
| | | printDemand += "张"; |
| | | } |
| | |
| | | insideModel.PaperId = request["paper" + i].ToString().ToInt32().Value; |
| | | } |
| | | if (request["brand" + i] != null) |
| | | insideModel.BrandId = request["brand" + i].ToString().ToInt32().Value; |
| | | insideModel.BrandId = request["brand" + i].ToInt32().HasValue ? request["brand" + i].ToString().ToInt32().Value:0; |
| | | if (request["gramWeight" + i] != null) |
| | | insideModel.GramWeight = request["gramWeight" + i].ToString().ToInt32().Value; |
| | | insideModel.GramWeight = request["gramWeight" + i].ToInt32().HasValue? request["gramWeight" + i].ToString().ToInt32().Value:0; |
| | | if (request["Qitazhi" + i] != null) |
| | | insideModel.Qitazhi = request["Qitazhi" + i]; |
| | | if (request["printColor" + i] != null) |
| | | insideModel.PrintColor = request["printColor" + i].ToString(); |
| | | if (request["pageNum" + i] != null) |
| | | insideModel.PageNum = request["pageNum" + i].ToString().ToInt32().Value; |
| | | insideModel.PageNum = request["pageNum" + i].ToInt32().HasValue ? request["pageNum" + i].ToString().ToInt32().Value:0; |
| | | if (request["works" + i] != null) |
| | | works = request["works" + i].ToString(); |
| | | if (!string.IsNullOrEmpty(works)) |
| | |
| | | model.InquiryInsideList.Add(insideModel); |
| | | } |
| | | PaperInfoBLL _paperInfoBLL = new PaperInfoBLL(); |
| | | SysInquiry_PaperInfo paperInfo = _paperInfoBLL.GetPaperModel(model.PaperId); |
| | | SysInquiry_PaperInfo paperInfo = null; |
| | | AfterParameterInfoBLL _afterParameterInfoBLL = new AfterParameterInfoBLL(); |
| | | SysInquiry_AfterParameterInfo bindingModeObj = _afterParameterInfoBLL.GetModel(model.BindingMode); |
| | | printDemand += model.PrintSizeName + "," + bindingModeObj.ParameterName; |
| | | printDemand += ",封面要求:" + paperInfo.PaperName + ""; |
| | | if(model.PaperId >= 0) |
| | | { |
| | | paperInfo = _paperInfoBLL.GetPaperModel(model.PaperId); |
| | | printDemand += ",封面要求:" + paperInfo.PaperName + ""; |
| | | } |
| | | else |
| | | { |
| | | printDemand += ",封面要求:" + model.Qitazhi + ""; |
| | | } |
| | | BrandInfoBLL _brandInfoBLL = new BrandInfoBLL(); |
| | | if (model.PaperId != 0) |
| | | if (model.PaperId > 0) |
| | | { |
| | | SysInquiry_BrandInfo brandInfo = _brandInfoBLL.SelectModelByKey(model.BrandId); |
| | | printDemand += "(" + brandInfo.BrandName + ")"; |
| | |
| | | foreach (InquiryInsideModel insideModelObj in model.InquiryInsideList) |
| | | { |
| | | printDemand += "内页" + insideModelObj.InsideIndex.ToString() + ":"; |
| | | paperInfo = _paperInfoBLL.GetPaperModel(insideModelObj.PaperId); |
| | | printDemand += paperInfo.PaperName; |
| | | if (insideModelObj.PaperId != 0) |
| | | |
| | | if (insideModelObj.PaperId >= 0) |
| | | { |
| | | paperInfo = _paperInfoBLL.GetPaperModel(insideModelObj.PaperId); |
| | | printDemand += paperInfo.PaperName; |
| | | } |
| | | else |
| | | { |
| | | printDemand += insideModelObj.Qitazhi; |
| | | } |
| | | if (insideModelObj.PaperId > 0) |
| | | { |
| | | SysInquiry_BrandInfo brandInfo = _brandInfoBLL.SelectModelByKey(insideModelObj.BrandId); |
| | | printDemand += "(" + brandInfo.BrandName + ")"; |
| | | printDemand += "," + insideModelObj.GramWeight + "克"; |
| | | } |
| | | printDemand += "," + insideModelObj.PrintColor + "," + insideModelObj.PageNum.ToString(); |
| | | if (paperInfo.PaperName == "硫酸纸") |
| | | if (insideModelObj.PaperId >= 0 && paperInfo.PaperName == "硫酸纸") |
| | | { |
| | | printDemand += "张"; |
| | | } |
| | |
| | | printDemand += "," + model.GramWeight + "克"; |
| | | } |
| | | printDemand += "," + model.SingleOrdouble + "," + model.PrintColor; |
| | | if (request["jtWZ"] != null) |
| | | model.JTWZ = request["jtWZ"].ToString(); |
| | | if (request["jtWZFM"] != null) |
| | | model.jtWZFM = request["jtWZFM"].ToString(); |
| | | } |
| | | else if (model.PrintTypeId == 39) //公文纸 |
| | | { |
| | |
| | | } |
| | | if (request["jtWZ"] != null) |
| | | model.JTWZ = request["jtWZ"].ToString(); |
| | | if (request["jtWZFM"] != null) |
| | | model.jtWZFM = request["jtWZFM"].ToString(); |
| | | if (request["frontType"] != null) |
| | | model.FrontType = request["frontType"].ToString(); |
| | | if (request["pDemand"] != null) |
| | |
| | | printDemand += ",每本" + model.PageNum + "份,"; |
| | | } |
| | | printDemand += model.RLNum + ","; |
| | | printDemand += model.PrintColor + ","; |
| | | printDemand += "封面要求:"; |
| | | printDemand += model.FrontType; |
| | | printDemand += model.PrintColor + ""; |
| | | |
| | | |
| | | if (model.FrontType != "无封面") |
| | | { |
| | | printDemand += ",封面要求:"; |
| | | printDemand += model.FrontType; |
| | | printDemand += "," + model.pDemand; |
| | | } |
| | | |
| | |
| | | insideModel.PaperId = request["paper" + i].ToString().ToInt32().Value; |
| | | } |
| | | if (request["gramWeight" + i] != null) |
| | | insideModel.GramWeight = request["gramWeight" + i].ToString().ToInt32().Value; |
| | | insideModel.GramWeight = request["gramWeight" + i].ToInt32().HasValue? request["gramWeight" + i].ToString().ToInt32().Value:0; |
| | | if (request["printColor" + i] != null) |
| | | insideModel.PrintColor = request["printColor" + i].ToString(); |
| | | if (request["pageNum" + i] != null) |
| | | insideModel.PageNum = request["pageNum" + i].ToString().ToInt32().Value; |
| | | insideModel.PageNum = request["pageNum" + i].ToInt32().HasValue ? request["pageNum" + i].ToString().ToInt32().Value : 0; ; |
| | | if (request["works" + i] != null) |
| | | works = request["works" + i].ToString(); |
| | | if (!string.IsNullOrEmpty(works)) |
| | |
| | | if (afterInfo.ParameterName == "胶头") |
| | | { |
| | | if(model.PrintTypeId!=27) |
| | | afterInfo.ParameterName = "胶头(每本" + model.PageNum.ToString() + "页)"; |
| | | afterInfo.ParameterName = "胶头(每本" + model.PageNum.ToString() + "张)"; |
| | | |
| | | if (model.PrintTypeId == 39) |
| | | { |
| | |
| | | if (afterInfo.ParameterName == "胶左") |
| | | { |
| | | if (model.PrintTypeId == 29) |
| | | afterInfo.ParameterName = "胶左(每本" + model.PaperMP.ToString() + "页)"; |
| | | afterInfo.ParameterName = "胶左(每本" + model.PaperMP.ToString() + "张)"; |
| | | } |
| | | afterWorkStr += afterInfo.ParameterName + ","; |
| | | } |
| | |
| | | } |
| | | |
| | | } |
| | | //if (model.PrintTypeId == 27) |
| | | //{ |
| | | // afterWorkStr += "套号号段(" + model.ThStart.ToString() + "-" + model.ThEnd.ToString() + ")"; |
| | | // afterWorkStr += "," + model.JTWZ; |
| | | //} |
| | | |
| | | if (model.PrintTypeId == 25) |
| | | if (model.PrintTypeId == 27) |
| | | { |
| | | if (!string.IsNullOrEmpty(model.JTWZ)) |
| | | { |
| | | afterWorkStr = /*"装订:" +*/ model.JTWZ ; |
| | | if (model.JTWZ != "胶头" && model.JTWZ != "胶左" && model.JTWZ != "其他") |
| | | { |
| | | afterWorkStr += ",封面印刷要求:" + model.jtWZFM; |
| | | } |
| | | } |
| | | |
| | | if(!string.IsNullOrEmpty(model.ThStart) || !string.IsNullOrEmpty(model.ThEnd)) |
| | | { |
| | | afterWorkStr += ",套号号段(" + model.ThStart + "-" + model.ThEnd + ")"; |
| | | //afterWorkStr += "," + model.JTWZ; |
| | | } |
| | | } |
| | | |
| | | if (model.PrintTypeId == 29) |
| | | { |
| | | if (!string.IsNullOrEmpty(model.JTWZ)) |
| | | { |
| | | if (!string.IsNullOrEmpty(afterWorkStr)) |
| | | { |
| | | afterWorkStr += ","; |
| | | } |
| | | afterWorkStr += /*"装订:" +*/ model.JTWZ; |
| | | if (model.JTWZ != "胶头" && model.JTWZ != "胶左" && model.JTWZ != "其他" && model.JTWZ != "散页") |
| | | { |
| | | if (!string.IsNullOrEmpty(model.jtWZFM)) |
| | | afterWorkStr += ",封面印刷要求:" + model.jtWZFM; |
| | | } |
| | | if ( model.JTWZ != "散页" && model.PageNum > 0) |
| | | afterWorkStr += "(每本" + model.PageNum.ToString() + "张)"; |
| | | } |
| | | |
| | | //if (!string.IsNullOrEmpty(model.ThStart) || !string.IsNullOrEmpty(model.ThEnd)) |
| | | //{ |
| | | // afterWorkStr += ",套号号段(" + model.ThStart + "-" + model.ThEnd + ")"; |
| | | // //afterWorkStr += "," + model.JTWZ; |
| | | //} |
| | | } |
| | | |
| | | if (model.PrintTypeId == 25) |
| | | { |
| | | |
| | | InquiryInsideModel insideModel = model.InquiryInsideList[0]; |