新框架PC前端标准版(祈禧6月初版本)
lg
2025-11-20 d2bacdf7e724c22263c94e73b947846720ca6032
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1412,14 +1412,6 @@
        }
        public static int ToBit(string str)
        {
            if (str.ToUpper() == "true".ToUpper())
                return 1;
            return 0;
        }
        public static bool ToCheck(string str)
        {
            if (str.ToUpper() == "true".ToUpper())
@@ -1542,35 +1534,6 @@
            return (_strGuid, _strName);
        }
        /// <summary>
        ///     读取GridView双击的主键
        /// </summary>
        /// <param name="gridView1"></param>
        /// <param name="e"></param>
        /// <param name="colName"></param>
        /// <returns></returns>
        public static string GetCurrentDoubleRow(GridView gridView1
            , MouseEventArgs e
            , string colName)
        {
            var info = gridView1.CalcHitInfo(e.Location);
            if (info.InRow)
            {
                var view = info.View;
                if (view != null)
                {
                    var row = view.GetDataRow(info.RowHandle);
                    if (row != null)
                    {
                        var rowGuid = row[colName].ToString();
                        return rowGuid;
                    }
                }
            }
            return "";
        }
        /// <summary>
        ///     读取GridView双击的主键
@@ -2585,29 +2548,6 @@
                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>
@@ -2706,7 +2646,5 @@
        物料调拨,
        其它出库
    }
}