@ -1276,6 +1276,8 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
else
else
{
{
rangstr = GetSumRangDAStr ( userid , username , companyid ) ;
rangstr = GetSumRangDAStr ( userid , username , companyid ) ;
}
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
var isopenstr = "" ;
var isopenstr = "" ;
@ -1312,10 +1314,6 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
}
}
}
var FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;
var FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;
if ( ! string . IsNullOrEmpty ( rangstr ) )
if ( ! string . IsNullOrEmpty ( rangstr ) )
@ -1385,6 +1383,42 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
else
else
{
{
rangstr = GetSumRangDAStr ( userid , username , companyid ) ;
rangstr = GetSumRangDAStr ( userid , username , companyid ) ;
//var nopowerOpen = MsSysParamSetDAL.GetData("PARAMNAME='FeeSumIsContentNotOpen'");
//var isopen = MsBaseInfoDAL.MsBaseInfoDAL.GetUserModuleEnable("modFeenotopen", userid);
//var isopenstr = "";
//if (isopen == false)
//{
// #region 2018年2月7日15:54:52 李进举 鼎世
// if (nopowerOpen.PARAMVALUE == "0")
// {
// //配置否,则走正常机密费用逻辑
// isopenstr = " ( ENTEROPERATOR='" + userid + "' OR ( ENTEROPERATOR<>'" + userid + "' AND (ISOPEN=0 OR ISOPEN IS NULL))) ";
// if (!string.IsNullOrEmpty(rangstr))
// rangstr = rangstr + " and " + isopenstr;
// else
// rangstr = isopenstr;
// }
// else
// {
// //配置是,则不走机密费用逻辑
// rangstr = " 1 = 1 ";
// }
// #endregion
//}
//var isacc = MsBaseInfoDAL.MsBaseInfoDAL.GetUserModuleEnable("modISWACC", userid);
//var isaccstr = "";
//if (isacc == false)
//{
// isaccstr = " ISNULL(ISACC,0)=0 ";
// if (!string.IsNullOrEmpty(rangstr))
// rangstr = rangstr + " and " + isaccstr;
// else
// rangstr = isaccstr;
//}
}
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
var isopenstr = "" ;
var isopenstr = "" ;
@ -1419,7 +1453,6 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeDAL
else
else
rangstr = isaccstr ;
rangstr = isaccstr ;
}
}
}
var FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;
var FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;