DS7_JinGang
hanxuntao 1 year ago
commit 81e0bfe49b

@ -3228,4 +3228,37 @@ namespace DSWeb.Common.DB
public string CHANGETYPE { get; set; } public string CHANGETYPE { get; set; }
public decimal? STORAGEUNITCOUNT { get; set; } public decimal? STORAGEUNITCOUNT { get; set; }
} }
[Table("tMsWlDriver")]
public partial class tMsWlDriver_md
{
[Key]
public string DrvCode { get; set; }
public string OrgCode { get; set; }
public string DrvName { get; set; }
public string DrvClass { get; set; }
public string JzNo { get; set; }
public string LzDate { get; set; }
public decimal? LimitDays { get; set; }
public decimal? DriverYears { get; set; }
public string TruckType { get; set; }
public string Licence { get; set; }
public string YearCheckDate { get; set; }
public string NextCheckDate { get; set; }
public decimal? NoticeDays { get; set; }
public string Mobile { get; set; }
public string OffTel { get; set; }
public string Remark { get; set; }
public string CertificateNo { get; set; }
public string Addr { get; set; }
public string GID { get; set; }
public decimal? BASESALARY { get; set; }
public string PassWord { get; set; }
public string OPENID { get; set; }
public bool? ISSTOP { get; set; }
}
} }

@ -109,6 +109,13 @@ namespace DSWeb.Common.DB
public DbSet<OP_WMS_BASE_md> OP_WMS_BASE { get; set; } public DbSet<OP_WMS_BASE_md> OP_WMS_BASE { get; set; }
public DbSet<VW_OP_WMS_CHANGE_BILL_md> VW_OP_WMS_CHANGE_BILL { get; set; } public DbSet<VW_OP_WMS_CHANGE_BILL_md> VW_OP_WMS_CHANGE_BILL { get; set; }
public DbSet<VW_WMSIOSUM_BYCUSTOMNO_md> VW_WMSIOSUM_BYCUSTOMNO { get; set; } public DbSet<VW_WMSIOSUM_BYCUSTOMNO_md> VW_WMSIOSUM_BYCUSTOMNO { get; set; }
/// <summary>
/// 司机列表
/// </summary>
public DbSet<tMsWlDriver_md> tMsWlDriver { get; set; }
} }

