临时发布20240103
dengyu 1 year ago
parent 54672f9824
commit ae4888268b

@ -525,7 +525,7 @@ namespace DSWeb.Areas.Account.Controllers
if (StrGid != "")
{
StrGid = "(" + StrGid + ")";
var dataList = ChinvoiceapplicationDAL.GetDataInvList(" BILLSTATUS=0 and GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
var dataList = ChinvoiceapplicationDAL.GetDataInvList(" BILLSTATUS=0 and cm.GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
if (dataList != null && dataList.Count != 0)
{
var modb = new ModelObjectDB();

@ -636,7 +636,7 @@ namespace DSWeb.Areas.Account.Controllers
if (StrGid != "")
{
StrGid = "(" + StrGid + ")";
var dataList = ChinvoiceapplicationDAL.GetDataInvList(" BILLSTATUS=0 and GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
var dataList = ChinvoiceapplicationDAL.GetDataInvList(" BILLSTATUS=0 and cm.GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
if (dataList != null && dataList.Count != 0)
{
var modb = new ModelObjectDB();

@ -539,7 +539,7 @@ namespace DSWeb.Areas.Account.Controllers
if (StrGid != "")
{
StrGid = "(" + StrGid + ")";
var dataList = ChinvoiceapplicationDAL.GetDataListAll(" BILLSTATUS=0 and GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
var dataList = ChinvoiceapplicationDAL.GetDataListAll(" BILLSTATUS=0 and cm.GID IN " + StrGid, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), Convert.ToString(Session["COMPANYID"]));
if (dataList != null && dataList.Count != 0)
{
var jsonRespose = new JsonResponse { Success =true, Message ="可以生成!" };

@ -3011,7 +3011,7 @@ namespace DSWeb.Areas.Account.DAL.Chfee_Invoiceapplication
strSql.Append(",PUSHMODE,PUSHMOBILE,PUSHEMAIL,dbo.F_getEnumValue(0,80002,i.PUSHMODE) as PUSHMODEREF,(select EMAIL1 from vw_user where USERID=i.APPLICANT)APPLICANTEMAIL,'' as NOSTL");
strSql.Append(",(select top 1 description from info_client where SHORTNAME=i.CUSTOMERNAME) as CUSTOMERFULLNAME");
strSql.Append(" FROM ch_fee_invoiceapplication i left join workflow_using wu on wu.bsno=i.billno ");
strSql.Append(" left join company paycomp on paycomp.gid=cm.PAYCOMPANYID");
strSql.Append(" left join company paycomp on paycomp.gid=i.PAYCOMPANYID");
strSql.Append(" where 1=1");
if (isaudit=="1")
strSql.Append(" and i.BILLSTATUS=2 and dbo.[GetUsingStep](wu.WORKFLOWID,wu.currentid,'" + userid + "',wu.stepno)>0 ");

@ -586,7 +586,7 @@ namespace DSWeb.MvcShipping.Controllers
/// <summary>
/// 保存放单通知 可放单
/// 保存特放申请 保存 特殊放单申请
/// </summary>
/// <param name="start"></param>
/// <param name="limit"></param>
@ -1242,7 +1242,7 @@ namespace DSWeb.MvcShipping.Controllers
}
/// <summary>
/// 添加明细
/// 特殊放单申请 添加明细 添加特殊放单申请明细
/// </summary>
/// <param name="LINKGID"></param>
/// <param name="data"></param>
@ -1809,7 +1809,6 @@ namespace DSWeb.MvcShipping.Controllers
{
var dataList = JsonConvert.Deserialize<List<MsOp_BLISSUEmb>>(data);
var result = new DBResult();
T_ALL_DA T_ALL_DA = new T_ALL_DA();
var istz = true;
@ -2410,9 +2409,8 @@ namespace DSWeb.MvcShipping.Controllers
{
/*
*/
}
else
{
@ -2469,92 +2467,97 @@ namespace DSWeb.MvcShipping.Controllers
public ContentResult PLFDTZ(string USERID, string data) //放单通知 可放单
{
bool BLISSUENONO = false;
var BLISSUENONOPARAM = MsSysParamSetDAL.GetData("PARAMNAME='BLISSUENONO'");
if (BLISSUENONOPARAM.PARAMVALUE == "1")
{
BLISSUENONO = true;
}
var _r1 = SaveList_P(data);
var _L = new List<MsOp_BLISSUEmb>();
//放弃此方法 改为只允许单独签出
var result = new DBResult();
var nostlstr = "";
foreach (var _p in _r1)
{
var isnostl=false;
if (_p.STLDATE != "")
{
var ttlnodr = _p.TTLNODR;
if (ttlnodr == "") ttlnodr = "0";
if (//System.DateTime.Now >= Convert.ToDateTime(_p.STLDATE) &&
Convert.ToDecimal(ttlnodr) > 0
)
{
isnostl=true;
}
}
else
{
var ttlnodr = _p.TTLNODR;
if (ttlnodr == "") ttlnodr = "0";
if (Convert.ToDecimal(ttlnodr) != 0)
isnostl = true;
}
if (isnostl&& BLISSUENONO)
{
nostlstr = nostlstr + _p.BLNO + ",";
}
else
{
if (_p.BLSTATUS == "扣单" || _p.BLSTATUS == "可放单" || _p.BLSTATUS == "提单签出") //放单通知
{
}
else
{
_L.Add(_p);
}
}
}
if (nostlstr != "")
{
nostlstr = " 其中提单号:" + nostlstr + "存在欠费,无法放单!";
result.SetErrorInfo("只允许单独进行放单通知动作");
return BasicDataRefDAL.GetContentResult(result);
//bool BLISSUENONO = false;
//var BLISSUENONOPARAM = MsSysParamSetDAL.GetData("PARAMNAME='BLISSUENONO'");
//if (BLISSUENONOPARAM.PARAMVALUE == "1")
//{
// BLISSUENONO = true;
//}
//var _r1 = SaveList_P(data);
//var _L = new List<MsOp_BLISSUEmb>();
//var result = new DBResult();
//var nostlstr = "";
//foreach (var _p in _r1)
//{
// var isnostl=false;
// if (_p.STLDATE != "")
// {
// var ttlnodr = _p.TTLNODR;
// if (ttlnodr == "") ttlnodr = "0";
// if (//System.DateTime.Now >= Convert.ToDateTime(_p.STLDATE) &&
// Convert.ToDecimal(ttlnodr) > 0
// )
// {
// isnostl=true;
// }
// }
// else
// {
// var ttlnodr = _p.TTLNODR;
// if (ttlnodr == "") ttlnodr = "0";
// if (Convert.ToDecimal(ttlnodr) != 0)
// isnostl = true;
// }
// if (isnostl&& BLISSUENONO)
// {
// nostlstr = nostlstr + _p.BLNO + ",";
// }
// else
// {
// if (_p.BLSTATUS == "扣单" || _p.BLSTATUS == "可放单" || _p.BLSTATUS == "提单签出") //放单通知
// {
// }
// else
// {
// _L.Add(_p);
// }
// }
//}
//if (nostlstr != "")
//{
// nostlstr = " 其中提单号:" + nostlstr + "存在欠费,无法放单!";
}
var jsonRespose = new JsonResponse();
if (_L.Count > 0)
{
result = MsOp_BLISSUEDAL.FDTZ(_L, USERID,"", Convert.ToString(Session["SHOWNAME"]));
jsonRespose = new JsonResponse
{
Success = result.Success,
Message = result.Message +nostlstr,
Data = nostlstr
};
}
else
{
result.Success = false;
result.Message = "没有可以提交的提单" + nostlstr;
jsonRespose = new JsonResponse
{
Success = result.Success,
Message = result.Message,
Data = nostlstr
};
}
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
//}
//var jsonRespose = new JsonResponse();
//if (_L.Count > 0)
//{
// result = MsOp_BLISSUEDAL.FDTZ(_L, USERID,"", Convert.ToString(Session["SHOWNAME"]));
// jsonRespose = new JsonResponse
// {
// Success = result.Success,
// Message = result.Message +nostlstr,
// Data = nostlstr
// };
//}
//else
//{
// result.Success = false;
// result.Message = "没有可以提交的提单" + nostlstr;
// jsonRespose = new JsonResponse
// {
// Success = result.Success,
// Message = result.Message,
// Data = nostlstr
// };
//}
//return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
public ContentResult UNFDTZ(string USERID, string data) //取消放单通知 可放单
{
@ -2595,6 +2598,7 @@ namespace DSWeb.MvcShipping.Controllers
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
public ContentResult FDTZBACK(string USERID, string data) //取消放单通知 可放单
{
@ -2636,7 +2640,6 @@ namespace DSWeb.MvcShipping.Controllers
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
public ContentResult UnQR ( string USERID, string data ) //申请签入_撤回
{
var _r1 = SaveList_P(data);

@ -2664,10 +2664,10 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
log.REMARK = REASON;
log.ACTNAME = "特殊放单审核完成";
SaveLog(log, USERID);
//
UnKDGIDList.Add(_bill.GID);//此处为特放申请单头表的GID
}
@ -3700,228 +3700,240 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
var result = new DBResult();
result.OK();
//在海运出口列表的其他操作下的放单通知中参数为一个单独的bsno前后加单引号
//在财务管理的特殊放单列表的添加明细时,参数为 'bsno1','bsno2'
var _recount = 0;
var headList = GetDataList(" B.BSNO in (" + BSNO + ") ",0,999,out _recount);
try
{
if (headList.Count == 0) {
result.SetErrorInfo("没有可以放单或放货的业务");
return result;
}
//在海运出口列表的其他操作下的放单通知中参数为一个单独的bsno前后加单引号
//在财务管理的特殊放单列表的添加明细时,参数为 'bsno1','bsno2'
var _recount = 0;
var headList = GetDataList(" B.BSNO in (" + BSNO + ") ", 0, 999, out _recount);
//0 如果所有BSNO对应的特殊放单申请都已被审核通过 则直接返回true
result = (BSNO);
if (result.Success) return result;
if (headList.Count == 0)
{
result.SetErrorInfo("没有可以放单或放货的业务");
return result;
}
//20230525 增加判断是否有箱号
var cdc = new CommonDataContext();
var bsnoList = BSNO.Replace("'", "").Split(',').ToList();
var bodylist = cdc.OP_CTN.Where(x => bsnoList.Contains(x.BSNO)).ToList();
if (bodylist.Exists(x => x.CNTRNO == null || x.CNTRNO.Trim() == "")) {
result.SetErrorInfo("存在无箱号的业务,不允许执行放单操作");
return result;
}
//0 如果所有BSNO对应的特殊放单申请都已被审核通过 则直接返回true
result = (BSNO);
if (result.Success) return result;
//20230525 增加判断是否有箱号
var cdc = new CommonDataContext();
var bsnoList = BSNO.Replace("'", "").Split(',').ToList();
var bodylist = cdc.OP_CTN.Where(x => bsnoList.Contains(x.BSNO)).ToList();
if (bodylist.Exists(x => x.CNTRNO == null || x.CNTRNO.Trim() == ""))
{
result.SetErrorInfo("存在无箱号的业务,不允许执行放单操作");
return result;
}
//如果有财务扣单的 直接报错返回
result = ISKDWithCW(BSNO);
if (result.Success) {
result.Success = false;
return result;
}
//20230407 使用新的分月结票结判断流程
//var bsnoList = BSNO.Replace("'", "").Split(',').ToList();
//如果有财务扣单的 直接报错返回
result = ISKDWithCW(BSNO);
if (result.Success)
{
result.Success = false;
return result;
}
foreach (var head in headList) {
//20230407 使用新的分月结票结判断流程
//1 判断该业务中该客户属于何种账期类型
var ACCTYPE = MsInfoClientDAL.GetCustAcctype(head.BSNO);
//var bsnoList = BSNO.Replace("'", "").Split(',').ToList();
if (ACCTYPE == "票结")
foreach (var head in headList)
{
//走票结流程
//1 看是否扣单
result = (head);
if (!result.Success) return result;
if ((bool)result.Data == true)
//1 判断该业务中该客户属于何种账期类型
var ACCTYPE = MsInfoClientDAL.GetCustAcctype(head.BSNO);
if (ACCTYPE == "票结")
{
var = ISKDWithCW("'"+head.BSNO+"'");
//走票结流程
//1 看是否扣单
result = (head);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
var = ISKDWithCW("'" + head.BSNO + "'");
if (.Success)
if (.Success)
{
result.SetErrorInfo($"已扣货,该客户无欠费,需联系财务解除扣单。请点否然后联系财务。");
return result;
}
}
//20230601 改为先看本票是否欠费
//3 本票业务是否欠费
result = (head);
if (!result.Success) return result;//出错返回报错
if ((bool)result.Data == true)
{
result.SetErrorInfo($"已扣货,该客户无欠费,需联系财务解除扣单。请点否然后联系财务。");
//本票有欠费 返回错误 走保函
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
}
//20230601 改为先看本票是否欠费
//3 本票业务是否欠费
result = (head);
if (!result.Success) return result;//出错返回报错
if ((bool)result.Data == true)
{
//本票有欠费 返回错误 走保函
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
//2 看该客户目前是否欠费 如无直接可放
result = _(head);
if (result.Success == false)
{
result.OK();
return result;
}
//本票无欠费 继续走逻辑
//如果是“最后一单” 即:这票业务是 未签出的业务当中ATD(ETD)最晚的
//则 只要客户有欠费 即不允许提单签出
result = (headList);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{ //看是否存在欠费:
var msg = result.Message;
result = (head);
if (result.Success == true)
{
result.SetErrorInfo($"{msg},且存在欠费[{result.Message}],是否确认保函放货?");
return result;
}
}
//2 看该客户目前是否欠费 如无直接可放
result = _(head);
if (result.Success == false)
{
result.OK();
return result;
}
else
{
//月结流程
//本票无欠费 继续走逻辑
//如果是“最后一单” 即:这票业务是 未签出的业务当中ATD(ETD)最晚的
//则 只要客户有欠费 即不允许提单签出
result = (headList);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{ //看是否存在欠费:
var msg = result.Message;
//1客户是否欠费
result = (head);
if (result.Success == true)
{
result.SetErrorInfo($"{msg},且存在欠费[{result.Message}],是否确认保函放货?");
return result;
}
}
if (result.Success == false)
{//无欠费 直接可出
result.OK();
return result;
//0 看该业务是否扣单 如果处于扣单状态 将其解除
result = (head);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
var kdlist = new List<MsOp_BLISSUEmb>{
head
};
MsOp_BLISSUEDAL.KD(kdlist, USERNAME, USERNAME);
}
}
else {
//月结流程
result.OK();
return result;
}
//1客户是否欠费
result = (head);
if (result.Success == false)
{//无欠费 直接可出
//2 如果存在超期的欠费 则不允许提单签出
result = (head, BSNO);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
//result.SetErrorInfo(result.Message);
result.Success = false;
return result;
}
//0 看该业务是否扣单 如果处于扣单状态 将其解除
result = (head);
//无超期欠费 看是否最后一票
result = (headList);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{
var kdlist = new List<MsOp_BLISSUEmb>{
head
};
MsOp_BLISSUEDAL.KD(kdlist, USERNAME, USERNAME);
//result.SetErrorInfo("");
result.Success = false;
return result;
}
else
{
//0 看该业务是否扣单 如果处于扣单状态 将其解除
result = (head);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
var kdlist = new List<MsOp_BLISSUEmb>{
head
};
MsOp_BLISSUEDAL.KD(kdlist, USERNAME, USERNAME);
}
}
result.OK();
return result;
}
//2 如果存在超期的欠费 则不允许提单签出
result = (head, BSNO);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
//result.SetErrorInfo(result.Message);
result.Success = false;
return result;
}
//无超期欠费 看是否最后一票
//以下为原第二版流程
/*
//1 如果是“最后一单” 即:除了这票业务之外,其他业务都已“提单签出”
//则 只要客户有欠费 即不允许提单签出
result = (headList);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{
//result.SetErrorInfo("");
result.Success = false;
return result;
}
else {
//0 看该业务是否扣单 如果处于扣单状态 将其解除
result = (head);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{
var kdlist = new List<MsOp_BLISSUEmb>{
head
};
MsOp_BLISSUEDAL.KD(kdlist, USERNAME, USERNAME);
{ //看是否存在欠费:
var msg = result.Message;
result = (headList);
if (result.Success == true)
{
result.SetErrorInfo($"{msg},且存在欠费[{result.Message}],是否确认保函放货?");
return result;
}
}
}
result.OK();
return result;
}
//以下为原第二版流程
/*
//1 如果是“最后一单” 即:除了这票业务之外,其他业务都已“提单签出”
//则 只要客户有欠费 即不允许提单签出
result = (headList);
if (!result.Success) return result;
//如果是最后一票
if ((bool)result.Data == true)
{ //看是否存在欠费:
var msg = result.Message;
result = (headList);
if (result.Success == true)
//2 如果存在超期的欠费 则不允许提单签出
result = (headList, BSNO);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
result.SetErrorInfo($"{msg},且存在欠费[{result.Message}],是否确认保函放货?");
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
}
//2 如果存在超期的欠费 则不允许提单签出
result = (headList, BSNO);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
//3 本票业务是否欠费
result = (headList);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
//4 本票是否被扣货
result = (headList);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
//20230320 如果客户不欠费 用另一个提示
var result = (headList);
if (result.Success != true)
//3 本票业务是否欠费
result = (headList);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
result.SetErrorInfo($"已扣货,该客户无欠费,需联系财务解除扣单。请点否然后联系财务。");
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}*/
//4 本票是否被扣货
result = (headList);
if (!result.Success) return result;
if ((bool)result.Data == true)
{
//20230320 如果客户不欠费 用另一个提示
var result = (headList);
if (result.Success != true)
{
result.SetErrorInfo($"已扣货,该客户无欠费,需联系财务解除扣单。请点否然后联系财务。");
return result;
}
result.SetErrorInfo(result.Message);
//result.Success = false;
return result;
}*/
}
}catch(Exception e) {
result.SetErrorInfo(e.Message);
}
return result;

@ -983,8 +983,8 @@ namespace DSWeb.MvcShipping.Models.MsOp_BLISSUE
/// <returns></returns>
public static bool NoNeedFangDan(string BLSTATUS)
{
if (BLSTATUS == BLSTATUSTYPE.|| BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE.)
{//BLSTATUS == BLSTATUSTYPE.提单签入 ||
if ( BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE.)
{//BLSTATUS == BLSTATUSTYPE.提单签出||BLSTATUS == BLSTATUSTYPE.提单签入 ||
return true;
}
else

@ -5270,51 +5270,54 @@ this.storeConsignee.on('beforeload', function (store) {
var rec = selections[0];
var BSNO = rec.data.BSNO;
_this = this;
Ext.Ajax.request({
waitMsg: '正在操作数据',
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
async: false,
params: {
BSNO: "'" + BSNO + "'"
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
//return;
}
} else {
return;
}
},
scope: this
});
this.SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
//Ext.Ajax.request({
// waitMsg: '正在操作数据',
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// //return;
// }
// } else {
// return;
// }
// },
// scope: this
//});
//this.SelectedRecord = rec;
//Ext.getCmp("winFDTZShow").show();
},
DoFDTZ: function (REASON) {

@ -14150,70 +14150,377 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, {
var rec = selections[0];
var BSNO = rec.data.BSNO;
if (rec.data.ISSUETYPE == '') {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '签单方式不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
if (this.BLMUSTBEQR == 1 && rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
_this = this;
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
url: '/MvcShipping/MsOp_BLISSUE/CanCheckOut',
async: false,
params: {
BSNO: "'" + BSNO + "'"
BSNO: BSNO
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
if (!result.Success) {
//Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
//});
if (result.Message.indexOf("此票被财务扣单") >= 0) {
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
} else {
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
if (result.data[0].超期欠费 != '')
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
Ext.MessageBox.confirm(Zi.LAN.TiShi, result.Message, function (btn) {
if (btn == 'yes') {
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
async: false,
params: {
BSNO: "'" + BSNO + "'"
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
if (result.data[0].超期欠费 != '')
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
return;
}
} else {
return;
}
},
scope: this
});
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
Ext.getCmp("MainPanel").SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
} else {
return;
}
});
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
//return;
}
else {
Ext.getCmp("MainPanel").SelectedRecord = rec;
_this.DoFDTZ();
}
} else {
return;
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
}
},
scope: this
}
});
Ext.getCmp("MainPanel").SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
//Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/CanCheckOut',
// async: false,
// params: {
// BSNO: BSNO
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (!result.Success) {
// //Ext.Msg.show({
// // title: '提示',
// // msg: result.Message,
// // icon: Ext.MessageBox.ERROR,
// // buttons: Ext.Msg.OK
// //});
// if (result.Message.indexOf("此票被财务扣单") >= 0) {
// Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
// });
// } else {
// Ext.MessageBox.confirm(Zi.LAN.TiShi, result.Message, function (btn) {
// if (btn == 'yes') {
// Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
// if (result.data[0].超期欠费 != '')
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// return;
// }
// } else {
// return;
// }
// },
// scope: this
// });
// Ext.getCmp("MainPanel").SelectedRecord = rec;
// Ext.getCmp("winFDTZShow").show();
// } else {
// return;
// }
// });
// }
// }
// else {
// Ext.getCmp("MainPanel").SelectedRecord = rec;
// _this.DoFDTZ();
// }
// } else {
// Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
// });
// }
// }
//});
//if (rec.data.ISSUETYPE == '') {
// Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '签单方式不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
// return;
//}
//if (this.BLMUSTBEQR == 1 && rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
// Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
// return;
//}
//_this = this;
//Ext.Ajax.request({
// waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
// if (result.data[0].超期欠费 != '')
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// //return;
// }
// } else {
// return;
// }
// },
// scope: this
//});
//Ext.getCmp("MainPanel").SelectedRecord = rec;
//Ext.getCmp("winFDTZShow").show();
},
DoFDTZ: function (REASON) {
onFDTZPLClick: function () {
Ext.define('MsOp_BLISSUEmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'BLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'ZDFD', type: 'string' },
{ name: 'BLNAME', type: 'string' },
{ name: 'BLSTATUS', type: 'string' },
{ name: 'BLORDERNO', type: 'string' },
{ name: 'ISSUETYPE', type: 'string' },
{ name: 'OPNAME', type: 'string' },
{ name: 'OPTIME', type: 'string' },
{ name: 'BSINKNO', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'DELFLAG', type: 'string' },
{ name: 'EXPRESSCORP', type: 'string' },
{ name: 'EXPRESSNO', type: 'string' },
{ name: 'ISADD', type: 'string' },
{ name: 'PUTSINGLETIME', type: 'string' },
{ name: 'PUTSINGLE', type: 'string' },
{ name: 'PAYTIME', type: 'string' },
{ name: 'PAYRMB', type: 'string' },
{ name: 'PAYUSD', type: 'string' },
{ name: 'BLTYPE', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'ACCTYPE', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'STLDATE', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'BLISSUESTATUS', type: 'string' },
{ name: 'TSFD', type: 'string' },
{ name: 'XYTS', type: 'string' },
{ name: 'CQTS', type: 'string' },
{ name: 'SJTS', type: 'string' },
{ name: 'RMBNODR', type: 'string' },
{ name: 'USDNODR', type: 'string' },
{ name: 'TTLNODR', type: 'string' },
{ name: 'TTLDR', type: 'string' },
{ name: 'OPLBNAME', type: 'string' },
{ name: 'SPREMARK', type: 'string' }
]
});
var _op_blissue = Ext.create('MsOp_BLISSUEmb', {
'GID': '',
'BSNO': this.SelectedRecord.data.BSNO,
'BLNO': this.SelectedRecord.data.MBLNO,
'BLNAME': '提单',
'BLSTATUS': '',
'BLORDERNO': '',
'ISSUETYPE': this.SelectedRecord.data.ISSUETYPE,
'OPNAME': '',
'OPTIME': '',
'BSINKNO': '',
'REMARK': '',
'DELFLAG': '0',
'EXPRESSCORP': '',
'EXPRESSNO': '',
'ISADD': '0',
'PUTSINGLETIME': '',
'PUTSINGLE': '',
'PAYTIME': '',
'PAYRMB': '0',
'PAYUSD': '0'
});
var bodyList = [];
bodyList.push(_op_blissue);
var jsonBody = ConvertRecordsToJsonAll(bodyList);
if (jsonBody == '') {
return;
}
Ext.Ajax.request({
waitMsg: '正在操作数据',
url: '/MvcShipping/MsOp_BLISSUE/FDTZ',
params: {
USERID: USERID,
data: jsonBody,
REASON: REASON
},
callback: function (options, success, response) {
if (success) {
this.winFDTZShow.close();
Ext.getCmp("REASON").setValue("");
this.storeList.reload();
//this.onRefreshClick();
}
},
failure: function (response, options) {
Ext.Msg.show({ title: '警告', msg: '服务器响应出错!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
},
success: function (response, options) { },
scope: this
}); //end Ext.Ajax.request
},
onFDTZPLClick: function () {
var selections = this.gridList.getSelectionModel().getSelection();
if (selections.length == 0) {
@ -14371,122 +14678,6 @@ Ext.extend(Shipping.MsOpSeaeFeeIndex, Ext.Panel, {
},
DoFDTZ: function (REASON) {
Ext.define('MsOp_BLISSUEmb', {
extend: 'Ext.data.Model',
idProperty: 'GID',
fields: [
{ name: 'GID', type: 'string' },
{ name: 'BSNO', type: 'string' },
{ name: 'BLNO', type: 'string' },
{ name: 'HBLNO', type: 'string' },
{ name: 'ZDFD', type: 'string' },
{ name: 'BLNAME', type: 'string' },
{ name: 'BLSTATUS', type: 'string' },
{ name: 'BLORDERNO', type: 'string' },
{ name: 'ISSUETYPE', type: 'string' },
{ name: 'OPNAME', type: 'string' },
{ name: 'OPTIME', type: 'string' },
{ name: 'BSINKNO', type: 'string' },
{ name: 'REMARK', type: 'string' },
{ name: 'DELFLAG', type: 'string' },
{ name: 'EXPRESSCORP', type: 'string' },
{ name: 'EXPRESSNO', type: 'string' },
{ name: 'ISADD', type: 'string' },
{ name: 'PUTSINGLETIME', type: 'string' },
{ name: 'PUTSINGLE', type: 'string' },
{ name: 'PAYTIME', type: 'string' },
{ name: 'PAYRMB', type: 'string' },
{ name: 'PAYUSD', type: 'string' },
{ name: 'BLTYPE', type: 'string' },
{ name: 'CUSTNO', type: 'string' },
{ name: 'CUSTOMERNAME', type: 'string' },
{ name: 'SALE', type: 'string' },
{ name: 'ACCTYPE', type: 'string' },
{ name: 'ETD', type: 'string' },
{ name: 'STLDATE', type: 'string' },
{ name: 'CARRIER', type: 'string' },
{ name: 'VESSEL', type: 'string' },
{ name: 'VOYNO', type: 'string' },
{ name: 'OP', type: 'string' },
{ name: 'BLISSUESTATUS', type: 'string' },
{ name: 'TSFD', type: 'string' },
{ name: 'XYTS', type: 'string' },
{ name: 'CQTS', type: 'string' },
{ name: 'SJTS', type: 'string' },
{ name: 'RMBNODR', type: 'string' },
{ name: 'USDNODR', type: 'string' },
{ name: 'TTLNODR', type: 'string' },
{ name: 'TTLDR', type: 'string' },
{ name: 'OPLBNAME', type: 'string' },
{ name: 'SPREMARK', type: 'string' }
]
});
var _op_blissue = Ext.create('MsOp_BLISSUEmb', {
'GID': '',
'BSNO': this.SelectedRecord.data.BSNO,
'BLNO': this.SelectedRecord.data.MBLNO,
'BLNAME': '提单',
'BLSTATUS': '',
'BLORDERNO': '',
'ISSUETYPE': this.SelectedRecord.data.ISSUETYPE,
'OPNAME': '',
'OPTIME': '',
'BSINKNO': '',
'REMARK': '',
'DELFLAG': '0',
'EXPRESSCORP': '',
'EXPRESSNO': '',
'ISADD': '0',
'PUTSINGLETIME': '',
'PUTSINGLE': '',
'PAYTIME': '',
'PAYRMB': '0',
'PAYUSD': '0'
});
var bodyList = [];
bodyList.push(_op_blissue);
var jsonBody = ConvertRecordsToJsonAll(bodyList);
if (jsonBody == '') {
return;
}
if (_this.IS欠费超期 == 'yes') {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '欠费超期,不允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/FDTZ',
params: {
USERID: USERID,
data: jsonBody,
REASON: REASON
},
callback: function (options, success, response) {
if (success) {
this.winFDTZShow.close();
Ext.getCmp("REASON").setValue("");
this.storeList.reload();
//this.onRefreshClick();
}
},
failure: function (response, options) {
Ext.Msg.show({ title: Zi.LAN.JingGao, msg: Zi.LAN.FuWuQiXiangYingChuCuo, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
},
success: function (response, options) { },
scope: this
}); //end Ext.Ajax.request
},
getFDINFO: function (result) {
var _html = "<span style=\"clear:both;\">";
_this = this;

@ -14432,6 +14432,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
}
if (selections.length > 1) {
//Ext.Msg.show({ title: Zi.LAN.TiShi, msg: "只能选择一票业务", icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
_this.onFDTZPLClick();
return;
}

@ -3006,60 +3006,159 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
var rec = selections[0];
var BSNO = rec.data.BSNO;
if (rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
Ext.Msg.show({ title: '提示', msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
_this = this;
Ext.Ajax.request({
waitMsg: '正在操作数据',
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/CanCheckOut',
async: false,
params: {
BSNO: "'" + BSNO + "'"
BSNO: BSNO
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
if (result.data[0].超期欠费 != '')
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
if (!result.Success) {
//Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
//});
if (result.Message.indexOf("此票被财务扣单") >= 0) {
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
} else {
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
Ext.MessageBox.confirm(Zi.LAN.TiShi, result.Message, function (btn) {
if (btn == 'yes') {
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
async: false,
params: {
BSNO: "'" + BSNO + "'"
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
if (result.data[0].超期欠费 != '')
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
return;
}
} else {
return;
}
},
scope: this
});
Ext.getCmp("MainPanel").SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
} else {
return;
}
});
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
//return;
}
else {
Ext.getCmp("MainPanel").SelectedRecord = rec;
_this.DoFDTZ();
}
} else {
return;
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
}
},
scope: this
}
});
Ext.getCmp("MainPanel").SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
//if (rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
// Ext.Msg.show({ title: '提示', msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
// return;
//}
//_this = this;
//Ext.Ajax.request({
// waitMsg: '正在操作数据',
// url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
// async: false,
// params: {
// BSNO: "'" + BSNO + "'"
// },
// callback: function (options, success, response) {
// if (success) {
// var result = Ext.JSON.decode(response.responseText);
// if (result.Success) {
// var _html = "<span style=\"clear:both;\">";
// _this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
// _this.欠费超期 = result.data[0].欠费超期;
// _this.累计欠费 = result.data[0].累计欠费;
// _this.信用额度 = result.data[0].信用额度;
// _html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
// if (result.data[0].超期欠费 != '')
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
// _html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
// _html = _html + "<br></br>";
// if (result.data[0].IS欠费超期 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
// }
// if (result.data[0].IS累计欠费 == "yes") {
// _html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
// }
// _html = _html + "</span><br></br>";
// Ext.getCmp("FDINFO").update(_html);
// } else {
// //return;
// }
// } else {
// return;
// }
// },
// scope: this
//});
//Ext.getCmp("MainPanel").SelectedRecord = rec;
//Ext.getCmp("winFDTZShow").show();
},
DoFDTZ: function (REASON) {
@ -3389,6 +3488,141 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
}
//#endregion
,
onFDTZClick: function (his, record, item, index, e) {
Ext.getCmp("FDINFO").update("");
var selections = this.gridList.getSelectionModel().getSelection();
if (selections.length == 0) {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: Zi.LAN.QingXianXuanZeYeWu, icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
if (selections.length > 1) {
//_this.onFDTZPLClick();
return;
}
var rec = selections[0];
var BSNO = "'" + rec.data.BSNO + "'";
if (rec.data.ISSUETYPE == '') {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '签单方式不能为空!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
if (this.BLMUSTBEQR == 1 && rec.data.ISSUETYPE == '正本' && (rec.data.BLISSUESTATUS != '提单签入' && rec.data.BLISSUESTATUS != '驳回提单签入')) {
Ext.Msg.show({ title: Zi.LAN.TiShi, msg: '只有已提单签入的正本提单,才允许放单通知!', icon: Ext.Msg.INFO, buttons: Ext.Msg.OK });
return;
}
_this = this;
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/CanCheckOut',
async: false,
params: {
BSNO: BSNO
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (!result.Success) {
//Ext.Msg.show({
// title: '提示',
// msg: result.Message,
// icon: Ext.MessageBox.ERROR,
// buttons: Ext.Msg.OK
//});
if (result.Message.indexOf("此票被财务扣单") >= 0) {
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
} else {
Ext.MessageBox.confirm(Zi.LAN.TiShi, result.Message, function (btn) {
if (btn == 'yes') {
Ext.Ajax.request({
waitMsg: Zi.LAN.ZhengZaiCaoZuoShuJu,
url: '/MvcShipping/MsOp_BLISSUE/GetBLINFO',
async: false,
params: {
BSNO: "'" + BSNO + "'"
},
callback: function (options, success, response) {
if (success) {
var result = Ext.JSON.decode(response.responseText);
if (result.Success) {
var _html = "<span style=\"clear:both;\">";
_this.结费类型 = result.data[0].结费类型.replace("<span style=\"colorred\">", " ").replace("</span>", " ");
_this.欠费超期 = result.data[0].欠费超期;
_this.累计欠费 = result.data[0].累计欠费;
_this.信用额度 = result.data[0].信用额度;
_html = _html + "<span style=\"clear:both;color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].结费类型 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].欠费超期 + "</p></span>";
if (result.data[0].超期欠费 != '')
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].超期欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].累计欠费 + "</p></span>";
_html = _html + "<span style=\"color:#000000;backgroud-color:#FF0000\"><p>&nbsp;&nbsp;&nbsp;&nbsp" + result.data[0].信用额度 + "</p></span>";
_html = _html + "<br></br>";
if (result.data[0].IS欠费超期 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">欠费超期</span>";
}
if (result.data[0].IS累计欠费 == "yes") {
_html = _html + "&nbsp;&nbsp;&nbsp;&nbsp<span style=\"color:#900000;text-decoration:none;\">总欠费超额度</span>";
}
_html = _html + "</span><br></br>";
Ext.getCmp("FDINFO").update(_html);
} else {
return;
}
} else {
return;
}
},
scope: this
});
Ext.getCmp("MainPanel").SelectedRecord = rec;
Ext.getCmp("winFDTZShow").show();
} else {
return;
}
});
}
}
else {
Ext.getCmp("MainPanel").SelectedRecord = rec;
_this.DoFDTZ();
}
} else {
Ext.Msg.show({
title: '提示',
msg: result.Message,
icon: Ext.MessageBox.ERROR,
buttons: Ext.Msg.OK
});
}
}
});
},
});

@ -2268,7 +2268,7 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, {
this.SetBtnEnable(data);
if (this.bsnosql != undefined && this.bsnosql !='') {
var sql = " not exists (select 1 from op_blissueList_Detail ob1 where ob1.bsno=B.bsno) and isnull(ob.BLSTATUS,'')<>'提单签出' ";
var sql = " not exists (select 1 from op_blissueList_Detail ob1 where ob1.bsno=B.bsno) ";
sql = sql + " and B.bsno='" + this.bsnosql + "' "
this.storeAddList.load({
params: { start: 0, limit: this.PageSize, condition: sql },

Loading…
Cancel
Save