public DataSet Login(string userName, string passWord) { string Password = MD5Helper.Md5(passWord); DataTable dtOrder = new DataTable(); paraDir.Clear(); paraDir.Add("@UserName", userName); paraDir.Add("@Password", Password); DataSet ds = ParkSystemUtility.GetData(paraDir, "IPS_UserLogin"); return(ds); }
/// <summary> /// 读取数据通用方法 /// </summary> /// <param name="dataType">1:读取订单列表,2:读取详细信息,3:读取订单小图片列表,4:读取订单对应的入场图片</param> /// <param name="licensePlateNo">车牌号</param> /// <param name="orderId">订单ID</param> /// <returns></returns> public DataTable GetOrderTable(int dataType, string licensePlateNo, string orderNo) { DataTable dtOrder = new DataTable(); paraDir.Clear(); paraDir.Add("@DataType", dataType); paraDir.Add("@OrderNo", orderNo); paraDir.Add("@LicensePlateNo", licensePlateNo); DataSet ds = ParkSystemUtility.GetData(paraDir, "IPS_GetOrder_local"); if (ds.Tables.Count > 0 && ds != null) { return(dtOrder = ds.Tables[0]); } else { return(dtOrder); } }