@ -162,17 +162,17 @@ namespace DSWeb.Common.DB
public int? { get; set; } public int? { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 委托编号 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 发货人 { get; set; }
public string { get; set; } //public string 收货人 { get; set; }
public string { get; set; } //public string 通知人 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 代理内容 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
@ -182,15 +182,15 @@ namespace DSWeb.Common.DB
/// 实际开船日期 /// 实际开船日期
/// </summary> /// </summary>
public DateTime? { get; set; } public DateTime? { get; set; }
public string { get; set; } //public string 起运港 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public DateTime? { get; set; } //public DateTime? 二程开船日期 { get; set; }
public string { get; set; } //public string 二程港口 { get; set; }
public string { get; set; } //public string 二程船名 { get; set; }
public string { get; set; } //public string 二程航次 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
@ -225,7 +225,7 @@ namespace DSWeb.Common.DB
public int? 8 { get; set; } public int? 8 { get; set; }
public int? 9 { get; set; } public int? 9 { get; set; }
public int? 10 { get; set; } public int? 10 { get; set; }
public int? { get; set; } //public int? 其他箱型 { get; set; }
public int? TEU { get; set; } public int? TEU { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
@ -236,184 +236,187 @@ namespace DSWeb.Common.DB
public string 线 { get; set; } public string 线 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 备注 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 分单列表 { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 报关服务 { get; set; }
public bool? { get; set; } //public bool? 报验服务 { get; set; }
public bool? { get; set; } //public bool? 熏蒸服务 { get; set; }
public bool? { get; set; } //public bool? 仓储服务 { get; set; }
public bool? { get; set; } //public bool? 拖车服务 { get; set; }
public DateTime? { get; set; } //public DateTime? 报关日期 { get; set; }
public string { get; set; } //public string 报关员 { get; set; }
public string { get; set; } //public string 报关单号 { get; set; }
public string { get; set; } //public string 核销单号 { get; set; }
public string { get; set; } //public string 手册号 { get; set; }
public string { get; set; } //public string 经营单位 { get; set; }
public string { get; set; } //public string 单位代码 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 报关备注 { get; set; }
public bool? 退 { get; set; } //public bool? 是否退税 { get; set; }
public DateTime? 退 { get; set; } //public DateTime? 退税日期 { get; set; }
public bool? { get; set; } //public bool? 是否通关 { get; set; }
public DateTime? { get; set; } //public DateTime? 通关日期 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 温度单位 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 发票号 { get; set; }
public string { get; set; } //public string 商品编码 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public int? { get; set; } //public int? 工作量 { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 核对提单 { get; set; }
public bool? { get; set; } //public bool? 柜检 { get; set; }
public bool? { get; set; } //public bool? 转关 { get; set; }
public bool? { get; set; } //public bool? 转船 { get; set; }
public string { get; set; } //public string 英文船期 { get; set; }
public bool? { get; set; } //public bool? 是否签单 { get; set; }
public DateTime? { get; set; } //public DateTime? 签回日期 { get; set; }
public bool? { get; set; } //public bool? 请求派车 { get; set; }
public bool? { get; set; } //public bool? 是否派车 { get; set; }
public DateTime? { get; set; } public DateTime? { get; set; }
public DateTime? { get; set; } //public DateTime? 三程开船日期 { get; set; }
public string { get; set; } //public string 三程港口 { get; set; }
public string { get; set; } //public string 三程船名 { get; set; }
public string { get; set; } //public string 三程航次 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 是否解锁 { get; set; }
public string { get; set; } //public string 解锁人 { get; set; }
public DateTime? { get; set; } //public DateTime? 解锁日期 { get; set; }
public decimal? { get; set; } //public decimal? 应收陆运 { get; set; }
public decimal? { get; set; } //public decimal? 应付陆运 { get; set; }
public decimal? { get; set; } //public decimal? 陆运利润 { get; set; }
public DateTime? { get; set; } //public DateTime? 二程取货日期 { get; set; }
public DateTime? { get; set; } //public DateTime? 二程到港日期 { get; set; }
public DateTime? { get; set; } //public DateTime? 三程取货日期 { get; set; }
public DateTime? { get; set; } //public DateTime? 三程到港日期 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 财务 { get; set; }
public string { get; set; } //public string 财务凭证 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 运抵国 { get; set; }
public string { get; set; } //public string 境内货源地 { get; set; }
public string { get; set; } //public string 批准文号 { get; set; }
public string { get; set; } //public string 成交方式 { get; set; }
public decimal? { get; set; } //public decimal? 净重 { get; set; }
public string { get; set; } //public string 单价 { get; set; }
/// <summary> /// <summary>
/// 第一层包装皮重 /// 第一层包装皮重
/// </summary> /// </summary>
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 商品名称 { get; set; }
public string { get; set; } //public string 数量单位 { get; set; }
public DateTime? { get; set; } //public DateTime? 接单日期 { get; set; }
public DateTime? { get; set; } //public DateTime? 报检日期 { get; set; }
public string { get; set; } //public string 报检单号 { get; set; }
public DateTime? { get; set; } //public DateTime? 验货时间 { get; set; }
public DateTime? { get; set; } //public DateTime? 实验时间 { get; set; }
public DateTime? { get; set; } //public DateTime? 熏蒸时间 { get; set; }
public DateTime? { get; set; } //public DateTime? 出证时间 { get; set; }
public string { get; set; } //public string 实验内容 { get; set; }
public string { get; set; } //public string 报关操作 { get; set; }
public string { get; set; } //public string 报检操作 { get; set; }
public string { get; set; } //public string 币制 { get; set; }
public string { get; set; } //public string 单证信息 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 是否寄单 { get; set; }
public DateTime? { get; set; } //public DateTime? 寄单日期 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } //public string 包装代码 { get; set; }
public string { get; set; } //public string 发货人编号 { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } public bool? { get; set; }
public string { get; set; } public string { get; set; }
public string 线 { get; set; } public string 线 { get; set; }
public string 线 { get; set; } public string 线 { get; set; }
public string { get; set; } //public string 分票编号 { get; set; }
public string { get; set; } //public string 拼箱类型 { get; set; }
public string { get; set; } //public string 特殊要求 { get; set; }
public bool? { get; set; } //public bool? 是否放单 { get; set; }
public bool? { get; set; } //public bool? 已出号 { get; set; }
public bool? { get; set; } //public bool? 已订舱 { get; set; }
public bool? { get; set; } //public bool? 已放箱 { get; set; }
public bool? { get; set; } //public bool? 已背箱 { get; set; }
public string EDI { get; set; } public string EDI { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 是否商检换证 { get; set; }
public DateTime? { get; set; } //public DateTime? 换证日期 { get; set; }
public bool? { get; set; } //public bool? 是否客户入货 { get; set; }
public DateTime? { get; set; } //public DateTime? 客户入货日期 { get; set; }
public bool? { get; set; } //public bool? 是否出通关单 { get; set; }
public DateTime? { get; set; } //public DateTime? 商检通关日期 { get; set; }
public bool? { get; set; } //public bool? 是否客户派车 { get; set; }
public DateTime? { get; set; } //public DateTime? 客户派车日期 { get; set; }
public bool? { get; set; } //public bool? 是否回货 { get; set; }
public DateTime? { get; set; } //public DateTime? 回货日期 { get; set; }
public string { get; set; } public string { get; set; }
public DateTime? { get; set; } //public DateTime? 到港日期 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public string 使 { get; set; } public string 使 { get; set; }
public string HS { get; set; } public string HS { get; set; }
public string 湿 { get; set; } //public string 湿度 { get; set; }
//public string 方案名称 { get; set; } //public string 方案名称 { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public bool? { get; set; } //public bool? 业务解锁 { get; set; }
public string { get; set; } //public string 业务解锁人 { get; set; }
public DateTime? { get; set; } //public DateTime? 业务解锁日期 { get; set; }
public string { get; set; } //public string 结费类型 { get; set; }
public string { get; set; } //public string 扣单状态 { get; set; }
public DateTime? { get; set; } //public DateTime? 应结日期 { get; set; }
public string { get; set; } public string { get; set; }
//public string 销售订舱说明 { get; set; } //public string 销售订舱说明 { get; set; }
//public string 场站联系人 { get; set; } //public string 场站联系人 { get; set; }
//public DateTime? 截单日期 { get; set; } //public DateTime? 截单日期 { get; set; }
public string { get; set; } //public string 其他相关公司 { get; set; }
public string { get; set; } public string { get; set; }
//public string 放单状态 { get; set; } //public string 放单状态 { get; set; }
public bool? FEE2 { get; set; } //public bool? FEE2 { get; set; }
public bool? { get; set; } public bool? { get; set; }
public bool? { get; set; } public bool? { get; set; }
public string { get; set; } public string { get; set; }
public string { get; set; } public string { get; set; }
public int? { get; set; } //public int? 申请堆存 { get; set; }
public int? { get; set; } //public int? 批准堆存 { get; set; }
public int? 使 { get; set; } //public int? 申请箱使 { get; set; }
public int? 使 { get; set; } //public int? 批准箱使 { get; set; }
public int? { get; set; } //public int? 申请插电 { get; set; }
public int? { get; set; } //public int? 批准插电 { get; set; }
public DateTime? ETA { get; set; } public DateTime? ETA { get; set; }
public DateTime? ATA { get; set; } //public DateTime? ATA { get; set; }
public DateTime? ETD { get; set; } public DateTime? ETD { get; set; }
public DateTime? { get; set; } //public DateTime? 预配日期 { get; set; }
public DateTime? { get; set; } //public DateTime? 海关放行 { get; set; }
public DateTime? { get; set; } //public DateTime? 装载放行 { get; set; }
public DateTime? { get; set; } //public DateTime? 外理放行 { get; set; }
public DateTime? { get; set; } //public DateTime? 码头放行 { get; set; }
public DateTime? { get; set; } //public DateTime? 海关查验 { get; set; }
public string { get; set; } //public string 扣单原因 { get; set; }
public string { get; set; } //public string 扣放单操作人 { get; set; }
public DateTime? { get; set; } //public DateTime? 扣放单操作时间 { get; set; }
public string { get; set; } //public string 放单原因 { get; set; }
public bool? AMS { get; set; } //public bool? 是否AMS录入 { get; set; }
public DateTime? AMS { get; set; } //public DateTime? AMS录入日期 { get; set; }
//public string 是否1Y { get; set; } //public string 是否1Y { get; set; }
//public string @1Y日期 {get;set;} //public string @1Y日期 {get;set;}
//public string 是否3Z { get; set; } //public string 是否3Z { get; set; }
@ -422,10 +425,11 @@ namespace DSWeb.Common.DB
public bool? { get; set; } public bool? { get; set; }
public bool? { get; set; } public bool? { get; set; }
public string { get; set; } public string { get; set; }
public DateTime? { get; set; }
public bool? { get; set; } //public DateTime? 费用封帐日期 { get; set; }
public string { get; set; } //public bool? 是否费用解封 { get; set; }
public DateTime? { get; set; } //public string 费用解封人 { get; set; }
//public DateTime? 费用解封日期 { get; set; }
public long? DJYID { get; set; } public long? DJYID { get; set; }
public string DJYVERSION { get; set; } public string DJYVERSION { get; set; }

@ -1883,6 +1883,7 @@ SELECT @ps_BillNo as N'billno'";
if (count > 3) { if (count > 3) {
logger.Debug($"重试完结"); logger.Debug($"重试完结");
return;
} }
var head = JsonConvert.DeserializeObject<DingCangHead>(itemstr); var head = JsonConvert.DeserializeObject<DingCangHead>(itemstr);
@ -1931,6 +1932,12 @@ SELECT @ps_BillNo as N'billno'";
//newhead.业务状态 = updrec.业务状态; //newhead.业务状态 = updrec.业务状态;
newhead. = updrec.; newhead. = updrec.;
//20230726 会计期间改为:如果有实际开船日期 ATD/预抵日期 则按实际开船日期计算,如果没有,则按当前日期计算
//如果费用封账
if (updrec. == "费用封帐") {
newhead. = updrec.;
}
newhead. = string.IsNullOrWhiteSpace(head.mblno) ? updrec. : head.mblno; newhead. = string.IsNullOrWhiteSpace(head.mblno) ? updrec. : head.mblno;
newhead. = updrec.; newhead. = updrec.;
newhead. = updrec.; newhead. = updrec.;
@ -2123,7 +2130,7 @@ SELECT @ps_BillNo as N'billno'";
AfterSave(newhead.); AfterSave(newhead.);
//DS6Data.SaveChanges(); //DS6Data.SaveChanges();
logger.Debug($"完成处理(更新){newhead.主提单号};{newhead.DJYID}");
} }
else else
{ {
@ -2150,7 +2157,10 @@ SELECT @ps_BillNo as N'billno'";
logger.Debug($"开始处理(新增){newhead.主提单号};{newhead.DJYID}"); logger.Debug($"开始处理(新增){newhead.主提单号};{newhead.DJYID}");
//执行中对象2.执行列表数(); //执行中对象2.执行列表数();
var Code = "SE" + ((DateTime)(newhead.)).Year.ToString() + ((DateTime)(newhead.)).Month.ToString().PadLeft(2, '0'); //var 业务编号Code = "SE" + ((DateTime)(newhead.会计期间)).Year.ToString() + ((DateTime)(newhead.会计期间)).Month.ToString().PadLeft(2, '0');
DateTime now = DateTime.Now;
DateTime today2 = new DateTime(now.Year, now.Month, now.Day);
var Code = "SE" + today2.Year.ToString() + today2.Month.ToString().PadLeft(2, '0');
newhead. = Helper.Instance. DS6GetBSNO(Code); newhead. = Helper.Instance. DS6GetBSNO(Code);
@ -2250,6 +2260,8 @@ SELECT @ps_BillNo as N'billno'";
DS6Data.SaveChanges(); DS6Data.SaveChanges();
//logger.Debug($"新增完成:{newhead.主提单号};{newhead.DJYID}"); //logger.Debug($"新增完成:{newhead.主提单号};{newhead.DJYID}");
AfterSave(newhead.); AfterSave(newhead.);
logger.Debug($"完成处理(新增){newhead.主提单号};{newhead.DJYID}");
} }
} }
@ -2280,9 +2292,15 @@ SELECT @ps_BillNo as N'billno'";
int count = context.Database.ExecuteSqlCommand("exec p_exec_accmonth @bsno", bsno); int count = context.Database.ExecuteSqlCommand("exec p_exec_accmonth @bsno", bsno);
context.SaveChanges(); context.SaveChanges();
count = context.Database.ExecuteSqlCommand($" update t_op_seae set 应结日期=ISNULL(dbo.GetCustStlDay(预抵日期,委托单位,揽货人),预抵日期) where 编号='{编号}' and 预抵日期 is not null ");
context.SaveChanges();
logger.Debug($"AfterSave:{编号};{count}"); logger.Debug($"AfterSave:{编号};{count}");
} }
} }
catch (Exception e) { catch (Exception e) {
var str=JsonConvert.SerializeObject(e); var str=JsonConvert.SerializeObject(e);
@ -3274,7 +3292,6 @@ SELECT @ps_BillNo as N'billno'";
//{ //{
// if(!string.IsNullOrWhiteSpace(goodscode)) { // if(!string.IsNullOrWhiteSpace(goodscode)) {
// var newrec = new t_code_goods_md(); // var newrec = new t_code_goods_md();
// newrec.代码 = SetLength(goodscode, 10); // newrec.代码 = SetLength(goodscode, 10);
// newrec.货物名称 = SetLength(goodsname, 100); // newrec.货物名称 = SetLength(goodsname, 100);
// 货物名称 = newrec.货物名称; // 货物名称 = newrec.货物名称;
@ -3323,16 +3340,20 @@ SELECT @ps_BillNo as N'billno'";
DateTime today2 = new DateTime(now.Year, now.Month, now.Day); DateTime today2 = new DateTime(now.Year, now.Month, now.Day);
var = "整箱"; var = "整箱";
if (.IndexOf("拼箱") >= 0) { if (!string.IsNullOrWhiteSpace())
{
if (.IndexOf("拼箱") >= 0)
{
= "拼箱"; = "拼箱";
} }
}
var result = new t_op_seae_md var result = new t_op_seae_md
{ {
= bsno, = bsno,
= string.IsNullOrWhiteSpace( bsstatusname)? "接受委托": bsstatusname, = string.IsNullOrWhiteSpace( bsstatusname)? "接受委托": bsstatusname,
= "录入状态", = "录入状态",
= etd==null? today2: etd, = atd ,
= , = ,
= weeks, = weeks,
= bsdate, //bsdate<new DateTime(2000,1,1)|| bsdate > new DateTime(2070, 1, 1) ? DateTime.Now: bsdate, = bsdate, //bsdate<new DateTime(2000,1,1)|| bsdate > new DateTime(2070, 1, 1) ? DateTime.Now: bsdate,

@ -1115,7 +1115,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
public string appKey { get; set; } = "23646802"; public string appKey { get; set; } = "23646802";
public string appSecret { get; set; } = "CBFAFF5B0AED4465"; public string appSecret { get; set; } = "CBFAFF5B0AED4465";
public string extensionNumber { get; set; } = "";
/// <summary> /// <summary>
/// 使用沙盒地址还是实际工作地址 /// 使用沙盒地址还是实际工作地址
/// </summary> /// </summary>
@ -1542,6 +1542,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
{ {
result.appKey = INVITERFACE.NUONUOAPPKEY; result.appKey = INVITERFACE.NUONUOAPPKEY;
result.appSecret = INVITERFACE.NUONUOAPPSECRET; result.appSecret = INVITERFACE.NUONUOAPPSECRET;
result.extensionNumber = INVITERFACE.extensionNumber;
} }
var dic = new Dictionary<string, string> var dic = new Dictionary<string, string>
@ -2074,6 +2075,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
result.appSecret = _token.appSecret; result.appSecret = _token.appSecret;
result.accessToken = _token.accessToken; result.accessToken = _token.accessToken;
result.taxnum = taxnum; result.taxnum = taxnum;
result.extensionNumber = _token.extensionNumber;
return result; return result;
} }
@ -2261,6 +2263,8 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
var _head = new NuoNuoQuanDianInvoice(head, detailList); var _head = new NuoNuoQuanDianInvoice(head, detailList);
_head.order.extensionNumber = extensionNumber;
var json = DSWeb.TruckMng.Helper.JsonConvert.Serialize(_head); var json = DSWeb.TruckMng.Helper.JsonConvert.Serialize(_head);
var _r = ""; var _r = "";
@ -2392,7 +2396,7 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
} }
/// <summary> /// <summary>
/// 诺诺全电 红字确认单申请 /// 诺诺全电冲红 红字确认单申请 发出红字确认单
/// </summary> /// </summary>
/// <param name="head"></param> /// <param name="head"></param>
/// <param name="detailList"></param> /// <param name="detailList"></param>
@ -2406,6 +2410,8 @@ namespace DSWeb.Areas.Account.Models.Chfee_Invoice_HangXin
var _head = new NuoNuoQuanDian_RedConfirm(head); var _head = new NuoNuoQuanDian_RedConfirm(head);
_head.extensionNumber = extensionNumber;
var json = DSWeb.TruckMng.Helper.JsonConvert.Serialize(_head); var json = DSWeb.TruckMng.Helper.JsonConvert.Serialize(_head);
string method = "nuonuo.OpeMplatform.saveInvoiceRedConfirm"; string method = "nuonuo.OpeMplatform.saveInvoiceRedConfirm";

