From d15f9ddeef5168a71007b568d7349042931a92e3 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 14 五月 2025 15:23:00 +0800
Subject: [PATCH] 系统表格中工价为16开工价;32开下浮30%;32开以下减半;8开上浮30%,4开以上上浮1半

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs |  847 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 846 insertions(+), 1 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
index 9359781..1b6b2cd 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
@@ -153,6 +153,121 @@
 
             //rptInquiryCommon.DataSource = new List<InquiryCommonModel>() { _inquiryCommonModel };
             //rptInquiryCommon.DataBind();
+            #region 缁戝畾璁捐淇℃伅
+            if (_eC_OrderBasic.PrintTypeId == 29)
+            {
+                this.SelShejirenyuan29.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing29.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.SelDanshuangmian29.Value = _eC_OrderBasic.Danshuangmian;
+                this.txtShejiyaoqiu29.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 6)
+            {
+                this.SelShejirenyuan6.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing6.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.SelDanshuangmian6.Value = _eC_OrderBasic.Danshuangmian;
+                this.txtShejiyaoqiu6.Value = _eC_OrderBasic.Shejiyaoqiu;
+
+                this.SelShejirenyuanneiye6.Value = _eC_OrderBasic.Shejirenyuanneiye.HasValue ? _eC_OrderBasic.Shejirenyuanneiye.Value.ToString() : "";
+                this.SelShejileixingneiye6.Value = _eC_OrderBasic.Shejileixingneiye.HasValue ? _eC_OrderBasic.Shejileixingneiye.Value.ToString() : "";
+                this.txtShejiyaoqiuneiye6.Value = _eC_OrderBasic.Shejiyaoqiuneiye;
+            }
+            else if(_eC_OrderBasic.PrintTypeId == 15)
+            {
+                this.SelShejirenyuan15.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing15.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.SelDanshuangmian15.Value = _eC_OrderBasic.Danshuangmian;
+                this.txtShejiyaoqiu15.Value = _eC_OrderBasic.Shejiyaoqiu;
+
+                this.SelShejirenyuanneiye15.Value = _eC_OrderBasic.Shejirenyuanneiye.HasValue ? _eC_OrderBasic.Shejirenyuanneiye.Value.ToString() : "";
+                this.SelShejileixingneiye15.Value = _eC_OrderBasic.Shejileixingneiye.HasValue ? _eC_OrderBasic.Shejileixingneiye.Value.ToString() : "";
+                this.txtShejiyaoqiuneiye15.Value = _eC_OrderBasic.Shejiyaoqiuneiye;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 14)
+            {
+                this.SelShejirenyuan14.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing14.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.SelDanshuangmian14.Value = _eC_OrderBasic.Danshuangmian;
+                this.txtShejiyaoqiu14.Value = _eC_OrderBasic.Shejiyaoqiu;     
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 27)
+            {
+                this.SelShejirenyuan27.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing27.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu27.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 21)
+            {
+                this.SelShejirenyuan21.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing21.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu21.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 7)
+            {
+                this.SelShejirenyuan7.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing7.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu7.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 38)
+            {
+                this.SelShejirenyuan38.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.txtShejileixingName38.Value = _eC_OrderBasic.ShejileixingName;
+                this.txtShejiyaoqiu38.Value = _eC_OrderBasic.Shejiyaoqiu;
+                this.ShijuanprintCount.Value = _eC_OrderBasic.Shejicount.HasValue ? _eC_OrderBasic.Shejicount.Value.ToString() : "0";
+
+                this.SelShejirenyuanneiye38.Value = _eC_OrderBasic.Shejirenyuanneiye.HasValue ? _eC_OrderBasic.Shejirenyuanneiye.Value.ToString() : "";
+                this.txtShejileixingNameneiye38.Value = _eC_OrderBasic.ShejileixingNameneiye;
+                this.txtShejiyaoqiuneiye38.Value = _eC_OrderBasic.Shejiyaoqiuneiye;
+                this.DatikaprintCount.Value = _eC_OrderBasic.Shejicountneiye.HasValue ? _eC_OrderBasic.Shejicountneiye.Value.ToString() : "0";
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 20)
+            {
+                this.SelShejirenyuan20.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing20.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu20.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 16)
+            {
+                this.SelShejirenyuan16.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing16.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu16.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 22)
+            {
+                this.SelShejirenyuan22.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing22.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu22.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 39)
+            {
+                this.SelShejirenyuan39.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.txtShejiyaoqiu39.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 23)
+            {
+                this.SelShejirenyuan23.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing23.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu23.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 25)
+            {
+                this.SelShejirenyuan25.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing25.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu25.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else if (_eC_OrderBasic.PrintTypeId == 26)
+            {
+                this.SelShejirenyuan26.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.SelShejileixing26.Value = _eC_OrderBasic.Shejileixing.HasValue ? _eC_OrderBasic.Shejileixing.Value.ToString() : "";
+                this.txtShejiyaoqiu26.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            else  
+            {
+                this.SelShejirenyuan1111.Value = _eC_OrderBasic.Shejirenyuan.HasValue ? _eC_OrderBasic.Shejirenyuan.Value.ToString() : "";
+                this.txtShejiyaoqiu1111.Value = _eC_OrderBasic.Shejiyaoqiu;
+            }
+            #endregion
+
         }
 
         /// <summary>
@@ -215,7 +330,65 @@
                 this.selCustormerManagers.DataBind();
                 this.selCustormerManagers.Items.Insert(0, new ListItem("鏃�", "0"));
 
-                
+
+                var oA_Staffs = oA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.DepartmentId == 13);
+                this.SelShejirenyuan29.DataSource = oA_Staffs;
+                this.SelShejirenyuan29.DataBind();
+
+                this.SelShejirenyuan6.DataSource = oA_Staffs;
+                this.SelShejirenyuan6.DataBind();
+
+                this.SelShejirenyuanneiye6.DataSource = oA_Staffs;
+                this.SelShejirenyuanneiye6.DataBind();
+
+                this.SelShejirenyuan15.DataSource = oA_Staffs;
+                this.SelShejirenyuan15.DataBind();
+
+                this.SelShejirenyuanneiye15.DataSource = oA_Staffs;
+                this.SelShejirenyuanneiye15.DataBind();
+
+                this.SelShejirenyuan14.DataSource = oA_Staffs;
+                this.SelShejirenyuan14.DataBind();
+
+                this.SelShejirenyuan27.DataSource = oA_Staffs;
+                this.SelShejirenyuan27.DataBind();
+
+                this.SelShejirenyuan21.DataSource = oA_Staffs;
+                this.SelShejirenyuan21.DataBind();
+
+                this.SelShejirenyuan7.DataSource = oA_Staffs;
+                this.SelShejirenyuan7.DataBind();
+
+                this.SelShejirenyuan38.DataSource = oA_Staffs;
+                this.SelShejirenyuan38.DataBind();
+
+                this.SelShejirenyuanneiye38.DataSource = oA_Staffs;
+                this.SelShejirenyuanneiye38.DataBind();
+
+                this.SelShejirenyuan20.DataSource = oA_Staffs;
+                this.SelShejirenyuan20.DataBind();
+
+                this.SelShejirenyuan16.DataSource = oA_Staffs;
+                this.SelShejirenyuan16.DataBind();
+
+                this.SelShejirenyuan22.DataSource = oA_Staffs;
+                this.SelShejirenyuan22.DataBind();
+
+                this.SelShejirenyuan39.DataSource = oA_Staffs;
+                this.SelShejirenyuan39.DataBind();
+
+                this.SelShejirenyuan23.DataSource = oA_Staffs;
+                this.SelShejirenyuan23.DataBind();
+
+                this.SelShejirenyuan25.DataSource = oA_Staffs;
+                this.SelShejirenyuan25.DataBind();
+
+                this.SelShejirenyuan26.DataSource = oA_Staffs;
+                this.SelShejirenyuan26.DataBind();
+
+                this.SelShejirenyuan1111.DataSource = oA_Staffs;
+                this.SelShejirenyuan1111.DataBind();
+
             }
         }
 
