From 69a1b7107ca42ef46a42e98f7aadd3ea70fb35ed Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期四, 20 十一月 2025 09:19:32 +0800
Subject: [PATCH] 不用再增加一个专门的序号,就按照这个编号,不是列表都有个编号嘛,好,那个送货单就显示就显示那个编号,比如说雷波中学,你在左送货单的左上角2是1或者。或者有三果十一都可以。

---
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx         |    4 +-
 CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs                                  |    2 
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookSonghuo.aspx             |    2 
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookDetail.aspx              |    2 
 CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs                                   |   13 ++++++
 CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs                               |   14 ++++---
 CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs                   |   13 ++++++
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx    |    4 +-
 CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderAdd.aspx.cs                    |   10 +++++
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx.designer.cs   |    9 ++++
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs      |    4 ++
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx.cs |    3 +
 CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx               |   15 +++++--
 CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx                   |    2 
 CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx                      |    2 
 15 files changed, 79 insertions(+), 20 deletions(-)

diff --git a/CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs b/CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs
index 6020016..a9762d5 100644
--- a/CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs
+++ b/CY_ECommercePlatform/CY.BLL/OA/CoreCmsPlanOrderBLL.cs
@@ -237,7 +237,7 @@
             {
                 new Criterion("", Condition),
 
-                new Criterion("orderBy"," pianqu asc   ")
+                new Criterion("orderBy"," Bianhao  ")
             };
             query.Criteria = criterias;
             return _ICoreCmsPlanOrderDAL.SelectModelPage(query, pa);
diff --git a/CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs b/CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs
index 83af9f4..6ae4683 100644
--- a/CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs
+++ b/CY_ECommercePlatform/CY.Model/OA/CoreCmsPlanOrder.cs
@@ -245,6 +245,13 @@
         /// </summary>		
         public string biaoge { get; set; }
 
+        /// <summary>
+        /// 缂栧彿
+        /// </summary>
+
+
+        public int? Bianhao { get; set; }
+
         #endregion Model
 
         #region Visiter
@@ -395,6 +402,12 @@
                 this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
                 theValue = this.FirmId;
             }
+            else if ("Bianhao".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
+            {
+                this.Bianhao = isChange ? MyConvert.ConvertToInt32(value) : Bianhao;
+                theValue = this.Bianhao;
+            }
+            
 
             return theValue;
         }
diff --git a/CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs b/CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs
index 174721d..d6dcc43 100644
--- a/CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs
+++ b/CY_ECommercePlatform/CY.SQLDAL/OA/CoreCmsPlanOrderDAL.cs
@@ -28,7 +28,7 @@
         /// <summary>
         /// 鍒嗛〉榛樿鎺掑簭瀛楁
         /// </summary>
-        const string ORDERBY = " id desc  ";
+        const string ORDERBY = " Bianhao  ";
         #endregion
         public CoreCmsPlanOrderDAL()
         {
@@ -77,10 +77,11 @@
                                                          new SqlParameter("@isdelete",trueModel.isdelete),
                                                            new SqlParameter("@orderkeyid",trueModel.orderkeyid),
                                                        new SqlParameter("@FirmId",trueModel.FirmId),
+                                                         new SqlParameter("@Bianhao",trueModel.Bianhao.HasValue?trueModel.Bianhao.Value:0),
 
             };
-            string sql = "Insert Into CoreCmsPlanOrder ([shengId],[sheng],[shiId],[shi], [quxianId], [quxian],[pianqu], [orderAmount],[status], [userMobile],[shipAddress],[shipName],[shipMobile],[shouhuoAddress],oldOrderAmount,keYongAmount,huaFeiAmount,createTime,upDataTime,createBy,upDataBy,isdelete,orderkeyid,FirmId)"
-                                             + " Values (@shengId,@sheng,@shiId, @shi, @quxianId, @quxian, @pianqu, @orderAmount, @status, @userMobile,@shipAddress,@shipName,@shipMobile,@shouhuoAddress,@oldOrderAmount,@keYongAmount,@huaFeiAmount,@createTime,@upDataTime,@createBy,@upDataBy,@isdelete,@orderkeyid,@FirmId )";
+            string sql = "Insert Into CoreCmsPlanOrder ([shengId],[sheng],[shiId],[shi], [quxianId], [quxian],[pianqu], [orderAmount],[status], [userMobile],[shipAddress],[shipName],[shipMobile],[shouhuoAddress],oldOrderAmount,keYongAmount,huaFeiAmount,createTime,upDataTime,createBy,upDataBy,isdelete,orderkeyid,FirmId,Bianhao)"
+                                             + " Values (@shengId,@sheng,@shiId, @shi, @quxianId, @quxian, @pianqu, @orderAmount, @status, @userMobile,@shipAddress,@shipName,@shipMobile,@shouhuoAddress,@oldOrderAmount,@keYongAmount,@huaFeiAmount,@createTime,@upDataTime,@createBy,@upDataBy,@isdelete,@orderkeyid,@FirmId,@Bianhao )";
             try
             {
                 _dataBase.ExecuteSql(sql, sqlParms.ToArray<SqlParameter>());
@@ -136,10 +137,11 @@
                                                          new SqlParameter("@isdelete",trueModel.isdelete),
                                                            new SqlParameter("@orderkeyid",trueModel.orderkeyid),
                                                        new SqlParameter("@FirmId",trueModel.FirmId),
+                                                        new SqlParameter("@Bianhao",trueModel.Bianhao.HasValue?trueModel.Bianhao.Value:0),
 
             };