@ -14,7 +14,7 @@ using DSWeb.Areas.Dispatch.DB;
using DSWeb.Areas.Dispatch.DB_Wx; using DSWeb.Areas.Dispatch.DB_Wx;
using DSWeb.Areas.CommMng.DAL; using DSWeb.Areas.CommMng.DAL;
using HcUtility.Comm; using HcUtility.Comm;
using System.Data.Entity.Migrations;
namespace DSWeb.Areas.Dispatch.Controllers namespace DSWeb.Areas.Dispatch.Controllers
{ {
@ -31,6 +31,8 @@ namespace DSWeb.Areas.Dispatch.Controllers
public string AuthCode { get; set; } public string AuthCode { get; set; }
} }
//微信小程序专用接口控制器 //微信小程序专用接口控制器
public class WxAppController : Controller public class WxAppController : Controller
{ {
@ -1404,5 +1406,122 @@ namespace DSWeb.Areas.Dispatch.Controllers
} }
*/ */
#region 方合派车小程序
//三个功能
//1依据司机表验证登陆
//2 司机查看业务 小程序需要的字段名对应东胜派车管理里的字段
//提单号、船名航次、提箱场站、装货日期(到时分秒)、派车申请人、装货工厂、装货地址、箱型箱量、件数、重量、体积、货物标识、品名、危品登记、危品编号
//、集装箱明细(包含箱型、箱号、封号)司机注意事项、放在附件管理里的司机携带的提箱单和罐证等文件(需要司机可以下载)
//3 录入费用列表 提交后向待办事务表中添加
// 如重复添加则更新
public class DriverLoginInfo : LoginInfo
{
public string TEL { get; set; }
}
[HttpPost]
public ActionResult DriverFirstLogin(DriverLoginInfo logininfo)
{
var cdc = new DSWeb.Common.DB.CommonDataContext();
try
{
//1首先根据手机号和密码 判断是否存在 如不存在 返回否 结束
var DriverList = cdc.tMsWlDriver.Where(x => x.Mobile== logininfo.TEL && x.PassWord== logininfo.password ).ToList();
if (DriverList == null || DriverList.Count == 0) {
return Json(new { ErrorCode = 500, Message = "电话或密码错误" }, JsonRequestBehavior.AllowGet);
}
var Driver = DriverList[0];
if (Driver.ISSTOP==null || Driver.ISSTOP==true) {
return Json(new { ErrorCode = 500, Message = "该账户还未启用" }, JsonRequestBehavior.AllowGet);
}
var obj = getOpenId(logininfo.AuthCode);
if (obj.errcode == 0)
{
var userWxList = cdc.tMsWlDriver.Where(x => x.OPENID == obj.openid && x.DrvCode!= Driver.DrvCode).ToList();
if (userWxList.Count > 0)
{
//将所有使用这个openid的其他司机数据的openid置为
foreach (var item in userWxList)
{
item.OPENID = "";
cdc.tMsWlDriver.AddOrUpdate(item);
}
}
Driver.OPENID = obj.openid;
cdc.tMsWlDriver.AddOrUpdate(Driver);
cdc.SaveChanges();
BasicDataRefDAL.SaveLog("", obj.openid, "wxapp", "登录3");
return Json(new
{
ErrorCode = 0,
Message = "获取成功",
BaseInfo = new { Driver.DrvName, Driver.Mobile, Driver.OPENID }
},
JsonRequestBehavior.AllowGet);
}
}
catch (Exception e)
{
BasicDataRefDAL.SaveLog("", e.Message, "wxapp", "登陆错误");
//log.Debug("wxapp登陆错误" + e.Message);
}
//BasicDataRefDAL.SaveLog("", obj.openid, "wxapp", "登录f");
return Json(new { ErrorCode = 500, Message = "发生错误" }, JsonRequestBehavior.AllowGet);
}
[HttpGet]
public ActionResult GetDriverInfo(string code)
{
try
{
var obj = getOpenId(code);
var cdc = new Common.DB.CommonDataContext();
var Driver = cdc.tMsWlDriver.FirstOrDefault(x => x.OPENID == obj.openid && (x.ISSTOP==null || x.ISSTOP == false));
if (Driver != null)
{
return Json(new
{
ErrorCode = 0,
Message = "获取成功",
BaseInfo = new { Driver.DrvName, Driver.Mobile, Driver.OPENID }
},
JsonRequestBehavior.AllowGet);
}
else
{
//BasicDataRefDAL.SaveLog("", "", "wxapp", "获取用户信息2");
return Json(new { ErrorCode = -1, Message = "用户不存在" }, JsonRequestBehavior.AllowGet);
}
//BasicDataRefDAL.SaveLog("", "", "wxapp", "获取用户信息3");
return Json(new { ErrorCode = 500, Message = "发生错误" }, JsonRequestBehavior.AllowGet);
}
catch (Exception e)
{
//log.Debug("获取信息错误" + e.Message);
//BasicDataRefDAL.SaveLog("错误", e.Message, "wxapp", "获取用户信息");
return Json(new { ErrorCode = 500, Message = e.Message }, JsonRequestBehavior.AllowGet);
}
}
#endregion
} }
} }

