lu
2025-10-13 b636536b754ef512f8dd44842f50846ef8fa9a9c
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -577,6 +577,14 @@
                            txt.IsReadly = isEdt;
                            continue;
                        }
                        //自定组织all
                        if (colType is UcLookOrgAll)
                        {
                            var txt = colType as UcLookOrgAll;
                            txt.SetIdOrCode(strVal);
                            txt.IsReadly = isEdt;
                            continue;
                        }
                        //自定用户
                        if (colType is UcLookUser)
                        {
@@ -882,6 +890,14 @@
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定组织All
                if (ctrl is UcLookOrgAll)
                {
                    var txt = ctrl as UcLookOrgAll;
                    txt.SetIdOrCode("-1");
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定用户
                if (ctrl is UcLookUser)
                {
@@ -1130,6 +1146,13 @@
                if (ctrl is UcLookOrg)
                {
                    var txt = ctrl as UcLookOrg;
                    txt.IsReadly = isEdt;
                    continue;
                }
                //自定组织
                if (ctrl is UcLookOrgAll)
                {
                    var txt = ctrl as UcLookOrgAll;
                    txt.IsReadly = isEdt;
                    continue;
                }
@@ -2544,6 +2567,29 @@
                return "";
            }
        }
        public static string GetFirstOrg(UserControl.UcLookOrgAll txt_erpSczz)
        {
            string userGuid = LoginInfoModel.CurrentUser.LoginUserGuid;
            var pgq = new PageQueryModel(1, 999999, "FID", "asc", userGuid, " and IS_STATUS=1");
            var json = JsonConvert.SerializeObject(pgq);
            try
            {
                var strReturn = UtilityHelper.HttpPost("", "Organization/GetListPage", json);
                var _obj = UtilityHelper.ReturnToDynamic(strReturn);
                string _extendText = _obj.rtnData.extendText;
                string[] _dftOrg = _extendText.Split(',');
                if (_dftOrg.Length > 0)
                {
                    txt_erpSczz.SetIdOrCode(_dftOrg[0].Trim());
                    return _dftOrg[0].Trim();
                }
                return "";
            }
            catch (Exception ex)
            {
                return "";
            }
        }
    }
    /// <summary>