@@ -379,6 +552,10 @@
             EC_OrderBasicBLL bll_EC_OrderBasicBLL = new EC_OrderBasicBLL();
             EC_OrderExtend eC_OrderExtend = new EC_OrderExtend();//璁㈠崟鎵╁睍淇℃伅
             EC_OrderBasic eC_OrderBasic = new EC_OrderBasic();//璁㈠崟涓昏淇℃伅 
+            OA_StaffBLL oA_StaffBLL = new BLL.OA_StaffBLL();
+            OA_ShejijijianBLL bll_OA_ShejijijianBLLBLL = new OA_ShejijijianBLL();
+            CY.BLL.Inquiry.PaperSizeDetailBLL _paperSizeDetailBLL = new CY.BLL.Inquiry.PaperSizeDetailBLL();//鏌ヨ绾稿紶灏哄
+
             EC_OrderPrintParameter orderPrintParameter = null;
             InquiryCommonModel _inquiryCommonModel = null;
             eC_OrderExtend.Keyid = MyConvert.ConvertToInt32(txtKeyid.Value);
@@ -388,6 +565,12 @@
                 if (eC_OrderBasic == null || eC_OrderBasic.Keyid == null)
                 {
                     eC_OrderBasic = new EC_OrderBasic();
+                }
+                if (eC_OrderBasic.ShejiStatus == 1)
+                {
+                    //鎿嶄綔澶辫触
+                    JavaScript.MessageBox("宸蹭笅鍗曪紝涓嶈兘淇敼", this);
+                    return false;
                 }
 
                 eC_OrderExtend.Remark = MyConvert.ConvertToString(Request["txtRemark"]).Trim();
