From f5570a2f60dc9b9c201dcc8b227510a89bf69042 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 01 七月 2025 11:29:32 +0800
Subject: [PATCH] 工序增加是否追溯码

---
 DevApp/Gs.DevApp/DevFrm/FQC/MesFqcExceptional.cs |  115 ++++++++++++++++++++++++++++++---------------------------
 1 files changed, 60 insertions(+), 55 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/FQC/MesFqcExceptional.cs b/DevApp/Gs.DevApp/DevFrm/FQC/MesFqcExceptional.cs
index dfe64d0..08b571c 100644
--- a/DevApp/Gs.DevApp/DevFrm/FQC/MesFqcExceptional.cs
+++ b/DevApp/Gs.DevApp/DevFrm/FQC/MesFqcExceptional.cs
@@ -2,7 +2,6 @@
 using Gs.DevApp.ToolBox;
 using Gs.DevApp.UserControl;
 using Newtonsoft.Json;
-using Newtonsoft.Json.Linq;
 using System;
 using System.Collections.Generic;
 using System.Data;
@@ -13,7 +12,7 @@
 {
     public partial class MesFqcExceptional : DevExpress.XtraEditors.XtraForm
     {
-        string _webServiceName = "MesQcExceptionalManager/";
+        string _webServiceName = "FqcExceptionalManager/";
         List<FilterEntity> _filterList = new List<FilterEntity>();
         public MesFqcExceptional()
         {
@@ -24,7 +23,7 @@
             toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick;
             toolBarMenu1.btnLogClick += ToolBarMenu1_btnLogClick;
             this.toolBarMenu1.getXmlConfig();
-         //   Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
+            // Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1);
             Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, picCheckBox, this, "checkStatus", "", (value) =>
             {
                 Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
@@ -137,7 +136,6 @@
         }
 
 
-
         /// <summary>
         /// 
         /// </summary>
@@ -145,7 +143,7 @@
         /// <param name="pageSize">姣忛〉鍑犳潯</param>
         private void getPageList(int curPage)
         {
-            var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
+            gcMain1.DataSource = null;var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
             PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString());
             string json = JsonConvert.SerializeObject(pgq);
             try
@@ -184,57 +182,64 @@
         }
         private void getModel(string strGuid)
         {
-        //    bool isEdit = false;
-        //    if (toolBarMenu1.currentAction == "add") return;
-        //    if (toolBarMenu1.currentAction == "edit") isEdit = true;
-        //    if (string.IsNullOrEmpty(strGuid))
-        //    {
-        //        MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
-        //        return;
-        //    }
-        //    var _obj = new
-        //    {
-        //        guid = strGuid,//涓诲缓
-        //    };
-        //    try
-        //    {
-        //        string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj));
-        //        ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson);
-        //        if (_rtn.rtnCode > 0)
-        //        {
-        //            dynamic dy = _rtn.rtnData;
-        //            lbGuid.Text = strGuid;
-        //            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
-        //            gvList.Add(gvMx1);
-        //            UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList);
-        //            JObject _job = JObject.Parse(strJson);
-        //            JArray array = new JArray();
-        //            foreach (var a in _job["rtnData"]["list"])
-        //            {
-        //                array.Add(a);
-        //            }
-        //            DataTable dt = JsonConvert.DeserializeObject<DataTable>(array.ToString());
-        //            if (dt.Rows.Count > 0)
-        //            {
-        //                gcMx1.BindingContext = new BindingContext();
-        //                gcMx1.DataSource = dt;
-        //                gcMx1.ForceInitialize();
-        //                gvMx1.BestFitColumns();
-        //            }
-        //            else
-        //            {
-        //                Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
-        //            }
-        //        }
-        //        else
-        //            ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg);
-        //    }
-        //    catch (Exception ex)
-        //    {
-        //        ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
-        //    }
+            ucUpFileList1.parentGroup = "闂鍥剧墖";
+            ucUpFileList1.pGuid = strGuid;
+            ucUpFileList1.getFileList();
+            ucUpFileList2.parentGroup = "鏀瑰杽鍥剧墖";
+            ucUpFileList2.pGuid = strGuid;
+            ucUpFileList2.getFileList();
+
+            //    bool isEdit = false;
+            //    if (toolBarMenu1.currentAction == "add") return;
+            //    if (toolBarMenu1.currentAction == "edit") isEdit = true;
+            //    if (string.IsNullOrEmpty(strGuid))
+            //    {
+            //        MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�");
+            //        return;
+            //    }
+            //    var _obj = new
+            //    {
+            //        guid = strGuid,//涓诲缓
+            //    };
+            //    try
+            //    {
+            //        string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj));
+            //        ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson);
+            //        if (_rtn.rtnCode > 0)
+            //        {
+            //            dynamic dy = _rtn.rtnData;
+            //            lbGuid.Text = strGuid;
+            //            List<DevExpress.XtraGrid.Views.Grid.GridView> gvList = new List<DevExpress.XtraGrid.Views.Grid.GridView>();
+            //            gvList.Add(gvMx1);
+            //            UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList);
+            //            JObject _job = JObject.Parse(strJson);
+            //            JArray array = new JArray();
+            //            foreach (var a in _job["rtnData"]["list"])
+            //            {
+            //                array.Add(a);
+            //            }
+            //            DataTable dt = JsonConvert.DeserializeObject<DataTable>(array.ToString());
+            //            if (dt.Rows.Count > 0)
+            //            {
+            //                gcMx1.BindingContext = new BindingContext();
+            //                gcMx1.DataSource = dt;
+            //                gcMx1.ForceInitialize();
+            //                gvMx1.BestFitColumns();
+            //            }
+            //            else
+            //            {
+            //                Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1);
+            //            }
+            //        }
+            //        else
+            //            ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg);
+            //    }
+            //    catch (Exception ex)
+            //    {
+            //        ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
+            //    }
         }
-     
+
         /// <summary>
         /// 宸ュ叿鏉′簨浠�
         /// </summary>

--
Gitblit v1.9.3