From 529d8cb61421eb65d86559d3d2636ad405b87b41 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 22 七月 2025 08:50:06 +0800
Subject: [PATCH] 专版 四色  八色   自翻印刷的时候   ctp 4张 扣版  8张

---
 CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx |  158 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 153 insertions(+), 5 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
index 05704bb..9fed4c9 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
@@ -32,6 +32,121 @@
                 window.location = "/Pages/procurement/ProcurementList.aspx?Keyid=" + keyid;
             });
         }
+
+
+
+        //涓篠elect鏂板杩囨护鍔熻兘
+        function SelectAddSearch() {
+            $("select[SelInputHtml='True']").each(function (i, v) {
+                $(this).unbind("blur");
+                var old = $(this).html();
+                var oldObject = $(this).clone();
+                var sign = "selectS" + i;
+                $(v).attr("sign", sign);
+
+                var inputClass = "input_" + sign;
+                var html = "<span style='margin-left:10px'>杩囨护锛�</span><input type='text' class='" + inputClass + "' style='width:80px;height:18px;line-height:18px;'/>";//<span onclick='showCustomer()' style=\"padding-left:10px;\" class=\"a_under\">鏂板渚涘簲鍟�</span>
+                $(v).after(html);
+                $("." + inputClass).blur(function () {
+                    var nowval = $(this).val().trim();
+                    var output = "";
+                    if (nowval == "" || nowval == null) {
+                        output = old;
+                    } else {
+                        output += "<option value=''>璇烽�夋嫨</option>";
+                        var valueArr = new Array();
+                        oldObject.find("option").each(function (ii, vv) {
+
+                            var value = $.trim($(vv).attr("value"));
+                            var text = $.trim($(vv).text());
+
+                            if (text.indexOf(nowval) >= 0)
+                                valueArr.push(value + "|||" + text);
+                        });
+                        for (var ss in valueArr) {
+                            var s = valueArr[ss];
+                            if (s.split("|||").length == 2) {
+                                var value1 = s.split("|||")[0];
+                                var text1 = s.split("|||")[1];
+                                output += "<option value='" + value1 + "'>" + text1 + "</option>";
+                            }
+                        }
+                    }
+                    $(v).html(output);
+                });
+            });
+        }
+
+        /*
+纭鎵归噺寮�绁ㄧ敵璇�
+*/
+        function ToWaixieFukuan() {
+
+            var ids = '';
+            var ordernos = '';
+            var cks = $("input[name='ckId']:checked");
+            if (cks.length == 0) {
+                alertMsg('娌℃湁閫変腑浠讳綍椤癸紒');
+                return;
+            }
+            else {
+            }
+            var SellerId = '';
+            var i = 0;
+            var SellerId111 = '';
+
+            cks.each(
+                function () {
+
+                    var ckVal = $(this).val();
+
+                    var ckValJson = eval('(' + ckVal + ')');
+                    if (i == 0) {
+                        SellerId = ckValJson.SuppliersId;
+                        SellerId111 = ckValJson.SuppliersId;
+                        i += 1;
+                    } else {
+                        if (SellerId != ckValJson.SuppliersId) {
+                            SellerId = ''
+
+                        }
+                    }
+                    ids = ids + ',' + ckValJson.id;
+                    //ordernos = ordernos + ',' + ckValJson.orderId;
+
+
+                }
+            );
+            
+            if (SellerId111 == '') {
+
+                alertMsg('鏃犱緵搴斿晢鐨勮鍗曚笉鑳界敵璇蜂粯娆撅紒');
+                return;
+            }
+            if (SellerId == '') {
+
+                alertMsg('蹇呴』閫夋嫨鍚屼竴涓緵搴斿晢锛�');
+                return;
+            }
+
+
+
+            kaipiaoConfirm(ids, ordernos);
+            //var msg = ('纭寮�绁ㄧ敵璇峰悧?');
+            //top.Dialog.confirm(msg, function () {
+            //    DoAcceptAll3(ids);
+            //});
+
+        }
+        function kaipiaoConfirm(orderId, orderno) {
+            var url = "/Pages/business/Caigoufukuanshenqing.aspx?id=" + orderId + "&&orderno=" + orderno;
+            top.Dialog.open({ URL: url, Title: "閲囪喘浠樻鐢宠", Height: 600, Width: 580 });
+        }
+        $(function () {
+            
+
+            SelectAddSearch();
+        });
     </script>
 </head>
 <body>
@@ -50,7 +165,7 @@
                         渚涘簲鍟嗭細
                     </td>
                     <td>
-                        <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' class="Sreq w122px">
+                        <select id="selSuppliers" runat="server" datatextfield="Name" datavaluefield="Keyid" keepdefaultstyle='true' selinputhtml="True"   class="Sreq w122px">
                         </select>
                     </td>
                     <td class="ali03  ">
