DS7_JinGang
hanxuntao 2 years ago
parent e058d0321a
commit 76246667c1

@ -9,6 +9,7 @@
</startup> </startup>
<appSettings> <appSettings>
<add key="COMPANYID" value="6bb062a3-f1dc-40a0-912b-e51e63cb7930" /> <add key="COMPANYID" value="6bb062a3-f1dc-40a0-912b-e51e63cb7930" />
<add key="DONGSHENGVER" value="7" />
<add key="FilePath" value="D:\HXT" /> <add key="FilePath" value="D:\HXT" />
<add key="FileType" value="提单COPY" /> <add key="FileType" value="提单COPY" />
<!-- rabbitmq地址 --> <!-- rabbitmq地址 -->

@ -27,6 +27,7 @@ namespace D7MqClient
private static string COMPANYID = ConfigurationManager.AppSettings["COMPANYID"]; private static string COMPANYID = ConfigurationManager.AppSettings["COMPANYID"];
private static string MQURL = ConfigurationManager.AppSettings["DJYMQURL"]; private static string MQURL = ConfigurationManager.AppSettings["DJYMQURL"];
private static string connStr = ConfigurationManager.AppSettings["ConnectionString"]; private static string connStr = ConfigurationManager.AppSettings["ConnectionString"];
private static string DSVER = ConfigurationManager.AppSettings["DONGSHENGVER"];
private const string ExchangeName = "booking"; private const string ExchangeName = "booking";
@ -56,24 +57,55 @@ namespace D7MqClient
try try
{ {
//回写数据 //回写数据
var feeback = JsonConvert.DeserializeAnonymousType(strBody, new { FeedbackType = string.Empty, FeedbackData = new { MBLNO = string.Empty, BSNO = string.Empty, IRCode = string.Empty } }); var feeback = JsonConvert.DeserializeAnonymousType(strBody, new { FeedbackType = string.Empty, FeedbackData = new { MBLNO = string.Empty, BSNO = string.Empty, IRCode = string.Empty, CSRCode = string.Empty, FF = string.Empty } });
using (SqlConnection dbcon = new SqlConnection(connStr)) using (SqlConnection dbcon = new SqlConnection(connStr))
{ {
dbcon.Open(); dbcon.Open();
if (feeback.FeedbackType == "IRCode") { if (feeback.FeedbackType == "IRCode"|| feeback.FeedbackType == "CSRCode") {
var IRCODE = "";
if (!string.IsNullOrEmpty(feeback.FeedbackData.IRCode)) IRCODE = feeback.FeedbackData.IRCode;
if (!string.IsNullOrEmpty(feeback.FeedbackData.CSRCode)) IRCODE = feeback.FeedbackData.CSRCode;
if (DSVER == "7")
{
var CUSTNO = "";
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO)) CUSTNO = feeback.FeedbackData.BSNO;
if (!string.IsNullOrEmpty(feeback.FeedbackData.FF)) CUSTNO = feeback.FeedbackData.FF;
var strSql = new StringBuilder();
strSql.Append("update op_seae set IRCODE='" + IRCODE + "' where CUSTNO='" + CUSTNO + "' AND ISNULL(IRCODE,'')=''");
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
cmd.ExecuteNonQuery();
}
else
{
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO))
{
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO) && !string.IsNullOrEmpty(feeback.FeedbackData.IRCode)) {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("update t_op_seae set IRCODE='"+ feeback.FeedbackData.IRCode + "' where 业务编号='" + feeback.FeedbackData.BSNO + "'"); strSql.Append("update t_op_seae set IRCODE='" + IRCODE + "' where 业务编号='" + feeback.FeedbackData.BSNO + "'");
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon); SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
} }
} }
}
else if (feeback.FeedbackType == "MBLNO") else if (feeback.FeedbackType == "MBLNO")
{ {
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO) && !string.IsNullOrEmpty(feeback.FeedbackData.MBLNO)) if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO) && !string.IsNullOrEmpty(feeback.FeedbackData.MBLNO))
{
if (DSVER == "7")
{
var CUSTNO = "";
if (!string.IsNullOrEmpty(feeback.FeedbackData.BSNO)) CUSTNO = feeback.FeedbackData.BSNO;
if (!string.IsNullOrEmpty(feeback.FeedbackData.FF)) CUSTNO = feeback.FeedbackData.FF;
var strSql = new StringBuilder();
strSql.Append("update op_seae set MBLNO='" + feeback.FeedbackData.MBLNO + "' where CUSTNO='" + CUSTNO + "' AND ISNULL(MBLNO,'')='' ");
SqlCommand cmd = new SqlCommand(strSql.ToString(), dbcon);
cmd.ExecuteNonQuery();
}
else
{ {
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("update t_op_seae set 主提单号='" + feeback.FeedbackData.MBLNO + "' where 业务编号='" + feeback.FeedbackData.BSNO + "' AND ISNULL(主提单号,'')='' "); strSql.Append("update t_op_seae set 主提单号='" + feeback.FeedbackData.MBLNO + "' where 业务编号='" + feeback.FeedbackData.BSNO + "' AND ISNULL(主提单号,'')='' ");
@ -81,6 +113,7 @@ namespace D7MqClient
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
} }
} }
}
} }