@ -1,4 +1,5 @@
using DSWeb.Areas.MvcShipping.DB; using DSWeb.Areas.MvcShipping.DB;
using DSWeb.Areas.TruckMng.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data.Entity; using System.Data.Entity;
@ -63,6 +64,7 @@ namespace DSWeb.Areas.Dispatch.DB
public DbSet<DB_Wx.VW_OP_YARD_CTNMNG_STOREAREA_CANUSE> VW_OP_YARD_CTNMNG_STOREAREA_CANUSE { get; set; } public DbSet<DB_Wx.VW_OP_YARD_CTNMNG_STOREAREA_CANUSE> VW_OP_YARD_CTNMNG_STOREAREA_CANUSE { get; set; }
public DbSet<DB_Wx.VW_OP_YARD_CTNMNG_HUJINGWXHeadList> VW_OP_YARD_CTNMNG_HUJINGWXHeadList { get; set; } public DbSet<DB_Wx.VW_OP_YARD_CTNMNG_HUJINGWXHeadList> VW_OP_YARD_CTNMNG_HUJINGWXHeadList { get; set; }
} }
} }

@ -6731,7 +6731,6 @@ namespace DSWeb.MvcShipping.Controllers
#endregion #endregion
#region E-FREIGHT EDI导出 #region E-FREIGHT EDI导出
public ContentResult CreateEFEDIList(string bsnos, string mblno, string filetype, string filerole) public ContentResult CreateEFEDIList(string bsnos, string mblno, string filetype, string filerole)
{ {

@ -19,7 +19,7 @@ namespace DSWeb.MvcShipping.DAL.MsSysInvInterFaceSet
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("SELECT GID,INVOICELINE,INVITERFACE,[CREATEUSER]"); strSql.Append("SELECT GID,INVOICELINE,INVITERFACE,[CREATEUSER]");
strSql.Append(",[CREATETIME],[MODIFIEDUSER],[MODIFIEDTIME],[COMPANYID],NUONUOAPPKEY,NUONUOAPPSECRET"); strSql.Append(",[CREATETIME],[MODIFIEDUSER],[MODIFIEDTIME],[COMPANYID],NUONUOAPPKEY,NUONUOAPPSECRET,extensionNumber");
strSql.Append(",(select ShowName from [user] where GID=sys_inv_interfaceset.CREATEUSER) as CREATEUSERREF"); strSql.Append(",(select ShowName from [user] where GID=sys_inv_interfaceset.CREATEUSER) as CREATEUSERREF");
strSql.Append(",CORPID,(select Name from [company] where GID=sys_inv_interfaceset.CORPID) as COMPANYNAME"); strSql.Append(",CORPID,(select Name from [company] where GID=sys_inv_interfaceset.CORPID) as COMPANYNAME");
strSql.Append(" from sys_inv_interfaceset where 1=1 "); strSql.Append(" from sys_inv_interfaceset where 1=1 ");
@ -83,6 +83,8 @@ namespace DSWeb.MvcShipping.DAL.MsSysInvInterFaceSet
data.NUONUOAPPKEY = Convert.ToString(reader["NUONUOAPPKEY"]); data.NUONUOAPPKEY = Convert.ToString(reader["NUONUOAPPKEY"]);
data.NUONUOAPPSECRET = Convert.ToString(reader["NUONUOAPPSECRET"]); data.NUONUOAPPSECRET = Convert.ToString(reader["NUONUOAPPSECRET"]);
data.CORPID = Convert.ToString(reader["CORPID"]); data.CORPID = Convert.ToString(reader["CORPID"]);
data.extensionNumber = Convert.ToString(reader["extensionNumber"]);
data.COMPANYNAME = Convert.ToString(reader["COMPANYNAME"]); data.COMPANYNAME = Convert.ToString(reader["COMPANYNAME"]);
#endregion #endregion
headList.Add(data); headList.Add(data);
@ -109,12 +111,12 @@ namespace DSWeb.MvcShipping.DAL.MsSysInvInterFaceSet
var cmdInsert = var cmdInsert =
db.GetSqlStringCommand( db.GetSqlStringCommand(
@"insert into sys_inv_interfaceset (GID,INVOICELINE,INVITERFACE,COMPANYID,CREATEUSER,CREATETIME,NUONUOAPPKEY,NUONUOAPPSECRET,CORPID) @"insert into sys_inv_interfaceset (GID,INVOICELINE,INVITERFACE,COMPANYID,CREATEUSER,CREATETIME,NUONUOAPPKEY,NUONUOAPPSECRET,CORPID,extensionNumber)
values (@GID,@INVOICELINE,@INVITERFACE,@COMPANYID,@CREATEUSER,@CREATETIME,@NUONUOAPPKEY,@NUONUOAPPSECRET,@CORPID) "); values (@GID,@INVOICELINE,@INVITERFACE,@COMPANYID,@CREATEUSER,@CREATETIME,@NUONUOAPPKEY,@NUONUOAPPSECRET,@CORPID,@extensionNumber) ");
var cmdUpdate = var cmdUpdate =
db.GetSqlStringCommand( db.GetSqlStringCommand(
@"update sys_inv_interfaceset set INVOICELINE=@INVOICELINE,INVITERFACE=@INVITERFACE,MODIFIEDUSER=@MODIFIEDUSER,MODIFIEDTIME=@MODIFIEDTIME,NUONUOAPPKEY=@NUONUOAPPKEY,NUONUOAPPSECRET=@NUONUOAPPSECRET,CORPID=@CORPID where GID=@GID "); @"update sys_inv_interfaceset set INVOICELINE=@INVOICELINE,INVITERFACE=@INVITERFACE,MODIFIEDUSER=@MODIFIEDUSER,MODIFIEDTIME=@MODIFIEDTIME,NUONUOAPPKEY=@NUONUOAPPKEY,NUONUOAPPSECRET=@NUONUOAPPSECRET,CORPID=@CORPID,extensionNumber=@extensionNumber where GID=@GID ");
if (bodyList != null) if (bodyList != null)
{ {
@ -135,6 +137,7 @@ namespace DSWeb.MvcShipping.DAL.MsSysInvInterFaceSet
db.AddInParameter(cmdInsert, "@NUONUOAPPKEY", DbType.String, enumValue.NUONUOAPPKEY); db.AddInParameter(cmdInsert, "@NUONUOAPPKEY", DbType.String, enumValue.NUONUOAPPKEY);
db.AddInParameter(cmdInsert, "@NUONUOAPPSECRET", DbType.String, enumValue.NUONUOAPPSECRET); db.AddInParameter(cmdInsert, "@NUONUOAPPSECRET", DbType.String, enumValue.NUONUOAPPSECRET);
db.AddInParameter(cmdInsert, "@CORPID", DbType.String, enumValue.CORPID); db.AddInParameter(cmdInsert, "@CORPID", DbType.String, enumValue.CORPID);
db.AddInParameter(cmdInsert, "@extensionNumber", DbType.String, enumValue.extensionNumber);
db.ExecuteNonQuery(cmdInsert, tran); db.ExecuteNonQuery(cmdInsert, tran);
} }
else else
@ -149,6 +152,7 @@ namespace DSWeb.MvcShipping.DAL.MsSysInvInterFaceSet
db.AddInParameter(cmdUpdate, "@NUONUOAPPKEY", DbType.String, enumValue.NUONUOAPPKEY); db.AddInParameter(cmdUpdate, "@NUONUOAPPKEY", DbType.String, enumValue.NUONUOAPPKEY);
db.AddInParameter(cmdUpdate, "@NUONUOAPPSECRET", DbType.String, enumValue.NUONUOAPPSECRET); db.AddInParameter(cmdUpdate, "@NUONUOAPPSECRET", DbType.String, enumValue.NUONUOAPPSECRET);
db.AddInParameter(cmdUpdate, "@CORPID", DbType.String, enumValue.CORPID); db.AddInParameter(cmdUpdate, "@CORPID", DbType.String, enumValue.CORPID);
db.AddInParameter(cmdUpdate, "@extensionNumber", DbType.String, enumValue.extensionNumber);
db.AddInParameter(cmdUpdate, "@GID", DbType.String, enumValue.GID); db.AddInParameter(cmdUpdate, "@GID", DbType.String, enumValue.GID);
db.ExecuteNonQuery(cmdUpdate, tran); db.ExecuteNonQuery(cmdUpdate, tran);
} }

@ -86,6 +86,9 @@ namespace DSWeb.MvcShipping.Models.SysInvInterFaceSet
[ModelDB] [ModelDB]
public string CORPID { get; set; } public string CORPID { get; set; }
[ModelDB]
public string extensionNumber { get; set; } = "";
public string COMPANYNAME { get; set; } public string COMPANYNAME { get; set; }
#endregion #endregion
} }

