快乐的昕的电脑
2025-11-28 a6df048e352abf7fefc94aa3df34d0b80aa26db4
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1410,15 +1410,7 @@
            if (string.IsNullOrEmpty(s)) return null;
            return decimal.Parse(s);
        }
        public static int ToBit(string str)
        {
            if (str.ToUpper() == "true".ToUpper())
                return 1;
            return 0;
        }
        public static bool ToCheck(string str)
        {
@@ -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双击的主键
@@ -2279,6 +2242,8 @@
                ToolBox.MsgHelper.Warning("提示:" + ex.Message);
            }
        }
        #endregion
@@ -2583,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>
@@ -2704,7 +2646,5 @@
        物料调拨,
        其它出库
    }
}