username@email.com
2025-02-07 07948a2a0191a6e7608339789e97684599c3da7f
CY_ECommercePlatform/CY.WebForm/Pages/front/InquiryOnLine.aspx.cs
@@ -102,6 +102,7 @@
                string works = string.Empty;
                int printMode = 1;
                int gramWeight = -1;
                string Qitazhi = string.Empty;
                int brandId = -1;
                int printCount = -1;
                string singleOrdouble = string.Empty;
@@ -153,11 +154,16 @@
                {
                    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;
@@ -239,6 +245,7 @@
                model.PaperId = paperId;
                model.GramWeight = gramWeight;
                model.BrandId = brandId;
                model.Qitazhi = Qitazhi;
                model.PrintCount = printCount;
                model.Unit = ysuint;
                model.SingleOrdouble = singleOrdouble;
@@ -352,9 +359,9 @@
                        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页";
@@ -401,13 +408,15 @@
                                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))
@@ -437,14 +446,25 @@
                                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 + ")";
@@ -455,16 +475,24 @@
                        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 += "张";
                            }
@@ -527,13 +555,15 @@
                            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))
@@ -564,13 +594,21 @@
                        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 + ")";
@@ -581,16 +619,24 @@
                    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 += "张";
                        }
@@ -1630,6 +1676,10 @@
                        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) //公文纸
                {
@@ -1869,6 +1919,8 @@
                    }
                    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)
@@ -1900,12 +1952,13 @@
                        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;
                    }
@@ -2158,11 +2211,11 @@
                                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))
@@ -2459,8 +2512,13 @@
            {
                if (!string.IsNullOrEmpty(model.JTWZ))
                {
                    afterWorkStr = 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 + ")";
@@ -2468,6 +2526,31 @@
                } 
            }
            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)
             {