@@ -458,6 +641,615 @@
             eC_OrderBasic.DocumentName = MyConvert.ConvertToString(Request["txtDocumentName"]);
             eC_OrderBasic.DeliveryTime = MyConvert.ConvertToDateTime(Request["txtDeliveryTime"]);
             eC_OrderExtend.Duiyinghetongbianhao = MyConvert.ConvertToString(Request["txtDuiyinghetongbianhao"]).Trim();
+
+           var PrintTypeId =  MyConvert.ConvertToInt32(Request["selPrintTypes"]);
+            #region 缁戝畾璁捐淇℃伅 灏侀潰鐨勬暟鍊煎氨鏄�1  鍐呴〉鐨勬暟閲忛渶瑕佽绠楁墍鏈夌殑鍐呴〉椤电爜鐨勬�诲拰
+
+            //绯荤粺琛ㄦ牸涓伐浠蜂负16寮�宸ヤ环锛�32寮�涓嬫诞30%锛�32寮�浠ヤ笅鍑忓崐锛�8寮�涓婃诞30%锛�4寮�浠ヤ笂涓婃诞1鍗� 浠呴檺浜庯細榛戠櫧鍗颁欢銆佷功鍒娿�佺敾鍐屻�丏M浣嗐�佹姤绾�5绉嶏紝鍏朵粬涓嶇
+            decimal gongjia = new decimal(1);
+            if(PrintTypeId == 29 || PrintTypeId == 6 || PrintTypeId == 15 || PrintTypeId == 14 || PrintTypeId == 7)
+            {
+                var paperSize = Request["paperSize"];
+                if (paperSize != "-1")
+                {
+                    var paperSizeDetail = _paperSizeDetailBLL.GetPaperSizeDetail(PrintTypeId.Value, paperSize.ToInt32().Value);
+                    if (paperSizeDetail != null)
+                    {
+                        if (paperSizeDetail.Name.IndexOf("48寮�") >= 0 || paperSizeDetail.Name.IndexOf("64寮�") >= 0)
+                        {
+                            gongjia = new decimal(0.5);
+                        }
+                        else if (paperSizeDetail.Name.IndexOf("32寮�") >= 0)
+                        {
+                            gongjia = new decimal(0.7);
+                        }
+                        else if (paperSizeDetail.Name.IndexOf("16寮�") >= 0)
+                        {
+                            gongjia = new decimal(1);
+                        }
+                        else if (paperSizeDetail.Name.IndexOf("8寮�") >= 0 || paperSizeDetail.Name.IndexOf("6寮�") >= 0)
+                        {
+                            gongjia = new decimal(1.3);
+                        }
+                        else if(paperSizeDetail.Name.IndexOf("4寮�") >= 0 || paperSizeDetail.Name.IndexOf("3寮�") >= 0 || paperSizeDetail.Name.IndexOf("2寮�") >= 0 || paperSizeDetail.Name.IndexOf("鍏ㄥ紑") >= 0)
+                        {
+                            gongjia = new decimal(1.5);
+                        }
+                       
+                        
+                         
+                    }
+                }
+                else
+                {
+                    decimal sikai = 420 * 570;
+                    if (PrintTypeId == 29)
+                    {
+                        sikai = 380 * 680;
+                    }
+
+                    decimal bakai = 420 * 285;
+
+                    decimal sanshierkai = 130 * 185;
+
+
+                    var txtFirstSize = Request["txtFirstSize"].ToDecimal2()??0;
+                    var txtSecondSize = Request["txtSecondSize"].ToDecimal2() ?? 0;
+                    var chicun = txtFirstSize * txtSecondSize;
+                    if (chicun>= sikai)
+                    {
+                        gongjia = new decimal(1.5);
+                    }
+                    else if (chicun >= bakai)
+                    {
+                        gongjia = new decimal(1.3);
+                    }
+                    else if (chicun == sanshierkai)
+                    {
+                        gongjia = new decimal(0.7);
+                    }
+                    else if (chicun < sanshierkai)
+                    {
+                        gongjia = new decimal(0.5);
+                    }
+
+                }
+               
+               
+            }
+
+
+
+            if (PrintTypeId == 29)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan29.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing29.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Danshuangmian = this.SelDanshuangmian29.Value;
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu29.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian  =  bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(),"", eC_OrderExtend.Shejileixing.ToString(),null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 6)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                
+                eC_OrderExtend.Shejileixing = this.SelShejileixing6.Value.ToInt32();
+                if (eC_OrderExtend.Shejileixing != 8)
+                {
+                    eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan6.Value.ToInt32();
+                    var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                    if (oA_Staff != null)
+                    {
+                        eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                    }
+                    var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                    if (shejijijian != null)
+                    {
+                        eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
+                        if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                        {
+                            eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                        }
+                    }
+                }
+                else
+                {
+                    eC_OrderExtend.Shejirenyuan = 0;
+                    eC_OrderExtend.ShejirenyuanName = "";
+                    eC_OrderExtend.ShejiUnitPrice = 0;
+                    eC_OrderExtend.ShejiSumPrice = 0;
+                }
+
+                
+               
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Danshuangmian = this.SelDanshuangmian6.Value;
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu6.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+               
+
+                int insidePageNum = 1;
+                if (Request["hidInsidePageNum"] != null)
+                    insidePageNum = Request["hidInsidePageNum"].ToString().ToInt32().Value;
+                int PageNumneiye = 0;
+                for (int i = 1; i <= insidePageNum; i++)
+                {
+                    if (Request["pageNum" + i] != null)
+                        PageNumneiye += Request["pageNum" + i].ToInt32().HasValue ? Request["pageNum" + i].ToInt32().Value : 0;
+                }
+
+
+
+                eC_OrderExtend.Shejicountneiye = PageNumneiye;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejileixingneiye = this.SelShejileixingneiye6.Value.ToInt32();
+                if (eC_OrderExtend.Shejileixingneiye != 8)
+                {
+                    eC_OrderExtend.Shejirenyuanneiye = this.SelShejirenyuanneiye6.Value.ToInt32();
+                    var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye);
+                    if (oA_Staff1 != null)
+                    {
+                        eC_OrderExtend.ShejirenyuanNameneiye = oA_Staff1.Name;
+                    }
+
+                    var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault();
+                    if (shejijijian1 != null)
+                    {
+                        eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia;
+                        if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue)
+                        {
+                            eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye;
+                        }
+                    }
+                }
+                else
+                {
+                    eC_OrderExtend.Shejirenyuanneiye = 0;
+                    eC_OrderExtend.ShejirenyuanNameneiye = "";
+                    eC_OrderExtend.ShejiUnitPriceneiye = 0;
+                    eC_OrderExtend.ShejiSumPriceneiye = 0;
+                }
+
+              
+               
+                eC_OrderExtend.ShejileixingNameneiye = this.shejileixing(eC_OrderExtend.Shejileixingneiye.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiuneiye = this.txtShejiyaoqiuneiye6.Value;
+
+                
+            }
+            else if (PrintTypeId == 15)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejileixing = this.SelShejileixing15.Value.ToInt32();
+                if (eC_OrderExtend.Shejileixing != 8)
+                {
+                    eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan15.Value.ToInt32();
+                    var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                    if (oA_Staff != null)
+                    {
+                        eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                    }
+                    var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                    if (shejijijian != null)
+                    {
+                        eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
+                        if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                        {
+                            eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                        }
+                    }
+                }
+                else
+                {
+                    eC_OrderExtend.Shejirenyuan = 0;
+                    eC_OrderExtend.ShejirenyuanName = "";
+                    eC_OrderExtend.ShejiUnitPrice = 0;
+                    eC_OrderExtend.ShejiSumPrice = 0;
+                }
+
+
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Danshuangmian = this.SelDanshuangmian15.Value;
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu15.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+               
+
+
+
+                int insidePageNum = 1;
+                if (Request["hidInsidePageNum"] != null)
+                    insidePageNum = Request["hidInsidePageNum"].ToString().ToInt32().Value;
+                int PageNumneiye = 0;
+                for (int i = 1; i <= insidePageNum; i++)
+                {
+                    if (Request["pageNum" + i] != null)
+                        PageNumneiye += Request["pageNum" + i].ToInt32().HasValue ? Request["pageNum" + i].ToInt32().Value : 0;
+                }
+                eC_OrderExtend.Shejicountneiye = PageNumneiye;// Request["printCount"].ToString().ToInt32();
+
+                eC_OrderExtend.Shejileixingneiye = this.SelShejileixingneiye15.Value.ToInt32();
+                if (eC_OrderExtend.Shejileixingneiye != 8)
+                {
+                    eC_OrderExtend.Shejirenyuanneiye = this.SelShejirenyuanneiye15.Value.ToInt32();
+                    var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye);
+                    if (oA_Staff1 != null)
+                    {
+                        eC_OrderExtend.ShejirenyuanNameneiye = oA_Staff1.Name;
+                    }
+                    var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", eC_OrderExtend.Shejileixingneiye.ToString(), null).FirstOrDefault();
+                    if (shejijijian1 != null)
+                    {
+                        eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney * gongjia;
+                        if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue)
+                        {
+                            eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye;
+                        }
+                    }
+                }
+                else
+                {
+                    eC_OrderExtend.Shejirenyuanneiye = 0;
+                    eC_OrderExtend.ShejirenyuanNameneiye = "";
+                    eC_OrderExtend.ShejiUnitPriceneiye = 0;
+                    eC_OrderExtend.ShejiSumPriceneiye = 0;
+                }
+
+              
+               
+                eC_OrderExtend.ShejileixingNameneiye = this.shejileixing(eC_OrderExtend.Shejileixingneiye.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiuneiye = this.txtShejiyaoqiuneiye15.Value;
+
+              
+            }
+            else if (PrintTypeId == 14)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan14.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing14.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Danshuangmian = this.SelDanshuangmian14.Value;
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu14.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 27)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan27.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing27.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu27.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 21)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan21.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing21.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu21.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 7)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan7.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing7.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu7.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 38)
+            {
+                eC_OrderExtend.Shejicount = this.ShijuanprintCount.Value.ToInt32() ?? 0;     //Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan38.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.ShejileixingName = this.txtShejileixingName38.Value;
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu38.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "1", "", null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+
+
+
+
+                eC_OrderExtend.Shejicountneiye = this.DatikaprintCount.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuanneiye = this.SelShejirenyuanneiye38.Value.ToInt32();
+                var oA_Staff1 = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuanneiye);
+                if (oA_Staff1 != null)
+                {
+                    eC_OrderExtend.ShejirenyuanNameneiye = oA_Staff1.Name;
+                }
+                eC_OrderExtend.ShejileixingNameneiye = this.txtShejileixingNameneiye38.Value;
+                eC_OrderExtend.Shejiyaoqiuneiye = this.txtShejiyaoqiuneiye38.Value;
+
+                var shejijijian1 = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "2", "", null).FirstOrDefault();
+                if (shejijijian1 != null)
+                {
+                    eC_OrderExtend.ShejiUnitPriceneiye = shejijijian1.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye;
+                    }
+                }
+            }
+            else if (PrintTypeId == 20)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan20.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing20.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu20.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 16)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan16.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing16.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu16.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 22)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan22.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing22.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu22.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 39)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan39.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu39.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", "", null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 23)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan23.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing23.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu23.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 25)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan25.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing25.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu25.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else if (PrintTypeId == 26)
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan26.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejileixing = this.SelShejileixing26.Value.ToInt32();
+                eC_OrderExtend.ShejileixingName = this.shejileixing(eC_OrderExtend.Shejileixing.Value.ToString());
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu26.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            else 
+            {
+                eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejirenyuan = this.SelShejirenyuan1111.Value.ToInt32();
+                var oA_Staff = oA_StaffBLL.GetModelByKeyid(eC_OrderExtend.Shejirenyuan);
+                if (oA_Staff != null)
+                {
+                    eC_OrderExtend.ShejirenyuanName = oA_Staff.Name;
+                }
+                eC_OrderExtend.Shejiyaoqiu = this.txtShejiyaoqiu1111.Value;
+                eC_OrderExtend.ShejiStatus = 2;
+
+                var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", "", null).FirstOrDefault();
+                if (shejijijian != null)
+                {
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
+                    {
+                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
+                    }
+                }
+            }
+            #endregion
 
             ///鏄慨鏀规椂鍙繚瀛樻墿灞曚俊鎭�
             if (eC_OrderExtend.Keyid.HasValue && 0 < eC_OrderExtend.Keyid.Value)
