@ -19,6 +19,8 @@ using DSWeb.Areas.CommMng.Models;
using DSWeb.MvcShipping.DAL.MsOpSeaeDAL ;
using DSWeb.MvcShipping.DAL.MsChFeeDAL ;
using DSWeb.MvcShipping.DAL.ChMonthCloseDAL ;
using DSWeb.MvcShipping.DAL.MsInfoClient ;
using DSWeb.MvcShipping.Models.MsInfoClient ;
namespace DSWeb.Areas.Account.Controllers
{
@ -467,23 +469,81 @@ namespace DSWeb.Areas.Account.Controllers
#region 2018年5月24日14:26:34 李进举 存在为0的费用弹出提示不允许提交
string mblnotemp = "" ;
var SUBMITBILLFEEISNOTZERO = MsSysParamSetDAL . GetData ( "PARAMNAME='SUBMITBILLFEEISNOTZERO'" ) ;
if ( SUBMITBILLFEEISNOTZERO . PARAMVALUE = = "1" )
var DrChfeeList = MsChFeeDAL . GetAllDataList ( "BSNO='" + bsno + "' AND FEETYPE=1 " ) ;
var CrChfeeList = MsChFeeDAL . GetAllDataList ( "BSNO='" + bsno + "' AND FEETYPE=2 AND FEENAME NOT IN (SELECT [NAME] FROM code_fee WHERE ISNULL(ISNOTPR,0)=1) " ) ;
optype = optype . ToLower ( ) ;
var customername = "" ;
var error = "" ;
var psclientlist = new List < ClientPS > ( ) ;
if ( optype = = "op_seae" )
{
var FEEMANGERMUSTBE = MsSysParamSetDAL . GetData ( "PARAMNAME='FEEMANGERMUSTBE'" ) ;
bool checkRst = MsOpSeaeDAL . CheckHasZeroFeeWithBsno ( "'" + bsno + "'" , FEEMANGERMUSTBE . PARAMVALUE , out mblnotemp ) ;
if ( checkRst )
var MsOpSeae = MsOpSeaeDAL . GetData ( "BSNO='" + bsno + "'" ) ;
error = MsOpSeaeDAL . IsSubmitOpSeae ( MsOpSeae ) ;
customername = MsOpSeae . CUSTOMERNAME ;
psclientlist = MsInfoClientDAL . GetPSDataList ( "CUSTNAME IN ('" + MsOpSeae . CUSTOMERNAME + "','" + MsOpSeae . CARRIER + "')" ) ;
}
if ( optype = = "op_seai" )
{
}
if ( optype = = "op_aire" )
{
}
if ( optype = = "op_airi" )
{
}
if ( optype = = "op_apply" )
{
}
if ( optype = = "op_bulk" )
{
}
if ( optype = = "op_other" | | optype = = "tmswlpchead" | | optype = = "opctnbscard" | | optype = = "import_main" )
{
}
if ( optype = = "op_railway" )
{
}
if ( optype . ToLower ( ) = = "wms" | | optype . ToLower ( ) = = "wms_in" | | optype . ToLower ( ) = = "wms_out" )
{
}
var cust = MsInfoClientDAL . GetData ( "SHORTNAME='" + customername + "'" ) ;
var feeCurrlist = MsChFeeDAL . GetFeeDateCurrList ( optype , bsno , Convert . ToString ( Session [ "USERID" ] ) , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
foreach ( var crfee in CrChfeeList )
{
if ( feeCurrlist . Find ( x = > x . CURR = = crfee . Currency & & crfee . ExChangerate ! = x . CRDEFRATE ) ! = null ) {
error = error + "|应付汇率与默认汇率不一致" ;
}
if ( crfee . FeeName = = "PS" | | crfee . FeeName = = "HP/S" ) {
}
}
foreach ( var crfee in DrChfeeList )
{
if ( feeCurrlist . Find ( x = > x . CURR = = crfee . Currency & & crfee . ExChangerate ! = x . CRDEFRATE ) ! = null )
{
DBResult resultC = new DBResult ( ) ;
resultC . Success = false ;
if ( FEEMANGERMUSTBE . PARAMVALUE = = "1" )
resultC . Message = "存在未审核或金额为0的或责任人为空的费用, 无法整票提交" ;
else
resultC . Message = "存在未审核或金额为0的费用, 无法整票提交" ;
var jsonC = JsonConvert . Serialize ( resultC ) ;
return new ContentResult ( ) { Content = jsonC } ;
error = error + "|应收汇率与默认汇率不一致" ;
}
}
if ( ! cust . ISNOTPR ) {
foreach ( var crfee in CrChfeeList ) {
DrChfeeList . Find ( x = > x . FeeName = = crfee . FeeName ) {
}
}
}
var SUBMITFEEBLFEELOCK = MsSysParamSetDAL . GetData ( "PARAMNAME='SUBMITFEEBLFEELOCK'" ) ;
var BLAUDITISSEFT = MsSysParamSetDAL . GetData ( "PARAMNAME='BLAUDITISSEFT'" ) ;
if ( BLAUDITISSEFT . PARAMVALUE = = "1" )
@ -509,339 +569,12 @@ namespace DSWeb.Areas.Account.Controllers
}
# endregion
var ISSALEWORK = CookieConfig . GetCookie_ISSALEWORK ( Request ) ;
#region 2018年2月5日 李进举 鼎世
T_ALL_DA T_ALL_DA = new T_ALL_DA ( ) ;
//费用未更改的时候点击整票提交时触发以下操作(2018年2月28日17:50:58李进举 不加此限制)
//①根据系统参数判断是否进行费用锁定(2018年3月1日15:35:45 李进举 该参数不影响整票状态的操作)
//②发送消息
//③op_seae新增字段BillFeeStatus( 整票状态) 的值设置为1( 整票提交)
try
{
if ( bsno ! = null & & bsno ! = "" )
{
//if (feebody == "" || feebody == null)
if ( true )
{
//更新【BillFeeStatus整票提交】的状态
string blUpSQL0 = "UPDATE " + optype + " SET BillFeeStatus=1 WHERE BSNO='" + bsno + "'" ;
bool bl0 = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL0 ) ;
//根据参数判断是否执行【锁定】操作
var SUBMITFEEBLBSLOCK = MsSysParamSetDAL . GetData ( "PARAMNAME='SUBMITFEEBLBSLOCK'" ) ;
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" | | SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" )
{
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" & & SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" ) {
string blUpSQL = "UPDATE " + optype + " SET BSSTATUS=1,FEESTATUS=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
} else if ( SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" )
{
string blUpSQL = "UPDATE " + optype + " SET BSSTATUS=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
}
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" )
{
string blUpSQL = "UPDATE " + optype + " SET FEESTATUS=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
}
#region 发送消息
DataSet dsFenDan = T_ALL_DA . GetAllSQL ( "select top 1 MBLNO,(select top 1 GID from [user] where SHOWNAME=b.SALE) SALEID,(select top 1 GID from [user] where SHOWNAME=b.CUSTSERVICE) CUSTSERVICEID from v_op_bill b where bsno='" + bsno + "'" ) ;
if ( dsFenDan ! = null )
{
if ( dsFenDan . Tables [ 0 ] . Rows . Count > 0 )
{
var mblno = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "MBLNO" ] . ToString ( ) ;
var SALEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "SALEID" ] . ToString ( ) ;
var CUSTSERVICEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTSERVICEID" ] . ToString ( ) ;
string uname = CookieConfig . GetCookie_UserName ( Request ) ;
var Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno ;
Msgdata . RECEIVER = SALEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = bsno ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
var Msgmodb = new ModelObjectRepository ( ) ;
Msgmodb . Save ( Msgdata ) ;
Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno ;
Msgdata . RECEIVER = CUSTSERVICEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = bsno ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
Msgmodb . Save ( Msgdata ) ;
}
}
# endregion
//DBResult result1 = new DBResult();
//result1.Success = bl;
//result1.Message = bl?"业务提交成功":"业务提交失败";
//var json1 = JsonConvert.Serialize(result1);
//return new ContentResult() { Content = json1 };
}
else
{
//整票提交锁定费用参数为0时, 只发送消息
#region 发送消息
DataSet dsFenDan = T_ALL_DA . GetAllSQL ( "select top 1 MBLNO,(select top 1 GID from [user] where SHOWNAME=b.SALE) SALEID,(select top 1 GID from [user] where SHOWNAME=b.CUSTSERVICE) CUSTSERVICEID from v_op_bill b where bsno='" + bsno + "'" ) ;
if ( dsFenDan ! = null )
{
if ( dsFenDan . Tables [ 0 ] . Rows . Count > 0 )
{
var mblno = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "MBLNO" ] . ToString ( ) ;
var SALEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "SALEID" ] . ToString ( ) ;
var CUSTSERVICEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTSERVICEID" ] . ToString ( ) ;
string uname = CookieConfig . GetCookie_UserName ( Request ) ;
var Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno ;
Msgdata . RECEIVER = SALEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = bsno ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
var Msgmodb = new ModelObjectRepository ( ) ;
Msgmodb . Save ( Msgdata ) ;
Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno ;
Msgdata . RECEIVER = CUSTSERVICEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = bsno ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
Msgmodb . Save ( Msgdata ) ;
}
}
//DBResult result1 = new DBResult();
//result1.Success = true;
//result1.Message = "业务提交成功";
//var json1 = JsonConvert.Serialize(result1);
//return new ContentResult() { Content = json1 };
# endregion
}
}
}
}
catch ( Exception )
{
}
# endregion
var billData = JsonConvert . Deserialize < List < MsChFee > > ( feebody ) ;
var USEBLFeeAudit = MsSysParamSetDAL . GetData ( "PARAMNAME='USEBLFeeAudit'" ) ;
var WorkFlowName = "" ;
if ( USEBLFeeAudit . PARAMVALUE = = "1" )
{
WorkFlowName = "BLFeeAudit" ;
}
DBResult result = Chfee_AuditDAL . SubmitAuditNew ( optype , Convert . ToString ( Session [ "USERID" ] ) , billData , true , WorkFlowName , ISSALEWORK , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
if ( result . Success )
{
#region 运踪相关
try
{
MsOpStatusNewDAL mdal = new MsOpStatusNewDAL ( ) ;
string uname = CookieConfig . GetCookie_UserName ( Request ) ;
mdal . UpdateMainStatus ( billData [ 0 ] . BsNo , 5 , uname ) ;
}
catch ( Exception )
{
}
# endregion
var SUBMITFEEBLBSLOCK = MsSysParamSetDAL . GetData ( "PARAMNAME='SUBMITFEEBLBSLOCK'" ) ;
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" | | SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" )
{
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" & & SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" )
{
string blUpSQL = "UPDATE " + optype + " SET BSSTATUS=1,FEESTATUS=1,BillFeeStatus=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
}
else if ( SUBMITFEEBLBSLOCK . PARAMVALUE = = "1" )
{
string blUpSQL = "UPDATE " + optype + " SET BSSTATUS=1,BillFeeStatus=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
}
if ( SUBMITFEEBLFEELOCK . PARAMVALUE = = "1" )
{
string blUpSQL = "UPDATE " + optype + " SET FEESTATUS=1,BillFeeStatus=1 WHERE BSNO='" + bsno + "'" ;
bool bl = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL ) ;
}
//2018年2月7日 李进举 鼎世 增加 BillFeeStatus字段更新
//string blUpSQL = "UPDATE " + optype + " SET FEESTATUS=1 WHERE BSNO='" + billData[0].BsNo + "'";
//string blUpSQL = "UPDATE " + optype + " SET FEESTATUS=1,BillFeeStatus=1 WHERE BSNO='" + billData[0].BsNo + "'";
//bool bl = T_ALL_DA.GetExecuteSqlCommand(blUpSQL);
DataSet dsFenDan = T_ALL_DA . GetAllSQL ( "select top 1 MBLNO,(select top 1 GID from [user] where SHOWNAME=b.SALE) SALEID,(select top 1 GID from [user] where SHOWNAME=b.CUSTSERVICE) CUSTSERVICEID,CUSTOMERNAME,BSSOURCE from v_op_bill b where bsno='" + billData [ 0 ] . BsNo + "'" ) ;
if ( dsFenDan ! = null )
{
if ( dsFenDan . Tables [ 0 ] . Rows . Count > 0 )
{
var mblno = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "MBLNO" ] . ToString ( ) ;
var SALEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "SALEID" ] . ToString ( ) ;
var CUSTSERVICEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTSERVICEID" ] . ToString ( ) ;
string uname = CookieConfig . GetCookie_UserName ( Request ) ;
var Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno + " 客户:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTOMERNAME" ] . ToString ( ) + " 业务来源:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "BSSOURCE" ] . ToString ( ) ;
Msgdata . RECEIVER = SALEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = billData [ 0 ] . BsNo ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . ISSEND = "0" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
var Msgmodb = new ModelObjectRepository ( ) ;
Msgmodb . Save ( Msgdata ) ;
Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno + " 客户:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTOMERNAME" ] . ToString ( ) + " 业务来源:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "BSSOURCE" ] . ToString ( ) ;
Msgdata . RECEIVER = CUSTSERVICEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = billData [ 0 ] . BsNo ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . ISSEND = "0" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
Msgmodb . Save ( Msgdata ) ;
}
}
}
else
{
//2018年2月5日11:20:26 李进举 鼎世 整票提交锁定参数为0时也发送消息
//2018年2月7日09:30:56 李进举 鼎世 整条提交锁定参数为0时, 仍然修改BillFeeStatus
string blUpSQL2 = "UPDATE " + optype + " SET BillFeeStatus=1 WHERE BSNO='" + bsno + "'" ;
bool bl2 = T_ALL_DA . GetExecuteSqlCommand ( blUpSQL2 ) ;
DataSet dsFenDan = T_ALL_DA . GetAllSQL ( "select top 1 MBLNO,(select top 1 GID from [user] where SHOWNAME=b.SALE) SALEID,(select top 1 GID from [user] where SHOWNAME=b.CUSTSERVICE) CUSTSERVICEID,CUSTOMERNAME,BSSOURCE from v_op_bill b where bsno='" + billData [ 0 ] . BsNo + "'" ) ;
if ( dsFenDan ! = null )
{
if ( dsFenDan . Tables [ 0 ] . Rows . Count > 0 )
{
var mblno = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "MBLNO" ] . ToString ( ) ;
var SALEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "SALEID" ] . ToString ( ) ;
var CUSTSERVICEID = dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTSERVICEID" ] . ToString ( ) ;
string uname = CookieConfig . GetCookie_UserName ( Request ) ;
var Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno + " 客户:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTOMERNAME" ] . ToString ( ) + " 业务来源:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "BSSOURCE" ] . ToString ( ) ;
Msgdata . RECEIVER = SALEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = billData [ 0 ] . BsNo ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . ISSEND = "0" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
var Msgmodb = new ModelObjectRepository ( ) ;
Msgmodb . Save ( Msgdata ) ;
Msgdata = new SYSMessagemb ( ) ;
Msgdata . GID = Guid . NewGuid ( ) . ToString ( ) ;
Msgdata . NAME = "SubmitAudit" ;
Msgdata . DESCRIPTION = uname + "提交费用审核" ;
Msgdata . MESSAGECONTENT = uname + "提交费用审核," + " 提单号:" + mblno + " 客户:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "CUSTOMERNAME" ] . ToString ( ) + " 业务来源:" + dsFenDan . Tables [ 0 ] . Rows [ 0 ] [ "BSSOURCE" ] . ToString ( ) ;
Msgdata . RECEIVER = CUSTSERVICEID ;
Msgdata . CREATETIME = DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) ;
Msgdata . ISREAD = "0" ;
Msgdata . READCOUNT = "0" ;
Msgdata . TYPE = "0" ;
Msgdata . TASKURL = "" ;
Msgdata . TASKID = billData [ 0 ] . BsNo ;
Msgdata . NUMBER = "0" ;
Msgdata . RECVTYPE = "2" ;
Msgdata . ISSEND = "0" ;
Msgdata . DbOperationType = DbOperationType . DbotIns ;
Msgdata . ModelUIStatus = "I" ;
Msgmodb . Save ( Msgdata ) ;
}
}
}
}
//解决整票状态更新成功,但引无提交数据的报错
DBResult result = new DBResult ( ) ;
result . Success = true ;
result . Message = "提交数据处理异常!" ;
var json = JsonConvert . Serialize ( result ) ;