public static string updateStatus(int accid, int oldstatus, int status, bool isGoNextStep, string remark, int alipayId, int operatorId, string operatorIP) { SaveLogForStatus(accid, oldstatus, status, operatorId, operatorIP); if (isGoNextStep) { SaveLogForRemark(accid, remark, operatorId, operatorIP); } return(T_AlipayInfoBLL.UpdateStatus(status, isGoNextStep, remark, alipayId)); }
public static string getAlipayInfoRecord(int pageIndex, int userType, int displayType, string accId, string start, string end) { string Column = string.Empty; string strWhere = string.Empty; Dictionary <string, string> dic = new Dictionary <string, string>() { { "RowCount", "" }, { "PageCount", "" }, { "list", "" } }; if (Convert.ToDateTime(end) > Convert.ToDateTime(start)) { if (start != "") { DateTime stTime = Convert.ToDateTime(start); strWhere += " createTime >='" + stTime.ToString("yyyy-MM-dd") + "' and"; } if (end != "") { DateTime edTime = Convert.ToDateTime(end); strWhere += " createTime <'" + edTime.AddDays(1).Date.ToString("yyyy-MM-dd") + "' and"; } } if (userType != -99) { strWhere += " companyType=" + userType.ToString() + " and "; } if (displayType != -99) { strWhere += " status=" + displayType + " and "; } if (accId != "") { strWhere += " accId=" + accId + " and "; } if (strWhere.Length > 0) { strWhere = strWhere.Substring(0, strWhere.LastIndexOf('a')); } int pageCount = T_AlipayInfoBLL.GetPageCount(strWhere); int pageSize = 15; if (pageCount != 0) { dic["RowCount"] = pageCount.ToString(); } else { dic["RowCount"] = "0"; } if (pageCount > 0) { dic["PageCount"] = Convert.ToInt32(Math.Ceiling(Convert.ToDecimal(pageCount) / Convert.ToDecimal(pageSize))).ToString(); } else { dic["PageCount"] = "0"; } List <AlipayInfoModel> listitem = T_AlipayInfoBLL.GetPageCount(pageIndex, pageSize, Column, strWhere); dic["list"] = CommonLib.Helper.JsonSerializeObject(listitem, "yyyy-MM-dd HH:mm:ss"); return(CommonLib.Helper.JsonSerializeObject(dic)); }
public static string getAlipayInfoModel(int id) { var model = T_AlipayInfoBLL.GetAlipayInfoModel(id); return(CommonLib.Helper.JsonSerializeObject(model)); }