| | |
| | | return new ApiResult<DataSet> { code = -1, msg = "不存在用户关联仓库数据" }; |
| | | return new ApiResult<DataSet> { code = 1, msg = "查询成功", data = dataSet }; |
| | | } |
| | | |
| | | |
| | | |
| | | public static DataSet GetGy_UserStockRelationDb(string HID) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 用户关联用户根据id获取信息 |
| | | /// </summary> |
| | | public static ApiResult<DataSet> Gy_UserByUserEdit(string HID) |
| | | { |
| | | if (string.IsNullOrEmpty(HID)) |
| | | return new ApiResult<DataSet> { code = -1, msg = "ID不能为空" }; |
| | | var dataSet = Gy_UserByUserEdittDb(HID); |
| | | if (dataSet == null || dataSet.Tables[0].Rows.Count == 0) |
| | | return new ApiResult<DataSet> { code = -1, msg = "不存在用户关联仓库数据" }; |
| | | return new ApiResult<DataSet> { code = 1, msg = "查询成功", data = dataSet }; |
| | | } |
| | | |
| | | public static DataSet Gy_UserByUserEdittDb(string HID) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | var dataSet = oCN.RunProcReturn("select * from h_v_Gy_UserByUserRelationList where 用户代码= '" + HID + "' ", "h_v_Gy_UserByUserRelationList"); |
| | | return dataSet; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 用户关联物料根据id获取信息 |
| | | /// </summary> |
| | | public static ApiResult<DataSet> GetGy_UserMaterDetail(string HID) |