From ed546f521cb8db95d092ff67e076cededd53e725 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 21 十二月 2024 11:25:40 +0800
Subject: [PATCH] 各种细节

---
 DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs |   35 +++++++++++++++--------------------
 1 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
index 333edf7..97c8615 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesItemQtrk.cs
@@ -7,10 +7,9 @@
 using System;
 using System.Collections.Generic;
 using System.Data;
-using System.Drawing;
 using System.Threading.Tasks;
 using System.Windows.Forms;
-using System.Windows.Media.Animation;
+
 
 namespace Gs.DevApp.DevFrm
 {
@@ -32,6 +31,7 @@
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             toolBarMenu1.btnReportClick += ToolBarMenu1_btnReportClick;
             toolBarMenu1.btnDesignClick += ToolBarMenu1_btnDesignClick;
+            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "qt015", "", (value) =>
             {
                 Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
@@ -155,22 +155,18 @@
                 this.toolBarMenu1.rptParameter = "return false";
                 return;
             }
+            if (lbMxGuid.Text.Trim().Length < 10)
+            {
+                Gs.DevApp.ToolBox.MsgHelper.ShowError("璇烽�夋嫨鎵撳嵃鐨勮锛�");
+                this.toolBarMenu1.rptParameter = "return false";
+                return;
+            }
             this.toolBarMenu1.rptParameter = "rpt_Qtrk{" + lbMxGuid.Text.Trim()
                    + "," + ""
                    + "," + ""
                    + "," + txt_iCount_1.Text.Trim()
                    + "," + txt_psnQty_1.Text.Trim()
                    + "}";
-
-
-            //this.toolBarMenu1.rptParameter = "rpt_Arrival{" + ""
-            //      + "," + ""
-            //      + "," + ""
-            //      + "," + txt_iCount_1.Text.Trim()
-            //      + "," + txt_psnQty_1.Text.Trim()
-            //      + "}";
-
-
         }
 
         /// <summary>
@@ -329,12 +325,12 @@
                 if (row != null)
                 {
                     Guid? _guid = UtilityHelper.ToGuid(row["guid"].ToString());
-                    //string _msl = row["quantity"].ToString();
-                    //if (string.IsNullOrEmpty(_msl))
-                    //{
-                    //    MsgHelper.ShowError("鏁伴噺涓嶈兘涓虹┖锛�");
-                    //    return;
-                    //}
+                    string _msl = row["qd007"].ToString();
+                    if (string.IsNullOrEmpty(_msl))
+                    {
+                        MsgHelper.ShowError("鏁伴噺涓嶈兘涓虹┖锛�");
+                        return;
+                    }
                     _obj.list.Add(new
                     {
                         Guid = _guid,
@@ -415,7 +411,6 @@
                 MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
                 return;
             }
-
             var _obj = new
             {
                 guid = strGuid,//涓诲缓
@@ -460,12 +455,12 @@
 
         private void repositoryItemSearchLookUpEdit1_EditValueChanged(object sender, EventArgs e)
         {
-
             SearchLookUpEdit LookupEdit = sender as SearchLookUpEdit;
             DataRowView SelectedDataRow = (DataRowView)LookupEdit.GetSelectedDataRow();
             gvMx1.SetFocusedRowCellValue("qd002", SelectedDataRow["itemNo"]);
             gvMx1.SetFocusedRowCellValue("qd003", SelectedDataRow["itemName"]);
             gvMx1.SetFocusedRowCellValue("qd004", SelectedDataRow["itemModel"]);
+            gvMx1.SetFocusedRowCellValue("qd009", SelectedDataRow["dwName"]);
         }
 
         private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)

--
Gitblit v1.9.3