//返回门店受影响的行集 public int getStoresCount(string rid) { sDate = Utils.IsDateString(Utils.ChkSQL(HTTPRequest.GetString("sDate"))) ? DateTime.Parse(Utils.ChkSQL(HTTPRequest.GetString("sDate"))) : DateTime.Now; stDate = Utils.IsDateString(Utils.ChkSQL(HTTPRequest.GetString("stDate"))) ? DateTime.Parse(Utils.ChkSQL(HTTPRequest.GetString("stDate"))) : DateTime.Now; get_direction = HTTPRequest.GetInt("get_direction", 0);//借贷方向 sList = CostDetails.getStorsList(get_direction, rid, sDate, stDate); return(sList.Rows.Count); }
//1.费用统计——客户 //获得门店的名称 public DataTable getStoresName(string rid) { sDate = Utils.IsDateString(Utils.ChkSQL(HTTPRequest.GetString("sDate"))) ? DateTime.Parse(Utils.ChkSQL(HTTPRequest.GetString("sDate"))) : DateTime.Now; stDate = Utils.IsDateString(Utils.ChkSQL(HTTPRequest.GetString("stDate"))) ? DateTime.Parse(Utils.ChkSQL(HTTPRequest.GetString("stDate"))) : DateTime.Now; get_direction = HTTPRequest.GetInt("get_direction", 0);//借贷方向 sList = CostDetails.getStorsList(get_direction, rid, sDate, stDate); if (sList.Rows.Count > 0) { return(sList); } else { return(null); } }