From 9c2dd09bc32849ed4adaf6763ddec140b16bc5a3 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 31 十月 2024 08:18:51 +0800
Subject: [PATCH] 改了组织表
---
DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
index 7d516ed..d10b626 100644
--- a/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Warehouse/Frm_MesInvItemArn.cs
@@ -7,6 +7,7 @@
using DevExpress.DataAccess.DataFederation;
using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Controls;
+using DevExpress.XtraGrid.Views.Base.ViewInfo;
using DevExpress.XtraGrid.Views.Grid;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
@@ -38,6 +39,7 @@
toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick;
toolBarMenu1.btnJianYanClick += ToolBarMenu1_btnJianYanClick;
toolBarMenu1.btnFjianYanClick += ToolBarMenu1_btnFjianYanClick;
+ toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
gcMain.MouseDoubleClick += GcMain_MouseDoubleClick;
getPageList(1, UtilityHelper.GetPageSize());
gridView1.CustomDrawRowIndicator += (s, e) =>
@@ -87,6 +89,16 @@
frm.ShowDialog();
};
}
+
+ private void ToolBarMenu1_btnLogClick(object sender, EventArgs e)
+ {
+ toolBarMenu1.guidKey = "";
+ string rowGuid, rowName;
+ (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1,
+ lbGuid, txt_billNo, gridView1);
+ toolBarMenu1.guidKey = rowGuid;
+ }
+
/// <summary>
/// 鍙嶆楠�
/// </summary>
@@ -269,13 +281,6 @@
toolBarMenu1.isSetBtn = false;
var _ckCode = txt_depotsCode.GetCode(); //浠撳簱缂栧彿 depots_code
var _gysCode = txt_suppNo.GetCode(); //渚涘簲鍟嗙紪鍙�
- if (string.IsNullOrEmpty(_ckCode))
- {
- MsgHelper.Warning("璇烽�夋嫨浠撳簱锛�");
- txt_depotsCode.Focus();
- return;
- }
-
if (string.IsNullOrEmpty(_gysCode))
{
MsgHelper.Warning("璇烽�夋嫨渚涘簲鍟嗭紒");
@@ -283,17 +288,16 @@
return;
}
- if (string.IsNullOrEmpty(txt_paperBillNo.Text.Trim()))
+ if (string.IsNullOrEmpty(_ckCode))
{
- MsgHelper.Warning("璇烽�夋嫨閫佽揣鍗曞彿锛�");
- txt_paperBillNo.Focus();
+ MsgHelper.Warning("璇烽�夋嫨浠撳簱锛�");
+ txt_depotsCode.Focus();
return;
}
-
var _obj = new MesInvItemArn();
_obj.Guid = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(lbGuid.Text.Trim()); //鍒拌揣鍗曚富閿�
_obj.PaperBillNo = txt_paperBillNo.Text.Trim(); //閫佽揣鍗曞彿;
- _obj.Remark = ""; //澶囨敞
+ _obj.Remark = txt_remark.Text.Trim(); //澶囨敞
_obj.SuppNo = _gysCode; //渚涘簲鍟嗙紪鍙�
_obj.DepotsCode = _ckCode; //浠撳簱缂栧彿 depots_code
_obj.FType = txt_fType.Checked; //0=閲囪喘锛�1=濮斿
--
Gitblit v1.9.3