-            string sql = "Insert Into CoreCmsPlanOrder ([shengId],[sheng],[shiId],[shi], [quxianId], [quxian],[pianqu], [orderAmount],[status], [userMobile],[shipAddress],[shipName],[shipMobile],[shouhuoAddress],oldOrderAmount,keYongAmount,huaFeiAmount,createTime,upDataTime,createBy,upDataBy,isdelete,orderkeyid,FirmId)"
-                                             + " Values ( @shengId,@sheng,@shiId, @shi, @quxianId, @quxian, @pianqu, @orderAmount, @status, @userMobile,@shipAddress,@shipName,@shipMobile,@shouhuoAddress,@oldOrderAmount,@keYongAmount,@huaFeiAmount,@createTime,@upDataTime,@createBy,@upDataBy,@isdelete,@orderkeyid,@FirmId )";
+            string sql = "Insert Into CoreCmsPlanOrder ([shengId],[sheng],[shiId],[shi], [quxianId], [quxian],[pianqu], [orderAmount],[status], [userMobile],[shipAddress],[shipName],[shipMobile],[shouhuoAddress],oldOrderAmount,keYongAmount,huaFeiAmount,createTime,upDataTime,createBy,upDataBy,isdelete,orderkeyid,FirmId,Bianhao)"
+                                             + " Values ( @shengId,@sheng,@shiId, @shi, @quxianId, @quxian, @pianqu, @orderAmount, @status, @userMobile,@shipAddress,@shipName,@shipMobile,@shouhuoAddress,@oldOrderAmount,@keYongAmount,@huaFeiAmount,@createTime,@upDataTime,@createBy,@upDataBy,@isdelete,@orderkeyid,@FirmId,@Bianhao )";
 
             int id = 0;
             try
@@ -270,7 +272,7 @@
         /// <returns></returns>
         public IEnumerable<Model.CoreCmsPlanOrder> GetModelByorderid(int orderid)
         {
-            return _dataBase.SelectModel<Model.CoreCmsPlanOrder>(" * ", " CoreCmsPlanOrder ", " orderkeyid = " + orderid + " order by [pianqu]") as IList<Model.CoreCmsPlanOrder>;//鎵ц鏌ヨ
+            return _dataBase.SelectModel<Model.CoreCmsPlanOrder>(" * ", " CoreCmsPlanOrder ", " orderkeyid = " + orderid + " order by  Bianhao ") as IList<Model.CoreCmsPlanOrder>;//鎵ц鏌ヨ
         }
 
 
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookDetail.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookDetail.aspx
index 8f613c3..5956fa4 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookDetail.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookDetail.aspx
@@ -129,7 +129,7 @@
                     <tr>
                         
                         <td style="text-align: center">
-                            <%#Container.ItemIndex + 1%>
+                           <%#Eval("Bianhao")%><%--  <%#Container.ItemIndex + 1%>--%>
                         </td>
                         <td style="text-align: center">
                          <%#Eval("pianqu")%>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx
index e401369..e98219f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx
@@ -42,12 +42,12 @@
 
         //鍒犻櫎
         function onDele(keyid) {
-            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?PlanOrderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val(), Title: "鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
+            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?PlanOrderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val() + "&selChicun=" + $("#selChicun").val(), Title: "鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
         }
 
         //鍒犻櫎
         function onDeledayin(keyid) {
-            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetailshuju.aspx?PlanOrderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val(), Title: "鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
+            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetailshuju.aspx?PlanOrderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val() + "&selChicun=" + $("#selChicun").val(), Title: "鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
         }
         
         //鍒犻櫎
@@ -62,7 +62,7 @@
                 alertMsg("鏈�変腑浠讳綍瀛︽牎");
                 return;
             }
-            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?orderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val(), Title: "鎵归噺鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
+            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetail.aspx?orderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val() + "&selChicun=" + $("#selChicun").val(), Title: "鎵归噺鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
                 
               
         }
