@@ -71,7 +77,7 @@ var bootstrap = function ($, learun) {
});
}
});
//撤回
$('#lr_nosubmit').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('Id');
@@ -106,7 +112,7 @@ var bootstrap = function ($, learun) {
});
}
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
+ 2- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildBLL.csVoir le fichier
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildIBLL.csVoir le fichier
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportChild/QualityReportChildService.csVoir le fichier
strSql.Append(@" select t.*,c.[type] as CalType,c.Name as CalName from QualityReportChild t join QualityReportMain m on t.Mainid=m.id
join QualityReportMain a on t.MainId = a.Id join CalculateProject c on t.ProjectId=c.id ");
strSql.Append($" WHERE 1=1 and a.FillinFromId='{keyValue}' and year(m.ReportTime)=year(getdate()) and month(m.ReportTime)='{month}'");
strSql.Append($" WHERE 1=1 and a.FillinFromId='{keyValue}' ");
if (!string.IsNullOrEmpty(mainId))
{
strSql.Append($" and t.MainId='{mainId}'");
}
else
{
strSql.Append($" and year(m.ReportTime)=year(getdate()) and month(m.ReportTime)='{month}'");
}
strSql.Append(" order by t.Sort ");
// 虚拟参数
var dp = new DynamicParameters(new { });
@@ -341,7 +351,7 @@ where a.Id='{keyValue}' order by b.Sort";
else
{
gs = gs.Replace("(", "(").Replace(")", ")");
if (gs.Contains("%"))
if (gs.Contains("*100%"))
{
gs = gs.Replace("%", "");
var dt = db.FindTable($"select convert(varchar,convert(decimal(18,0),{gs}))+'%' as num ");
@@ -349,7 +359,7 @@ where a.Id='{keyValue}' order by b.Sort";
}
else
{
var dt = db.FindTable($"select convert(varchar,convert(decimal(18,0),{gs})) as num ");
var dt = db.FindTable($"select convert(decimal(18,2),{gs}) as num ");
result = dt.Rows[0][0].ToString();
}
}
+ 1- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/QualityReportMain/QualityReportMainService.csVoir le fichier
strSql.Append(@"select b.WorderModule,b.ProjectName,b.FillingDept,b.Id as fid,a.Id,a.ReportTime,a.Status,a.Result,a.CreateUserName from QualityReportMain a join FillinFrom b on a.FillinFromId=b.Id
");
strSql.Append(" WHERE 1=1 ");
strSql.Append(" WHERE 1=1 and b.[State]=2 and b.IsFlag=0");