From 72b668c965a3f5308d1a388296eb4c3f8fb7be72 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 12 九月 2025 08:46:01 +0800
Subject: [PATCH] 批量入库,操作成功关闭窗口 完成
---
CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx | 184 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 177 insertions(+), 7 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
index 05704bb..5955073 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/procurement/ProcurementList.aspx
@@ -8,7 +8,7 @@
<script type="text/javascript">
//娣诲姞
function addModel() {
- dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "鏂板閲囪喘", Width: 650, Height: 250 });
+ dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid='0'", Title: "鏂板閲囪喘", Width: 800, Height: 250 });
}
//鎵撳嵃閲囪喘淇℃伅
@@ -23,7 +23,7 @@
//淇敼
function onEdit(keyid) {
- dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "淇敼閲囪喘淇℃伅", Width: 650, Height: 250 });
+ dialog.open({ URL: "/Pages/procurement/ProcurementEdit.aspx?Keyid=" + keyid, Title: "淇敼閲囪喘淇℃伅", Width: 800, Height: 250 });
}
//鍒犻櫎
@@ -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="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,8 +295,14 @@
<th>
瀛樻斁浠撳簱
</th>
+ <th>
+ 澶囨敞
+ </th>
<th>
閲囪喘鏃堕棿
+ </th>
+ <th>
+ 閲囪喘浜�
</th>
<th width="150">
鎿嶄綔
@@ -181,13 +312,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 +342,9 @@
<td>
<%#Eval("Price", "{0:F2}")%>
</td>
+ <td>
+ <%#Eval("tanPrice", "{0:F2}")%>
+ </td>
<td>
<%#Eval("Quantity", "{0:F0}")%>
</td>
@@ -217,10 +358,16 @@
<%#Eval("PurchaseStatus")%>
</td>
<td>
+ <%#Eval("WarehouseName")%>
+ </td>
+ <td>
<%#Eval("Remark")%>
</td>
<td>
<%#Eval("PurchaseTime")%>
+ </td>
+ <td>
+ <%#Eval("Caigouren")%>
</td>
<td class="Operate">
<span menu_member_case_id="case_onView" menu_member_case_name="鏌ョ湅" onclick="onView(<%#Eval("Keyid")%>)">鏌ョ湅</span> <span menu_member_case_id="case_onEdit" menu_member_case_name="淇敼" onclick="onEdit('<%#Eval("Keyid")%>')">淇敼</span> <span menu_member_case_id="case_onDelete" menu_member_case_name="鍒犻櫎" onclick="onDelete(<%#Eval("Keyid")%>)">鍒犻櫎</span>
@@ -228,11 +375,34 @@
</tr>
</ItemTemplate>
<FooterTemplate>
+ <tr class="StatisticsMoney">
+ <td colspan="10" class="ali03">
+ 鍚堣锛�
+ </td>
+ <td class="ali01">
+ <%=shuliangya %>
+ </td>
+
+
+ <td class="ali01">
+ <%=jineya %>
+ </td>
+ <td class="ali01" colspan="7">
+ </td>
+ </tr>
+
</table>
</FooterTemplate>
</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