@@ -82,7 +82,7 @@
                 alertMsg("鏈�変腑浠讳綍瀛︽牎");
                 return;
             }
-            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetailshuju.aspx?orderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val(), Title: "鎵归噺鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
+            top.Dialog.open({ URL: "/Pages/business/DeliverWorkBookPrintDetailshuju.aspx?orderid=" + keyid + "&selSonghuoren=" + $("#selSonghuoren").val() + "&txtBeginDate=" + $("#txtBeginDate").val() + "&selChicun=" + $("#selChicun").val(), Title: "鎵归噺鎵撳嵃閫佽揣鍗�", Width: 1000, Height: 900 });
 
 
         }
@@ -150,6 +150,11 @@
                         閫佽揣浜猴細 <select keepdefaultstyle='true' id='selSonghuoren' runat="server" >
                         </select>
                          閫佽揣鏃堕棿锛�<input id="txtBeginDate" type="text" runat="server" class='date w80px' maxlength='10' />
+
+                           鎵撳嵃灏哄锛� <select keepdefaultstyle='true' id='selChicun' runat="server" >
+                               <option value="2" >32寮�</option>
+                                 <option value="1" >16寮�</option>
+                        </select>
                     </td>
                 </tr>
             </table>
@@ -181,7 +186,7 @@
                                 <input type="checkbox" class="SelectCheck"  value_kid="<%#Eval("id")%>" />
                             </td>
                         <td style="text-align: center">
-                            <%#Container.ItemIndex + 1%>
+                          <%#Eval("Bianhao")%><%--  <%#Container.ItemIndex + 1%>--%>
                         </td>
                         <td style="text-align: center">
                          <%#Eval("pianqu")%>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx.designer.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx.designer.cs
index 2a7c1e3..b7bd303 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx.designer.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrint.aspx.designer.cs
@@ -96,6 +96,15 @@
         protected global::System.Web.UI.HtmlControls.HtmlInputText txtBeginDate;
 
         /// <summary>
+        /// selChicun 鎺т欢銆�
+        /// </summary>
+        /// <remarks>
+        /// 鑷姩鐢熸垚鐨勫瓧娈点��
+        /// 鑻ヨ杩涜淇敼锛岃灏嗗瓧娈靛0鏄庝粠璁捐鍣ㄦ枃浠剁Щ鍒颁唬鐮侀殣钘忔枃浠躲��
+        /// </remarks>
+        protected global::System.Web.UI.HtmlControls.HtmlSelect selChicun;
+
+        /// <summary>
         /// RepClientList 鎺т欢銆�
         /// </summary>
         /// <remarks>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx
index af12304..1159f0c 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx
@@ -69,7 +69,7 @@
                     </tr>
                     <tr>
                         <td class='left' colspan="4">
-                            瀛︽牎锛�  <%#Eval("shipAddress")%>
+                            瀛︽牎锛�  <%#Eval("shipAddress")%> (<%#Eval("Bianhao")%>)
                         </td>
                          
                         <td class='left'  colspan="4">
@@ -168,7 +168,7 @@
                     </tr>
                        
                    </table>
-      <%#(Container.ItemIndex !=  (countss-1)&& (Container.ItemIndex+1)%2==0)?"<div class=\"page-break\"></div>":"" %> 
+      <%#(Container.ItemIndex !=  (countss-1)&& ((Container.ItemIndex+1)%2==0 || selChicun == "1" ))?"<div class=\"page-break\"></div>":"" %> 
  
                 </ItemTemplate>
             </asp:Repeater>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs
index b9c8be1..dc55424 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetail.aspx.cs
@@ -48,6 +48,7 @@
         public int countss = 0;
         public string selSonghuoren = "";
         public string txtBeginDate = "";
