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