@ -1276,46 +1276,44 @@ 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" )
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
{
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
//配置否,则走正常机密费用逻辑
var isopenstr = "" ;
isopenstr = " ( ENTEROPERATOR='" + userid + "' OR ( ENTEROPERATOR<>'" + userid + "' AND (ISOPEN=0 OR ISOPEN IS NULL))) " ;
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 ) )
if ( ! string . IsNullOrEmpty ( rangstr ) )
rangstr = rangstr + " and " + isopenstr ;
rangstr = rangstr + " and " + isopenstr ;
else
else
rangstr = isopenstr ;
rangstr = isopenstr ;
}
else
{
//配置是,则不走机密费用逻辑
rangstr = " 1 = 1 " ;
}
# endregion
}
}
else
var isacc = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modISWACC" , userid ) ;
var isaccstr = "" ;
if ( isacc = = false )
{
{
isaccstr = " ISNULL(ISACC,0)=0 " ;
//配置是,则不走机密费用逻辑
if ( ! string . IsNullOrEmpty ( rangstr ) )
rangstr = " 1 = 1 " ;
rangstr = rangstr + " and " + isaccstr ;
else
rangstr = isaccstr ;
}
}
# 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 FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;
var FeenotPr = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotPr" , userid ) ;
if ( ! string . IsNullOrEmpty ( rangstr ) )
if ( ! string . IsNullOrEmpty ( rangstr ) )
@ -1385,40 +1383,75 @@ 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 = "";
if ( isopen = = false )
//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;
//}
}
#region 2018年2月7日15:54:52 李进举 鼎世
var nopowerOpen = MsSysParamSetDAL . GetData ( "PARAMNAME='FeeSumIsContentNotOpen'" ) ;
if ( nopowerOpen . PARAMVALUE = = "0" )
var isopen = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modFeenotopen" , userid ) ;
{
var isopenstr = "" ;
//配置否,则走正常机密费用逻辑
if ( isopen = = false )
isopenstr = " ( ENTEROPERATOR='" + userid + "' OR ( ENTEROPERATOR<>'" + userid + "' AND (ISOPEN=0 OR ISOPEN IS NULL))) " ;
{
#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 ) )
if ( ! string . IsNullOrEmpty ( rangstr ) )
rangstr = rangstr + " and " + isopenstr ;
rangstr = rangstr + " and " + isopenstr ;
else
else
rangstr = isopenstr ;
rangstr = isopenstr ;
}
else
{
//配置是,则不走机密费用逻辑
rangstr = " 1 = 1 " ;
}
# endregion
}
}
else
var isacc = MsBaseInfoDAL . MsBaseInfoDAL . GetUserModuleEnable ( "modISWACC" , userid ) ;
var isaccstr = "" ;
if ( isacc = = false )
{
{
isaccstr = " ISNULL(ISACC,0)=0 " ;
//配置是,则不走机密费用逻辑
if ( ! string . IsNullOrEmpty ( rangstr ) )
rangstr = " 1 = 1 " ;
rangstr = rangstr + " and " + isaccstr ;
else
rangstr = isaccstr ;
}
}
# 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 ;
}
}