20240506_2

YingHang
ddlucky 7 months ago
parent 0c8b4c4f1c
commit 1a9c83cd59

@ -1914,6 +1914,14 @@ namespace DSWeb.Areas.Account.Controllers
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) }; return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
} }
if (string.IsNullOrEmpty(redReason))
{
jsonRespose.Success = false;
jsonRespose.Message = "必须选择冲红理由。";
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
//增加判断 如果原票createtime晚于当前时间24小时之前则报错不允许开出 //增加判断 如果原票createtime晚于当前时间24小时之前则报错不允许开出
//20231120 取消此限制 //20231120 取消此限制
//if (BlueInvoice.INVOICEMAKETIME == null || BlueInvoice.INVOICEMAKETIME == "" || Convert.ToDateTime(BlueInvoice.INVOICEMAKETIME) > DateTime.Now.AddDays(-1)) //if (BlueInvoice.INVOICEMAKETIME == null || BlueInvoice.INVOICEMAKETIME == "" || Convert.ToDateTime(BlueInvoice.INVOICEMAKETIME) > DateTime.Now.AddDays(-1))

@ -941,7 +941,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
{ {
ChInvoice_HangXin = _ChInvoice; ChInvoice_HangXin = _ChInvoice;
ChInvoice_HangXin.billUuid= _ChInvoice.billUuid; //ChInvoice_HangXin.billUuid= _ChInvoice.billUuid;
} }
@ -2687,7 +2687,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
if (_return.code == "E0000") if (_return.code == "E0000")
{ {
//红字申请单提交成功 //红字申请单提交成功
head.GID = bluehead.GID.Replace("-", "");
//读取红字确认单 //读取红字确认单
var _r = ReadRedConfirm(ref head, detailList); var _r = ReadRedConfirm(ref head, detailList);
@ -3066,7 +3066,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
public string errormsg() public string errormsg()
{ {
if (list == null || list.Count == 0) return null; if (list == null || list.Count == 0) return "";
return list[0].billMessage; return list[0].billMessage;
} }
} }

@ -93,9 +93,16 @@ namespace HcUtility.Comm
public DBResult SetErrorInfo(string message, bool success = false, object data = null) public DBResult SetErrorInfo(string message, bool success = false, object data = null)
{ {
if ( string.IsNullOrEmpty(Message)) Message = "";
if (Success != success) Message = ""; if (Success != success) Message = "";
Success = success; Success = success;
if (string.IsNullOrWhiteSpace(message)) {
return this;
}
if (Message.IndexOf(message) >= 0) if (Message.IndexOf(message) >= 0)
{ {

Loading…
Cancel
Save