@@ -105,7 +220,7 @@
                     <td>
                     </td>
                     <td>
-                        <asp:Button ID="btn_Register" Text="鏌ヨ" runat="server" padding="0px" OnClick="btn_Register_Click" />
+                        <asp:Button ID="btn_Search" Text="鏌ヨ" runat="server" padding="0px" OnClick="btn_Register_Click" />
                         <input type="button" onclick="resetSearch()" value="閲嶇疆" />
                     </td>
                 </tr>
@@ -116,8 +231,11 @@
                 <div class="left">
                     <div class="right">
                         <div class="padding_top5 padding_left10">
-                            <a href="javascript:;" onclick="addModel()" menu_member_case_id="case_addModel" menu_member_case_name="鏂板閲囪喘淇℃伅"><span class="icon_add">鏂板閲囪喘淇℃伅</span></a>
+                            <a href="javascript:;" onclick="addModel()" menu_member_case_id="case_addModel" menu_member_case_name="鏂板閲囪喘璁㈠崟"><span class="icon_add">鏂板閲囪喘璁㈠崟</span></a>
                             <a href="javascript:;" onclick="PrintModel()" menu_member_case_id="case_PrintModel" menu_member_case_name="鎵撳嵃閲囪喘淇℃伅"><span class="icon_add">鎵撳嵃閲囪喘淇℃伅</span></a>
+                             <a href="javascript:;" menu_member_case_id="case_caigoufukuan" menu_member_case_name="閲囪喘浠樻鐢宠"  onclick="ToWaixieFukuan()"><span class="icon_edit">閲囪喘浠樻鐢宠</span></a>
+                              <div class="box_tool_line">
+                            </div>
                             <div class="clear">
                             </div>
                         </div>
@@ -137,9 +255,13 @@
                             <th>
                                 缂栧彿
                             </th>
-                            <th>
+                             <th>
                                 渚涘簲鍟�
                             </th>
+                            <th>
+                                鍗颁欢鍚嶇О
+                            </th>
+                           
                             <th>
                                 璐у搧鍚嶇О
                             </th>
@@ -154,6 +276,9 @@
                             </th>
                             <th>
                                 鍗曚环
+                            </th>
+                             <th>
+                                鍚ㄤ环
                             </th>
                             <th>
                                 鏁伴噺
@@ -170,6 +295,9 @@
                             <th>
                                 瀛樻斁浠撳簱
                             </th>
+                              <th>
+                                澶囨敞
+                            </th>
                             <th>
                                 閲囪喘鏃堕棿
                             </th>
@@ -181,13 +309,20 @@
                 <ItemTemplate>
                     <tr>
                         <td>
-                            <input type="checkbox" />
+                            <input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>"   value="{
+                                    id:<%#Eval("Keyid")%>,
+                                    SuppliersId:'<%#Eval("SuppliersId")%>'
+                                    }" id='ckBox<%#Container.ItemIndex%>' class='ckBox' />
                         </td>
                         <td>
                             <%#Container.ItemIndex + 1+ this.UCPager1.PageSize * (this.UCPager1.PageIndex - 1)%>
                         </td>
+                       
                         <td>
                             <%#Eval("SuppliersName")%>
+                        </td>
+                         <td>
+                            <%#Eval("DocumentName")%>
                         </td>
                         <td>
                             <%#Eval("GoodsName")%>
@@ -204,6 +339,9 @@
                         <td>
                             <%#Eval("Price", "{0:F2}")%>
                         </td>
+                         <td>
+                            <%#Eval("tanPrice", "{0:F2}")%>
+                        </td>
                         <td>
                             <%#Eval("Quantity", "{0:F0}")%>
                         </td>
@@ -217,6 +355,9 @@
                             <%#Eval("PurchaseStatus")%>
                         </td>
                         <td>
+                            <%#Eval("WarehouseName")%>
+                        </td>
+                         <td>
                             <%#Eval("Remark")%>
                         </td>
                         <td>
@@ -233,6 +374,13 @@
             </asp:Repeater>
             <div id="page">
                 <uc:UCPager ID="UCPager1" runat="server" />
+                 <select keepdefaultstyle='true' id='ddlPageSize' runat="server" style="float:right;margin-top:10px;" >
+                           <option value="25">25鏉�/椤�</option>
+                            <option value="50">50鏉�/椤�</option>
+                            <option value="100">100鏉�/椤�</option>
+                        <option value="200">200鏉�/椤�</option>
+                        </select>
+            <div style="height:100px;"></div>
             </div>
         </div>
     </div>

--
Gitblit v1.9.1