fqc
lu
2025-04-14 9ef74b7a500c2a40cdbfc0632867764938e1f2f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using DevExpress.Utils.DirectXPaint;
using DevExpress.XtraEditors;
using Gs.DevApp.ToolBox;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
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.DevFrm.FQC
{
    public partial class UcChouJianList : DevExpress.XtraEditors.XtraUserControl
    {
        string _webServiceName = "FqcManager/";
        public UcChouJianList()
        {
            InitializeComponent();
            Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx14);
        }
        private string _val;
        public string pGuid
        {
            get;
            set;
        }
 
        /// <summary>
        /// 这是记录表
        /// </summary>
        public void getList14()
        {
            gcMx14.DataSource = null;
            if (string.IsNullOrEmpty(pGuid))
                return;
            if (pGuid.Length <= 10)
                return;
            var _obj = new
            {
                parentGuid = UtilityHelper.ToGuid(pGuid.Trim()), //主建
            };
            try
            {
                var strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel14", JsonConvert.SerializeObject(_obj));
                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());
                gcMx14.BindingContext = new BindingContext();
                gcMx14.DataSource = dt;
                gcMx14.ForceInitialize();
                gvMx14.BestFitColumns();
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
    }
}