@ -22,8 +22,8 @@ namespace D7MqClient
{ {
logger.Debug("开始运行"); logger.Debug("开始运行");
JFtoSaveFile.DoProcess(); //JFtoSaveFile.DoProcess();
JFtoDcStatus.DoProcess(); //JFtoDcStatus.DoProcess();
JFtoDjyBackNo.DoProcess(); JFtoDjyBackNo.DoProcess();
//var invtoD7 = new InvToD7(); //var invtoD7 = new InvToD7();
//var djytoD7_OPSTATUS = new DJYtoD7_OPSTATUS(); //var djytoD7_OPSTATUS = new DJYtoD7_OPSTATUS();
@ -32,8 +32,8 @@ namespace D7MqClient
protected override void OnStop() protected override void OnStop()
{ {
logger.Debug("停止运行"); logger.Debug("停止运行");
JFtoSaveFile.StopProcess(); //JFtoSaveFile.StopProcess();
JFtoDcStatus.StopProcess(); //JFtoDcStatus.StopProcess();
JFtoDjyBackNo.StopProcess(); JFtoDjyBackNo.StopProcess();
//InvToD7.StopProcess(); //InvToD7.StopProcess();
//DJYtoD7_OPSTATUS.StopProcess(); //DJYtoD7_OPSTATUS.StopProcess();

@ -255,7 +255,7 @@ Ext.extend(DsTruck.Chfee_managementIndex, Ext.Panel, {
fieldLabel: '部门', fieldLabel: '部门',
store: this.storeDEPT, store: this.storeDEPT,
name: 'DEPTID', id: "DEPTID", name: 'DEPTID', id: "DEPTID",
valueField: 'GID', valueField: 'DeptName',
displayField: 'DeptName' displayField: 'DeptName'
}); });

@ -329,7 +329,7 @@ Ext.extend(DsTruck.Chfee_managementIndex, Ext.Panel, {
fieldLabel: '部门', fieldLabel: '部门',
store: this.storeDEPT, store: this.storeDEPT,
name: 'DEPTID', id: "DEPTID", name: 'DEPTID', id: "DEPTID",
valueField: 'GID', valueField: 'DeptName',
displayField: 'DeptName' displayField: 'DeptName'
}); });

@ -336,7 +336,7 @@ Ext.extend(DsTruck.Chfee_managementIndex, Ext.Panel, {
fieldLabel: '部门', fieldLabel: '部门',
store: this.storeDEPT, store: this.storeDEPT,
name: 'DEPTID', id: "DEPTID", name: 'DEPTID', id: "DEPTID",
valueField: 'GID', valueField: 'DeptName',
displayField: 'DeptName' displayField: 'DeptName'
}); });

@ -18,6 +18,7 @@ using DSWeb.MvcShipping.DAL.MsSysBillNoSet;
using DSWeb.TruckMng.DAL.MsCustTruckFeeTemplate; using DSWeb.TruckMng.DAL.MsCustTruckFeeTemplate;
using DSWeb.MvcShipping.DAL.MsCodeOpMustField; using DSWeb.MvcShipping.DAL.MsCodeOpMustField;
using DSWeb.MvcShipping.Models.MsInfoClient; using DSWeb.MvcShipping.Models.MsInfoClient;
using DSWeb.Areas.SysMng.DAL.SysUser;
namespace DSWeb.TruckMng.DAL.MsOpTruckBulkDAL namespace DSWeb.TruckMng.DAL.MsOpTruckBulkDAL
{ {
@ -691,7 +692,7 @@ namespace DSWeb.TruckMng.DAL.MsOpTruckBulkDAL
public static DBResult CreateCtnFeeBl(MsOpTruckBulk headData, List<MsOpTruckBulkDetail> bodyList, string userid) public static DBResult CreateCtnFeeBl(MsOpTruckBulk headData, List<MsOpTruckBulkDetail> bodyList, string userid)
{ {
var result = new DBResult(); var result = new DBResult();
var OP= SysUserDAL.GetData(" SHOWNAME='" + headData.OP + "'");
Database db = DatabaseFactory.CreateDatabase(); Database db = DatabaseFactory.CreateDatabase();
using (var conn = db.CreateConnection()) using (var conn = db.CreateConnection())
{ {
@ -788,7 +789,7 @@ namespace DSWeb.TruckMng.DAL.MsOpTruckBulkDAL
db.AddInParameter(cmdInsertFee, "@REASON", DbType.String, ""); db.AddInParameter(cmdInsertFee, "@REASON", DbType.String, "");
db.AddInParameter(cmdInsertFee, "@REMARK", DbType.String, ""); db.AddInParameter(cmdInsertFee, "@REMARK", DbType.String, "");
db.AddInParameter(cmdInsertFee, "@COMMISSIONRATE", DbType.Decimal, 0); db.AddInParameter(cmdInsertFee, "@COMMISSIONRATE", DbType.Decimal, 0);
db.AddInParameter(cmdInsertFee, "@ENTEROPERATOR", DbType.String, userid); db.AddInParameter(cmdInsertFee, "@ENTEROPERATOR", DbType.String, OP.GID);
db.AddInParameter(cmdInsertFee, "@ENTERDATE", DbType.String, DateTime.Now.ToString()); db.AddInParameter(cmdInsertFee, "@ENTERDATE", DbType.String, DateTime.Now.ToString());
db.AddInParameter(cmdInsertFee, "@ISOPEN", DbType.Boolean, false); db.AddInParameter(cmdInsertFee, "@ISOPEN", DbType.Boolean, false);
db.AddInParameter(cmdInsertFee, "@ISADVANCEDPAY", DbType.Boolean, false); db.AddInParameter(cmdInsertFee, "@ISADVANCEDPAY", DbType.Boolean, false);

Loading…
Cancel
Save