From e2fffcde27c802e06b4e15ea100c1df838b6ea52 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期六, 06 十二月 2025 10:42:27 +0800
Subject: [PATCH] 委外加工出库增加仓库库存
---
DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs b/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
index 7fe71a8..346b69c 100644
--- a/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WW/UcWwBlclSelectAll.cs
@@ -1,14 +1,8 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.ToolBox;
+锘縰sing Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gs.DevApp.DevFrm.WW
@@ -16,10 +10,12 @@
public partial class UcWwBlclSelectAll : DevExpress.XtraEditors.XtraForm
{
private readonly string _webServiceName = "WWBlManager/";
+ private string _gysId = "";
+ private string _orgId = "";
/// <summary>
///
/// </summary>
- public UcWwBlclSelectAll()
+ public UcWwBlclSelectAll(string orgId = null, string gysId = null)
{
InitializeComponent();
this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
@@ -29,6 +25,8 @@
this.colChkInt.OptionsFilter.AllowFilter = false;
this.colChkInt.OptionsFilter.AllowInHeaderSearch = DevExpress.Utils.DefaultBoolean.False;
Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, null, "", null, null, false);
+ _gysId = gysId;
+ _orgId = orgId;
getPageList(1);
btnIn.Click += (s, e) =>
{
@@ -53,6 +51,7 @@
dab006 = dr["dab006"].ToString(),
dab007 = dr["dab007"].ToString(),
bld001 = dr["bld001"].ToString(),
+ stockNum = dr["stockNum"].ToString(),
});
}
}
@@ -72,12 +71,21 @@
/// <param name="pageSize">姣忛〉鍑犳潯</param>
private void getPageList(int curPage)
{
+ var keyWhere = "";
+ if (!string.IsNullOrEmpty(_orgId))
+ {
+ keyWhere += " and i.FSubsidiary = '" + _orgId + "'";
+ }
+ if (!string.IsNullOrEmpty(_gysId))
+ {
+ keyWhere += " and (SUPPLIERID is null or SUPPLIERID='" + _gysId + "') ";
+ }
var _obj = new
{
currentPage = 1,
everyPageSize = 999999,
sortName = "",
- keyWhere = "",
+ keyWhere = keyWhere,
};
var json = JsonConvert.SerializeObject(_obj);
try
--
Gitblit v1.9.3