From 9fc9a04cbdf7b5bdc2e2eb3067109d9024491adf Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 11 八月 2025 09:01:35 +0800
Subject: [PATCH] 开数

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

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
index ba3a2df..2310166 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/SHejiOrderEdit.aspx.cs
@@ -304,10 +304,10 @@
                 //this.rptCustormer.DataSource = corporateClients;
                 //this.rptCustormer.DataBind();
 
-                this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).OrderBy(x=>x.orderNumHome);
+                this.selPrintTypes.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).Where(x=> x.KeyId != 37 && x.KeyId != 31).OrderBy(x=>x.orderNumHome);
                 this.selPrintTypes.DataBind();
                 this.selPrintTypes.Items.Insert(0, new ListItem("璇烽�夋嫨", ""));
-                this.selPrintTypes.Items.Add(new ListItem("鍏朵粬", "-1"));
+                //this.selPrintTypes.Items.Add(new ListItem("鍏朵粬", "-1"));
 
                 this.selExigencyDegree.DataSource = _sys_DictionaryBLL.GetDataByType("OA_绱ф�ョ▼搴�");
                 this.selExigencyDegree.DataBind();
@@ -330,64 +330,159 @@
                 this.selCustormerManagers.DataBind();
                 this.selCustormerManagers.Items.Insert(0, new ListItem("鏃�", "0"));
 
-
+                var ToUpSetData = Request["ToUpSetData"];
                 var oA_Staffs = oA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, null, null).Where(x => x.DepartmentId == 13);
                 this.SelShejirenyuan29.DataSource = oA_Staffs;
                 this.SelShejirenyuan29.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan29.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan6.DataSource = oA_Staffs;
                 this.SelShejirenyuan6.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan6.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuanneiye6.DataSource = oA_Staffs;
                 this.SelShejirenyuanneiye6.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuanneiye6.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan15.DataSource = oA_Staffs;
                 this.SelShejirenyuan15.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan15.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuanneiye15.DataSource = oA_Staffs;
                 this.SelShejirenyuanneiye15.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuanneiye15.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan14.DataSource = oA_Staffs;
                 this.SelShejirenyuan14.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan14.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan27.DataSource = oA_Staffs;
                 this.SelShejirenyuan27.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan27.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan21.DataSource = oA_Staffs;
                 this.SelShejirenyuan21.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan21.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan7.DataSource = oA_Staffs;
                 this.SelShejirenyuan7.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan7.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan38.DataSource = oA_Staffs;
                 this.SelShejirenyuan38.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan38.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuanneiye38.DataSource = oA_Staffs;
                 this.SelShejirenyuanneiye38.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuanneiye38.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan20.DataSource = oA_Staffs;
                 this.SelShejirenyuan20.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan20.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan16.DataSource = oA_Staffs;
                 this.SelShejirenyuan16.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan16.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan22.DataSource = oA_Staffs;
                 this.SelShejirenyuan22.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan22.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan39.DataSource = oA_Staffs;
                 this.SelShejirenyuan39.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan39.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan23.DataSource = oA_Staffs;
                 this.SelShejirenyuan23.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan23.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan25.DataSource = oA_Staffs;
                 this.SelShejirenyuan25.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan25.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan26.DataSource = oA_Staffs;
                 this.SelShejirenyuan26.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan26.Value = StaffId.ToString();
+                }
 
                 this.SelShejirenyuan1111.DataSource = oA_Staffs;
                 this.SelShejirenyuan1111.DataBind();
+                if (string.IsNullOrEmpty(ToUpSetData))
+                {
+                    var StaffId = CurrentUser.StaffId;
+                    this.SelShejirenyuan1111.Value = StaffId.ToString();
+                }
 
             }
         }
@@ -554,6 +649,8 @@
             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);
@@ -642,6 +739,82 @@
 
            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 = 370 * 520;
+                    //if (PrintTypeId == 29)
+                    //{
+                    //    sikai = 380 * 680;
+                    //}
+
+                    decimal bakai = 370 * 260;
+
+                    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();
@@ -660,7 +833,7 @@
                 var shejijijian  =  bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(),"", eC_OrderExtend.Shejileixing.ToString(),null).FirstOrDefault();
                 if (shejijijian != null)
                 {
-                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
                     if (eC_OrderExtend.ShejiUnitPrice.HasValue)
                     {
                         eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
@@ -670,27 +843,42 @@
             else if (PrintTypeId == 6)
             {
                 eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
-                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;
-                }
+                
                 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;
 
-                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;
-                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
-                    {
-                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
-                    }
-                }
+               
 
                 int insidePageNum = 1;
                 if (Request["hidInsidePageNum"] != null)
@@ -705,50 +893,78 @@
 
 
                 eC_OrderExtend.Shejicountneiye = PageNumneiye;// Request["printCount"].ToString().ToInt32();
-                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;
-                }
                 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;
 
-                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;
-                    if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue)
-                    {
-                        eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye;
-                    }
-                }
+                
             }
             else if (PrintTypeId == 15)
             {
                 eC_OrderExtend.Shejicount = 1;// Request["printCount"].ToString().ToInt32();
-                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;
-                }
                 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;
 
-                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;
-                    if (eC_OrderExtend.ShejiUnitPrice.HasValue)
-                    {
-                        eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
-                    }
-                }
+               
 
 
 
@@ -762,25 +978,40 @@
                         PageNumneiye += Request["pageNum" + i].ToInt32().HasValue ? Request["pageNum" + i].ToInt32().Value : 0;
                 }
                 eC_OrderExtend.Shejicountneiye = PageNumneiye;// Request["printCount"].ToString().ToInt32();
-                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;
-                }
+
                 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;
 
-                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;
-                    if (eC_OrderExtend.ShejiUnitPriceneiye.HasValue)
-                    {
-                        eC_OrderExtend.ShejiSumPriceneiye = eC_OrderExtend.ShejiUnitPriceneiye * eC_OrderExtend.Shejicountneiye;
-                    }
-                }
+              
             }
             else if (PrintTypeId == 14)
             {
@@ -800,7 +1031,7 @@
                 var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
                 if (shejijijian != null)
                 {
-                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
                     if (eC_OrderExtend.ShejiUnitPrice.HasValue)
                     {
                         eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
@@ -872,7 +1103,7 @@
                 var shejijijian = bll_OA_ShejijijianBLLBLL.GetModelByformid(CurrentUser.MemberId, PrintTypeId.ToString(), "", eC_OrderExtend.Shejileixing.ToString(), null).FirstOrDefault();
                 if (shejijijian != null)
                 {
-                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney;
+                    eC_OrderExtend.ShejiUnitPrice = shejijijian.Shejilemoney * gongjia;
                     if (eC_OrderExtend.ShejiUnitPrice.HasValue)
                     {
                         eC_OrderExtend.ShejiSumPrice = eC_OrderExtend.ShejiUnitPrice * eC_OrderExtend.Shejicount;
@@ -881,7 +1112,7 @@
             }
             else if (PrintTypeId == 38)
             {
-                eC_OrderExtend.Shejicount = this.ShijuanprintCount.Value.ToInt32() ?? 0;     //Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejicount = this.txtShejileixingName38.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)
@@ -905,7 +1136,7 @@
 
 
 
-                eC_OrderExtend.Shejicountneiye = this.DatikaprintCount.Value.ToInt32()??0; //Request["printCount"].ToString().ToInt32();
+                eC_OrderExtend.Shejicountneiye = this.txtShejileixingNameneiye38.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)

--
Gitblit v1.9.1