@@ -916,5 +1708,58 @@
                 return "";
             }
         }
+
+
+
+        private string shejileixing(string Shejileixing)
+        {
+            var ShejileixingName = "";
+
+            switch (Shejileixing)
+            {
+                case "1":
+                    ShejileixingName = "鏂囧瓧鐓ф帓";
+                    break;
+                case "2":
+                    ShejileixingName = "鏁撮〉琛ㄦ牸";
+                    break;
+                case "3":
+                    ShejileixingName = "鍗婃枃鍗婅〃";
+                    break;
+                case "4":
+                    ShejileixingName = "鎵弿鐓у仛";
+                    break;
+                case "5":
+                    ShejileixingName = "鏂囦欢淇敼";
+                    break;
+                case "6":
+                    ShejileixingName = "鏂囧瓧灏侀潰";
+                    break;
+                case "7":
+                    ShejileixingName = "璁捐灏侀潰";
+                    break;
+                case "8":
+                    ShejileixingName = "瀹緵鏂囦欢";
+                    break;
+                case "9":
+                    ShejileixingName = "褰╄壊璁捐";
+                    break;
+                case "10":
+                    ShejileixingName = "璁捐鍒朵綔";
+                    break;
+                case "11":
+                    ShejileixingName = "鐓ф帓鍒朵綔";
+                    break;
+                case "12":
+                    ShejileixingName = "璁捐鐓ф帓";
+                    break;
+                default:
+                    ShejileixingName = "";
+                    break;
+            }
+
+            return ShejileixingName;
+        }
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1