public static bool Permission_ModelRemoveInOutBill = false; //批量删除榜单权限 public static void VerifyPermission() { Dictionary <string, object> dictModel; string RegisterInfoJson; ExecuteSQL.ReadRegister(out IsRegister, out ProductType, out DeadLine, out dictModel); if (dictModel.ContainsKey("SynToServer")) { int iPermissoin; int.TryParse(dictModel["SynToServer"].ToString(), out iPermissoin); if (iPermissoin > 0) { Permission_ModelSynchorToServer = true; } } if (dictModel.ContainsKey("RemoveInOutBill")) { int iPermissoin; int.TryParse(dictModel["RemoveInOutBill"].ToString(), out iPermissoin); if (iPermissoin > 0) { Permission_ModelRemoveInOutBill = true; } } }
private static long GetSessionID(out bool bolIsOverFlow) { long lSessionID = 0; bolIsOverFlow = false; LBDbParameterCollection parmCol = new LBDbParameterCollection(); parmCol.Add(new LBParameter("ClientIP", enLBDbType.String, MachineIP)); parmCol.Add(new LBParameter("ClientSerial", enLBDbType.String, MachineSeries)); DataSet dsReturn; Dictionary <string, object> dictValue; ExecuteSQL.CallSP(15000, false, parmCol, out dsReturn, out dictValue); if (dictValue.ContainsKey("SessionID")) { long.TryParse(dictValue["SessionID"].ToString(), out lSessionID); } if (dictValue.ContainsKey("IsOverFlow")) { if (dictValue["IsOverFlow"].ToString() == "1") { bolIsOverFlow = true; } } return(lSessionID); }
private static void TakeSessionThread() { try { ExecuteSQL.TakeSession(); } catch (Exception ex) { } }
private static DataTable GetUserInfo(int iUserID) { DataTable dtUser = ExecuteSQL.CallView(100, "UserID,UserPassword", "UserID=" + iUserID, ""); return(dtUser); }
private static DataTable GetUserInfo(string strLoginName) { DataTable dtUser = ExecuteSQL.CallView(100, "UserID,UserPassword,UserType", "LoginName='" + strLoginName + "'", ""); return(dtUser); }