From 5029c8357635c9556e63bd78f262d860df51e7fb Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期六, 02 八月 2025 15:49:56 +0800
Subject: [PATCH] 增加排班管理代码,到货计划增加超采比例,物料信息增加超采比例字段
---
DevApp/Gs.DevApp/UserControl/UcLookDaa.cs | 57 ++++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
index 1749ff7..fd54ab9 100644
--- a/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
+++ b/DevApp/Gs.DevApp/UserControl/UcLookDaa.cs
@@ -1,31 +1,24 @@
-锘縰sing DevExpress.XtraEditors;
-using Gs.DevApp.Entity;
+锘縰sing Gs.DevApp.Entity;
using 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.UserControl
{
public partial class UcLookDaa : DevExpress.XtraEditors.XtraUserControl
{
+
public UcLookDaa()
{
InitializeComponent();
lookSearchSupplier.Properties.NullText = "璇烽�夋嫨";
lookSearchSupplier.EditValueChanged +=
LookSearchSupplier_EditValueChanged;
- // getSuppler();
+ // getSuppler();
}
- public bool IsReadly { get; set; }
+ private bool _rdy; public bool IsReadly { set { _rdy = value; this.lookSearchSupplier.ReadOnly = _rdy; } get { return _rdy; } }
/// <summary>
/// 鏀瑰彉浜嬩欢
@@ -37,12 +30,18 @@
{
if (EditChanged != null) EditChanged(this, e);
}
-
- public void getSuppler(string orgId)
+ /// <summary>
+ /// 璇诲彇宸ュ崟
+ /// </summary>
+ /// <param name="orgId"></param>
+ public void getSuppler(string orgId, string _dftVale = "",string strWhere="")
{
+ lookSearchSupplier.EditValue = null;
string _keyWhere = "";
if (!string.IsNullOrEmpty(orgId))
_keyWhere = " and a.erp_sczz ='" + orgId + "'";
+ if (!string.IsNullOrEmpty(strWhere))
+ _keyWhere += strWhere;
var pgq = new PageQueryModel(1, 999999, "a.daa001", "asc", "",
" and 1=1" + _keyWhere);
var json = JsonConvert.SerializeObject(pgq);
@@ -54,6 +53,10 @@
lookSearchSupplier.Properties.DataSource = dt;
lookSearchSupplier.Properties.DisplayMember = "daa001";
lookSearchSupplier.Properties.ValueMember = "guid";
+ lookSearchSupplier.ForceInitialize();
+ lookSearchSupplier.Properties.BestFitMode = DevExpress.XtraEditors.Controls.BestFitMode.BestFitResizePopup;
+ if (!string.IsNullOrEmpty(_dftVale))
+ SetIdOrCode(_dftVale);
}
catch (Exception ex)
{
@@ -110,7 +113,7 @@
}
lookSearchSupplier.EditValue = (((Code.ToString().Trim())));
}
-
+
/// <summary>
/// 浜у搧id
/// </summary>
@@ -200,7 +203,7 @@
}
/// <summary>
- /// 绾垮埆
+ /// 浠诲姟鍗曞彿
/// </summary>
/// <returns></returns>
public string GetRwd()
@@ -213,5 +216,29 @@
}
return "";
}
+
+ /// <summary>
+ /// 鎶曟枡鍗曞彿
+ /// </summary>
+ /// <returns></returns>
+ public string GetTldh()
+ {
+ var row = lookSearchSupplier.GetSelectedDataRow() as DataRowView;
+ if (row != null)
+ {
+ string id = row["daa014"].ToString();
+ return id;
+ }
+ return "";
+ }
+
+ /// <summary>
+ /// 绫诲瀷锛屽鐢ㄤ簬鍒嗙被鏌ヨ
+ /// </summary>
+ public string category
+ {
+ set;
+ get;
+ }
}
}
--
Gitblit v1.9.3