|
|
|
@ -29,6 +29,8 @@ using DSWeb.MvcShipping.Models.MsOpBill;
|
|
|
|
|
using MsOpBill = DSWeb.Areas.Account.Models.MsOpBill.MsOpBill;
|
|
|
|
|
using DSWeb.MvcShipping.DAL.MsOpSeaeDAL;
|
|
|
|
|
using DSWeb.Areas.Account.Models.BSNOLB;
|
|
|
|
|
using DSWeb.Areas.CommMng.DAL;
|
|
|
|
|
using DSWeb.Common.DB;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
{
|
|
|
|
@ -155,7 +157,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
return new ContentResult() { Content = json };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ContentResult GetSaleDataList(string billno, int type, string optype, string condition)
|
|
|
|
|
public ContentResult GetSaleDataList(string billno, int type, string optype, string condition)
|
|
|
|
|
{
|
|
|
|
|
var fieldcomm = "";
|
|
|
|
|
if (condition != null && condition.Trim() != "")
|
|
|
|
@ -242,7 +244,7 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
var json = JsonConvert.Serialize(new { Success = result.Success});
|
|
|
|
|
return new ContentResult() { Content = json };
|
|
|
|
|
}
|
|
|
|
|
public ContentResult GetAmendGainData(string bsno,string bltype="")
|
|
|
|
|
public ContentResult GetAmendGainData(string bsno,string bltype="")
|
|
|
|
|
{
|
|
|
|
|
var dataList = new List<MsChFeeGain>();
|
|
|
|
|
|
|
|
|
@ -648,50 +650,15 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
|
|
|
|
|
if (bodyList !="" ||bodyList != null)
|
|
|
|
|
{
|
|
|
|
|
iResult = MsChFeeDAL.DeleteFee(bodyList);
|
|
|
|
|
MsChFeeDAL.p_op_gain(bsno, Convert.ToString(Session["USERID"]));
|
|
|
|
|
var delGidListStr = data.Replace("'", "");
|
|
|
|
|
var delGidList = delGidListStr.Split(',').ToList();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (iResult == 1)
|
|
|
|
|
{
|
|
|
|
|
result.Success = true;
|
|
|
|
|
result.Message = "删除成功!";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (iResult == 0)
|
|
|
|
|
{
|
|
|
|
|
result.Success = false;
|
|
|
|
|
result.Message = "出现错误,未删除!";
|
|
|
|
|
}
|
|
|
|
|
else if (iResult == -1)
|
|
|
|
|
{
|
|
|
|
|
result.Success = false;
|
|
|
|
|
result.Message = "有异常,删除失败!";
|
|
|
|
|
}
|
|
|
|
|
else if (iResult == -2)
|
|
|
|
|
{
|
|
|
|
|
result.Success = false;
|
|
|
|
|
result.Message = "删除异常,事务已回滚成功!";
|
|
|
|
|
}
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
|
|
|
|
|
var jsonRespose = new JsonResponse
|
|
|
|
|
{
|
|
|
|
|
Success = result.Success,
|
|
|
|
|
Message = result.Message,
|
|
|
|
|
// Data = MsChFeeDAL.GetDataList(headData.BillNo, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request))
|
|
|
|
|
};
|
|
|
|
|
var delFee = cdc.ch_fee.Where(x => delGidList.Contains(x.GID)).ToList();
|
|
|
|
|
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
}
|
|
|
|
|
BasicDataRefDAL.SaveLog(bodyList, Convert.ToString(Session["USERID"]), "删除费用", "删除");
|
|
|
|
|
|
|
|
|
|
public ContentResult DeleteCtn(string bsno, string data)
|
|
|
|
|
{
|
|
|
|
|
int iResult = 0;
|
|
|
|
|
var bodyList = data;
|
|
|
|
|
var result = new DBResult();
|
|
|
|
|
|
|
|
|
|
if (bodyList != "" || bodyList != null)
|
|
|
|
|
{
|
|
|
|
|
iResult = MsChFeeDAL.DeleteFee(bodyList);
|
|
|
|
|
MsChFeeDAL.p_op_gain(bsno, Convert.ToString(Session["USERID"]));
|
|
|
|
|
|
|
|
|
@ -728,6 +695,50 @@ namespace DSWeb.MvcShipping.Controllers
|
|
|
|
|
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//public ContentResult DeleteCtn(string bsno, string data)
|
|
|
|
|
//{
|
|
|
|
|
// int iResult = 0;
|
|
|
|
|
// var bodyList = data;
|
|
|
|
|
// var result = new DBResult();
|
|
|
|
|
|
|
|
|
|
// if (bodyList != "" || bodyList != null)
|
|
|
|
|
// {
|
|
|
|
|
// iResult = MsChFeeDAL.DeleteFee(bodyList);
|
|
|
|
|
// MsChFeeDAL.p_op_gain(bsno, Convert.ToString(Session["USERID"]));
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// if (iResult == 1)
|
|
|
|
|
// {
|
|
|
|
|
// result.Success = true;
|
|
|
|
|
// result.Message = "删除成功!";
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// else if (iResult == 0)
|
|
|
|
|
// {
|
|
|
|
|
// result.Success = false;
|
|
|
|
|
// result.Message = "出现错误,未删除!";
|
|
|
|
|
// }
|
|
|
|
|
// else if (iResult == -1)
|
|
|
|
|
// {
|
|
|
|
|
// result.Success = false;
|
|
|
|
|
// result.Message = "有异常,删除失败!";
|
|
|
|
|
// }
|
|
|
|
|
// else if (iResult == -2)
|
|
|
|
|
// {
|
|
|
|
|
// result.Success = false;
|
|
|
|
|
// result.Message = "删除异常,事务已回滚成功!";
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// var jsonRespose = new JsonResponse
|
|
|
|
|
// {
|
|
|
|
|
// Success = result.Success,
|
|
|
|
|
// Message = result.Message,
|
|
|
|
|
// // Data = MsChFeeDAL.GetDataList(headData.BillNo, Convert.ToString(Session["USERID"]), CookieConfig.GetCookie_UserCode(Request), CookieConfig.GetCookie_OrgCode(Request))
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
// return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
public ContentResult DeleteAmend(string data)
|
|
|
|
|
{
|
|
|
|
|
var head = JsonConvert.Deserialize<MsOpAmend>(data);
|
|
|
|
|