lu
2025-04-25 13096114a7457a3b1b519c88b9409697b697eb21
DevApp/Gs.DevApp/DevFrm/QC/Jyxm.cs
@@ -43,6 +43,10 @@
            txt_ftype.Text = strType;
            if (strType == "iqc")
                dfValue = 5;
            if (strType != "ipqc巡检")
            {
                gvMx1.Columns["stationName"].Visible = false;
            }
            this.gvMx1.InitNewRow += (s, e) =>
            {
                this.gvMx1.SetRowCellValue(e.RowHandle, "ypsl", dfValue);
@@ -344,6 +348,7 @@
                            FupAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FupAllow"].ToString()),
                            FdownAllow = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["FdownAllow"].ToString()),
                            ypsl = Gs.DevApp.ToolBox.UtilityHelper.GetDecimal(row["ypsl"].ToString()),
                            stationName = row["stationName"].ToString(),
                        });
                    }
                }
@@ -586,6 +591,7 @@
            _getListJybz();
            _getListJssp();
            _getListJysp();
            _getListStation();
        }
        /// <summary>
        /// 读取检验项目
@@ -608,7 +614,34 @@
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
        /// <summary>
        /// 读取检验工位
        /// </summary>
        private void _getListStation()
        {
            string _where = " and 1=1 and s_type='工位信息' and  pid<>'00000000-0000-0000-0000-000000000000'";
            var pgq = new PageQueryModel(1, 999999, "a.defect_name", "asc", "", _where);
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
                var strReturn =
                    UtilityHelper.HttpPost("", "MesDefectCodeManager/GetListPage", json);
                var dd = UtilityHelper.ReturnToTablePage(strReturn);
                var dt = dd.rtnData.list;
                foreach (DataRow dr in dt.Rows)
                {
                    //tlMenu.KeyFieldName = "guid";
                    //tlMenu.ParentFieldName = "pid";
                    rptStation.Items.Add(dr["defectName"].ToString());
                }
            }
            catch (Exception ex)
            {
                MsgHelper.Warning("提示:" + ex.Message);
            }
        }
        /// <summary>
        /// 读取检验工具
        /// </summary>