| | |
| | | string ComputerName; |
| | | IPAddress = DBUtility.ClsPub.IPAddress; |
| | | ComputerName = DBUtility.ClsPub.ComputerName; |
| | | ClsCNSRM oCnLoc = new ClsCNSRM(); |
| | | ClsCN oCnLoc = new ClsCN(); |
| | | try |
| | | { |
| | | oCnLoc.RunProc("Insert into System_Log(GeginDate,userid,WorkstationName,WorkList,SystemName,NetUserName,State) values " + |
| | |
| | | { |
| | | string VsWhere = ""; |
| | | string PcWhere = ""; |
| | | SQLHelper.ClsCNSRM oCn = new SQLHelper.ClsCNSRM(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | //其他过滤 |
| | | if (msg.Trim() == "") |
| | |
| | | try |
| | | { |
| | | DataSet ds = null; |
| | | ClsCNSRM oCnLoc = new ClsCNSRM(); |
| | | ClsCN oCnLoc = new ClsCN(); |
| | | DAL.ClsUser oUser = new DAL.ClsUser(); |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | //LogService.Write("测试1:"+ DBUtility.ClsPub.sExeReturnInfo); |
| | |
| | | DataSet DS; |
| | | try |
| | | { |
| | | SQLHelper.ClsCNSRM oCn = new SQLHelper.ClsCNSRM(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | DS = oCn.RunProcReturn("select * from Gy_Czygl where Czybm='" + MainID + "' and Czmm='" + sPsd + "' ", "Gy_Czygl"); |
| | | if (DS.Tables[0].Rows.Count == 0) |
| | | return null; |
| | |
| | | } |
| | | public DataSet CheckCzymc(string sUser, string sPsd) |
| | | { |
| | | SQLHelper.ClsCNSRM oCn = new SQLHelper.ClsCNSRM(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | SqlParameter[] prams ={oCn.MakeInParam("@Czymc",SqlDbType.VarChar,100,sUser ), |
| | | oCn.MakeInParam("@Czmm",SqlDbType.VarChar ,100,sPsd ), |
| | | }; |
| | |
| | | { |
| | | try |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | DataSet oDs = new DataSet(); |
| | | //========== |
| | | if (PassWord.Trim() != Repassword.Trim()) |
| | |
| | | [HttpGet] |
| | | public object SaveOpenTmp(string HNumber, string HName) |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | try |
| | | { |
| | | |
| | |
| | | [HttpGet] |
| | | public object DelOpenTmp(string HItemID) |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | try |
| | | { |
| | | //oCn.BeginTran(); |
| | |
| | | [HttpPost] |
| | | public object MsgCount() |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | DataSet oDs = new DataSet(); |
| | | oDs = oCn.RunProcReturn("select * from Gy_Message", "Gy_Message"); |
| | | objJsonResult.code = "0"; |
| | |
| | | [HttpGet] |
| | | public object MsgData(string sWhere) |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | DataSet oDs = new DataSet(); |
| | | var sql = "select A.HInterID,b.HEntryID,A.HContext,A.HDeptID,D.HName HDeptName, A.HSendMan, B.HReceiveMan,A.HLevel,A.HDescription,case when B.HReadFlag=0 then '未阅' when B.HReadFlag=1 then '已阅' end HReadFlag,A.HDate" + |
| | | " from OA_InformBillMain A inner join OA_InformBillSub B on A.HInterID=B.HInterID left join Gy_Department D on A.HDeptID=D.HItemID where 1=1 " + sWhere; |
| | |
| | | [HttpGet] |
| | | public object UpdateMessage(string UserName, string HInterID, string HEntryID) |
| | | { |
| | | ClsCNSRM oCn = new ClsCNSRM(); |
| | | ClsCN oCn = new ClsCN(); |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Update OA_InformBillSub set HReadFlag=1 HUpDater='" + UserName + "',HUpDateDate=getdate() where HInterID='" + HInterID + "' and HEntryID='" + HEntryID + "'", ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | oCn.Commit(); |
| | |
| | | var postMesseege = _linterid + ";" + _huserName; |
| | | //HttpHelper.PostData("http://localhost:8082/ZYMES/layuiAdmin.std-v1.2.1/src/views/SRM/Api/SRM_Web_PoBarCodeBillApi.ashx", postMesseege); |
| | | HttpHelper.PostData("http://60.191.21.115:9090/layuiAdmin.std-v1.2.1/src/views/SRM/Api/SRM_Web_PoBarCodeBillApi.ashx", postMesseege); |
| | | SQLHelper.ClsCNSRM oCn = new SQLHelper.ClsCNSRM(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | string sql = $"Update Gy_BarCodeBill set HPrintQty=isnull(HPrintQty,0) + 1 where HItemID in ({_linterid})"; |
| | | oCn.RunProc(sql); |
| | | objJsonResult.code = "0"; |