dev
hanxuntao 2 weeks ago
commit ead2ab86ef

@ -1483,14 +1483,14 @@ namespace DSWeb.Areas.Account.Controllers
public ContentResult NNReadInv(string BILLNO, string redirecturl)
{
//如果已有pdf地址 则直接返回
var isfee = ChinvoiceDAL.GetStCount("PAYBILLNO='" + BILLNO + "'");
if (isfee != 0)
{
//var isfee = ChinvoiceDAL.GetStCount("PAYBILLNO='" + BILLNO + "'");
//if (isfee != 0)
//{
var jsonRespose2 = new JsonResponse { Success = false, Message = "已发票结算,不允许冲红" };
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
// var jsonRespose2 = new JsonResponse { Success = false, Message = "已发票结算,不允许冲红" };
// return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
}
//}
var canlogin = BasicDataRefDAL.CheckLogin(Session);
if (!canlogin.Success)
{

@ -4239,7 +4239,7 @@ namespace DSWeb.Areas.Dispatch.Controllers
{
ysamount += ys.Amount * ys.ExChangerate;
}
foreach (var yf in evList.Where(x => x.FeeType == 1))
foreach (var yf in evList.Where(x => x.FeeType == 2))
{
yfamount += yf.Amount * yf.ExChangerate;
}
@ -4309,15 +4309,19 @@ namespace DSWeb.Areas.Dispatch.Controllers
var aaa = "";
var saveinfo = JsonConvert.DeserializeObject<SaveOrderFeeListParam>(postContent);
var saveinfo = DSWeb.MvcShipping.Helper.JsonConvert.Deserialize<SaveOrderFeeListParam>(postContent);
foreach (var item in saveinfo.Body) {
item.TableName = "ch_fee_order";
}
var bodyList = saveinfo.Body;
var chfeeBodyList = bodyList;
var chfeeDelBodyList = JsonConvert.DeserializeObject<List<MsOrderFee>>("");
var chfeeDelBodyList = DSWeb.MvcShipping.Helper.JsonConvert.Deserialize<List<MsOrderFee>>("");
var modb = new DSWeb.TruckMng.Helper.Repository.ModelObjectRepository();
DBResult result = modb.SaveComm("BsNo", QueryInfo.bsno,
DBResult result = modb.SaveComm("BsNo", saveinfo.bsno,
DSWeb.MvcShipping.Helper.ModelObjectConvert<MsOrderFee>.ToModelObjectList(chfeeBodyList),
DSWeb.MvcShipping.Helper.ModelObjectConvert<MsOrderFee>.ToModelObjectList(chfeeDelBodyList)
);

@ -12,6 +12,8 @@ using System.IO;
using System.Collections.Generic;
using DSWeb.TruckMng.Helper.Repository;
using DSWeb.SoftMng.Filter;
using DSWeb.Common.DB;
using System.Data.Entity.Migrations;
namespace DSWeb.Areas.TruckMng.Controllers
{
@ -100,9 +102,27 @@ namespace DSWeb.Areas.TruckMng.Controllers
{
head.DbOperationType = DbOperationType.DbotDel;
}
var modb = new ModelObjectDB();
DBResult result = modb.Save(head);
if (result.Success) {
var cdc = new CommonDataContext();
var savehead = cdc.tMsWlDriver.FirstOrDefault(x => x.GID == head.GID);
if (string.IsNullOrWhiteSpace(savehead.PassWord)|| savehead.PassWord=="123456") {
if (!string.IsNullOrEmpty(savehead.JzNo) && savehead.JzNo.Length > 6)
{
savehead.PassWord= savehead.JzNo.Substring(savehead.JzNo.Length - 6,6);
}
else {
savehead.PassWord = "123456";
}
cdc.tMsWlDriver.AddOrUpdate(savehead);
}
}
var jsonRespose = new JsonResponse
{
Success = result.Success,

@ -383,8 +383,24 @@ namespace DSWeb.Areas.TruckMng.Controllers
var BSNO = headData.gId;
//处理不能为空的值
try {
if (string.IsNullOrWhiteSpace(headData.AroundTon))
{
headData.AroundTon = "0";
}
headData.AroundTon = (Convert.ToDecimal(headData.AroundTon)).ToString();
} catch (Exception ex)
{
//errorstr = ex.Message; isPost = false;
headData.AroundTon = "0";
}
if (isPost)
{
var modb = new ModelObjectDB();
DBResult result = modb.Save(headData);
if (result.Success == true) {

@ -1005,6 +1005,18 @@ Ext.extend(DsTruck.MsPcWFSDEdit, Ext.Panel, {
flex: 3,
name: 'Remark'
},this.panelBodyCtn]
}, {
xtype: 'container',hidden:true,
layout: 'hbox',
defaultType: 'textarea',
items: [
{
fieldLabel: 'RealMil',
xtype: 'numberfield',
name: 'RealMil'
}
]
}
]//end items(fieldset 1)
}//end fieldset 1

Loading…
Cancel
Save