@ -176,6 +176,14 @@ Ext.extend(Shipping.MsSysInvInterFaceSetIndex, Ext.Panel, {
}, },
editor: this.comboxSaleCompany editor: this.comboxSaleCompany
}, {
sortable: true,
dataIndex: 'extensionNumber',
header: '分机号',
width: 80,
editor: {
xtype: 'textfield'
}
}, { }, {
sortable: true, sortable: true,
dataIndex: 'CREATEUSERREF', dataIndex: 'CREATEUSERREF',

@ -11,6 +11,7 @@
{ name: 'COMPANYID', type: 'string' }, { name: 'COMPANYID', type: 'string' },
{ name: 'NUONUOAPPKEY', type: 'string' }, { name: 'NUONUOAPPKEY', type: 'string' },
{ name: 'NUONUOAPPSECRET', type: 'string' }, { name: 'NUONUOAPPSECRET', type: 'string' },
{ name: 'extensionNumber', type: 'string' },
{ name: 'CORPID', type: 'string' }, { name: 'CORPID', type: 'string' },
{ name: 'COMPANYNAME', type: 'string' } { name: 'COMPANYNAME', type: 'string' }
] ]

@ -0,0 +1 @@
Subproject commit c1d37a0c18689fdaf4617a899a9f86f8d946fd72
Loading…
Cancel
Save