| | |
| | | { |
| | | try |
| | | { |
| | | string sErrMsg = ""; |
| | | oSystemParameter.ShowBill(ref sErrMsg); |
| | | DataSet ds = null; |
| | | ClsCN oCnLoc = new ClsCN(); |
| | | DAL.ClsUser oUser = new DAL.ClsUser(); |
| | |
| | | string sql = string.Format(@" select a.* from Gy_UserByOrgRelation a |
| | | where a.HUserID = '{0}' and a.HOrgID = '{1}'", UserName, HOrgName); |
| | | DataSet _ds = oCnLoc.RunProcReturn(sql, "h_p_Xt_UserRelationOrg_Check"); |
| | | //if (_ds == null || _ds.Tables[0].Rows.Count == 0) |
| | | //{ |
| | | // objjson.code = "0"; |
| | | // objjson.count = 0; |
| | | // objjson.Message = "用户" + UserName + "没有该组织权限"; |
| | | // objjson.data = null; |
| | | // return objjson; |
| | | //} |
| | | |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "杭州斯莫尔") |
| | | { |
| | | if (_ds == null || _ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objjson.code = "0"; |
| | | objjson.count = 0; |
| | | objjson.Message = "用户" + UserName + "没有该组织权限"; |
| | | objjson.data = null; |
| | | return objjson; |
| | | } |
| | | } |
| | | |
| | | objjson.code = "0"; |
| | | objjson.count = 1; |