+        public string selChicun = "";
         //鍒濆鍖�
         public DeliverWorkBookPrintDetail()
         {
@@ -100,6 +101,9 @@
             string orderIdStr = Request["orderId"];
             selSonghuoren = Request["selSonghuoren"];
             txtBeginDate = Request["txtBeginDate"];
+
+            selChicun = Request["selChicun"];
+
             //濡傛灉鏄彧鎵撳嵃涓�寮�
             string PlanOrderidStr = Request["PlanOrderid"];
 
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx
index eea5224..134fefa 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx
@@ -69,7 +69,7 @@
                     </tr>
                     <tr>
                         <td class='left' colspan="4">
-                            瀛︽牎锛�  <%#Eval("shipAddress")%>
+                            瀛︽牎锛�  <%#Eval("shipAddress")%> (<%#Eval("Bianhao")%>)
                         </td>
                          
                         <td class='left'  colspan="4">
@@ -168,7 +168,7 @@
                     </tr>
                        
                    </table>
-      <%#(Container.ItemIndex !=  (countss-1)&& (Container.ItemIndex+1)%2==0)?"<div class=\"page-break\"></div>":"" %> 
+      <%#(Container.ItemIndex !=  (countss-1)&& ((Container.ItemIndex+1)%2==0 || selChicun == "1" ))?"<div class=\"page-break\"></div>":"" %> 
  
                 </ItemTemplate>
             </asp:Repeater>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx.cs
index 448a620..5072c7b 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookPrintDetailshuju.aspx.cs
@@ -47,6 +47,7 @@
         public int countss = 0;
         public string selSonghuoren = "";
         public string txtBeginDate = "";
+        public string selChicun = "";
 
         //鍒濆鍖�
         public DeliverWorkBookPrintDetailshuju()
@@ -100,6 +101,8 @@
             string orderIdStr = Request["orderId"];
             selSonghuoren = Request["selSonghuoren"];
             txtBeginDate = Request["txtBeginDate"];
+            selChicun = Request["selChicun"];
+            
 
             //濡傛灉鏄彧鎵撳嵃涓�寮�
             string PlanOrderidStr = Request["PlanOrderid"];
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookSonghuo.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookSonghuo.aspx
index 75dc8a5..9ab674f 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookSonghuo.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/DeliverWorkBookSonghuo.aspx
@@ -139,7 +139,7 @@
                     <tr>
                         
                         <td style="text-align: center">
-                            <%#Container.ItemIndex + 1%>
+                          <%#Eval("Bianhao")%>  <%--<%#Container.ItemIndex + 1%>--%>
                         </td>
                         <td style="text-align: center">
                          <%#Eval("pianqu")%>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderAdd.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderAdd.aspx.cs
index 090f4f3..8d567fa 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderAdd.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderAdd.aspx.cs
@@ -203,6 +203,16 @@
                 coreCmsPlanOrder.createBy = CurrentUser.ShortName;
                 coreCmsPlanOrder.FirmId = CurrentUser.MemberId;
 
+                var Bianhao = _PlanOrderBLL.GetModelByorderid(orderkeyid).Max(x => x.Bianhao);
+                if (Bianhao.HasValue&& Bianhao.Value > 0)
+                {
+                    coreCmsPlanOrder.Bianhao = Bianhao.Value + 1;
+                }
+                else
+                {
+                    coreCmsPlanOrder.Bianhao = 1;
+                }
+
                 int orderid = _PlanOrderBLL.InsertModelIden(coreCmsPlanOrder);
 
 
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx
index 95a8f05..cca1dfa 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx
@@ -206,7 +206,7 @@
                             <input type="checkbox"  value='<%#Eval("id")%>' />
                         </td>
                         <td>
-                             <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%>
+                           <%#Eval("Bianhao")%>   <%-- <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%>--%>
                         </td>
                         <td>
                             <%#Eval("shi")%>
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs
index 4e910a5..4f03aa8 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/business/PlanOrderList.aspx.cs
@@ -420,6 +420,17 @@
                 }
             }
 
+            var Bianhao = _PlanOrderBLL.GetModelByorderid(HideKeyid.Value.ToInt32().Value).Max(x => x.Bianhao);
+            
+            if (Bianhao.HasValue && Bianhao.Value > 0)
+            {
+                Bianhao = Bianhao.Value + 1;
+            }
+            else
+            {
+                Bianhao = 1;
+            }
+
 
             using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required,
         new TransactionOptions
@@ -440,6 +451,7 @@
                         if (coreCmsPlanOrder == null)
                         {
                             CoreCmsPlanOrder order = new CoreCmsPlanOrder();
+                            order.Bianhao = Bianhao;
                             order.status = 1;
                             order.shipMobile = lie[j].shipMobile;
                             order.shipAddress = lie[j].shipAddress;
@@ -500,6 +512,7 @@
 
 
                             var id = _PlanOrderBLL.InsertModelIden(order);
+                            Bianhao = Bianhao + 1;
                             var ssss = false;
                             foreach (var cmsPlanOrderItem in cmsPlanOrderItems)
                             {
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx
index 484ff72..4a3bb1c 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/SuppliersEdit.aspx
@@ -42,7 +42,7 @@
                     渚涘簲鍟嗗悕绉帮細
                 </td>
                 <td>
-                    <input id="txtName" type="text" runat="server" class="  req" onchange="changgetxtName();" maxlength="15" />
+                    <input id="txtName" type="text" runat="server" class="  req" onchange="changgetxtName();" maxlength="50" />
                 </td>
                 <td class="ali03 ">
                     钀ヤ笟鎵х収鍙凤細

--
Gitblit v1.9.1