| | |
| | | DataSet ds = null; |
| | | ClsCNSRM oCnLoc = new ClsCNSRM(); |
| | | DAL.ClsUser oUser = new DAL.ClsUser(); |
| | | ds = oUser.CheckCzymc(UserName.Trim(), DBUtility.ClsPub.StrToPsd(PassWord.Trim())); |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | string sReturn = "测试"; |
| | | string FCusName = oSystemParameter.GetSingleSystemParameter("WMS_CampanyName", ref sReturn); |
| | | LogService.Write(sReturn); |
| | | LogService.Write(FCusName); |
| | | if (FCusName == "夏宝电器") |
| | | ds = oUser.CheckMainID(UserName.Trim(), DBUtility.ClsPub.StrToPsd(PassWord.Trim())); |
| | | else |
| | | ds = oUser.CheckCzymc(UserName.Trim(), DBUtility.ClsPub.StrToPsd(PassWord.Trim())); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | objJsonResult.Message = "返回数据成功!"; |
| | | objJsonResult.data = oDs; |
| | | } |
| | | else { |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "返回数据失败!"; |
| | |
| | | #region[更改公告状态] |
| | | [Route("UpdateMessage")] |
| | | [HttpGet] |
| | | public object UpdateMessage(string UserName, string HInterID,string HEntryID) |
| | | public object UpdateMessage(string UserName, string HInterID, string HEntryID) |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Update OA_InformBillSub set HReadFlag=1 HUpDater='"+ UserName + "',HUpDateDate=getdate() where HInterID='" + HInterID + "' and HEntryID='"+ HEntryID + "'", ref ClsPub.sExeReturnInfo); |
| | | oCn.RunProc("Update OA_InformBillSub set HReadFlag=1 HUpDater='" + UserName + "',HUpDateDate=getdate() where HInterID='" + HInterID + "' and HEntryID='" + HEntryID + "'", ref ClsPub.sExeReturnInfo); |
| | | oCn.Commit(); |
| | | objjson.code = "1"; |
| | | objjson.count = 1; |
| | | objjson.Message =ClsPub.sExeReturnInfo; |
| | | objjson.Message = ClsPub.sExeReturnInfo; |
| | | objjson.data = null; |
| | | return objjson;; |
| | | return objjson; ; |
| | | } |
| | | #endregion |
| | | } |