From 336567deaf467b242d1efdad058d30292b020aa6 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 04 一月 2025 12:12:46 +0800
Subject: [PATCH] 细节
---
DevApp/Gs.DevApp/DevFrm/WW/Frm_WwBl.cs | 68 +++++++++++++++++++--------------
1 files changed, 39 insertions(+), 29 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwBl.cs b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwBl.cs
index 5bda7c4..c97181f 100644
--- a/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwBl.cs
+++ b/DevApp/Gs.DevApp/DevFrm/WW/Frm_WwBl.cs
@@ -48,32 +48,37 @@
{
};
- //璁剧疆宸ュ崟
- this.txt_bl001.EditChanged += (s, e) =>
+ //閫夋嫨濮斿宸ュ崟
+ this.txt_aboutGuid.EditChanged += (s, e) =>
{
- txt_bl002.Text = txt_bl001.GetPrdNo();
- txt_bl014.Text = txt_bl001.GetPrdName();
- txt_bl015.Text = txt_bl001.GetPrdModel();
+ string strGdId = txt_aboutGuid.GetId();
+ if (string.IsNullOrEmpty(strGdId)) return;
+ txt_bl002.Text = txt_aboutGuid.GetPrdNo();
+ txt_bl014.Text = txt_aboutGuid.GetPrdName();
+ txt_bl015.Text = txt_aboutGuid.GetPrdModel();
+ txt_bl013.Text = txt_aboutGuid.GetRwd();
+ var _obj = new
+ {
+ currentPage = 1,
+ everyPageSize = 999999,
+ sortName = "",
+ keyWhere = "",
+ inP1 = strGdId
+ };
+ var json = JsonConvert.SerializeObject(_obj);
+ try
+ {
+ var strReturn = UtilityHelper.HttpPost("", "WWBlManager/SelectFormMx", json);
+ var rtn = UtilityHelper.ReturnToTablePage(strReturn);
+ var dt = rtn.rtnData.list;
+ this.repositoryItemSearchLookUpEdit1.DataSource = dt;
+ }
+ catch (Exception ex)
+ {
+ MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+ }
};
- var _obj = new
- {
- currentPage = 1,
- everyPageSize = 999999,
- sortName = "",
- keyWhere = "",
- };
- var json = JsonConvert.SerializeObject(_obj);
- try
- {
- var strReturn = UtilityHelper.HttpPost("", "WWBlManager/SelectFormMx", json);
- var rtn = UtilityHelper.ReturnToTablePage(strReturn);
- var dt = rtn.rtnData.list;
- this.repositoryItemSearchLookUpEdit1.DataSource = dt;
- }
- catch (Exception ex)
- {
- MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
- }
+
}
private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
{
@@ -238,12 +243,12 @@
private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e)
{
toolBarMenu1.isSetBtn = false;
- string inGdId = txt_bl001.GetId();//宸ュ崟鍙�
+ string inGdId = txt_aboutGuid.GetId();//宸ュ崟鍙�
string inCkId = txt_bl010.GetId();//鍙戞枡浠�
if (string.IsNullOrEmpty(inGdId))
{
Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨宸ュ崟锛�");
- txt_bl001.Focus();
+ txt_aboutGuid.Focus();
return;
}
if (string.IsNullOrEmpty(inCkId))
@@ -252,10 +257,10 @@
txt_bl010.Focus();
return;
}
- if (string.IsNullOrEmpty(txt_bl017.Text.Trim()))
+ if (string.IsNullOrEmpty(txt_bl008.Text.Trim()))
{
Gs.DevApp.ToolBox.MsgHelper.Warning("璇烽�夋嫨鍗曟嵁绫诲瀷锛�");
- txt_bl017.Focus();
+ txt_bl008.Focus();
return;
}
var _obj = new
@@ -264,7 +269,9 @@
inGdId = inGdId,//宸ュ崟鍙�
inCkId = inCkId,//浠撳簱
inYy = txt_bl007.Text.Trim(),//鍘熷洜
- inType = txt_bl017.Text.Trim(),//绫诲瀷
+ inType = txt_bl008.Text.Trim(),//鍑哄簱绫诲埆
+ busType= 200,//涓氬姟绫诲瀷缂栫爜
+ busTypeTxt = "濮斿琛ユ枡",//涓氬姟绫诲瀷
list = new List<dynamic>(),
};
gvMx1.CloseEditor();
@@ -324,6 +331,7 @@
private void getPageList(int curPage)
{
var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
+ _sbSqlWhere += " and bl017=200";
PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString());
string json = JsonConvert.SerializeObject(pgq);
try
@@ -493,6 +501,8 @@
gvMx1.SetFocusedRowCellValue("bld003", SelectedDataRow["itemName"]);
gvMx1.SetFocusedRowCellValue("bld004", SelectedDataRow["itemModel"]);
gvMx1.SetFocusedRowCellValue("dabGuid", SelectedDataRow["dabGuid"]);
+ gvMx1.SetFocusedRowCellValue("bld008", SelectedDataRow["dab007"]);//宸查鐢ㄩ噺
+ gvMx1.SetFocusedRowCellValue("bld009", SelectedDataRow["dwName"]);//鍗曚綅
}
private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
--
Gitblit v1.9.3